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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to