samvel1024 / kbct

Keyboard keycode mapping utility for Linux supporting layered configuration
MIT License
272 stars 24 forks source link

Keyboard detected with wrong event file, correct event file not listed #47

Closed lbenedetto closed 9 months ago

lbenedetto commented 9 months ago

Keyboard shows up as event9:

$ sudo kbct list-devices | grep Corsair
/dev/input/event9   "Corsair Corsair K70R Gaming Keyboard"

But no events show up:

$ sudo kbct log-keys --device-path /dev/input/event9
asdads^C INFO  kbct > Received signal, stopping

No device is listed for event13:

$ sudo kbct list-devices | grep 13

But this is the correct one for this keyboard:

$ sudo kbct log-keys --device-path /dev/input/event13
leftctrl clicked
c clicked
^C INFO  kbct > Received signal, stopping

Could it be because they all have the same name, so only the first one shows up in kbct?

$ cat /proc/bus/input/devcies

I: Bus=0003 Vendor=1b1c Product=1b09 Version=0111
N: Name="Corsair Corsair K70R Gaming Keyboard"
P: Phys=usb-0000:06:00.3-3/input0
S: Sysfs=/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.3/usb3/3-3/3-3:1.0/0003:1B1C:1B09.0012/input/input42
U: Uniq=
H: Handlers=sysrq kbd event9 leds js0 
B: PROP=0
B: EV=120013
B: KEY=7fffff 0 0 0 0 0 0 0 1000000000007 ff98002a000007ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=1b1c Product=1b09 Version=0111
N: Name="Corsair Corsair K70R Gaming Keyboard"
P: Phys=usb-0000:06:00.3-3/input1
S: Sysfs=/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.3/usb3/3-3/3-3:1.1/0003:1B1C:1B09.0013/input/input43
U: Uniq=
H: Handlers=kbd event10 
B: PROP=0
B: EV=1f
B: KEY=3f000307ff 0 0 483ffff17aff32d bfd4444600000000 1 130ff38b17d000 677bfad9415fed 19ed68000004400 10000002
B: REL=1040
B: ABS=100000000
B: MSC=10

I: Bus=0003 Vendor=1b1c Product=1b09 Version=0111
N: Name="Corsair Corsair K70R Gaming Keyboard"
P: Phys=usb-0000:06:00.3-3/input2
S: Sysfs=/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.3/usb3/3-3/3-3:1.2/0003:1B1C:1B09.0014/input/input44
U: Uniq=
H: Handlers=sysrq kbd event13 
B: PROP=0
B: EV=100013
B: KEY=7f80000000000000 e0b0ffdf01cfffff fffffffffffffffe
B: MSC=10
lbenedetto commented 9 months ago

Ah, this duplicates #42