peterbay / uvc-gadget

uvc-gadget with resolution changing and video controls
GNU General Public License v2.0
81 stars 24 forks source link

Mac OS 12.0.1 Monterey fails to detect the device #25

Closed RTHPJM closed 2 years ago

RTHPJM commented 2 years ago

This issue has been worked on over at the showmewebcam project, and has now been resolved (see Issue #164).

It turns out that Monterey has a different behaviour to previous versions of Mac OS, and is more sensitive to the configuration numbering of uvc-gadget.

In multi-gadget.sh the config is currently written to the configfs folder $GADGET_PATH/configs/c.2, however this is the only configuration. Monterey seems to expect the configuration to be numbered starting at one. Therefore the config folder should be: $GADGET_PATH/configs/c.1

It looks like a simple bounds issue in Monterey. Currently uvc-gadget presents the configuration as effectively "number 2 of 1 configuration". This gives Monterey a headache! By amending the folder to c.1 uvc-gadget then presents the configuration as "number 1 of 1 configuration" and Monterey is happy.