From 316f2757a37ce6c951bdd3bb44a3759c615b728e Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Mon, 8 May 2017 15:54:46 +0200 Subject: [PATCH] Map evdev keycodes KEY_RFKILL and KEY_WWAN to XF86RFKill and XF86WWAN In particular KEY_RFKILL is required for properly handling airplane mode in userspace. https://bugs.freedesktop.org/show_bug.cgi?id=100970 --- keycodes/evdev | 2 ++ symbols/inet | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/keycodes/evdev b/keycodes/evdev index 624ac68..51a6e26 100644 --- a/keycodes/evdev +++ b/keycodes/evdev @@ -281,6 +281,8 @@ default xkb_keycodes "evdev" { = 251; // #define KEY_BRIGHTNESS_CYCLE 243 = 252; // #define KEY_BRIGHTNESS_ZERO 244 = 253; // #define KEY_DISPLAY_OFF 245 + = 254; // #define KEY_WWAN 246 + = 255; // #define KEY_RFKILL 247 // Fake keycodes for virtual keys = 92; diff --git a/symbols/inet b/symbols/inet index 5403e77..2934b65 100644 --- a/symbols/inet +++ b/symbols/inet @@ -215,8 +215,8 @@ xkb_symbols "evdev" { // key { [ ] }; // KEY_BRIGHTNESS_CYCLE -- bright up, max++ == min // key { [ ] }; // KEY_BRIGHTNESS_ZERO -- brightness off // key { [ ] }; // KEY_DISPLAY_OFF -- turn off display -// key { [ ] }; // KEY_WIMAX - key { [ XF86Hibernate ] }; // KEY_HIBERNATE + key { [ XF86WWAN ] }; // KEY_WWAN + key { [ XF86RFKill ] }; // KEY_RFKILL key { [ XF86Tools ] }; key { [ XF86Launch5 ] }; -- 2.9.3