-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
Device or resource busy error when setting EPP #138
Comments
Could you share your modified source ? i did try to build but had some python related issues and was just testing nixos so didnt gave much thought in nixos for doing systemwide changes you need to modify the configuration/hardware-configuration.nix file and ig it does not give the error for powersave because in nixos powersave is set by default. |
|
Even weirder, is that it seems to actually change the governor and EPP. The error seems to have no effect. |
I've never seen an error like this, but I think it might be related to NixOS itself and its packing? I'm saying this because for auto-cpufreq to work in Snap strictly confined mode, changes had to be made to snapd itself. Maybe something similar has to be done here? |
NixOS doesn't limit programs and what they can do with the exectiption that I am currently using TLP and that can modify the govenor and cpu frequencies perfectly. |
In that case maybe simply hide
output? |
Could you explain how I could test this in my nix system I am bit of a noob 😅 Also why |
Yes, It's because nixos only allows system wide changes when done with /etc/nixos/configuration.nix file . |
This issue might not be caused by NixOS. I've replicated (actually, had since I started using auto-cpufreq) this same issue on Arch running on a XPS 9500. Fairly sure it's not something in my configuration as well, as this has appened after a clean install.
auto-cpufreq --debug
On my side though, governor is changing but EPP isn't, as reported by the error message.
|
@AdnanHodzic This is related to the implementation of hardware managed performance states (HWP) in intel_pstates. If HWP is activated and the performance governor is selected the EPP value is overwritten with a 0 (performance) and made read only. [1] You could implement a simple if condition that checks if |
@likeadoc thanks for clarification and heads up! Since I'm very busy at the moment, if you or anyone else in this report could make these changes and create a PR, I would greatly appreciate it. If anything, your contribution would be listed on releases page. Otherwise, you can wait until I make these changes, but I'm really not sure when I'll be able to do so. |
Did a small change that has been running without issues for a couple of days on my end, so I forked and opened a PR. All works fine on my XPS 9500 (i7-10750H), YMMV but it really shouldn't. |
…nce" (#138) (#147) This fixes #138. Thanks to @likeadoc for pointing out the reason for this behavior. #138 (comment)
Changed mentioned by @freshgiammi are also live as part of auto-cpufreq 1.5.2 release. |
This doesn't happen when it sets governor to "powersave" and EPP to "balance_power"
Error output:
System information:
The text was updated successfully, but these errors were encountered: