Skip to content

Conversation

@feliks912
Copy link

@feliks912 feliks912 commented Aug 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant