linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev and USB ID
@ 2004-01-10 15:26 Paul Ionescu
  2004-01-13  0:56 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Ionescu @ 2004-01-10 15:26 UTC (permalink / raw)
  To: linux-hotplug

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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: udev and USB ID
  2004-01-10 15:26 udev and USB ID Paul Ionescu
@ 2004-01-13  0:56 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-01-13  0:56 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Jan 10, 2004 at 05:26:52PM +0200, Paul Ionescu wrote:
> How can I put in /etc/udev/udev.rules something like
> SYSFS_id="0c76:0005" ?

SYSFS_idVendor="0c76", SYSFS_idProduct="0005"

should work just fine.  You can look for more than one sysfs attribute.

> 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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-13  0:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-10 15:26 udev and USB ID Paul Ionescu
2004-01-13  0:56 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).