Skip to content

Commit 89c5214

Browse files
mhalanodtor
authored andcommitted
Input: add keycode for performance mode key
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent a7bee4e commit 89c5214

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/uapi/linux/input-event-codes.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,9 @@
770770
#define KEY_KBD_LCD_MENU4 0x2bb
771771
#define KEY_KBD_LCD_MENU5 0x2bc
772772

773+
/* Performance Boost key (Alienware)/G-Mode key (Dell) */
774+
#define KEY_PERFORMANCE 0x2bd
775+
773776
#define BTN_TRIGGER_HAPPY 0x2c0
774777
#define BTN_TRIGGER_HAPPY1 0x2c0
775778
#define BTN_TRIGGER_HAPPY2 0x2c1

0 commit comments

Comments
 (0)