xorg-x11-proto-devel/xproto-extra-XF86keysyms.patch

108 lines
3.5 KiB
Diff
Raw Normal View History

From 9019240a9a5c869875ff6c5c28e6fca75fa90580 Mon Sep 17 00:00:00 2001
From: Christian Kellner <christian@kellner.me>
Date: Wed, 19 Apr 2017 15:26:41 +0200
Subject: [PATCH xproto v2 1/3] Add XF86XK_Keyboard
The 2017 Thinkpad models have a new hotkey with a keyboard symbols
on it, which is mapped to KEY_KEYBOARD in the kernel.
Signed-off-by: Christian Kellner <christian@kellner.me>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
XF86keysym.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/XF86keysym.h b/XF86keysym.h
index 8b5646e..89d40b8 100644
--- a/XF86keysym.h
+++ b/XF86keysym.h
@@ -197,6 +197,8 @@
#define XF86XK_AudioMicMute 0x1008FFB2 /* Mute the Mic from the system */
+#define XF86XK_Keyboard 0x1008FFB3 /* User defined keyboard related action */
+
/* Keys for special action keys (hot keys) */
/* Virtual terminals on some operating systems */
#define XF86XK_Switch_VT_1 0x1008FE01
--
2.12.2
From 98a32d328e7195e12c38baa877917335bceffbaf Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Wed, 10 May 2017 15:26:45 +0200
Subject: [PATCH xproto v2 2/3] Add XF86XK_WWAN and XF86XK_RFKill
Add Keysyms corresponding to the evdev WWAN and RFKILL keys, we already
have Keysyms for WLAN and UWB from linux/input-event-codes.h:
#define KEY_WLAN 238
#define KEY_UWB 239
But not for the WWAN and generic RFKILL keys:
#define KEY_WWAN 246 /* Wireless WAN (LTE, UMTS, GSM, etc.) */
#define KEY_WIMAX KEY_WWAN
#define KEY_RFKILL 247 /* Key that controls all radios */
This commits add Keysyms for these so that we can add proper mappings for
them to xkb.
Cc: Bastien Nocera <bnocera@redhat.com>
Cc: Benjamin Berg <bberg@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
---
XF86keysym.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/XF86keysym.h b/XF86keysym.h
index 89d40b8..8576358 100644
--- a/XF86keysym.h
+++ b/XF86keysym.h
@@ -199,6 +199,9 @@
#define XF86XK_Keyboard 0x1008FFB3 /* User defined keyboard related action */
+#define XF86XK_WWAN 0x1008FFB4 /* Toggle WWAN (LTE, UMTS, etc.) radio */
+#define XF86XK_RFKill 0x1008FFB5 /* Toggle radios on/off */
+
/* Keys for special action keys (hot keys) */
/* Virtual terminals on some operating systems */
#define XF86XK_Switch_VT_1 0x1008FE01
--
2.12.2
From ab8666661fc68f075b8d6ffabe22c6b577c30ac1 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Wed, 10 May 2017 15:39:12 +0200
Subject: [PATCH xproto v2 3/3] Add XF86XK_AudioPreset
Add XF86XK_AudioPreset keysym, to be used as mapping for evdev's
KEY_SOUND keycode which is generated on some devices by a button which
on windows selects equalizer presets switching between settings such as
e.g. theatre-mode / game-mode / voice-mode.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
---
XF86keysym.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/XF86keysym.h b/XF86keysym.h
index 8576358..c0d12c1 100644
--- a/XF86keysym.h
+++ b/XF86keysym.h
@@ -202,6 +202,8 @@
#define XF86XK_WWAN 0x1008FFB4 /* Toggle WWAN (LTE, UMTS, etc.) radio */
#define XF86XK_RFKill 0x1008FFB5 /* Toggle radios on/off */
+#define XF86XK_AudioPreset 0x1008FFB6 /* Select equalizer preset, e.g. theatre-mode */
+
/* Keys for special action keys (hot keys) */
/* Virtual terminals on some operating systems */
#define XF86XK_Switch_VT_1 0x1008FE01
--
2.12.2