summaryrefslogtreecommitdiffstats
path: root/lenovo
diff options
context:
space:
mode:
authorAlberto Berti <alberto@metapensiero.it>2018-07-21 21:20:25 +0200
committerAlberto Berti <alberto@metapensiero.it>2018-07-21 21:20:25 +0200
commit4428c70b17e47cff73c05ca9459a0f146b712ba6 (patch)
tree80b010b50b75962342133527a0d5907438353f15 /lenovo
parentb84f46f208d215f429fa9884db1753148bb36c1c (diff)
Enable powersave features when on battery (taken from #60)
Diffstat (limited to 'lenovo')
-rw-r--r--lenovo/thinkpad/x1/6th-gen/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/lenovo/thinkpad/x1/6th-gen/default.nix b/lenovo/thinkpad/x1/6th-gen/default.nix
index 7044d28..b28fb5b 100644
--- a/lenovo/thinkpad/x1/6th-gen/default.nix
+++ b/lenovo/thinkpad/x1/6th-gen/default.nix
@@ -20,9 +20,11 @@
# See https://linrunner.de/en/tlp/docs/tlp-faq.html#battery
services.tlp.extraConfig = ''
-START_CHARGE_THRESH_BAT0=75
-STOP_CHARGE_THRESH_BAT0=80
-'';
+ START_CHARGE_THRESH_BAT0=75
+ STOP_CHARGE_THRESH_BAT0=80
+ CPU_SCALING_GOVERNOR_ON_BAT=powersave
+ ENERGY_PERF_POLICY_ON_BAT=powersave
+ '';
# Temporary fix for cpu throttling issues visible in the kernel log
# (journalctl -k) by setting the same temperature limits used by