You are not logged in.
It's for the snd-hda-intel driver, so only HDA.
Offline
On my system, the popping only occurs when audio is routed through HDMI (and possibly DisplayPort). I also tried setting power_save=0 and power_save_controller=N with no luck, so I created a udev hack that monitors whether an external display is connected and "disables" power_save by assigning it a very large value.
# /etc/udev/rules.d/99-hda_power.rules
# Detects when a an HDMI or DisplayPort status is changed
# - If a display is connected, the power save cutoff is set to be very large
# - If no displays are connected, the cutoff is set to a reasonable value
#
# This rule is intended for laptops that ignore setting
# /sys/module/snd_hda_intel/parameters/power_save to N
#
# It is designed NOT to trigger when the status of the internal display is
# changed or when a display that does not support audio is connected.
ACTION=="change", SUBSYSTEM=="drm", RUN+="/bin/sh -c 'if grep -xq connected /sys%p/%k-HDMI-*/status /sys%p/%k-DP-*/status; then echo 1000000; else echo 10; fi > /sys/module/snd_hda_intel/parameters/power_save;'"
Tested on my laptop: Lenovo ThinkPad T470p
Offline
Thanks for sharing, however please pay attention to the dates and don't necrobump topics
Closing.
Offline