Skip to contentSkip to conversation

Add keycode for performance mode keys

PATCH In review Marcos Alano 1 participant 2 messages May 9, 2025 – Aug 3, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add keycode for performance mode keys

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.

---
 include/uapi/linux/input-event-codes.h | 5 +++++
 1 file changed, 5 insertions(+)
include/uapi/linux/input-event-codes.h +5 -0
index 5a199f3d4a26..f410394cd769 100644
@@ -765,6 +765,11 @@
 #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
Signature · 1 line
2.49.0
#1 lore raw

@Dmitry,

Could you check this patch, please?

Thanks,

Quoted 27 lines · Marcos Alano

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.

---
  include/uapi/linux/input-event-codes.h | 5 +++++
  1 file changed, 5 insertions(+)
include/uapi/linux/input-event-codes.h +5 -0
index 5a199f3d4a26..f410394cd769 100644
@@ -765,6 +765,11 @@
  #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
Signature · 1 line
Marcos Alano