All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hansg@kernel.org>
To: Bugaddr <Bugaddr@protonmail.com>
Cc: Armin Wolf <W_Armin@gmx.de>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>
Subject: Re: [Bug] Acer AN515-58: Fn+F10 affects display brightness unexpectedly
Date: Mon, 17 Nov 2025 11:18:31 +0100	[thread overview]
Message-ID: <b32efcf0-9e15-4ece-bf1c-6327b49f6aa5@kernel.org> (raw)
In-Reply-To: <1szuDGB7r2yubTWirjmsulWXtSkOdmTU2dmYrMbB6Wp2Y2PzBxbJ63OT4BWW_zDRp8QnPhH0VGKG7UyjWzEnFITEo1QjD10ksXtTG44K7Ts=@protonmail.com>

Hi,

On 16-Nov-25 23:14, Bugaddr wrote:
> Hi everyone,
> 
> I've debugged and fixed the annoying Fn+F10 bug on Acer Nitro 5 AN515-58.
> 
> ROOT CAUSE:
> Firmware sends wrong scancode (0xef) which Linux maps to KEY_BRIGHTNESSDOWN instead of keyboard backlight control.
> 
> SOLUTION:
> Install this udev hwdb rule:
> 
> sudo tee /etc/udev/hwdb.d/90-acer-nitro5-an515-58.hwdb > /dev/null << 'EOF'
> # Acer Nitro 5 AN515-58 - Fix Fn+F10 scancode 0xef
> evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pnNitro*AN515-58*
>  KEYBOARD_KEY_ef=reserved
> EOF
> 
> sudo systemd-hwdb update && sudo udevadm trigger --sysname-match="event*"
> 
> TESTED ON:
> - Kernel: 6.17.8-arch1-1
> - Distribution: Arch Linux
> - Desktop: KDE Plasma (Wayland)
> 
> I have blogged my full analysis here: https://bugaddr.tech/posts/2025-11-16-debugging-the-acer-nitro-5-an515-58-fn-f10-keyboard-backlight-bug-on-linux/

Good work on debugging this and nice blogpost.

Question do the brightness up/down hotkeys still work after the hwdb fix ?

As Armin mentioned you really should submit a pull-request to systemd to get
this added to distros so the next Acer Nitro 5 AN515-58 will not be hit by
this issue. See e.g.:

https://github.com/systemd/systemd/pull/39392/commits

which makes some slightly different changes to hwdb.d/60-keyboard.hwdb

Regards,

Hans



  parent reply	other threads:[~2025-11-17 10:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-13 17:12 [Bug] Acer AN515-58: Fn+F10 affects display brightness unexpectedly Bugaddr
2025-06-18 20:07 ` Armin Wolf
2025-09-26 15:45   ` Bugaddr
2025-09-26 15:46     ` Bugaddr
     [not found]   ` <0RyizLnGQaxXLOtK-q6h-mHCTA2ergYBAIS-DkF1MPD9T5nx79rlaKdIOUBRft7Ghpy11OPo2OZM4waIjDbdnv2fnafWBDxWEYL75XZKtUo=@protonmail.com>
     [not found]     ` <0b485b76-fb44-44a4-afab-d35fa31043db@gmx.de>
2025-10-04 16:33       ` Bugaddr
2025-10-11 15:08         ` Armin Wolf
2025-10-15 10:13           ` Hans de Goede
2025-10-24 19:41             ` Bugaddr
2025-11-16 16:28               ` Bugaddr
2025-11-16 22:14                 ` Bugaddr
2025-11-17  0:29                   ` Armin Wolf
2025-11-17  1:05                     ` Armin Wolf
2025-11-17 14:12                       ` Bugaddr
2025-11-17 15:10                         ` Hans de Goede
2025-11-17 16:03                         ` Armin Wolf
2025-11-17 16:38                           ` Bugaddr
2025-11-17 10:18                   ` Hans de Goede [this message]
2025-11-17 14:16                     ` Bugaddr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b32efcf0-9e15-4ece-bf1c-6327b49f6aa5@kernel.org \
    --to=hansg@kernel.org \
    --cc=Bugaddr@protonmail.com \
    --cc=W_Armin@gmx.de \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.