Joined: 08 May 2007
|Posted: Thu Jan 16, 2014 1:28 am Post subject: udev Remap Extra Keys on Razer Anansi Keyboard
I've been trying to enable the special function keys on my Razer Anansi keyboard, and while I'm partway there, I'm getting stuck on remapping some of the keys (due to non-supported scancodes. The Razer Anansi has additional keys M1-5 and T1-7. I followed  which has gotten me to the point where the special keys are activated on device initialization (a utility sends an initialization signal to the keyboard), and this has allowed keys M1-4 to be mapped, however the others remain inaccessible. The post at  describes creating a udev rule to remap keys from their current keycode to one listed in /usr/include/linux/input.h, however this does not appear to be working correctly (my hwdb file below).
The current codes as reported by `xev` in the order M5, T1-7 is:
|# xev | grep keysym
state 0x10, keycode 197 (keysym 0x0, NoSymbol), same_screen YES
state 0x10, keycode 198 (keysym 0x1008ffb2, XF86AudioMicMute), same_screen YES
state 0x10, keycode 199 (keysym 0x1008ffa9, XF86TouchpadToggle), same_screen YES
state 0x10, keycode 200 (keysym 0x1008ffb0, XF86TouchpadOn), same_screen YES
state 0x10, keycode 201 (keysym 0x1008ffb1, XF86TouchpadOff), same_screen YES
state 0x10, keycode 98 (keysym 0xff26, Katakana), same_screen YES
state 0x10, keycode 99 (keysym 0xff25, Hiragana), same_screen YES
state 0x10, keycode 103 (keysym 0x0, NoSymbol), same_screen YES
Of note, the M5 and T7 keys produce "keysym 0x0, NoSymbol", so I'm not sure how that's supposed to work. I've shortened this for compaction, but can provide full output if requested.
My current hwdb file in /etc/dbus/hwdb.d/99-razer-kbd.hwdb:
My main concern with that is whether I've identified the keypresses correctly ( implied a hex number without the '0x', and I've tried with 'keycode' instead with the same results (ie: none)). Not sure how to proceed, and would appreciate any advice or links.
For anyone that's interested, too, I've got an ebuild for the utility described at , just cleaning it up a little. Let me know if you're interested in it.