b096f626a6
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 Signed-off-by: Yurii Pavlovskyi <yurii.pavlovskyi@gmail.com> Suggested-by: Daniel Drake <drake@endlessm.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
What: /sys/devices/platform/<platform>/cpufv
|
|
Date: Oct 2010
|
|
KernelVersion: 2.6.37
|
|
Contact: "Corentin Chary" <corentincj@iksaif.net>
|
|
Description:
|
|
Change CPU clock configuration (write-only).
|
|
There are three available clock configuration:
|
|
* 0 -> Super Performance Mode
|
|
* 1 -> High Performance Mode
|
|
* 2 -> Power Saving Mode
|
|
|
|
What: /sys/devices/platform/<platform>/camera
|
|
Date: Jan 2010
|
|
KernelVersion: 2.6.39
|
|
Contact: "Corentin Chary" <corentincj@iksaif.net>
|
|
Description:
|
|
Control the camera. 1 means on, 0 means off.
|
|
|
|
What: /sys/devices/platform/<platform>/cardr
|
|
Date: Jan 2010
|
|
KernelVersion: 2.6.39
|
|
Contact: "Corentin Chary" <corentincj@iksaif.net>
|
|
Description:
|
|
Control the card reader. 1 means on, 0 means off.
|
|
|
|
What: /sys/devices/platform/<platform>/touchpad
|
|
Date: Jan 2010
|
|
KernelVersion: 2.6.39
|
|
Contact: "Corentin Chary" <corentincj@iksaif.net>
|
|
Description:
|
|
Control the card touchpad. 1 means on, 0 means off.
|
|
|
|
What: /sys/devices/platform/<platform>/lid_resume
|
|
Date: May 2012
|
|
KernelVersion: 3.5
|
|
Contact: "AceLan Kao" <acelan.kao@canonical.com>
|
|
Description:
|
|
Resume on lid open. 1 means on, 0 means off.
|
|
|
|
What: /sys/devices/platform/<platform>/fan_mode
|
|
Date: Apr 2019
|
|
KernelVersion: 5.2
|
|
Contact: "Yurii Pavlovskyi" <yurii.pavlovskyi@gmail.com>
|
|
Description:
|
|
Fan boost mode:
|
|
* 0 - normal,
|
|
* 1 - overboost,
|
|
* 2 - silent
|