linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Static naming for hiddev nodes
@ 2007-08-03  0:01 Adam Kropelin
  2007-08-03  0:12 ` Kay Sievers
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Adam Kropelin @ 2007-08-03  0:01 UTC (permalink / raw)
  To: linux-hotplug

Hi all,

I'm attempting to establish static naming for some hiddev devices 
(UPSes) based on serial numbers. I used to be able to do this fairly 
easily many moons ago in the early days of udev. Revisiting it on a 
modern distro (RHEL5) I am unable to make it work. Here are the udev 
rules I've tried and what happened with each....

    DRIVER="hiddev", SYSFS{serial}="JB0319039999", NAME="ups1"
    - Does not match

    DRIVER="usbhid", SYSFS{serial}="JB0319039999", NAME="ups1"
    - Does not match

    SYSFS{serial}="JB0319039999", NAME="ups1"
    - Matches, but results in a device node for the usbdev not for the 
hiddev

    BUS="usb", SYSFS{serial}="JB0319039999", NAME="ups1"
    - Matches, but results in a device node for the usbdev not for the 
hiddev

    SUBSYSTEM="usb", SYSFS{serial}="JB0319039999", NAME="ups1"
    - Does not match

I admit to being almost completely lost in the sysfs hierarchy. I'd be 
happy to post a subtree if someone can suggest which one would be 
helpful. It is worth noting that the default rules create correct and 
working hiddev* nodes...I'm just trying to given them persistent names.

Thanks in advance for any suggestions...
--Adam


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2007-08-03 17:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-03  0:01 Static naming for hiddev nodes Adam Kropelin
2007-08-03  0:12 ` Kay Sievers
2007-08-03  0:44 ` Adam Kropelin
2007-08-03  0:59 ` Kay Sievers
2007-08-03  1:11 ` Adam Kropelin
2007-08-03  1:29 ` Kay Sievers
2007-08-03 12:12 ` Adam Kropelin
2007-08-03 14:10 ` Kay Sievers
2007-08-03 17:04 ` Adam Kropelin

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).