Skip to content

Instantly share code, notes, and snippets.

@bigdragon1977
Forked from andersondanilo/instructions.md
Created February 2, 2026 14:14
Show Gist options
  • Select an option

  • Save bigdragon1977/fb9d93ff1748880c058f7ae6f49463a2 to your computer and use it in GitHub Desktop.

Select an option

Save bigdragon1977/fb9d93ff1748880c058f7ae6f49463a2 to your computer and use it in GitHub Desktop.
ms2109 linux (MacroSilicon USB Video)

Play

ffplay -f video4linux2 -framerate 60 -video_size 1920x1080 -input_format mjpeg /dev/video2

You can try other video number (video3, video4)

Maybe you need:

Create: /etc/udev/rules.d/91-hdmi-to-usb-ms2109.rules With:

# For HDMI-to-USB adaptor:
SUBSYSTEM=="usb", DRIVER=="snd-usb-audio", ATTRS{idProduct}=="2109", ATTRS{idVendor}=="534d", \
    RUN+="/bin/sh -c 'echo -n $kernel > /sys/bus/usb/drivers/snd-usb-audio/unbind'"

SUBSYSTEM=="usb", DRIVER=="snd-usb-audio", ATTRS{idProduct}=="2109", ATTRS{idVendor}=="534d", \
    ATTR{bInterfaceNumber}=="00", RUN+="/bin/sh -c 'sleep 1; echo -n $kernel > /sys/bus/usb/drivers/uvcvideo/bind'"

Reload: sudo udevadm control --reload-rules

then unplug and replug, and it should start working.

Info source

https://www.mjt.me.uk/posts/fixing-missing-macrosilicon-ms2109/ https://bbs.archlinux.org/viewtopic.php?pid=1919811#p1919811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment