From: RocketDev Date: Thu, 31 Jul 2025 17:31:11 +0000 (+0800) Subject: hwdb: disable Asus ROG keyboards sending poweroff X-Git-Tag: v258-rc2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6428c0f48028e09bf5b750fb3fd1f4a3dac7e24e;p=thirdparty%2Fsystemd.git 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 --- diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb index 0ac71d64f7f..86535bc41bf 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*:*