1 |
Well, I've been scratching my head for some time on this one. |
2 |
|
3 |
I have an HTPC with an iMon receiver. The IR receiver actually has two |
4 |
event inputs (mouse and button events come in separately.) Now, in the |
5 |
past, an entry was created under /dev/input/by-id that was the |
6 |
combination of the two channels so you could get all the events from |
7 |
keypresses. |
8 |
|
9 |
This used to work with old kernels, which I unfortunately no longer have |
10 |
around. This hasn't worked in probably five years now. |
11 |
|
12 |
I'm using kernel IR bound to lirc, as there appears to be no kernel IR |
13 |
replacement for irexec, which I use. |
14 |
|
15 |
So... |
16 |
|
17 |
The kernel IR is set up correctly with the kernel: |
18 |
|
19 |
htpclivingrm ~ # ir-keytable |
20 |
Found /sys/class/rc/rc0/ (/dev/input/event7) with: |
21 |
Driver: imon, table: rc-imon-pad |
22 |
Supported kernel protocols: other rc-6 |
23 |
Enabled kernel protocols: rc-6 |
24 |
Name: iMON Remote (15c2:0038) |
25 |
bus: 3, vendor/product: 15c2:0038, version: 0x0001 |
26 |
Repeat delay = 500 ms, repeat period = 125 ms |
27 |
|
28 |
However, there's no entry under /dev/input/by-id: |
29 |
|
30 |
htpclivingrm ~ # ls -l /dev/input/by-id |
31 |
total 0 |
32 |
lrwxrwxrwx 1 root root 9 May 20 10:41 usb-15c2_0038-event-mouse -> ../event6 |
33 |
lrwxrwxrwx 1 root root 9 May 20 10:41 usb-15c2_0038-mouse -> ../mouse0 |
34 |
|
35 |
As you see, the combined source (/dev/input/event7) does not have a |
36 |
symlink. This is really annoying as when you plug in devices like a USB |
37 |
keyboard (this machine normally doesn't have one) or a thumb drive |
38 |
(ditto) the IR stops working. |
39 |
|
40 |
I wrote a howto a long time ago and it used to (this is from the howto a |
41 |
long time ago): |
42 |
|
43 |
ls -l /dev/input/by-id/ |
44 |
total 0 |
45 |
lrwxrwxrwx 1 root root 10 Sep 16 09:43 usb-15c2_0038-event-if00 -> |
46 |
../event15 |
47 |
lrwxrwxrwx 1 root root 10 Sep 16 09:43 usb-15c2_0038-event-mouse -> |
48 |
../event14 |
49 |
lrwxrwxrwx 1 root root 9 Sep 16 09:43 usb-15c2_0038-mouse -> ../mouse0 |
50 |
|
51 |
As you can see, the "event-if00" combined source is missing on any newer |
52 |
installs. |
53 |
|
54 |
My largest issue is I don't know if this is kernel or udev. I would |
55 |
suspect udev would be creating these symlinks but do not know where to |
56 |
look (not an udev guru.) Could someone point me in the right direction? |
57 |
|
58 |
I get this from udev (off the htpc that currently does not work - maybe |
59 |
a rule is just missing?): |
60 |
|
61 |
# udevadm info /dev/input/event7 |
62 |
P: /devices/pci0000:00/0000:00:1a.2/usb5/5-1/5-1:1.0/rc/rc0/input10/event7 |
63 |
N: input/event7 |
64 |
S: input/by-id/usb-15c2_0038-event-mouse |
65 |
S: input/by-path/pci-0000:00:1a.2-usb-0:1:1.0-event-mouse |
66 |
E: DEVLINKS=/dev/input/by-path/pci-0000:00:1a.2-usb-0:1:1.0-event-mouse |
67 |
/dev/input/by-id/usb-15c2_0038-event-mouse |
68 |
E: DEVNAME=/dev/input/event7 |
69 |
E: |
70 |
DEVPATH=/devices/pci0000:00/0000:00:1a.2/usb5/5-1/5-1:1.0/rc/rc0/input10/event7 |
71 |
E: ID_BUS=usb |
72 |
E: ID_INPUT=1 |
73 |
E: ID_INPUT_KEY=1 |
74 |
E: ID_INPUT_MOUSE=1 |
75 |
E: ID_MODEL=0038 |
76 |
E: ID_MODEL_ENC=0038 |
77 |
E: ID_MODEL_ID=0038 |
78 |
E: ID_PATH=pci-0000:00:1a.2-usb-0:1:1.0 |
79 |
E: ID_PATH_TAG=pci-0000_00_1a_2-usb-0_1_1_0 |
80 |
E: ID_REVISION=0001 |
81 |
E: ID_SERIAL=15c2_0038 |
82 |
E: ID_TYPE=hid |
83 |
E: ID_USB_DRIVER=imon |
84 |
E: ID_USB_INTERFACES=:030002:030000: |
85 |
E: ID_USB_INTERFACE_NUM=00 |
86 |
E: ID_VENDOR=15c2 |
87 |
E: ID_VENDOR_ENC=15c2 |
88 |
E: ID_VENDOR_ID=15c2 |
89 |
E: LIBINPUT_DEVICE_GROUP=3/15c2/38:usb-0000:00:1a.2-1 |
90 |
E: MAJOR=13 |
91 |
E: MINOR=71 |
92 |
E: SUBSYSTEM=input |
93 |
E: USEC_INITIALIZED=4223864 |
94 |
|
95 |
Any help would be appreciated... |
96 |
|
97 |
Dan |