You are not logged in.

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_codecHowever, 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_ossI 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. 
Last edited by Misfit138 (2008-01-07 02:27:07)
Offline
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

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

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

(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

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
doneJust mutes and unmutes master, PCM and cd channels. Works perfectly. suspend-to-ram and hibernate now work 100%. 
Thinkpads are so sweet. 
Offline