New: ideapad-laptop: brightness keys require continuous VPC polling to function on IdeaPad 3 15IIL05 (BIOS EMCN60WW)
https://bugzilla.kernel.org/show_bug.cgi?id=221419
Bug ID: 221419
Summary: ideapad-laptop: brightness keys require continuous VPC
polling to function on IdeaPad 3 15IIL05 (BIOS
EMCN60WW)
Product: Drivers
Version: 2.5
Hardware: Intel
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Platform_x86
Assignee: [email protected]
Reporter: [email protected]
Regression: NoHardware: Lenovo IdeaPad 3 15IIL05 (Type 81WE), BIOS version EMCN60WW
CPU: Intel Core i5-1035G1 (Ice Lake, 10th Gen)
Kernel: 7.0.1-1-cachyos (based on mainline)
Distribution: CachyOS
Summary:
Brightness keys do not work unless something continuously reads a VPC register via the ideapad-laptop debugfs interface. This is distinct from bug 214899, where the fix was incorrect _REG ordering causing EC register 0xA3 to not be set to 0x86. On this machine, 0xA3 is correctly set to 0x86 at boot, confirming the 6.2 ECDT fix is applied, yet the brightness keys still do not work.
Investigation:
- acpi_listen shows no events when brightness keys are pressed
- evtest shows no events on any input device (AT Translated Set 2 keyboard, Video Bus, ideapad extra buttons, or any other device)
- DSDT correctly defines _Q11 (brightness up) and _Q12 (brightness down) EC query methods which notify GFX0.DD1F with 0x87/0x86 respectively
- EC register 0xA3 reads as 0x86 (correct value, confirming bug 214899 fix is applied)
- modprobe -r ideapad_laptop makes no difference — keys remain silent
- modprobe -r lenovo_wmi_hotkey_utilities makes no difference
Root cause identified:
The EC queues brightness key events internally but never fires the SCI interrupt to notify Linux. However, when something continuously reads VPC registers via /sys/kernel/debug/ideapad/status (which calls read_ec_data with VPCCMD_R_BL among others), the brightness keys start working — the EC flushes its queued events on each VPC read.
Specifically:
- Running: watch -n 1 cat /sys/kernel/debug/ideapad/status causes brightness keys to work, with up to ~1 second delay
- Stopping the watch command causes keys to stop working immediately
- Writing 0x86 to EC register 0xA3 via ec0/io flushes pending keypresses but does not permanently arm the keys
- The effect is identical to bug 214899's symptom but has a different root cause — the EC is not firing SCI interrupts for these specific keys, rather than _REG not setting the correct OS type
The ideapad-laptop driver has no polling fallback for this case. A periodic poll of VPCCMD_R_BL or similar VPC register would serve as a workaround, but a proper fix would investigate why the EC does not assert SCI for brightness key events on this specific firmware version.
Workaround:
A systemd service continuously reading /sys/kernel/debug/ideapad/status every 1-5 seconds restores brightness key functionality.
Related bug: https://bugzilla.kernel.org/show_bug.cgi?id=214899
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 221419] ideapad-laptop: brightness keys require continuous VPC polling to function on IdeaPad 3 15IIL05 (BIOS EMCN60WW)
https://bugzilla.kernel.org/show_bug.cgi?id=221419
--- Comment #1 from [email protected] ---
It's suddenly working now, but this has happened previously for me on Linux Mint as well where it abruptly started working, and possibly just broke again no warning.
So i don't know what was causing the bug or what fixed it, but currently the key presses are registered on evtest, and hopefully it stays that way.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 221419] ideapad-laptop: brightness keys require continuous VPC polling to function on IdeaPad 3 15IIL05 (BIOS EMCN60WW)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=221419
--- Comment #2 from [email protected] ---
(In reply to ladha979 from comment #1)
Quoted 6 lines
It's suddenly working now, but this has happened previously for me on Linux Mint as well where it abruptly started working, and possibly just broke again no warning.
So i don't know what was causing the bug or what fixed it, but currently the key presses are registered on evtest, and hopefully it stays that way.
Admittedly I am on an updated kernel version, but I doubt there was a directly implemented fix considering this problem has existed for this exact laptop model for a long time with no concrete fix, and this bug report saw no activity.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 221419] ideapad-laptop: brightness keys require continuous VPC polling to function on IdeaPad 3 15IIL05 (BIOS EMCN60WW)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=221419
--- Comment #3 from [email protected] ---
Update: Issue was present on kernel 7.0.1-1-cachyos. After updating to 7.0.2-2-cachyos, brightness keys now generate proper KEY_BRIGHTNESSDOWN/KEY_BRIGHTNESSUP events on the Video Bus input device (confirmed via evtest). It is unclear whether this was fixed by a specific change in 7.0.2 or if it is intermittent as previously experienced on Linux Mint. Will update if it regresses.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 221419] ideapad-laptop: brightness keys require continuous VPC polling to function on IdeaPad 3 15IIL05 (BIOS EMCN60WW)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=221419
--- Comment #4 from [email protected] ---
Update: the problem suddenly being fixed is not really fixed. 15% cpu usage on idle.
Have to run echo "mask" | sudo tee /sys/firmware/acpi/interrupts/gpe6E to fix cpu usage and go back to the workaround fix.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 221419] ideapad-laptop: brightness keys require continuous VPC polling to function on IdeaPad 3 15IIL05 (BIOS EMCN60WW)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=221419
--- Comment #5 from [email protected] ---
Because initially my understanding was the sudden fix was a proper fix, but in background it's probably polling like crazy, numerous requests every second, which is why the cpu usage went crazy.
So a slower manual polling service works much better
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 221419] ideapad-laptop: brightness keys require continuous VPC polling to function on IdeaPad 3 15IIL05 (BIOS EMCN60WW)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=221419
[email protected] ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] | |m
--- Comment #6 from [email protected] ([email protected]) --- On a Lenovo V15-IIL (82C5, same Ice Lake platform), the same "keys only work while polling the VPC" symptom is caused by the kernel disabling IRQ 9 at boot ("irq 9: nobody cared ... Disabling IRQ #9"). The ECDT declares the EC GPE as 0x6E, but EC0._GPE in the DSDT returns 0x43 (a GPIO-routed GPE). Linux trusts the ECDT, so the real EC GPE 0x43 floods unhandled. Patching the ECDT to GPE 0x43 (initrd table upgrade) fixes hotkeys and lid with no polling. Please check dmesg | grep "Disabling IRQ #9",cat /sys/firmware/acpi/interrupts/gpe43 and EC0._GPE in your DSDT.
Details: bug 222331.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 221419] ideapad-laptop: brightness keys require continuous VPC polling to function on IdeaPad 3 15IIL05 (BIOS EMCN60WW)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=221419
--- Comment #7 from [email protected] ---
(In reply to Martín Galdeano from comment #6)
Quoted 9 lines
On a Lenovo V15-IIL (82C5, same Ice Lake platform), the same "keys only work while polling the VPC" symptom is caused by the kernel disabling IRQ 9 at boot ("irq 9: nobody cared ... Disabling IRQ #9"). The ECDT declares the EC GPE as
0x6E, but EC0._GPE in the DSDT returns0x43(a GPIO-routed GPE). Linux trusts the ECDT, so the real EC GPE0x43floods unhandled. Patching the ECDT to GPE0x43(initrd table upgrade) fixes hotkeys and lid with no polling. Please checkdmesg | grep "Disabling IRQ #9",cat /sys/firmware/acpi/interrupts/gpe43and EC0._GPE in your DSDT.
Details: bug 222331.
That's great, I'll test it out. Thanks!
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.