Bug 188338
Description
Ranjan Maitra
2006-04-08 05:00:52 UTC
Created attachment 128001 [details]
pm hook to restore alsa settings on resume
Had the same problem with no sound on resume from suspend for built-in C-Media PCI CMI8738 on an Asus A7A266 mobo. Created a shell script in /etc/pm/hooks/96alsa to execute "alsactl restore" on resume, fixed it for me. (In reply to comment #2) > Had the same problem with no sound on resume from suspend for built-in C-Media > PCI CMI8738 on an Asus A7A266 mobo. > > Created a shell script in /etc/pm/hooks/96alsa to execute "alsactl restore" on > resume, fixed it for me. I tried the supplied script: did not work for me. Have to reboot. Thanks! Created attachment 128382 [details]
dmesg output before suspend
Created attachment 128383 [details]
dmesg output after suspend
Created attachment 128384 [details]
hwconf
Created attachment 128385 [details]
sleep.sh
I have the same problem with my Inspiron 4100 laptop running KDE. Your suggested fix worked fine in FC4 but does not work in FC5. Also, I've found that after resuming from suspend, if I use the mouse to jiggle the "Master" and "PCM" volume controls in KMix, sound starts working again. Is there a non-KDE solution? Or a commandline solution, for that matter? I have this issues in FC5 and FC6test2 on a Dell Inspiron using hda-intel ALSA driver. Any juggling of PCM or Master in alsamixer or the Gnome volume control/applet brings it back. 'alsactl restore' does NOT bring sound back. This means the sound driver does not properly support suspend and resume. A new kernel update has been released (Version: 2.6.18-1.2200.fc5) based upon a new upstream kernel release. Please retest against this new kernel, as a large number of patches go into each upstream release, possibly including changes that may address this problem. This bug has been placed in NEEDINFO state. Due to the large volume of inactive bugs in bugzilla, if this bug is still in this state in two weeks time, it will be closed. Should this bug still be relevant after this period, the reporter can reopen the bug at any time. Any other users on the Cc: list of this bug can request that the bug be reopened by adding a comment to the bug. In the last few updates, some users upgrading from FC4->FC5 have reported that installing a kernel update has left their systems unbootable. If you have been affected by this problem please check you only have one version of device-mapper & lvm2 installed. See bug 207474 for further details. If this bug is a problem preventing you from installing the release this version is filed against, please see bug 169613. If this bug has been fixed, but you are now experiencing a different problem, please file a separate bug for the new problem. Thank you. There is no change with the new kernel. Sound does not again wake up after pm-suspend on FC5 on a Dell Latitude C840. You may get this fixed faster by reporting it to the upstream ALSA developers at https://bugtrack.alsa-project.org/alsa-bug/ so this is an alsa-bug? pm-hibernate works fine!! hibernate and suspend take completely different code paths, and on resume both meet the chip in completely different states. So yes, looks like an ALSA bug. Using hda-intel (more info above) on Dell Inspiron B130... Sound works after resume from hibernate. Sound does not work after resume from suspend. 'alsactl restore' does not fix, juggling of PCM or Master either via alsamixer or gnome mixer will bring sound back. Running kernel 2.6.18-1.2798.fc6 at the time of this post. works off the box on xubuntu 6.10. Not on fedora. it is also true that fedora's alsa-libs, etc need a serious update. they are in 1.0.11.4.rc2 but stable versions of 1.0.13 are out! doesn't look like a alsa problem....but let us wait for the upgrade to happen in a couple of days. Doesn't work with FC6 also. Works just fine with xubuntu6.10. Therefore, truly a fedora problem. It would be nice if this could be fixed. ALSA has no role to play. Created attachment 140391 [details]
scsconfig.log file before laptop goes into suspend mode
The problem continues with FC6. But explicitly reloading the drivers everytime
works! So, the problem should have a solution. Anyway, I am attaching three
pairs of files.
1. /root/scsrun.log --- scsrun.log file before laptop goes into suspend
mode
2. /root/scsconfig.log --- scsconfig.log file before laptop goes into suspend
mode
1. /root/scsrun1.log --- scsrun.log file after laptop wakes up from suspend
mode
2. /root/scsconfig1.log --- scsconfig.log file after laptop wakes up from
suspend mode
1. /root/scsrun2.log --- scsrun.log file after drivers are reloaded
2. /root/scsconfig2.log --- scsconfig.log file after drivers are reloaded
Created attachment 140393 [details]
scsconfig.log file after laptop wakes up from suspend mode
The problem continues with FC6. But explicitly reloading the drivers everytime
works! So, the problem should have a solution. Anyway, I am attaching three
pairs of files.
1. /root/scsrun.log --- scsrun.log file before laptop goes into suspend
mode
2. /root/scsconfig.log --- scsconfig.log file before laptop goes into suspend
mode
1. /root/scsrun1.log --- scsrun.log file after laptop wakes up from suspend
mode
2. /root/scsconfig1.log --- scsconfig.log file after laptop wakes up from
suspend mode
1. /root/scsrun2.log --- scsrun.log file after drivers are reloaded
2. /root/scsconfig2.log --- scsconfig.log file after drivers are reloaded
Created attachment 140395 [details]
scsconfig.log file after drivers are reloaded
The problem continues with FC6. But explicitly reloading the drivers everytime
works! So, the problem should have a solution. Anyway, I am attaching three
pairs of files.
1. /root/scsrun.log --- scsrun.log file before laptop goes into suspend
mode
2. /root/scsconfig.log --- scsconfig.log file before laptop goes into suspend
mode
1. /root/scsrun1.log --- scsrun.log file after laptop wakes up from suspend
mode
2. /root/scsconfig1.log --- scsconfig.log file after laptop wakes up from
suspend mode
1. /root/scsrun2.log --- scsrun.log file after drivers are reloaded
2. /root/scsconfig2.log --- scsconfig.log file after drivers are reloaded
Created attachment 140396 [details]
scsrun.log file before laptop goes into suspend mode
The problem continues with FC6. But explicitly reloading the drivers everytime
works! So, the problem should have a solution. Anyway, I am attaching three
pairs of files.
1. /root/scsrun.log --- scsrun.log file before laptop goes into suspend
mode
2. /root/scsconfig.log --- scsconfig.log file before laptop goes into suspend
mode
1. /root/scsrun1.log --- scsrun.log file after laptop wakes up from suspend
mode
2. /root/scsconfig1.log --- scsconfig.log file after laptop wakes up from
suspend mode
1. /root/scsrun2.log --- scsrun.log file after drivers are reloaded
2. /root/scsconfig2.log --- scsconfig.log file after drivers are reloaded
Created attachment 140397 [details]
scsrun.log file after laptop wakes up from suspend mode
The problem continues with FC6. But explicitly reloading the drivers everytime
works! So, the problem should have a solution. Anyway, I am attaching three
pairs of files.
1. /root/scsrun.log --- scsrun.log file before laptop goes into suspend
mode
2. /root/scsconfig.log --- scsconfig.log file before laptop goes into suspend
mode
1. /root/scsrun1.log --- scsrun.log file after laptop wakes up from suspend
mode
2. /root/scsconfig1.log --- scsconfig.log file after laptop wakes up from
suspend mode
1. /root/scsrun2.log --- scsrun.log file after drivers are reloaded
2. /root/scsconfig2.log --- scsconfig.log file after drivers are reloaded
Created attachment 140398 [details]
scsrun.log file after drivers are reloaded
The problem continues with FC6. But explicitly reloading the drivers everytime
works! So, the problem should have a solution. Anyway, I am attaching three
pairs of files.
1. /root/scsrun.log --- scsrun.log file before laptop goes into suspend
mode
2. /root/scsconfig.log --- scsconfig.log file before laptop goes into suspend
mode
1. /root/scsrun1.log --- scsrun.log file after laptop wakes up from suspend
mode
2. /root/scsconfig1.log --- scsconfig.log file after laptop wakes up from
suspend mode
1. /root/scsrun2.log --- scsrun.log file after drivers are reloaded
2. /root/scsconfig2.log --- scsconfig.log file after drivers are reloaded
I have this problem on my thinkpad T60 and found that running: alsaunmute 0 restores the sound. If it complains about 0 not being a valid card number or if it doesn't work, run alsacard to see what numeric ID your card(s) has. Correction (in case it matters): it's a T30, not a T60. Closing as fixed since solutions have been found (see previous comments). |