I have a new mechanical keyboard and I want to use some custom key build-in (C1, C2, C3, C4, C5).
The problem I encounter is that those keys are not detected in Xorg when I run xev.
I am able to see them when I run :
$ sudo showkey --keycodes keycode 264 press keycode 264 release caught signal 2, cleaning up... When I try to map the given keycode with xmodmap, for example, it does not work. Nothing happen when I press this key.
xmodmap -e 'keycode 264=a' I suspect it might be because my keyboard is spitted in two virtual code keyboard (not sure why?)
$ xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ USB OPTICAL MOUSE id=8 [slave pointer (2)] ⎜ ↳ Genius USB Optical Mouse id=9 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Power Button id=7 [slave keyboard (3)] ↳ Mad Catz Mad Catz S.T.R.I.K.E.TE Mechanical Gaming Keyboard id=10 [slave keyboard (3)] ↳ Mad Catz Mad Catz S.T.R.I.K.E.TE Mechanical Gaming Keyboard id=11 [slave keyboard (3)] When I run sudo evtest /dev/input/event2 "normal" key are detected but not those custom key.
And when I run sudo evtest /dev/input/event3 "normal" key are not detected anymore but the custom one are, and output the same keycodes previously found using the showkey command.
I also tried to run xev from a clean X session but the result is the same...
Are there any other tests I can run, or other suggestions?