[ltp] swsusp2 on T23

Tino Keitel linux-thinkpad@linux-thinkpad.org
Sun, 13 Feb 2005 21:51:14 +0100


On Tue, Jan 18, 2005 at 17:39:14 +0100, Tino Keitel wrote:
> On Tue, Jan 18, 2005 at 17:29:41 +0100, Jan Girlich wrote:
> > Hi,
> > 
> > Tino Keitel schrieb:
> > 
> > >resume and the SSH connections are alive. The only thing which doesn't
> > >work after resume is ALSA. I have to remove snd-intel8x0 and reload it.
> > >Is there anyting I can do to get working sound after resume?
> > 
> > You may have a look at the configuration-file for swsusp2. I'm not sure 
> > what it is called but maybe like "/etc/hibernate.conf". There you can 
> > tell swsusp2 to unload and load some modules before suspend and after 
> > resume.
> 
> I know that ALSA works after un-/loading modules. But this is crap if
> you have apps running which use the sound device. I asked if it works
> somehow without un-/loading.

Just for the records: simply muting and unmuting the the master and PCM
channel fixes the silence after resume on my T23.

amixer set Master mute >/dev/null 2>&1
amixer set PCM mute >/dev/null 2>&1
amixer set Master unmute >/dev/null 2>&1
amixer set PCM unmute >/dev/null 2>&1

Regards,
Tino