Open dysinger opened 5 years ago
Hoping something like https://github.com/NixOS/nixpkgs/pull/55755 would help.
Shouldn't this be enabled by default in common-config.nix?
EDIT: Tried compiling with CONFIG_CPU_FREQ_STAT=y, which succeeded (checked in /proc/config.gz), but I can't find the cpufreq_stats module anywhere. Powertop still doesn't work because of this.
Apologies for my ignorance. Does modprobe cpufreq_stats failed
mean that powertop has no way of controlling CPU throttling and is therefore very limited in what it can tune? I have powertop setup on an old laptop with Nix and my battery life is significantly lower than reported by others with this model.
Thanks
It needs to be patched to load the different modules of cpufreq based on CPU type.
It's less useful for managing CPU frequency in newer kernels.
Hello, I'm a bot and I thank you in the name of the community for opening this issue.
To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.
The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.
If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.
Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.
This is still important to me
I marked this as stale due to inactivity. → More info
This is still an issue.
And still is
And still is
Wait, what needs to be done here? Is compiling the kernel with CONFIG_CPU_FREQ_STAT
not enough? How do other distros make this thing work?
Also interested in this. It might be one of the reasons I seem to have worse battery life on my framework laptop using NixOS.
Issue description
Powertop service doesn't load with systemd
Steps to reproduce
Enable the powertop service in your nixos config
Technical details
After powertop tries to load (& fails) you can see why: