Guus Sliepen-2 wrote:
but only processes /dev/input/eventX files and translates events directly to useful symbolic names
Hello all - I also have a USB remote control that acts like a HID.
However, my problem is that it gets split into two separate event devices - /dev/input/event1 and /dev/input/event2.
All the remote keys map to KEY_* codes.
The keys (e.g. the numeric keys and up/down/left/right) from the first event device (1) have the same X key codes as their corresponding keys on the keyboard, so if I press a numeric key on the remote, X receives it the same as if I had pressed the key on the keyboard.
The keys for the second device have no effect, presumably because I have not configured X to be aware of them?
I wanted to use inputlircd to grab these event devices and pass their input to VDR.
user@host # ./inputlircd -gf /dev/input/event1 /dev/input/event2
The problem is that VDR will only pick up keys from event2. (X gets the event1 keys first?)
Does anyone know if it is possible to configure inputlirc to 'roll' two event devices into a single virtual device?
This is the relevant section from lsinput (input-utils):
/dev/input/event1
bustype : BUS_USB
vendor : 0x766
product : 0x204
version : 1
name : "TopSeed Tech Corp. USB IR Combo "
phys : "usb-0000:00:07.2-2/input0"
uniq : ""
bits ev : EV_SYN EV_KEY EV_LED EV_REP
/dev/input/event2
bustype : BUS_USB
vendor : 0x766
product : 0x204
version : 1
name : "TopSeed Tech Corp. USB IR Combo "
phys : "usb-0000:00:07.2-2/input1"
uniq : ""
bits ev : EV_SYN EV_KEY EV_REL EV_REP
And from cat /proc/bus/input/devices:
I: Bus=0003 Vendor=0766 Product=0204 Version=0001
N: Name="TopSeed Tech Corp. USB IR Combo Device "
P: Phys=usb-0000:00:07.2-2/input0
S: Sysfs=/class/input/input1
H: Handlers=kbd event1
B: EV=120003
B: KEY=10000 7 ff87207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: LED=1f
I: Bus=0003 Vendor=0766 Product=0204 Version=0001
N: Name="TopSeed Tech Corp. USB IR Combo Device "
P: Phys=usb-0000:00:07.2-2/input1
S: Sysfs=/class/input/input2
H: Handlers=kbd mouse1 event2 ts1
B: EV=100007
B: KEY=42c03b2 20d0400 0 0 70000 4 18000 21f8 d001d006 9e0040 0 0 0
B: REL=103