-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
cpupower needs modprobe #9611
Comments
Have you tested this fixes the problem? (I'm not really proficient in services, but there seems noone interested.) |
The cpufreq service module adds the governor module to the list of kernel modules to be loaded at bootup, so it should have been loaded by systemd before the cpufreq service runs. I believe the error is actually a symptom that the ondemand governor is unsupported. Even with modprobe in path, I get the above error when using the ondemand governor. Trying to enable the governor manually (writing directly to /sys) fails as well. The other governors work just fine. |
@joachifm yes that seems to be the problem. The powermanagement module is setting the But that is not supported on my system:
I guess the FIXME in the link I posted relates to this problem. A workaround for my system would be to set |
Then I don't know if there is a good common default.
|
Sometimes no fix is the best fix. Maybe document the issue and leave it at that. Then again, cpupower is a fairly trivial sysfs wrapper so it shouldn't be too much work to replicate what it's doing with some additional logic for choosing an appropriate default based on what's available. Not sure if it's worth it, though, but I don't use the upstream powersave module anyways, partly due to this issue. |
@basvandijk, @vcunat: I've also encountered this and am wondering (as somebody who doesn't know anything about cpufreq) what the appropriate fix is. |
@pikajude as I mentioned above you can just set powerManagement.cpuFreqGovernor = "powersave"; |
I noticed the following errors in my journal:
This is probably fixed by adding the following to
systemd.services.cpufreq
innixos/modules/tasks/cpu-freq.nix
:(Note I'm on a recent checkout of
nixos-15.09-small
)The text was updated successfully, but these errors were encountered: