I have a ThinkPad W540. On its keyboard there are four multimedia keys above the numpad. Two of those keys generate keycodes (and, apparently, scancodes) that correspond to combination of keys, Win_L + L and Win_L + E. In other words, for the key that generates Win_L + L,
showkey --scancodes
returns this:
0xe0 0x5b 0x26 0xa6 0xe0 0xdb
The setkeycodes
command requires either single byte unescaped or escaped two-byte sequences to denote scan codes, and showkey
gives me way more than that, so I can't quite re-map that key to one of the free keycodes in my system with a straightforward setkeycodes <scancode> <keycode>
.
I would really appreciate any hints how I can remap that key to something else that doesn't simply duplicate one of the existing key combinations on my keyboard.
/etc/acpi/events
which is in theacpid
package and just defining an action when those function keys were pressed.