Comment 26 for bug 592016

Revision history for this message
David Henningsson (diwic) wrote :

So getting to this seems pretty hard. I think we're going to need a startup/shutdown expert to fix this the right way.

Here is what *should* happen, in that order:

#1) PulseAudio plays the log-out sound, if any
#2) All applications accessing PA should quit
#3) PA should store current volume, then quit
#4) alsa-utils should mute the card to prepare for shutdown

#1 and #2 can go in parallel.

What we know so far is that #4 happens before #3 and probably before #2 as well, and #1 does not happen at all ( see bug #214370 ). We should probably try to delay #4 rather than killing PA earlier, to prevent us from making it harder to fix #1.
Perhaps we should also prevent PA from autospawning if the runlevel is 0 or 6.