Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev Remap Extra Keys on Razer Anansi Keyboard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wraeth
Developer
Developer


Joined: 08 May 2007
Posts: 71
Location: Australia

PostPosted: Thu Jan 16, 2014 1:28 am    Post subject: udev Remap Extra Keys on Razer Anansi Keyboard Reply with quote

Greetings;

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 [1] 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 [2] 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:
Code:
# 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:
Code:
keyboard:usb:v1532:p010f*
  KEYBOARD_KEY_1008ffb2=email
  KEYBOARD_KEY_1008ffa9=chat
  KEYBOARD_KEY_1008ffb0=search
  KEYBOARD_KEY_1008ffb1=connect
  KEYBOARD_KEY_ff26=sport
  KEYBOARD_KEY_ff25=shop


My main concern with that is whether I've identified the keypresses correctly ([2] 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 [1], just cleaning it up a little. Let me know if you're interested in it.

[1] http://norgelinux.blogspot.com.au/2012/02/razer-anasi-on-arch-linux.html
[2] https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes

Cheers,
wraeth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum