diff options
author | Raito Bezarius <masterancpp@gmail.com> | 2024-03-18 00:51:32 -0700 |
---|---|---|
committer | Raito Bezarius <masterancpp@gmail.com> | 2024-03-18 00:55:20 -0700 |
commit | 6fe3d788c8b7328a9db3fc2463024f66249e1a70 (patch) | |
tree | e24f13f2c8a1104901c70919b20b04990edbdd83 /pkgs/os-specific/linux/kernel/common-config.nix | |
parent | dff18f99265f0f8bb65a8ffb42a57ef8fbd2e643 (diff) |
linux/common-config: set idle timeout to 10s for sound cards
As per https://docs.kernel.org/sound/designs/powersave.html We update our defaults for better power saving on laptops which does not perform powertop --auto-tune, TLP or manual tweaking, e.g. power-profiles-daemon.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/common-config.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index cc9e7484c331d..e19f33c7c6afc 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -397,6 +397,11 @@ let sound = { SND_DYNAMIC_MINORS = yes; SND_AC97_POWER_SAVE = yes; # AC97 Power-Saving Mode + # 10s for the idle timeout, Fedora does 1, Arch does 10. + # The kernel says we should do 10. + # Read: https://docs.kernel.org/sound/designs/powersave.html + SND_AC97_POWER_SAVE_DEFAULT = freeform "10"; + SND_HDA_POWER_SAVE_DEFAULT = freeform "10"; SND_HDA_INPUT_BEEP = yes; # Support digital beep via input layer SND_HDA_RECONFIG = yes; # Support reconfiguration of jack functions # Support configuring jack functions via fw mechanism at boot |