Skip to content

Commit e2dc6e4

Browse files
authored
Restart PulseAudio on hardware change (#49)
1 parent bf390bf commit e2dc6e4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • rootfs/etc/services.d/alsa

rootfs/etc/services.d/alsa/run

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ while read -r line; do
2121
# Run our soundconfig
2222
soundconfig "${control}"
2323

24+
# Restart PulseAudio
25+
s6-svc -wD -d -T2500 "/var/run/s6/services/pulseaudio"
26+
s6-svc -wU -u -T2500 "/var/run/s6/services/pulseaudio"
27+
2428
done < <(udevadm monitor --subsystem-match=sound)

0 commit comments

Comments
 (0)