]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Input: add keycode for performance mode key
authorMarcos Alano <marcoshalano@gmail.com>
Tue, 5 Aug 2025 20:44:29 +0000 (13:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Aug 2025 20:51:10 +0000 (13:51 -0700)
Alienware calls this key "Performance Boost". Dell calls it "G-Mode".

The goal is to have a specific keycode to detect when this key is
pressed, so userspace can act upon it and do what have to do, usually
starting the power profile for performance.

Signed-off-by: Marcos Alano <marcoshalano@gmail.com>
Link: https://lore.kernel.org/r/20250509193708.2190586-1-marcoshalano@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
include/uapi/linux/input-event-codes.h

index 08cb157ab59364a41ac425fc9a4ea8eb2fae0e86..ca5851e97fac074a889e9ef3735cc543a0bba442 100644 (file)
 #define KEY_KBD_LCD_MENU4              0x2bb
 #define KEY_KBD_LCD_MENU5              0x2bc
 
+/* Performance Boost key (Alienware)/G-Mode key (Dell) */
+#define KEY_PERFORMANCE                        0x2bd
+
 #define BTN_TRIGGER_HAPPY              0x2c0
 #define BTN_TRIGGER_HAPPY1             0x2c0
 #define BTN_TRIGGER_HAPPY2             0x2c1