mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
Give TLP more control over the battery and enable battery life saver parameters
This commit is contained in:
parent
d0a8097eec
commit
e0a8e01073
1 changed files with 17 additions and 0 deletions
|
@ -1,9 +1,26 @@
|
|||
# X1 6th generation with a QHD (2560x1440px) display
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
];
|
||||
# give tlp more control over battery
|
||||
boot = {
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
acpi_call
|
||||
];
|
||||
kernelModules = [
|
||||
"acpi_call"
|
||||
];
|
||||
};
|
||||
|
||||
# see https://linrunner.de/en/tlp/docs/tlp-faq.html#battery
|
||||
services.tlp.extraConfig = ''
|
||||
START_CHARGE_THRESH_BAT0=75
|
||||
STOP_CHARGE_THRESH_BAT0=80
|
||||
'';
|
||||
# fix font sizes in X
|
||||
services.xserver.dpi = 210;
|
||||
fonts.fontconfig.dpi = 210;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue