Skip to content

Commit

Permalink
Restart PulseAudio on hardware change (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Feb 13, 2021
1 parent bf390bf commit e2dc6e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rootfs/etc/services.d/alsa/run
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ while read -r line; do
# Run our soundconfig
soundconfig "${control}"

# Restart PulseAudio
s6-svc -wD -d -T2500 "/var/run/s6/services/pulseaudio"
s6-svc -wU -u -T2500 "/var/run/s6/services/pulseaudio"

done < <(udevadm monitor --subsystem-match=sound)

0 comments on commit e2dc6e4

Please sign in to comment.