Arendia power tweaks

This commit is contained in:
Thomas Avé 2024-11-20 14:02:43 +01:00
parent 7e82900408
commit 6473eb59f2
2 changed files with 36 additions and 45 deletions

View File

@ -25,12 +25,7 @@
}; };
}; };
# wayland.windowManager.hyprland.settings.env = ["WLR_DRM_DEVICES,/dev/dri/by-path/pci-0000:01:00.0-card"]; # Nvidia
# wayland.windowManager.hyprland.settings.env = ["WLR_DRM_DEVICES,/dev/dri/by-path/pci-0000:00:02.0-card"]; # Intel
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
exec-once = [
# "${pkgs.swaylock-fancy}/bin/swaylock-fancy"
];
monitor = [ monitor = [
"eDP-1,2560x1440@60.01,0x0,1.25" "eDP-1,2560x1440@60.01,0x0,1.25"
"HDMI-A-1,1920x1080@60,0x-1080,1" "HDMI-A-1,1920x1080@60,0x-1080,1"

View File

@ -14,32 +14,39 @@ in {
pkgs.intel-media-driver pkgs.intel-media-driver
]; ];
# boot.kernelPackages = pkgs.linuxPackages_latest;
programs.steam = {
enable = true;
gamescopeSession.enable = true;
};
zramSwap.enable = true; zramSwap.enable = true;
services.upower.enable = true; services.upower.enable = true;
services.thermald.enable = true; services.thermald.enable = true;
services.logind.extraConfig = ''HandlePowerKey=ignore''; services.logind.extraConfig = ''HandlePowerKey=ignore'';
services.throttled = { services.throttled = {
enable = true; enable = true;
extraConfig = '' # extraConfig = ''
[GENERAL] # [GENERAL]
Enabled: True # Enabled: True
Sysfs_Power_Path: /sys/class/power_supply/AC*/online # Sysfs_Power_Path: /sys/class/power_supply/AC*/online
Autoreload: False # Autoreload: False
#
[BATTERY] # [BATTERY]
Update_Rate_s: 30 # Update_Rate_s: 30
#
## Settings to apply while connected to AC power # ## Settings to apply while connected to AC power
[AC] # [AC]
Update_Rate_s: 5 # Update_Rate_s: 5
#
[UNDERVOLT] # [UNDERVOLT]
CORE: -105 # CORE: -105
GPU: -85 # GPU: -85
CACHE: -105 # CACHE: -105
UNCORE: -85 # UNCORE: -85
ANALOGIO: 0 # ANALOGIO: 0
''; # '';
}; };
networking.hostId = "b6c5c9af"; networking.hostId = "b6c5c9af";
@ -57,10 +64,6 @@ in {
}; };
}; };
systemd.services.fprintd = {
wantedBy = [ "multi-user.target" ];
serviceConfig.Type = "simple";
};
services.fprintd = { services.fprintd = {
enable = true; enable = true;
tod = { tod = {
@ -70,13 +73,6 @@ in {
}; };
}; };
}; };
# config.services.fprintd.enable = true;
security.pam.services.login.fprintAuth = true;
security.pam.services.su.fprintAuth = true;
security.pam.services.sudo.fprintAuth = true;
security.pam.services.swaylock.fprintAuth = true;
security.pam.services.swaylock-fancy.fprintAuth = true;
# virtualisation # virtualisation
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
@ -88,16 +84,16 @@ in {
services.tlp = { services.tlp = {
enable = true; enable = true;
settings = { settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance"; # CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; # CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
#
# CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
# CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; # CPU_MIN_PERF_ON_AC = 0;
CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; # CPU_MAX_PERF_ON_AC = 100;
# CPU_MIN_PERF_ON_BAT = 0;
CPU_MIN_PERF_ON_AC = 0; # CPU_MAX_PERF_ON_BAT = 100;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 40;
#Optional helps save long term battery health #Optional helps save long term battery health
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge