20 lines
835 B
Nix
20 lines
835 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
# ThinkPad E560 : TLP pour l'autonomie. Pas d'asusd (spécifique ASUS).
|
|
services.tlp = {
|
|
enable = true;
|
|
settings = {
|
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
|
# Seuils de charge batterie (préserve la batterie).
|
|
# Fonctionne sur la plupart des ThinkPad via tp_smapi/acpi.
|
|
START_CHARGE_THRESH_BAT0 = 40;
|
|
STOP_CHARGE_THRESH_BAT0 = 80;
|
|
};
|
|
};
|
|
services.power-profiles-daemon.enable = false;
|
|
|
|
# Économie d'énergie supplémentaire.
|
|
powerManagement.enable = true;
|
|
}
|