47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
From 07da5b008f5908a418c799946a2cb968a14f269b Mon Sep 17 00:00:00 2001
|
|
From: RocketDev <ma2014119@outlook.com>
|
|
Date: Fri, 1 Aug 2025 01:31:11 +0800
|
|
Subject: [PATCH] hwdb: disable Asus ROG keyboards sending poweroff
|
|
|
|
Asus ROG keyboards seems to send power off key code when keyboard wake
|
|
up. Reserve the key codes could suppress this problem.
|
|
|
|
Devices added: ROG Falchion & ROG Scope
|
|
|
|
Based on the work by Jon Nettleton:
|
|
https://gist.github.com/jnettlet/afb20a048b8720f3b4eb8506d8b05643
|
|
|
|
(cherry picked from commit 6428c0f48028e09bf5b750fb3fd1f4a3dac7e24e)
|
|
|
|
Resolves: RHEL-72697
|
|
---
|
|
hwdb.d/60-keyboard.hwdb | 15 +++++++++++++++
|
|
1 file changed, 15 insertions(+)
|
|
|
|
diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb
|
|
index 0ac71d64f7..86535bc41b 100644
|
|
--- a/hwdb.d/60-keyboard.hwdb
|
|
+++ b/hwdb.d/60-keyboard.hwdb
|
|
@@ -285,6 +285,21 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnASUS:pn*:*
|
|
KEYBOARD_KEY_ee=volumedown
|
|
KEYBOARD_KEY_ef=mute
|
|
|
|
+# Asus ROG series
|
|
+# Prevents the keyboard from sending POWER and SLEEP key presses
|
|
+# when the keyboard goes to sleep.
|
|
+evdev:input:b*v0B05p*e0111*
|
|
+ KEYBOARD_KEY_10081=reserved
|
|
+ KEYBOARD_KEY_10082=reserved
|
|
+ KEYBOARD_KEY_70070=reserved
|
|
+ KEYBOARD_KEY_70071=reserved
|
|
+ KEYBOARD_KEY_70072=reserved
|
|
+ KEYBOARD_KEY_70073=reserved
|
|
+ KEYBOARD_KEY_70074=reserved
|
|
+ KEYBOARD_KEY_70075=reserved
|
|
+ KEYBOARD_KEY_70076=reserved
|
|
+ KEYBOARD_KEY_70077=reserved
|
|
+
|
|
# Asus TF103C misses the home button in its PNP0C40 GPIO resources
|
|
# causing the volume-button mappings to be off by one, correct this
|
|
evdev:name:gpio-keys:phys:gpio-keys/input0:ev:3:dmi:*:svnASUSTeKCOMPUTERINC.:pnTF103C*:*
|