1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA256 |
3 |
|
4 |
Greetings; |
5 |
|
6 |
I've been trying to enable the special function keys on my Razer Anansi |
7 |
keyboard, and while I'm partway there, I'm getting stuck on remapping some of |
8 |
the keys (due to non-supported scancodes. The Razer Anansi has additional |
9 |
keys M1-5 and T1-7. |
10 |
|
11 |
I followed [1] which has gotten my to the point where the special keys are |
12 |
activated on device initialization (a utility sends an initialization signal |
13 |
to the keyboard), and this has allowed keys M1-4 to be mapped, however the |
14 |
others remain inaccessible. |
15 |
|
16 |
The post at [2] describes creating a udev rule to remap keys from their |
17 |
current keycode to one listed in /usr/include/linux/input.h, however this does |
18 |
not appear to be working correctly (my hwdb file below). |
19 |
|
20 |
The current codes as reported by `xev` in the order M5, T1-7 is: |
21 |
|
22 |
# xev | grep keysym |
23 |
state 0x10, keycode 197 (keysym 0x0, NoSymbol), same_screen YES |
24 |
state 0x10, keycode 198 (keysym 0x1008ffb2, XF86AudioMicMute), same_screen YES |
25 |
state 0x10, keycode 199 (keysym 0x1008ffa9, XF86TouchpadToggle), same_screen YES |
26 |
state 0x10, keycode 200 (keysym 0x1008ffb0, XF86TouchpadOn), same_screen YES |
27 |
state 0x10, keycode 201 (keysym 0x1008ffb1, XF86TouchpadOff), same_screen YES |
28 |
state 0x10, keycode 98 (keysym 0xff26, Katakana), same_screen YES |
29 |
state 0x10, keycode 99 (keysym 0xff25, Hiragana), same_screen YES |
30 |
state 0x10, keycode 103 (keysym 0x0, NoSymbol), same_screen YES |
31 |
|
32 |
Of note, the M5 and T7 keys produce "keysym 0x0, NoSymbol", so I'm not sure |
33 |
how that's supposed to work. I've shortened this for compaction, but can |
34 |
provide full output if requested. |
35 |
|
36 |
My current hwdb file in /etc/dbus/hwdb.d/99-razer-kbd.hwdb: |
37 |
keyboard:usb:v1532:p010f* |
38 |
KEYBOARD_KEY_1008ffb2=email |
39 |
KEYBOARD_KEY_1008ffa9=chat |
40 |
KEYBOARD_KEY_1008ffb0=search |
41 |
KEYBOARD_KEY_1008ffb1=connect |
42 |
KEYBOARD_KEY_ff26=sport |
43 |
KEYBOARD_KEY_ff25=shop |
44 |
|
45 |
My main concern with that is whether I've identified the keypresses correctly |
46 |
([2] implied a hex number without the '0x', and I've tried with 'keycode' |
47 |
instead with the same results (ie: none)). |
48 |
|
49 |
Not sure how to proceed, and would appreciate any advice or links. |
50 |
|
51 |
[1] http://norgelinux.blogspot.com.au/2012/02/razer-anasi-on-arch-linux.html |
52 |
[2] https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes |
53 |
|
54 |
Cheers, |
55 |
wraeth |
56 |
-----BEGIN PGP SIGNATURE----- |
57 |
Version: GnuPG v2.0.22 (GNU/Linux) |
58 |
|
59 |
iF4EAREIAAYFAlLSVWMACgkQGYlqHeQRhkywrwD/WcsGGjgbzCmOcWnKqc1xxKo4 |
60 |
M5/JCcnrK3jBC1X2UkIA/3E2jDdGAtKUNX9Wes6yrZ5RL0FnP4xqUttwoNHDSgS7 |
61 |
=JYWa |
62 |
-----END PGP SIGNATURE----- |