Skip to content

Commit

Permalink
pipewire: disable audio powersaving
Browse files Browse the repository at this point in the history
  • Loading branch information
xddxdd committed Apr 18, 2024
1 parent af4e511 commit ef20594
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hosts/lt-dell-wyse/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
TLP_PERSISTENT_DEFAULT = 1;
CPU_SCALING_GOVERNOR_ON_AC = "schedutil";
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
SOUND_POWER_SAVE_ON_AC = 0;
SOUND_POWER_SAVE_ON_BAT = 0;
};

# Bind mounts
Expand Down
4 changes: 4 additions & 0 deletions nixos/client-components/pipewire/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ in
./wireplumber-bluez.nix
];

boot.extraModprobeConfig = ''
options snd_hda_intel power_save=0 power_save_controller=N
'';

environment.systemPackages = [
pkgs.pavucontrol
pkgs.pulseaudio
Expand Down
5 changes: 5 additions & 0 deletions nixos/client-components/tlp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
RUNTIME_PM_ON_BAT = "auto";
SCHED_POWERSAVE_ON_AC = 0;
SCHED_POWERSAVE_ON_BAT = 1;

# Sound powersaving causes stutters and popping noise
SOUND_POWER_SAVE_ON_AC = 0;
SOUND_POWER_SAVE_ON_BAT = 0;

TLP_DEFAULT_MODE = "AC";
};
};
Expand Down

0 comments on commit ef20594

Please sign in to comment.