diff options
author | Roman Volosatovs <rvolosatovs@riseup.net> | 2018-08-13 23:05:57 +0200 |
---|---|---|
committer | Roman Volosatovs <rvolosatovs@riseup.net> | 2018-09-02 20:06:30 +0200 |
commit | 6c550338835784d91b83bd016036c5d75ad7fbf4 (patch) | |
tree | ddc0617c9d3f7be9d98e261e308d2d6edbb96952 /lenovo/thinkpad | |
parent | 55e7faf0cd8814f215d413aaea7b571174051f46 (diff) |
lenovo/thinkpad/x260: Init
Diffstat (limited to 'lenovo/thinkpad')
-rw-r--r-- | lenovo/thinkpad/x260/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lenovo/thinkpad/x260/default.nix b/lenovo/thinkpad/x260/default.nix new file mode 100644 index 0000000..999a0cf --- /dev/null +++ b/lenovo/thinkpad/x260/default.nix @@ -0,0 +1,20 @@ +{ + imports = [ + ../. + ../acpi_call.nix + ../../../common/cpu/intel + ]; + + # See https://linrunner.de/en/tlp/docs/tlp-faq.html#battery https://wiki.archlinux.org/index.php/TLP#Btrfs + services.tlp.extraConfig = '' + START_CHARGE_THRESH_BAT0=75 + STOP_CHARGE_THRESH_BAT0=80 + START_CHARGE_THRESH_BAT1=75 + STOP_CHARGE_THRESH_BAT1=80 + + SATA_LINKPWR_ON_BAT=max_performance + + CPU_SCALING_GOVERNOR_ON_BAT=powersave + ENERGY_PERF_POLICY_ON_BAT=powersave + ''; +} |