diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-12-20 22:44:58 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-12-20 22:44:58 +0000 |
commit | cf36b3db809da129e2046d4948082d1ed0ac09ec (patch) | |
tree | a980ad22db96f50b771881e171dd29f21171bbe5 /modules/config | |
parent | 2ff7b1284a555f2f812e3dced3c5c36c155a7a1e (diff) | |
download | nixpkgs-cf36b3db809da129e2046d4948082d1ed0ac09ec.tar nixpkgs-cf36b3db809da129e2046d4948082d1ed0ac09ec.tar.gz nixpkgs-cf36b3db809da129e2046d4948082d1ed0ac09ec.tar.bz2 nixpkgs-cf36b3db809da129e2046d4948082d1ed0ac09ec.tar.lz nixpkgs-cf36b3db809da129e2046d4948082d1ed0ac09ec.tar.xz nixpkgs-cf36b3db809da129e2046d4948082d1ed0ac09ec.tar.zst nixpkgs-cf36b3db809da129e2046d4948082d1ed0ac09ec.zip |
* If power management is enabled, set the governor to ‘ondemand’ by
default. See http://www.codon.org.uk/~mjg59/power/good_practices.html for the reasoning. (Basically, the ‘performance’ and ‘powersave’ governors don't actually provide extra performance or power savings in most cases.) It used to be that desktop environments like KDE were able to set the governor through HAL (e.g. KDE could be configured to switch to the powersave governor when the user unplugs his laptop). However, this is no longer the case with upower — it is now expected that everybody uses the ondemand governor. See http://old.nabble.com/-PATCH--powerdevil-remove-cpufreq.patch-td27815354.html * Rename ‘cpuFreqGovernor’ to ‘powerManagement.cpuFreqGovernor’. * Include cpufreq-utils in the system path if a governor is set, since we depend on it anyway. svn path=/nixos/trunk/; revision=30991
Diffstat (limited to 'modules/config')
-rw-r--r-- | modules/config/power-management.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/config/power-management.nix b/modules/config/power-management.nix index cb7047a2ba8..10aa821964a 100644 --- a/modules/config/power-management.nix +++ b/modules/config/power-management.nix @@ -91,6 +91,8 @@ in "p4_clockmod" ]; + powerManagement.cpuFreqGovernor = "ondemand"; + }; } |