Hy, After Suspend - Resume Sound Applications still play, but there is no sound.
I need to issue (in a shell)
then sound is there again.
This command of course works too, but it breaks playback (Playback in Sound Applications has to be restarted), so I dont want this:
The two commands are described here:
https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting (See "No sound after resume from suspend")
So the problem is:
If I place the command "psasuspender..." into
after suspend, it does not work. So I setup a resume-script in
case "$1" in hibernate|suspend) # Stopping is not required ;; thaw|resume) /usr/bin/pasuspender /bin/true ;; *) exit $NA ;; esac
This does not work neither, in /var/log/pm-suspend.log I then get:
Running hook /etc/pm/sleep.d/50alsa resume suspend: Connection failure: Connection refused pa_context_connect() failed: Invalid argument /etc/pm/sleep.d/50alsa resume suspend: Returned exit code 1.
My Conclusion: In Systemd the script is not executed, dont know why. In /etc/pm/sleep.d the script is executed, but it is too early, it seems it is executed before pulse audio is up again. Because if I issue
after Resume in a Shell it always works.
So the question is:
Where to put /usr/bin/pasuspender /bin/true so it is executed very late in the Resume proces? It would be interesting too to know why I have to issue this command, couldnt find out what breaks playback @Suspend.
Ubuntu: 15.10 Soundcard: Xonar U7 USB