[PATCH 0/3] platform/x86: asus-wmi: Improve TUF laptops support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These three patches improve ASUS TUF laptops support: allow sysfs
polling for thermal throttle policy (or fan boost mode) change, add
another (ugly) method for fan detection and implement gpu fan reading.

NOTES
1. First patch
Similar sysfs_notify call usage can be found in thinkpad-acpi driver.
Also, is it reasonable to implement a upower event?

2. Second patch
On my laptop firmware just returns the fan speed. Currently code checks
for ASUS_WMI_PRESENCE_BIT. So this check fails. But otherwise all the
fan speed reading code is the same. So I wrote function which compares
SPEC and SFUN values to those found on my machine (they are same in all
TUF DSDTs I've found), then tries to read fan speed and checks if it
lies in sane range (0-10000 RPM).

3. Third patch
GPU fan interface is the same as CPU fan, so I just used my fan detect
function if CPU fan is of type FAN_TYPE_SPEC83.
Also, maybe it is reasonable to use same strategy as for CPU fan: try to
check for the ASUS_WMI_PRESENCE_BIT and if it is failed, fall back to
ad hoc detection?

Vasiliy Kupriakov (3):
  platform/x86: asus-wmi: Add userspace notification for performance
    mode change
  platform/x86: asus-wmi: Add new fan type check
  platform/x86 asus-wmi: Add GPU fan reading support

 drivers/platform/x86/asus-wmi.c            | 85 ++++++++++++++++++++++
 include/linux/platform_data/x86/asus-wmi.h |  1 +
 2 files changed, 86 insertions(+)

-- 
2.28.0




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux