-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow fan control via character device (e.g. "echo 1 > /dev/acer-max-fan-0") #95
base: main
Are you sure you want to change the base?
Conversation
Thanks @TheFeshy |
@JafarAkhondali I'll try to test this in the next few days. |
Ok, I have checked out the PR and re-installed on my AN515-57. It took a reboot to have the device show up under /dev/acer-fan-max-0 After a bit of messing around I realized the test commands above are wrong, it has it should be:
I was able to run both commands without When I run |
I'm doing this. See my profile. |
@DetuxTR Cool, did it work? Do you plan to keep it in your project or merge it with the Linux kernel as well? @hornc maybe you can help as well? It's a good feature and many users requested it. |
Yeah, its working very well if you know what do you are doing. I will maintain project and im thinking merge to linux kernel. But there is A problem. First problem is i cant get fan behaviors, its important for last user beacuse of setting fan mode to manual on starting kernel if mode is on automatic. When i try to get behavior on linux output is every time 0. But on windows, with same inputs value is 768(manual),256(auto) for cpu. If i can fix this i will optimize the code and i will make a gui app and systemd and openrc services. |
Creates a fan control device for any of the listed laptops with a fan quirk. This device can accept ascii or binary input (e.g. can be written to with echo, or via a program like python writing 0x00 and 0x01.)
echo 1 > /dev/acer-max-fan-0
to turn on,echo 0 > /dev/acer-max-fan-0
to turn off again.I split the capabilities so that we can distinguish between laptops that have a turbo button, and laptops that don't but still have the fans controlled via the EC. I put my own laptop (the PH517-61) in this category, and also the PH517-51 (as it's the same laptop but with Intel/Nvidia.)