Skip to content

platform/x86: hp-wmi: Fan support for HP ZBook Studio G8

Hasan-Hüseyin Kayisci platform-driver-x86 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2platform/x86: hp-wmi: Add fan speed readout for ZBook Studio G8drivers/platform/x86/hp/hp-wmi.c+82 -140 replies
2/2platform/x86: hp-wmi: Support max fan mode on ZBook Studio G8drivers/platform/x86/hp/hp-wmi.c+32 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] platform/x86: hp-wmi: Fan support for HP ZBook Studio G8

On the HP ZBook Studio G8 (board 8873), hp-wmi registers a hwmon device that shows no fan speeds and has a pwm1_enable attribute that rejects every value, because the board lacks the gaming notebook fan WMI commands.

Patch 1 reads fan RPM through the thermal status WMI query (0x28), which this firmware implements in its GTMS method.

Patch 2 makes pwm1_enable 0 (full speed) and 2 (automatic) work by writing the EC fan mode register the DPTF IETM.IMOK method uses.

Manual PWM control isn't possible on this board. The EC ignores host writes to its fan target registers, both directly and through the thermal status write path (SetThermalStatus, 0x28 write).

Other ZBook and EliteBook models probably share this firmware interface (the same GTMS/STMM methods appear in their DSDTs), but I only have this machine, so the support is limited to board 8873 by DMI.

Testing: built with W=1 and tested on the ZBook Studio G8, BIOS T92 01.25.00, running 7.3.4. The out-of-tree build used this file from for-next with devm_kzalloc_obj() replaced by devm_kzalloc(), which 7.3 lacks. It hasn't been built inside a full for-next tree.

Tool use: an AI coding assistant (Claude Opus 5.5, via Claude Code) did most of this work in one interactive session from the prompt "try getting proper fan control through linux working on this HP ZBook Studio G8", followed by "do the hp-wmi rework". It disassembled the DSDT, probed the EC and WMI interfaces, wrote the code and drafted the changelogs. I reviewed the result, tested it on my machine and take responsibility for it.

Hasan-Hüseyin Kayisci (2):
platform/x86: hp-wmi: Add fan speed readout for ZBook Studio G8 platform/x86: hp-wmi: Support max fan mode on ZBook Studio G8

 drivers/platform/x86/hp/hp-wmi.c | 126 +++++++++++++++++++++++++++----
 1 file changed, 112 insertions(+), 14 deletions(-)

base-commit: 9c82959c37bf69c2ace8a0f975cf2129ec1fd982

Signature · 1 line
2.56.1