Bug 636214 - no sound after hibernation
Summary: no sound after hibernation
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jaroslav Kysela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-21 16:50 UTC by Raphael Groner
Modified: 2011-11-30 14:48 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-11-30 14:48:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
/var/log/pm-suspend.log (5.35 KB, application/octet-stream)
2010-09-28 17:32 UTC, Raphael Groner
no flags Details
xfce4-mixter --gst-debug-level=4 2>/tmp/xfce4-mixer.log (2.01 MB, application/octet-stream)
2010-10-04 17:34 UTC, Raphael Groner
no flags Details

Description Raphael Groner 2010-09-21 16:50:30 UTC
Description of problem:
Sometimes (but not always) I can not hear anything any more, after computer waked up from hibernation.

Version-Release number of selected component (if applicable):
I am not sure towards which component to report this bug.

How reproducible:
seldom

Steps to Reproduce:
1. hibernate system (maybe with muted sound)
2. wake up
3. try to play some music with exaile - it seems to work, but without any sound
  
Actual results:
no sound
alsamixer shows "muted" in console though xfce-mixer plugin shows "unmuted" state,
 i have to unmute manually in alsamixer

Expected results:
sound available - unmuted

Additional info:

Comment 1 Kevin Fenzi 2010-09-24 03:08:29 UTC
Anything in /var/log/pm-suspend.log? 
Anything in dmesg?

Is pulseaudio running before/after the hibernate?

Comment 2 Raphael Groner 2010-09-28 17:32:38 UTC
Created attachment 450260 [details]
/var/log/pm-suspend.log

Comment 3 Raphael Groner 2010-09-28 17:41:07 UTC
There are a lot of entries in dmesg like that:
audit: name_count maxed, losing inode data: dev=00:07, inode=XX
where XX is a number with five digits. Dunno if that could have something to do with waking up the sound card.

But I do not understand what this should have to do with xfce4-mixer not being able to unmute, although I can unmute then with alsamixer in console.

[raphael@schlebby /]$ ps aux |grep pulse
raphael   2019  1.1  0.2 504140  6860 ?        S<sl 19:23   0:08 /usr/bin/pulseaudio --start --log-target=syslog
raphael   2391  0.0  0.0 105272   808 pts/0    S+   19:35   0:00 grep pulse

Oh, I found these (maybe helpful) lines with "grep pulse /var/log/messages" ...
Sep 27 23:25:15 schlebby pulseaudio[2064]: alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
Sep 27 23:25:15 schlebby pulseaudio[2064]: alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.

Comment 4 Kevin Fenzi 2010-10-02 19:00:33 UTC
Yeah, nothing there looks related to me. ;( 

If you toggle mute/unmute in xfce4-mixer does it start working? 

If you quit xfce4-mixer (remove from panel, quit), then start it again, does it show the correct state?

Finally, can you try quitting it, then running it in a terminal with: 
xfce4-mixter --gst-debug-level=4
and get it into the odd state and attach the logs?

Thanks!

Comment 5 Raphael Groner 2010-10-04 17:31:34 UTC
(In reply to comment #4)
If you toggle mute/unmute in xfce4-mixer does it start working? 
--> No.

If you quit xfce4-mixer (remove from panel, quit), then start it again, does it
show the correct state?
--> No.

Finally, can you try quitting it, then running it in a terminal with: 
xfce4-mixter --gst-debug-level=4
and get it into the odd state and attach the logs?
I'll attach the log.

it is really weird, I tried to unmute and mute again with alsamixer, afterwards started xfce4-mixer and it shows the correct muted state. But not after wake up from hibernation: alsamixer shows muted, xfce4-mixer unmuted.

Comment 6 Raphael Groner 2010-10-04 17:34:45 UTC
Created attachment 451485 [details]
xfce4-mixter --gst-debug-level=4 2>/tmp/xfce4-mixer.log

I ran xfce4-mixter --gst-debug-level=4 2>/tmp/xfce4-mixer.log after waked the system up from hibernation. xfce4-mixer shows the wrong state "unmuted", although alsamixer shows the correct one "muted".

Comment 7 Kevin Fenzi 2010-10-06 19:15:19 UTC
ok, Can you try this: 

yum remove alsa-plugins-pulseaudio

then login
see if sound is working. 
hibernate
resume
see if things are showing muted?

Comment 8 Raphael Groner 2010-10-12 01:10:31 UTC
(In reply to comment #7)
Great, it seems to work actually.
But I am not quite sure if my issue is fixed for sure by having removed the package.

Comment 9 Kevin Fenzi 2010-10-12 02:34:17 UTC
ok, so, it's looking like an odd pulseaudio issue. 

Moving over to there.

Comment 10 Raphael Groner 2010-10-12 02:55:24 UTC
(In reply to comment #9)
The odd thing about it is that xfce4-mixer is not able to unmute, nevertheless it lies unmuted state.
Although, it is possible to unmute with alsamixer and I can hear some noise again.

Comment 11 Raphael Groner 2010-10-12 15:22:15 UTC
I detected something new which could be helpful for finding the reason for that issue.

Since I removed the pulseaudio plugin package, I can now see more than only the one main channel in alsamixer. And I have to unmute both the main channel and the speakers channel to hear something. 

Maybe xfce4-mixer gets confused of them two channels when pulseaudio is used?

Comment 12 Kevin Fenzi 2010-10-12 15:30:11 UTC
Yeah, without the pulseaudio alsa plugin, you end up just using alsa directly. 

So, it seems like it's some weird thing where pulse is not unmuting the right channels or isn't exposing the right info to xfce4-mixer. ;(

Comment 13 Raphael Groner 2010-10-12 16:47:23 UTC
Actually, it looks for me like an ALSA bug. Recently, I had to unmute "Headphones" channel to hear something through the laptop speakers.

Comment 14 Raphael Groner 2010-11-05 14:57:32 UTC
Why is there the fc13 package available for the Fedora14 repository?

[root@lokalhorst raphael]# yum search alsa-plugins-pulseaudio
Geladene Plugins: langpacks, presto, refresh-packagekit
Adding de_DE to language list
======================= Matched: alsa-plugins-pulseaudio =======================
alsa-plugins-pulseaudio.i686 : Alsa to PulseAudio backend
alsa-plugins-pulseaudio.x86_64 : Alsa to PulseAudio backend
[root@lokalhorst raphael]# uname -r
2.6.35.6-48.fc14.x86_64

Additionally, I get strange errors in exaile with Fedora 14 now. After restarting the whole system, it works again ...

I can here some clicking from the speaker when I changed the volume with the mixer and sometimes the sound works again, but not in exaile. This has nothing to do if alsa-plugins-pulseaudio is installed or not.

Comment 15 Raphael Groner 2010-11-05 15:00:24 UTC
(In reply to comment #14)
[root@lokalhorst raphael]# yum info alsa-plugins-pulseaudio
Geladene Plugins: langpacks, presto, refresh-packagekit
Adding de_DE to language list
Verfügbare Pakete
Name        : alsa-plugins-pulseaudio
Arch        : i686
Version     : 1.0.22
Release     : 1.fc13
Size        : 34 k
Repo        : fedora
Summary     : Alsa to PulseAudio backend
URL        : http://www.alsa-project.org/
License     : LGPLv2+
Beschreibung : This plugin allows any program that uses the ALSA API to access a
             : PulseAudio sound daemon. In other words, native ALSA applications
             : can play and record sound across a network. There are two plugins
             : in the suite, one for PCM and one for mixer control.

Name        : alsa-plugins-pulseaudio
Arch        : x86_64
Version     : 1.0.22
Release     : 1.fc13
Size        : 35 k
Repo        : fedora
Summary     : Alsa to PulseAudio backend
URL        : http://www.alsa-project.org/
License     : LGPLv2+
Beschreibung : This plugin allows any program that uses the ALSA API to access a
             : PulseAudio sound daemon. In other words, native ALSA applications
             : can play and record sound across a network. There are two plugins
             : in the suite, one for PCM and one for mixer control.

Comment 16 Raphael Groner 2010-11-05 15:02:20 UTC
Last but not least, I would like to mention that there is only one channel (Master) available to control the volume size. Both with and without the plugin installed. With Fedora13, I had several different channels available if the plugin was not installed.

Comment 17 Raphael Groner 2010-11-05 15:47:55 UTC
[raphael@lokalhorst /]$ lspci |grep Audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

Comment 18 Raphael Groner 2010-11-09 12:43:20 UTC
yum remove pulseaudio alsa-plugins-pulseaudio

This fixes it. I can now select also HDA Intel (Alsa mixer) as a sound device in xfce's configurations.

Are you working on a fix in pulseaudio? I am wondering why there is still the fc13 package for Fedora14, no need to rebuild it?

Comment 19 Lennart Poettering 2010-11-22 01:27:13 UTC
(In reply to comment #13)
> Actually, it looks for me like an ALSA bug. Recently, I had to unmute
> "Headphones" channel to hear something through the laptop speakers.

This suggests this is a kernel driver problem and incorrect routing information about your driver in the kernel driver. Reassigning.

Comment 20 Raphael Groner 2011-11-30 14:48:16 UTC
EOL of Fedora 14. I am not quite sure if this bug is fixed....


Note You need to log in before you can comment on or make changes to this bug.