Closed madivad closed 5 years ago
I worked out you need to research the keycodes you give it, you can't just arbitrarily assign any value as some get consumed by the system.
Once you do this, you can use them in software.
In the end I gave them codes 221 and 220 and that worked
I raised a new issue since i made a mess of the old one
The keyboard arrow keys with the inverted T arrow keys, being the up/left and up/right arrow keys, have scancodes of 0x700ac and 0x700ad
These scancodes do not appear in the
/etc/udev/hwdb.d/90-apex.hwdb
file and adding them there does not do anything.for the purposes of this I am only going to deal with the up/left arrow key:
upon a reboot of the keyboard (and the driver hasn't been run),
upon keyboard reboot
xev
evetest
Up/left produced keycodes 105 and 103 as determined by the keyboards internal and default settings.
upon driver initialisation
xev
note: keycode 248
evtest
Event: time 1565522600.186403, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700ac Event: time 1565522600.186403, type 1 (EV_KEY), code 240 (KEY_UNKNOWN), value 1 Event: time 1565522600.186403, -------------- SYN_REPORT ------------ Event: time 1565522600.250347, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700ac Event: time 1565522600.250347, type 1 (EV_KEY), code 240 (KEY_UNKNOWN), value 0 Event: time 1565522600.250347, -------------- SYN_REPORT ------------ node: ccode 240
note the different codes as output by the event testing apps. Either way, I have set actions for those scancodes in
/etc/udev/hwdb.d/90-apex.hwdb
You can see here I've associated help and info here, but I've tried all myriad of things, I have run the associated commands and rebooted several times. In fact I have created a script that runs (this should cover everything!):
How do I assign keycodes to these keys?