Skip to content
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

cpu-freq: Try powersave if ondemand is not available #21423

Merged
merged 3 commits into from Jan 2, 2017
Merged

cpu-freq: Try powersave if ondemand is not available #21423

merged 3 commits into from Jan 2, 2017

Conversation

ghost
Copy link

@ghost ghost commented Dec 26, 2016

Motivation for this change

This should fix default governor picking on Sandy Bridge+ chips and close #9611
Not all people monitor their CPUs at least eventually. And we don't want them to shorten lives of their machines.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@gnidorah, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @peti and @Mathnerd314 to be potential reviewers.

@ghost
Copy link
Author

ghost commented Dec 26, 2016

Probably figuring correct governor on install stage and setting it at hardware-configuration.nix should be a better approach (if that's possible).

@joachifm
Copy link
Contributor

See e.g., /sys/devices/system/cpu/cpufreq/*/scaling_available_governors.

@ghost
Copy link
Author

ghost commented Dec 28, 2016

@joachifm Okay, let's try this 2c8253c325834e16251936e994c100e893d79253

@@ -69,9 +69,6 @@ in

config = mkIf cfg.enable {

# FIXME: Implement powersave governor for sandy bridge or later Intel CPUs
powerManagement.cpuFreqGovernor = mkDefault "ondemand";

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should keep this, since almost nobody reruns the config generator.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grahamc Fixed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cpupower needs modprobe
3 participants