Comment 6 for bug 569395

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 569395] Re: Short-circuit in pm-utils hook can cause incorrect mixer state to be (re)stored

Looking at the minimal patch linked in the description, I actually think it
would still cause issues, as the issue was the order of muting/saving the
sessions. Basically:

1. Save user A's state
2. Mute user A's sink+source
3. Save user B's state
4. Mute user B's sink+source
---suspend and resume---
5. Read and restore user A's sink+source state (not muted)
6. Read and restore user B's sink+state (muted)

But step #2 caused step #3 to be saved as muted rather than not muted, since the
physical sinks are the same.

I think the solution would be to loop twice through the pulse users, saving the
states the first round, and muting+suspending the sinks and sources the second
round.

Also, I am still using Ubuntu Karmic, and the 01Pulseaudio hook in Karmic does
not have the ConsoleKit bits.

--
Kind regards,
Chow Loong Jin