From 8fdd6aea994fa61f7deb53c3b26b3ed7505fb286 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Fri, 28 Aug 2020 13:09:37 +0200 Subject: [PATCH] Add manual mode rfkill key mapping --- src/uniwill_keyboard.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h index 24d3238..c290790 100644 --- a/src/uniwill_keyboard.h +++ b/src/uniwill_keyboard.h @@ -35,6 +35,8 @@ #define UNIWILL_OSD_RADIOON 0x01A #define UNIWILL_OSD_RADIOOFF 0x01B +#define UNIWILL_KEY_RFKILL 0x0A4 + #define UNIWILL_OSD_TOUCHPADWORKAROUND 0xFFF #define UNIWILL_BRIGHTNESS_MIN 0x00 @@ -83,6 +85,8 @@ static struct key_entry uniwill_wmi_keymap[] = { // { KE_KEY, UNIWILL_OSD_RADIOON, { KEY_RFKILL } }, // { KE_KEY, UNIWILL_OSD_RADIOOFF, { KEY_RFKILL } }, // { KE_KEY, 0xb0, { KEY_F13 } }, + // Manual mode rfkill + { KE_KEY, UNIWILL_KEY_RFKILL, { KEY_RFKILL }}, { KE_KEY, UNIWILL_OSD_TOUCHPADWORKAROUND, { KEY_F21 } }, // Only used to put ev bits { KE_KEY, 0xffff, { KEY_F6 } },