-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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 my 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:

# 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:
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.

[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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iF4EAREIAAYFAlLSVWMACgkQGYlqHeQRhkywrwD/WcsGGjgbzCmOcWnKqc1xxKo4
M5/JCcnrK3jBC1X2UkIA/3E2jDdGAtKUNX9Wes6yrZ5RL0FnP4xqUttwoNHDSgS7
=JYWa
-----END PGP SIGNATURE-----

Reply via email to