power-profiles-daemon: use ppd for all profiles by default
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
dfd22068bd
commit
52ab394064
5 changed files with 6 additions and 19 deletions
|
@ -23,16 +23,8 @@ in {
|
||||||
# https://github.com/Cryolitia/ryzen_smu/issues/1
|
# https://github.com/Cryolitia/ryzen_smu/issues/1
|
||||||
#// programs.ryzenadj.enable = true;
|
#// programs.ryzenadj.enable = true;
|
||||||
|
|
||||||
|
services.fw-fanctrl.enable = true;
|
||||||
settings.storage.mnt = ["myve"];
|
settings.storage.mnt = ["myve"];
|
||||||
|
|
||||||
services = {
|
|
||||||
fw-fanctrl.enable = true;
|
|
||||||
|
|
||||||
auto-cpufreq.max = {
|
|
||||||
battery = 3; # GHz
|
|
||||||
#// charger = 3.5; # GHz
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.keyd.keyboards.default.settings.main.rightcontrol = "layer(altgr)"; # No Ctrl_R
|
services.keyd.keyboards.default.settings.main.rightcontrol = "layer(altgr)"; # No Ctrl_R
|
||||||
|
@ -49,11 +41,11 @@ in {
|
||||||
|
|
||||||
# Fix battery drain with suspend-then-hibernate
|
# Fix battery drain with suspend-then-hibernate
|
||||||
# https://wiki.archlinux.org/title/Framework_Laptop_13#Suspend-then-hibernate_on_AMD_version
|
# https://wiki.archlinux.org/title/Framework_Laptop_13#Suspend-then-hibernate_on_AMD_version
|
||||||
#// "rtc_cmos.use_acpi_alarm=1"
|
"rtc_cmos.use_acpi_alarm=1"
|
||||||
|
|
||||||
# Force disable display power savings
|
# Force display power savings
|
||||||
# https://wiki.archlinux.org/title/Framework_Laptop_13#(AMD)_Washed-out_colors_when_using_power-profiles-daemon_in_power-saver_or_balanced_mode
|
# https://wiki.archlinux.org/title/Framework_Laptop_13#(AMD)_Washed-out_colors_when_using_power-profiles-daemon_in_power-saver_or_balanced_mode
|
||||||
#// "amdgpu.abmlevel=0"
|
"amdgpu.abmlevel=0"
|
||||||
|
|
||||||
# Disable AMD scaling driver
|
# Disable AMD scaling driver
|
||||||
# https://wiki.archlinux.org/title/CPU_frequency_scaling#amd_pstate
|
# https://wiki.archlinux.org/title/CPU_frequency_scaling#amd_pstate
|
||||||
|
|
|
@ -27,7 +27,7 @@ in {
|
||||||
# https://github.com/AdnanHodzic/auto-cpufreq/blob/master/auto-cpufreq.conf-example
|
# https://github.com/AdnanHodzic/auto-cpufreq/blob/master/auto-cpufreq.conf-example
|
||||||
settings = {
|
settings = {
|
||||||
battery = {
|
battery = {
|
||||||
energy_performance_preference = "balance_power";
|
energy_performance_preference = "power";
|
||||||
governor = "powersave";
|
governor = "powersave";
|
||||||
platform_profile = "low-power";
|
platform_profile = "low-power";
|
||||||
scaling_max_freq = mkIf (isFloat cfg.max.battery || isInt cfg.max.battery) (builtins.floor (cfg.max.battery * 1000 * 1000)); # KHz
|
scaling_max_freq = mkIf (isFloat cfg.max.battery || isInt cfg.max.battery) (builtins.floor (cfg.max.battery * 1000 * 1000)); # KHz
|
||||||
|
|
|
@ -42,6 +42,7 @@ with lib; {
|
||||||
keyd.enable = true;
|
keyd.enable = true;
|
||||||
#// mako.enable = true;
|
#// mako.enable = true;
|
||||||
#// network-manager-applet.enable = true;
|
#// network-manager-applet.enable = true;
|
||||||
|
power-profiles-daemon.enable = true;
|
||||||
samba.enable = true;
|
samba.enable = true;
|
||||||
#// swayidle.enable = true;
|
#// swayidle.enable = true;
|
||||||
swaync.enable = true;
|
swaync.enable = true;
|
||||||
|
|
|
@ -3,6 +3,5 @@
|
||||||
full = true;
|
full = true;
|
||||||
profile = "desktop";
|
profile = "desktop";
|
||||||
wallpaper = true;
|
wallpaper = true;
|
||||||
services.power-profiles-daemon.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,6 @@
|
||||||
custom = {
|
custom = {
|
||||||
full = true;
|
full = true;
|
||||||
profile = "desktop"; # Inherit desktop
|
profile = "desktop"; # Inherit desktop
|
||||||
|
|
||||||
services = {
|
|
||||||
#// auto-cpufreq.enable = true;
|
|
||||||
power-profiles-daemon.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#!! Rebuild offline - drastically increases initial download and resulting closure size
|
#!! Rebuild offline - drastically increases initial download and resulting closure size
|
||||||
|
|
Loading…
Reference in a new issue