Added turbo flag /sys/devices/platform/fan/fan_turbo_state #173
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
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.