]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Fix keyboard backlight keys on Acer Nitro 5 AN515-58 (#39769)
authorPranay Pawar <75427894+Bugaddr@users.noreply.github.com>
Mon, 17 Nov 2025 15:33:42 +0000 (21:03 +0530)
committerGitHub <noreply@github.com>
Mon, 17 Nov 2025 15:33:42 +0000 (00:33 +0900)
Pressing Fn+F10 on Acer Nitro 5 AN515-58 incorrectly triggers display
brightness down (scancode 0xef) instead of keyboard backlight control,
causing the screen to go completely dark. Similarly, Fn+F9 (scancode
0xf0) has no function explictily stated in hwdb causing unknown keycode
debug messages.

Both keys should control the keyboard backlight as labeled on the
keyboard. Map scancodes 0xef and 0xf0 to kbdillumup and kbdillumdown
respectively to enable proper keyboard backlight control.

hwdb.d/60-keyboard.hwdb

index c2976deea41002eff18bc2d5e3c9d075cab79239..715d67dbb0cce49ea7e3d9d63582e482c181451d 100644 (file)
@@ -237,6 +237,8 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pnNitro*AN*515-47:pvr*
 
 # Nitro AN515-58
 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pnNitro*AN*515-58:pvr*
+ KEYBOARD_KEY_ef=kbdillumup                             # Fn+F10
+ KEYBOARD_KEY_f0=kbdillumdown                           # Fn+F9
  KEYBOARD_KEY_8a=micmute                                # Microphone mute button
  KEYBOARD_KEY_55=power