In gentoo-sources-5.4.15 (and 5.14.9) my laptop brightness keys don't work anymore, while in 4.19.208 (and earlier) they do. My hardware is a HP EliteBook 840 G3. I can still change brightness through sysfs... $ uname -a Linux blackbox 5.14.9-gentoo #14 SMP PREEMPT Thu Oct 7 14:13:47 CEST 2021 x86_64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz GenuineIntel GNU/Linux Messages I get when pressing brightness down and brightness up. $ dmesg |tail -n 8 [ 682.502592] atkbd serio0: Unknown key pressed (translated set 2, code 0x92 on isa0060/serio0). [ 682.502614] atkbd serio0: Use 'setkeycodes e012 <keycode>' to make it known. [ 682.584414] atkbd serio0: Unknown key released (translated set 2, code 0x92 on isa0060/serio0). [ 682.584435] atkbd serio0: Use 'setkeycodes e012 <keycode>' to make it known. [ 683.334480] atkbd serio0: Unknown key pressed (translated set 2, code 0x97 on isa0060/serio0). [ 683.334501] atkbd serio0: Use 'setkeycodes e017 <keycode>' to make it known. [ 683.449715] atkbd serio0: Unknown key released (translated set 2, code 0x97 on isa0060/serio0). [ 683.449737] atkbd serio0: Use 'setkeycodes e017 <keycode>' to make it known. Perhaps relatedly I also get two ACPI errors in the newer kernels: $ dmesg | grep -i error [ 3.341400] ACPI Error: AE_ERROR, Returned by Handler for [PCI_Config] (20210604/evregion-281) [ 3.341411] ACPI Error: Aborting method \_SB.PCI0.RP02.PXP._ON due to previous error (AE_ERROR) (20210604/psparse-529) [ 3.398393] ACPI Error: AE_ERROR, Returned by Handler for [PCI_Config] (20210604/evregion-281) [ 3.398401] ACPI Error: Aborting method \_SB.PCI0.RP02.PXP._OFF due to previous error (AE_ERROR) (20210604/psparse-529) $ lspci -k 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08) Subsystem: Hewlett-Packard Company EliteBook 840 G3 Kernel driver in use: skl_uncore lspci: Unable to load libkmod resources: error -2 00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07) DeviceName: Onboard IGD Subsystem: Hewlett-Packard Company EliteBook 840 G3 Kernel driver in use: i915 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) Subsystem: Hewlett-Packard Company EliteBook 840 G3 Kernel driver in use: xhci_hcd 00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21) Subsystem: Hewlett-Packard Company EliteBook 840 G3 00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21) Subsystem: Hewlett-Packard Company EliteBook 840 G3 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21) Subsystem: Hewlett-Packard Company EliteBook 840 G3 00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) Subsystem: Hewlett-Packard Company EliteBook 840 G3 Kernel driver in use: ahci 00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #2 (rev f1) Kernel driver in use: pcieport 00:1c.3 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #4 (rev f1) Kernel driver in use: pcieport 00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21) Subsystem: Hewlett-Packard Company EliteBook 840 G3 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) Subsystem: Hewlett-Packard Company EliteBook 840 G3 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) Subsystem: Hewlett-Packard Company EliteBook 840 G3 Kernel driver in use: snd_hda_intel 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) Subsystem: Hewlett-Packard Company EliteBook 840 G3 Kernel driver in use: i801_smbus 00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection I219-V (rev 21) Subsystem: Hewlett-Packard Company Ethernet Connection I219-V Kernel driver in use: e1000e 01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev ff) 02:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a) Subsystem: Intel Corporation Dual Band Wireless-AC 8260 Kernel driver in use: iwlwifi
I looked at recent changes in drivers/input/keyboards/atkbd.c and suspected https://github.com/torvalds/linux/commit/9d17ad2369dcc9beda0785cf5960222dbdd6c9df for a bit, but disabling it does not help, and it does not seem to be in 5.4.150.
(In reply to hkBst from comment #0) > In gentoo-sources-5.4.15 I meant 5.4.150...
I looked briefly at drivers/acpi/acpica/psparse.c and its recent changes, but I could not find anything relevant...
I tried 5.4.11, but no change from 5.4.9.
These are old kernels. Can you try 5.15.0 and see if it's been fixed? Do you have a dmesg from the working kernel and nonworking to compare?
(In reply to hkBst from comment #4) > I tried 5.4.11, but no change from 5.4.9. Sorry, I seem to have a knack for butchering these version numbers. I meant 5.14.11 and 5.14.9 here. So latest available when I reported earlier. Anyway, I'll report back on 5.15.0 soon.
(In reply to hkBst from comment #6) > (In reply to hkBst from comment #4) > > I tried 5.4.11, but no change from 5.4.9. > > Sorry, I seem to have a knack for butchering these version numbers. I meant > 5.14.11 and 5.14.9 here. So latest available when I reported earlier. > > Anyway, I'll report back on 5.15.0 soon. ah ok actually, if you could do a bisect from the last working kernel to the first non-working kernel that might helpo
Created attachment 749058 [details] dmesg of kernel 5.15.0 (non-working brightness keys) Booted kernel 5.15.0, but brightness keys are not working.
Created attachment 749502 [details] dmesg of kernel 4.19.214 (working brightness keys) Booted kernel 4.19.214, the latest version with working brightness keys.
Can you do a git bisect between a the last working kernel and the first non-working kernel
Today, I upgraded to 5.15.118-gentoo and brightness keys are still not working. I gave bisecting the kernel a try, but the built kernels just seem to hang instead of booting. I followed these steps from the wiki: # git clone --shallow-exclude v4.19 --branch v5.15.118 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-stable # rm linux && ln -s linux-stable linux # cd linux # git checkout v5.15.118 # cp ../gentoo-config ./.config # make olddefconfig # make -j4 && make install # grub-mkconfig -o /boot/grub/grub.cfg and reboot choose new kernel from grub menu hangs at printed message from grub about loading kernel Some help would be appreciated...
(In reply to hkBst from comment #11) > Today, I upgraded to 5.15.118-gentoo and brightness keys are still not > working. I gave bisecting the kernel a try, but the built kernels just seem > to hang instead of booting. > > I followed these steps from the wiki: > # git clone --shallow-exclude v4.19 --branch v5.15.118 > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-stable > # rm linux && ln -s linux-stable linux > # cd linux > # git checkout v5.15.118 > # cp ../gentoo-config ./.config > # make olddefconfig > # make -j4 && make install > # grub-mkconfig -o /boot/grub/grub.cfg > and reboot > choose new kernel from grub menu > hangs at printed message from grub about loading kernel > > Some help would be appreciated... Follow these directions http://www.reactivated.net/weblog/archives/2006/01/using-git-bisect-to-find-buggy-kernel-patches/
Sorry if I was unclear. I think I have understood the mechanics of bisecting, but the vanilla kernels that I've built from the same config as I am using for gentoo-sources do not seem to want to boot. The only difference would seem to be the gentoo-patches. Is there anything from gentoo-patches that would explain that?
Is this about brightness or booting?
It is about booting.