Contribute
Register

<< Solved >> HP Laptop GPU Fan control via ACPI?

Joined
Mar 29, 2019
Messages
157
Motherboard
H87M-PRO
CPU
i5-4690K
Graphics
HD4600 + GTX 660 TI
Mac
  1. iMac
  2. MacBook Pro
Entry to problem:
After replacement of GPU system stop controlling gpu fan speed.
I see here few reasons: 1) SMBus missed device address and cant get data from it; 2)PECI related subprogram cant read values from unknown device; 3) Ec controller read temperatures from driver, aka "Arctic Islands" is active, but supposed to be "Sea Islands".

Rehabman (old post https://www.tonymacx86.com/threads/new-fan-control-dsdt-for-silent-fan-at-higher-temps.72043/) Cpu fan control ACPI is working great, EC have ACPI access to fan registers. EC registers contain "CPU Heatsink temperature", "Ambient temperature".

So to build GPU fan control, the only value can`t be found is Gpu temperature.

According to AMD acpi linux Open Source Driver (Nvidia api too), the gpu has ACPI methods.

For example ATIF Method contain thermal data:

# define ATIF_THERMAL_STATE_CHANGE_REQUEST_SUPPORTED (1 << 2)
# define ATIF_TEMPERATURE_CHANGE_NOTIFICATION_SUPPORTED (1 << 12)

struct atif_sbios_requests {
u16 size; /* structure size in bytes (includes size field) */
u32 pending; /* pending sbios requests */
u8 panel_exp_mode; /* panel expansion mode */
u8 thermal_gfx; /* thermal state: target gfx controller */
u8 thermal_state; /* thermal state: state id (0: exit state, non-0: state) */
u8 forced_power_gfx; /* forced power state: target gfx controller */
u8 forced_power_state; /* forced power state: state id */
u8 system_power_src; /* system power source */
u8 backlight_level; /* panel backlight level (0-255) */
} __packed;

So how to access temperatures from ATIF amd ACPI? Or Possibly access PECI?

Yes, its possible to use VirtualSMC fan control with help of and other fan control software, but is not any OS, one click solution.
Method I am currently using is custom PWM board for fan control.

P.S. GPU Fan goes 100% speed only after OS half Boot, so original thermal data readings are made from driver environment.


All ACPI are in attachment

Hardware:
HPZbook G3
CPU - 6820HQ
GPU - AMD WX4150
Bootloader - Clover
 

Attachments

  • OEM AML Zbook G3.zip
    88.2 KB · Views: 23
Last edited:
Top