[Pkg-lirc-maint] Bug#350318: dev/input: allow device 'name' and	'phys' labels for dev/input
    Tino Keitel 
    tino.keitel at tikei.de
       
    Mon Aug 13 05:37:51 UTC 2007
    
    
  
Hi,
this could be achieved by just one udev rule, no need to patch lirc.
This is how I configured udev:
$ cat /etc/udev/rules.d/z20_event-by-id.rules 
SUBSYSTEM!="input",                     GOTO="input-by-id2-end"
ACTION!="add",                          GOTO="input-by-id2-end"
# ignore the mid-level drivers
KERNEL=="input[0-9]*",                  GOTO="input-by-id2-end"
KERNEL=="event*", \
        SYMLINK+="input/event-by-id/$SYSFS{idVendor}-$SYSFS{idProduct}"
LABEL="input-by-id2-end"
You should now have /dev/input/event-by-id/ with files that are named
by <vendor-ID>-<device-ID>.
Regards,
Tino
    
    
More information about the Pkg-lirc-maint
mailing list