feat: nb battery improvement
This commit is contained in:
@@ -96,7 +96,8 @@ in {
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
services.gvfs.enable = true;
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
# VirtualBox disabled by default to save battery - enable manually if needed
|
||||
# virtualisation.virtualbox.host.enable = true;
|
||||
users.extraGroups.vboxusers.members = [ "dominik" ];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
@@ -111,7 +112,7 @@ in {
|
||||
programs.light.enable = true;
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
hardware.bluetooth.powerOnBoot = false; # Save battery - enable manually when needed
|
||||
hardware.bluetooth.settings = {
|
||||
General = { ControllerMode = "bredr"; };
|
||||
};
|
||||
@@ -123,14 +124,52 @@ in {
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||
|
||||
CPU_BOOST_ON_AC = 1;
|
||||
CPU_BOOST_ON_BAT = 0;
|
||||
|
||||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 30;
|
||||
|
||||
RUNTIME_PM_ON_AC = "auto";
|
||||
RUNTIME_PM_ON_BAT = "auto";
|
||||
|
||||
# WiFi power saving
|
||||
WIFI_PWR_ON_AC = "off";
|
||||
WIFI_PWR_ON_BAT = "on";
|
||||
|
||||
# Disable wake on LAN on battery
|
||||
WOL_DISABLE = "Y";
|
||||
|
||||
# SATA aggressive link power management
|
||||
SATA_LINKPWR_ON_AC = "med_power_with_dipm";
|
||||
SATA_LINKPWR_ON_BAT = "min_power";
|
||||
|
||||
# PCIe Active State Power Management
|
||||
PCIE_ASPM_ON_AC = "default";
|
||||
PCIE_ASPM_ON_BAT = "powersupersave";
|
||||
|
||||
# USB autosuspend
|
||||
USB_AUTOSUSPEND = 1;
|
||||
USB_EXCLUDE_AUDIO = 1;
|
||||
USB_EXCLUDE_BTUSB = 0;
|
||||
USB_EXCLUDE_PHONE = 0;
|
||||
USB_EXCLUDE_PRINTER = 1;
|
||||
USB_EXCLUDE_WWAN = 0;
|
||||
|
||||
# Audio power saving
|
||||
SOUND_POWER_SAVE_ON_AC = 0;
|
||||
SOUND_POWER_SAVE_ON_BAT = 1;
|
||||
SOUND_POWER_SAVE_CONTROLLER = "Y";
|
||||
|
||||
# Disk idle timeout
|
||||
DISK_IDLE_SECS_ON_AC = 0;
|
||||
DISK_IDLE_SECS_ON_BAT = 2;
|
||||
|
||||
# Battery charge thresholds (Framework 13 recommendation)
|
||||
START_CHARGE_THRESH_BAT0 = 60;
|
||||
STOP_CHARGE_THRESH_BAT0 = 80;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user