Well, I've been scratching my head for some time on this one.
I have an HTPC with an iMon receiver. The IR receiver actually has two
event inputs (mouse and button events come in separately.) Now, in the
past, an entry was created under /dev/input/by-id that was the
combination of the two channels so you could get all the events from
keypresses.
This used to work with old kernels, which I unfortunately no longer have
around. This hasn't worked in probably five years now.
I'm using kernel IR bound to lirc, as there appears to be no kernel IR
replacement for irexec, which I use.
So...
The kernel IR is set up correctly with the kernel:
htpclivingrm ~ # ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event7) with:
Driver: imon, table: rc-imon-pad
Supported kernel protocols: other rc-6
Enabled kernel protocols: rc-6
Name: iMON Remote (15c2:0038)
bus: 3, vendor/product: 15c2:0038, version: 0x0001
Repeat delay = 500 ms, repeat period = 125 ms
However, there's no entry under /dev/input/by-id:
htpclivingrm ~ # ls -l /dev/input/by-id
total 0
lrwxrwxrwx 1 root root 9 May 20 10:41 usb-15c2_0038-event-mouse -> ../event6
lrwxrwxrwx 1 root root 9 May 20 10:41 usb-15c2_0038-mouse -> ../mouse0
As you see, the combined source (/dev/input/event7) does not have a
symlink. This is really annoying as when you plug in devices like a USB
keyboard (this machine normally doesn't have one) or a thumb drive
(ditto) the IR stops working.
I wrote a howto a long time ago and it used to (this is from the howto a
long time ago):
ls -l /dev/input/by-id/
total 0
lrwxrwxrwx 1 root root 10 Sep 16 09:43 usb-15c2_0038-event-if00 ->
../event15
lrwxrwxrwx 1 root root 10 Sep 16 09:43 usb-15c2_0038-event-mouse ->
../event14
lrwxrwxrwx 1 root root 9 Sep 16 09:43 usb-15c2_0038-mouse -> ../mouse0
As you can see, the "event-if00" combined source is missing on any newer
installs.
My largest issue is I don't know if this is kernel or udev. I would
suspect udev would be creating these symlinks but do not know where to
look (not an udev guru.) Could someone point me in the right direction?
I get this from udev (off the htpc that currently does not work - maybe
a rule is just missing?):
# udevadm info /dev/input/event7
P: /devices/pci0000:00/0000:00:1a.2/usb5/5-1/5-1:1.0/rc/rc0/input10/event7
N: input/event7
S: input/by-id/usb-15c2_0038-event-mouse
S: input/by-path/pci-0000:00:1a.2-usb-0:1:1.0-event-mouse
E: DEVLINKS=/dev/input/by-path/pci-0000:00:1a.2-usb-0:1:1.0-event-mouse
/dev/input/by-id/usb-15c2_0038-event-mouse
E: DEVNAME=/dev/input/event7
E:
DEVPATH=/devices/pci0000:00/0000:00:1a.2/usb5/5-1/5-1:1.0/rc/rc0/input10/event7
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_MOUSE=1
E: ID_MODEL=0038
E: ID_MODEL_ENC=0038
E: ID_MODEL_ID=0038
E: ID_PATH=pci-0000:00:1a.2-usb-0:1:1.0
E: ID_PATH_TAG=pci-0000_00_1a_2-usb-0_1_1_0
E: ID_REVISION=0001
E: ID_SERIAL=15c2_0038
E: ID_TYPE=hid
E: ID_USB_DRIVER=imon
E: ID_USB_INTERFACES=:030002:030000:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=15c2
E: ID_VENDOR_ENC=15c2
E: ID_VENDOR_ID=15c2
E: LIBINPUT_DEVICE_GROUP=3/15c2/38:usb-0000:00:1a.2-1
E: MAJOR=13
E: MINOR=71
E: SUBSYSTEM=input
E: USEC_INITIALIZED=4223864
Any help would be appreciated...
Dan