Red Hat Bugzilla – Bug 75745
usb.usermap camera innovation should be expanded
Last modified: 2014-03-16 22:31:37 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830
Description of problem:
I saw Nalin Dahyabhai's excellent idea to add a script that lifts USB cameras to
userland when plugged. This idea is applicable to more devices and should be
generalized to all non kernel driver needing userland devices that may be
plugged/unplugged during use.
Specifically I want it to work on the Nomad Jukeboxes (MP3 device) that I
develop for. They have device ID:s:
vendor: 0x0471 product: 0x0222 (Nomad Jukebox 1)
vendor: 0x041e product: 0x4101 (Nomad Jukebox 3)
They both work excellently from userland when I copy one of the camera lines in
usb.usermap and change the vendor and product ID. (Match flags = 0x0000, as the
rest of the flags.)
Please make this a generic script for userland devices and add these devices!
I have now solved this problem on my RPMs by including %post and %unpost macros
that add scripts in /etc/hotplug/usb and patch the /etc/hotplug/usb.usermap file
on software installation/removal.
This is not elegant but works. In the future, I hear the newer versions of
hotplug will support application-specific hotplug-files in /etc/hotplug, and not
everything need to go into usb.usermap.
As for me, you may close this bug.