udev and USB ID
How can I put in /etc/udev/udev.rules something like SYSFS_id="0c76:0005" ?
I tried last night udev, and is really great, but it took me one hour to discover why it ignores the line SYSFS_vendor="OLYMPUS". Well the good news is that udev was fine and not ignoring this line, BUT the good guys at olympus made a joke and I had to put it SYSFS_vendor="OLYMPUS " <- Yes with a trailing space. They put an extra space at the end :(
And it was a pain to find it, I had to use strace on udev, just because I didn't know any other choice.
So, I think it is easier to have the possibility to match on ID (USB, PCI or whatever)
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Paul Ionescu
How can I put in
/etc/udev/udev.rulessomething like SYSFS_id="0c76:0005" ?
SYSFS_idVendor="0c76", SYSFS_idProduct="0005"
should work just fine. You can look for more than one sysfs attribute.
Quoted 8 lines
I tried last night udev, and is really great, but it took me one hour to discover why it ignores the line SYSFS_vendor="OLYMPUS". Well the good news is that udev was fine and not ignoring this line, BUT the good guys at olympus made a joke and I had to put it SYSFS_vendor="OLYMPUS " <- Yes with a trailing space. They put an extra space at the end :(
And it was a pain to find it, I had to use strace on udev, just because I didn't know any other choice.
Dump the sysfs file through a hex dump program (like xxd). That trailing space is quite common for digital cameras for some reason (took me forever to figure it out too...)
thanks,
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel