You are not logged in.

#1 2007-12-23 23:18:06

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

[SOLVED]No sound after resuming from suspend thinkpad t23

On a T23 Thinkpad, suspend-to-ram works, but I have no sound and no network when resuming.
After googling for a while, it seems I must unload sound modules before going to sleep and then reload my sound modules after resuming.
lsmod|grep snd gives me this:

snd_intel8x0           28700  3 
snd_ac97_codec         94756  1 snd_intel8x0
snd_pcm_oss            38432  0 
snd_pcm                68996  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              19332  1 snd_pcm
snd_page_alloc          8072  2 snd_intel8x0,snd_pcm
snd_mixer_oss          14464  1 snd_pcm_oss
snd                    44388  12 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               6496  1 snd
ac97_bus                2432  1 snd_ac97_codec

However, from the command line, after

modprobe -r snd_seq_oss snd_seq snd_seq_device snd_intel8x0 snd_ac97_codec snd_pcm_oss snd_pcm snd_timer snd_mixer_oss

I get:

FATAL: Module snd_intel8x0 is in use.

Even though I have no sound apps running.
I am planning on putting the modprobe -r command in /etc/pm/sleep.d/whatever to unload and then another to reload the mods.

Any help appreciated. smile

Last edited by Misfit138 (2008-01-07 02:27:07)

Offline

#2 2007-12-25 17:16:29

elliott
Member
Registered: 2006-03-07
Posts: 296

Re: [SOLVED]No sound after resuming from suspend thinkpad t23

Do you use Xfce? I believe xfce-mcs-manager is keeping you from unloading the module along with xfce4-mixer-plugin. I had the same issue in my T21, so I switched to Openbox, because I couldn't find an elegant way to deal with it.

Also, and easy way to do modules would be this in /etc/pm/config.d/modules:

SUSPEND_MODULES="snd_seq_oss snd_seq snd_seq_device snd_intel8x0 snd_ac97_codec snd_pcm_oss snd_pcm snd_timer snd_mixer_oss"

Last edited by elliott (2007-12-25 17:25:43)

Offline

#3 2007-12-25 18:30:54

Mantaar
Member
Registered: 2007-12-17
Posts: 70

Re: [SOLVED]No sound after resuming from suspend thinkpad t23

And don't forget your browser! Opera starts a lot of 'operapluginwrapper' processes that may affect that behavior and if you have Flash in any Firefox tab, that would cause the same effect.

You may try to use the -f argument to rmmod. May be dangerous, but I remember using it on a regular basis with my nvidia-module that didn't want to unload some months ago (they eventually fixed the problem) and I did not have any problems...


Guy #1: I'd totally hit that.
Guy #2: Dude, I'd hit that so hard whoever could pull me out would become the King of England.
--College Walk, Columbia University (Overheard in NY)

Offline

#4 2007-12-25 18:55:25

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [SOLVED]No sound after resuming from suspend thinkpad t23

Thanks for the replies!
Yes, I am using Xfce, and working with firefox and Opera, and  I have the xfce-mixer plugin.
So, it seems that the number of issues may make it impractical to hack into shape. I guess I can live without suspend for a while; at least until I can give kde4 a try. This laptop may be a little long in the tooth for kde3, but I will try that as well. (kde4 supposedly is a bit lighter.)

Offline

#5 2007-12-25 19:29:10

Mantaar
Member
Registered: 2007-12-17
Posts: 70

Re: [SOLVED]No sound after resuming from suspend thinkpad t23

Misfit138 wrote:

(kde4 supposedly is a bit lighter.)

Not entirely true. The /. story got updated and the blogger-guy gave a more refined version of his analysis...


Guy #1: I'd totally hit that.
Guy #2: Dude, I'd hit that so hard whoever could pull me out would become the King of England.
--College Walk, Columbia University (Overheard in NY)

Offline

#6 2008-01-07 02:26:33

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [SOLVED]No sound after resuming from suspend thinkpad t23

OK, solved it. Placed this in /etc/pm/sleep.d/11suspend

#!/bin/sh
mixers="Master PCM CD"
for mixer in $mixers ; do
  /usr/bin/amixer -q sset $mixer mute
  /usr/bin/amixer -q sset $mixer unmute
done

Just mutes and unmutes master, PCM and cd channels. Works perfectly. suspend-to-ram and hibernate now work 100%. smile
Thinkpads are so sweet. wink

Offline

Board footer

Powered by FluxBB