about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2024-03-18 12:54:31 +0300
committerGitHub <noreply@github.com>2024-03-18 12:54:31 +0300
commitf3f1228b4407942847b196241a0b871b562fbc56 (patch)
tree50580a64f8676bd02075a5e84bea1450c248fae3 /pkgs/os-specific
parent62f815ad9236f27bbc3052d8fe539346e706cb76 (diff)
parent6fe3d788c8b7328a9db3fc2463024f66249e1a70 (diff)
downloadnixlib-f3f1228b4407942847b196241a0b871b562fbc56.tar
nixlib-f3f1228b4407942847b196241a0b871b562fbc56.tar.gz
nixlib-f3f1228b4407942847b196241a0b871b562fbc56.tar.bz2
nixlib-f3f1228b4407942847b196241a0b871b562fbc56.tar.lz
nixlib-f3f1228b4407942847b196241a0b871b562fbc56.tar.xz
nixlib-f3f1228b4407942847b196241a0b871b562fbc56.tar.zst
nixlib-f3f1228b4407942847b196241a0b871b562fbc56.zip
Merge pull request #296841 from RaitoBezarius/snd-hda-intel-power-save
linux/common-config: set idle timeout to 10s for sound cards
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix5
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 cc9e7484c331..e19f33c7c6af 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