acer-predator-turbo-and-rgb-keyboard-linux-module icon indicating copy to clipboard operation
acer-predator-turbo-and-rgb-keyboard-linux-module copied to clipboard

Added turbo flag /sys/devices/platform/fan/fan_turbo_state

Open feliks912 opened this issue 1 year ago • 0 comments
trafficstars

Added a kernel object which updates /sys/devices/platform/fan/fan_turbo_state with the global turbo_state variable when the file is read, enabling simple access to the current turbo status. Writes literal 'enabled' or 'disabled'.

Added example to readme:

cat /sys/devices/platform/fan/fan_turbo_state
disabled

Excuse my poor __init and __exit functions at the end of facer.c. I got 0 experience in kernel stuff, and this is my first pull request, and ChatGPT wrote the most of the code.

Tested on my Predator Trition 300 PT315-52-75B7 running Mint Cinnamon

System: Host: Predator Kernel: 5.15.0-91-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33 info: docker wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy

I use the flag to set higher clock rates during max fan operation. Gets me extra MHz before throttling.

Note: the turbo_state variable toggles regardless of the success or return value of the acer turbo toggle function.

feliks912 avatar Aug 23 '24 17:08 feliks912