Skip to content
Permalink
Browse files

Add a patch to generate keyboard events for the hotkeys where it make…

…s sense. In combination with a udev hwdb entry like the following:

$ cat /etc/udev/hwdb.d/99-x210-keyboard.hwdb
evdev:atkbd:dmi:bvncoreboot:bvr*:bd*:svn51nb:pn*
 KEYBOARD_KEY_c1=coffee
 KEYBOARD_KEY_bf=battery
 KEYBOARD_KEY_bb=wlan
 KEYBOARD_KEY_d8=switchvideomode
 KEYBOARD_KEY_e4=f21
 KEYBOARD_KEY_be=suspend

these keys will then be mapped in the same way under Linux that they are on
traditional Thinkpad hardware.
  • Loading branch information
mjg59 authored and l29ah committed Nov 13, 2019
1 parent 939d04f commit 51428ae60209ef10a2900a31ef5d2371d4db000a
Showing with 13 additions and 0 deletions.
  1. +1 −0 menu.sh
  2. +12 −0 patches/enable-hotkeys.rapatch
@@ -5,6 +5,7 @@ dialog --checklist 'Choose the desired patches' 0 0 0 \
lcd-brightness 'Allow lowering LCD backlight brightness to 1%' on \
lcd-backlight-925hz 'Increase the LCD backlight PWM frequency to ~925Hz' on \
fan-72deg 'Make fan blow at 100% speed on 72+°C CPU temperature' on \
enable-hotkeys 'Generate scancodes for all hotkeys' on \
2> selected
for p in $(cat selected); do
fn="patches/$p.rapatch"
@@ -0,0 +1,12 @@
0x00009d14 02
0x00009d16 03
0x00009d18 05
0x00009d1e 07
0x00009d20 08
0x00009d22 0c
0x00009f3a 37
0x00009f3c 38
0x00009f40 39
0x00009f42 5e
0x00009f44 5f
0x00009f48 60

0 comments on commit 51428ae

Please sign in to comment.
You can’t perform that action at this time.