Red Hat Bugzilla – Bug 650955
No sound after suspend
Last modified: 2010-11-17 05:57:18 EST
Description of problem: Sometimes, sound siappears. It happens generally after an update of the system.
Version-Release number of selected component (if applicable): pulseaudio-0.9.21-6.fc13.x86_64
How reproducible: sometimes
If I run alsamixer in a terminal emulator and press F6 to select the soundcard I want, I only get the PulseAudio emulated soundcard for ALSA (default). Generally, I would see both soundcards.
If I unset the $DISPLAY variable, alsamixer see my soundcard again (in addition to the default one which I believe is PulseAudio).
Playing a sound if I have a $DISPLAY variable set doesn't work (with mplayer for example). If I unset $DISPLAY it works (For security I asked for my physical soundcard using -ao alsa:device=hw=0)
Logging out and back in generally solves the problem. I just saw that the problem resolved itself without doing anything (except killing some pulseaudio daemons that were restarted anyway).
Another thing I noticed is that Totem or mplayer refuse to play a video (the sounds blocks it). strace tells me that a write failed with EAGAIN. Adobe Flash player instead plays the video with no sound (they probably didn't get the EAGAIN part right).
If you can do something with that I'd be happy. I don't quite understand the problem yet except that it happened during the past month quite a lot (I was using F14 at that time and supposed that the updates broke something within the living processes and that was all).
I think I understand what happens. What I wrote above is wrong. $DISPLAY doesn't help at all. What helps is switching to a text console and back to Xorg.
I think this sound loss happens after sleeping or hibernation. ConsoleKit must have deregistered the current display and when the computer wakes up, thinks the display isn't used.
As a consequence, the audio is disabled.
Last time this happened, I had no more battery power and the computer put itself to hibernation automatically.
*** Bug 653005 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 646113 ***
*** This bug has been marked as a duplicate of bug 643367 ***