History

platform/x86: asus-wmi: Switch fan boost mode

The WMI exposes a write-only device ID where up to three fan modes can be switched on some laptops (TUF Gaming FX505GM). There is a hotkey combination Fn-F5 that does have a fan icon, which is designed to toggle between fan modes. The DSTS of the device ID returns information about the presence of this capability and the presence of each of the two additional fan modes as a bitmask (0x01 - overboost present, 0x02 - silent present) [1]. Add a SysFS entry that reads the last written value and updates value in WMI on write and a hotkey handler that toggles the modes taking into account their availability according to DSTS. Modes: * 0x00 - normal or balanced, * 0x01 - overboost, increased fan RPM, * 0x02 - silent, decreased fan RPM [1] Link: https://lkml.org/lkml/2019/4/12/110

Yurii Pavlovskyi committed 7 years ago

Commit b096f621 parent 4fd19823 files · +154 −8Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/platform_data/x86/asus-wmi.h+1−0
@@ -57,6 +57,7 @@ · 56 unmodified lines
57#define ASUS_WMI_DEVID_KBD_BACKLIGHT 0x0005002157#define ASUS_WMI_DEVID_KBD_BACKLIGHT 0x00050021
58#define ASUS_WMI_DEVID_LIGHT_SENSOR 0x00050022 /* ?? */58#define ASUS_WMI_DEVID_LIGHT_SENSOR 0x00050022 /* ?? */
59#define ASUS_WMI_DEVID_LIGHTBAR 0x0005002559#define ASUS_WMI_DEVID_LIGHTBAR 0x00050025
60#define ASUS_WMI_DEVID_FAN_MODE 0x00110018
60 61
61/* Misc */62/* Misc */
62#define ASUS_WMI_DEVID_CAMERA 0x0006001363#define ASUS_WMI_DEVID_CAMERA 0x00060013

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t