[ltp] ethernet after suspend/resume?

Thomas Wimmer linux-thinkpad@www.bm-soft.com
Wed, 20 Oct 1999 00:33:28 +0200


Rob Mayoff wrote:
> 
> | Could someone please send me her/his /etc/apmd/apmd_proxy file?
> 
> Note that you have to have apmd 3.0b5 or later for apmd_proxy
> support.
> 
> Here's my apmd_proxy.  It turns off the PC Cards and unloads the
> sound drivers on suspend, and restores them on resume.
> 
> #!/bin/ksh
> 
> logger "apmd_proxy: $*"
> 
> case "$*" in
> 
>   suspend*)
>     cardctl eject & # may take a moment
>     lsof -t /dev/{audio,dsp,midi,mixer,music,sequencer,sndstat} | xargs kill

you may want to change that to a "xargs -r kill" so that the kill is
only issued if there are arguments.

>     sleep 1 # wait for things to die
>     rmmod -s cs4232
>     rmmod -s ad1848 uart401
>     rmmod -s sound
>     rmmod -s soundcore

IMHO its sufficiant if you unload the cs4232 driver only.

>     wait # for cardctl
> 
(...)


Thomas
-- 
Thomas Wimmer        |   When you're in a fight with an idiot,
thomas@wimmer.net    |   its difficult for other people
Stuttgart, Germany   |   to tell which one the idiot is.
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html