HP OMEN MAX 16 (board 8D41): backlight PWM is generated by the EC, no Linux path reaches it
Hi Hans, Ilpo,
On the HP OMEN MAX 16-ah0xxx (DMI board 8D41, BIOS F.20, Arrow Lake iGPU + RTX 5080 in hybrid mode) screen brightness has never worked on
Linux: intel_backlight, nvidia_0 and nvidia_wmi_ec all change their sysfs value, the panel does not change. I found where the brightness actually goes and would like advice on what a proper fix should look like.
Findings (DSDT and the steps to check them by hand are in the repo below):
- The panel PWM is generated by the EC. The duty cycle is the 8-bit field ECPW in OperationRegion EWRM (SystemMemory 0xFD400C00, offset 0xF5), range 0..200. ECOE (offset 0xF4, bit 0) reads 1, i.e. "EC owns the backlight". Writing ECPW directly dims the panel at once.
- The WMI method \_SB.PC00.AWMI.WMAA (GUID 603E9613-EF25-4338-A3D0-C46177516DB7, the one nvidia-wmi-ec-backlight binds to) ignores the level passed by the caller and does ECPW = GFX0.CBL1 * 2, i.e. it copies a field from the Intel OpRegion that i915 does not write.
- The panel's DPCD advertises PWM-pin brightness only (0x701 = 0x83, 0x702 = 0x81), so AUX backlight is not an option.
- After boot and resume the firmware resets ECPW to 100.
Workaround I use now: acpi_backlight=native plus a udev rule that maps intel_backlight to 2..200 and writes ECPW through /dev/mem, and a system-sleep hook that re-applies it after resume. That works, but it obviously isn't something for the kernel.
Questions:
1. Would a quirk be acceptable in which a small backlight device (e.g. in hp-wmi, or keyed on DMI board 8D41) writes ECPW, together with a video_detect quirk that selects it? Or is fixing it through the OpRegion CBL1 path in i915 preferable?
2. Separately: on this board the LPS0 _DSM puts the keyboard MCU into a mode where the backlight and F2/F3/F4 are handed to Windows software (all three then send F13, until a full power-off). acpi_x86.sleep_no_lps0=1 avoids it, but then the EC is not told that the system sleeps and the fans stay loud. Is a DMI quirk on the LPS0 path the right place for this, or is that firmware behaviour you'd rather leave alone?
Code, DSDT excerpts and test notes:
https://github.com/RobRobM/omen-max-16-linux-fixes
I'm happy to test patches on this machine.
Thanks,
Robert
Am 13.11.26 um 21:45 schrieb [email protected]:
Quoted 43 lines
Hi Hans, Ilpo,
On the HP OMEN MAX 16-ah0xxx (DMI board 8D41, BIOS F.20, Arrow Lake iGPU + RTX 5080 in hybrid mode) screen brightness has never worked on
Linux:intel_backlight,nvidia_0andnvidia_wmi_ecall change their sysfs value, the panel does not change. I found where the brightness actually goes and would like advice on what a proper fix should look like.Findings (DSDT and the steps to check them by hand are in the repo below):
- The panel PWM is generated by the EC. The duty cycle is the 8-bit field ECPW in OperationRegion EWRM (SystemMemory
0xFD400C00, offset0xF5), range 0..200. ECOE (offset0xF4, bit 0) reads 1, i.e. "EC owns the backlight". Writing ECPW directly dims the panel at once.
- The WMI method \_SB.PC00.AWMI.WMAA (GUID 603E9613-EF25-4338-A3D0-C46177516DB7, the one nvidia-wmi-ec-backlight binds to) ignores the level passed by the caller and does ECPW = GFX0.CBL1 * 2, i.e. it copies a field from the Intel OpRegion that i915 does not write.
- The panel's DPCD advertises PWM-pin brightness only (0x701=0x83,0x702=0x81), so AUX backlight is not an option.
- After boot and resume the firmware resets ECPW to 100.Workaround I use now: acpi_backlight=native plus a udev rule that maps
intel_backlightto 2..200 and writes ECPW through/dev/mem, and a system-sleep hook that re-applies it after resume. That works, but it obviously isn't something for the kernel.Questions:
1. Would a quirk be acceptable in which a small backlight device (e.g. in hp-wmi, or keyed on DMI board 8D41) writes ECPW, together with avideo_detectquirk that selects it? Or is fixing it through the OpRegion CBL1 path in i915 preferable?
2. Separately: on this board the LPS0_DSMputs the keyboard MCU into a mode where the backlight and F2/F3/F4 are handed to Windows software (all three then send F13, until a full power-off). acpi_x86.sleep_no_lps0=1 avoids it, but then the EC is not told that the system sleeps and the fans stay loud. Is a DMI quirk on the LPS0 path the right place for this, or is that firmware behaviour you'd rather leave alone?
Quoted 7 lines
Code, DSDT excerpts and test notes:
https://github.com/RobRobM/omen-max-16-linux-fixesI'm happy to test patches on this machine.
Thanks,
Robert
Hi,
can you share the full output of acpidump as an attachment? IMHO the correct fix for the backlight issue would be to add support for GFX0.CBL1 to the intel GPU driver and update the nvidia-wmi-ec-backlight driver to work in parallel of the other backlight devices.
Thanks,
Armin Wolf