Skip to content

Commit 61ef69c

Browse files
mhalanojannau
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 d183540 commit 61ef69c

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
@@ -765,6 +765,9 @@
765765
#define KEY_KBD_LCD_MENU4 0x2bb
766766
#define KEY_KBD_LCD_MENU5 0x2bc
767767

768+
/* Performance Boost key (Alienware)/G-Mode key (Dell) */
769+
#define KEY_PERFORMANCE 0x2bd
770+
768771
#define BTN_TRIGGER_HAPPY 0x2c0
769772
#define BTN_TRIGGER_HAPPY1 0x2c0
770773
#define BTN_TRIGGER_HAPPY2 0x2c1

0 commit comments

Comments
 (0)