-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Feature Request] Allow setting fan speed by writing to sysfs #9
Comments
The fan speed is controlled by the fan curve in the firmware: https://github.com/system76/ec/blob/16778e4a41477498eaf5791cae57ae404515973e/src/board/system76/oryp7/board.mk You can change the fan curve by changing the values in that file before you build firmware-open. Leaving this open as a feature request, but wanted to let you know in case you weren't aware. |
I definitely agree that this is a much-needed feature. I'd love if there was a good API to change those curves in runtime or at least in bios. Hopefully if/when merged, this one should be used : system76/ec#63 |
Providing a sysfs interface for setting fan speeds would inherently allow changing the curves in runtime. (Not literally, but close-enough, since you could pretty easily use a program like
This issue (#9) is correct as-written, and in the correct place. Adding to sysfs is the domain of |
@MilesBHuff so I've actually got this working for myself, it's spread across three repos, so not the easiest thing to pull and run for yourself. Unfortunately, after sinking my time into this I have to say that what
|
@MilesBHuff No promises, but I think this will get your machine in a similar state as mine to verify the sysfs pwm interface
If you can't find "system76_acpi" hwmon, then we need to debug step 1. If you get a permission denied error when writing to pwm sysfs, then the install in step 1 probably failed. If you can write, but the value remains 0 in read back and the fans don't respond, then our firmware is to blame and requires debugging. |
@curiousercreative Wow, thanks! I will plan to give that a try. I doubt I'll have time to look at it before this weekend, though. |
@MilesBHuff have you previously used |
I found that system76-power is what manages fans for the Thelios, so why not extend that to the laptops. I started work towards this end here. I think it's an interesting direction because it opens up the possibility of our fan controller to react to power profile changes (performance vs balanced vs battery mode). With this mechanism, we'd be able to have profile specific fan curve defaults that should cover three points on the spectrum of fan curve needs/desires. |
Sorry for disappearing.
I have never used them before, actually! Or any other solution that wasn't built-in to a system before. But that's interesting. I guess it's unfortunate but not wholly surprising that the userspace solutions would not work as well as the builtin ones. That said, having any solution at all that doesn't require editing, compiling, and flashing custom firmware is great, and being able to try out specific speeds would still be nice. For example, I would like to see how low I can go without clicking on my oryp7; the default minimum for avoiding clicks is 25%, but I know mine can go a little lower without issue; I just don't know how much lower, and I don't want to have to reflash (and go through the requisite crash) for every test curve.
Now this is really promising! Great thinking! |
Distribution (run
cat /etc/os-release
):Related Application and/or Package Version (run
apt policy $PACKAGE NAME
):system76-acpi-dkms 1.0.2+1+g0bc966c-1
Issue/Bug Description:
I am unable to set my fan speeds via the settings files exposed by
system76-acpi-dkms
.Steps to reproduce (if you know):
Expected behavior:
The fan settings exposed by
system76-acpi-dkms
should be changeable.Other Notes:
This is a complaint I have seen semi-commonly on the Internet in general, and Reddit in particular. It's definitely not just me wanting this functionality.
The text was updated successfully, but these errors were encountered: