linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add keycode for performance mode keys
@ 2025-05-09 19:34 Marcos Alano
  0 siblings, 0 replies; 3+ messages in thread
From: Marcos Alano @ 2025-05-09 19:34 UTC (permalink / raw)
  To: dmitry.torokhov; +Cc: linux-input, Marcos Alano

Alienware calls this key "Performance Boost", and
Dell calls it "G-Mode".

Signed-off-by: Marcos Alano <marcoshalano@gmail.com>
---
 include/uapi/linux/input-event-codes.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
index 5a199f3d4a26..f410394cd769 100644
--- a/include/uapi/linux/input-event-codes.h
+++ b/include/uapi/linux/input-event-codes.h
@@ -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
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] Add keycode for performance mode keys
@ 2025-05-09 19:37 Marcos Alano
  2025-08-03 12:22 ` Marcos Alano
  0 siblings, 1 reply; 3+ messages in thread
From: Marcos Alano @ 2025-05-09 19:37 UTC (permalink / raw)
  To: dmitry.torokhov; +Cc: linux-input, 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.

Signed-off-by: Marcos Alano <marcoshalano@gmail.com>
---
 include/uapi/linux/input-event-codes.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
index 5a199f3d4a26..f410394cd769 100644
--- a/include/uapi/linux/input-event-codes.h
+++ b/include/uapi/linux/input-event-codes.h
@@ -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
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add keycode for performance mode keys
  2025-05-09 19:37 [PATCH] Add keycode for performance mode keys Marcos Alano
@ 2025-08-03 12:22 ` Marcos Alano
  0 siblings, 0 replies; 3+ messages in thread
From: Marcos Alano @ 2025-08-03 12:22 UTC (permalink / raw)
  To: dmitry.torokhov; +Cc: linux-input

@Dmitry,

Could you check this patch, please?

Thanks,


On 09/05/2025 16:37, Marcos Alano wrote:
> 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>
> ---
>   include/uapi/linux/input-event-codes.h | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
> index 5a199f3d4a26..f410394cd769 100644
> --- a/include/uapi/linux/input-event-codes.h
> +++ b/include/uapi/linux/input-event-codes.h
> @@ -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

-- 
Marcos Alano


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-03 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-09 19:37 [PATCH] Add keycode for performance mode keys Marcos Alano
2025-08-03 12:22 ` Marcos Alano
  -- strict thread matches above, loose matches on Subject: below --
2025-05-09 19:34 Marcos Alano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).