Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 816810 - HP EliteBook brightness keys don't work anymore starting with gentoo-sources-5
Summary: HP EliteBook brightness keys don't work anymore starting with gentoo-sources-5
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-07 12:55 UTC by hkBst
Modified: 2023-06-27 12:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg of kernel 5.15.0 (non-working brightness keys) (dmesg-5.15.0,57.18 KB, text/plain)
2021-11-06 12:51 UTC, hkBst
Details
dmesg of kernel 4.19.214 (working brightness keys) (dmesg-4.19.214,51.86 KB, text/plain)
2021-11-08 08:38 UTC, hkBst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hkBst 2021-10-07 12:55:12 UTC
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
Comment 1 hkBst 2021-10-07 14:32:36 UTC
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.
Comment 2 hkBst 2021-10-07 14:33:23 UTC
(In reply to hkBst from comment #0)
> In gentoo-sources-5.4.15

I meant 5.4.150...
Comment 3 hkBst 2021-10-07 14:35:09 UTC
I looked briefly at drivers/acpi/acpica/psparse.c and its recent changes, but I could not find anything relevant...
Comment 4 hkBst 2021-10-12 06:37:42 UTC
I tried 5.4.11, but no change from 5.4.9.
Comment 5 Mike Pagano gentoo-dev 2021-11-04 22:14:29 UTC
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?
Comment 6 hkBst 2021-11-05 13:27:39 UTC
(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.
Comment 7 Mike Pagano gentoo-dev 2021-11-05 16:45:58 UTC
(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
Comment 8 hkBst 2021-11-06 12:51:47 UTC
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.
Comment 9 hkBst 2021-11-08 08:38:15 UTC
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.
Comment 10 Mike Pagano gentoo-dev 2021-11-18 00:02:45 UTC
Can you do a git bisect between a the last working kernel and the first non-working kernel
Comment 11 hkBst 2023-06-25 07:46:47 UTC
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...
Comment 12 Mike Pagano gentoo-dev 2023-06-25 09:58:19 UTC
(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/
Comment 13 hkBst 2023-06-26 05:02:05 UTC
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?
Comment 14 Mike Pagano gentoo-dev 2023-06-27 11:28:16 UTC
Is this about brightness or booting?
Comment 15 hkBst 2023-06-27 12:32:42 UTC
It is about booting.