Arendia power tweaks
This commit is contained in:
parent
7e82900408
commit
6473eb59f2
|
@ -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 = {
|
||||
exec-once = [
|
||||
# "${pkgs.swaylock-fancy}/bin/swaylock-fancy"
|
||||
];
|
||||
monitor = [
|
||||
"eDP-1,2560x1440@60.01,0x0,1.25"
|
||||
"HDMI-A-1,1920x1080@60,0x-1080,1"
|
||||
|
|
|
@ -14,32 +14,39 @@ in {
|
|||
pkgs.intel-media-driver
|
||||
];
|
||||
|
||||
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
|
||||
zramSwap.enable = true;
|
||||
services.upower.enable = true;
|
||||
services.thermald.enable = true;
|
||||
services.logind.extraConfig = ''HandlePowerKey=ignore'';
|
||||
services.throttled = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
[GENERAL]
|
||||
Enabled: True
|
||||
Sysfs_Power_Path: /sys/class/power_supply/AC*/online
|
||||
Autoreload: False
|
||||
|
||||
[BATTERY]
|
||||
Update_Rate_s: 30
|
||||
|
||||
## Settings to apply while connected to AC power
|
||||
[AC]
|
||||
Update_Rate_s: 5
|
||||
|
||||
[UNDERVOLT]
|
||||
CORE: -105
|
||||
GPU: -85
|
||||
CACHE: -105
|
||||
UNCORE: -85
|
||||
ANALOGIO: 0
|
||||
'';
|
||||
# extraConfig = ''
|
||||
# [GENERAL]
|
||||
# Enabled: True
|
||||
# Sysfs_Power_Path: /sys/class/power_supply/AC*/online
|
||||
# Autoreload: False
|
||||
#
|
||||
# [BATTERY]
|
||||
# Update_Rate_s: 30
|
||||
#
|
||||
# ## Settings to apply while connected to AC power
|
||||
# [AC]
|
||||
# Update_Rate_s: 5
|
||||
#
|
||||
# [UNDERVOLT]
|
||||
# CORE: -105
|
||||
# GPU: -85
|
||||
# CACHE: -105
|
||||
# UNCORE: -85
|
||||
# ANALOGIO: 0
|
||||
# '';
|
||||
};
|
||||
|
||||
networking.hostId = "b6c5c9af";
|
||||
|
@ -57,10 +64,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services.fprintd = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig.Type = "simple";
|
||||
};
|
||||
services.fprintd = {
|
||||
enable = true;
|
||||
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.libvirtd.enable = true;
|
||||
|
@ -88,16 +84,16 @@ in {
|
|||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
# CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
# 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_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
|
||||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 40;
|
||||
# CPU_MIN_PERF_ON_AC = 0;
|
||||
# CPU_MAX_PERF_ON_AC = 100;
|
||||
# CPU_MIN_PERF_ON_BAT = 0;
|
||||
# CPU_MAX_PERF_ON_BAT = 100;
|
||||
|
||||
#Optional helps save long term battery health
|
||||
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
|
||||
|
|
Loading…
Reference in New Issue