apmd has the commandline-options -s and -r. The command behind -s will be
executed before suspend, the one after -r after resume. you can also use the
run-parts-directive to specify a directory containing the scripts to be
executed (of course the directory must exist). I start my apmd with the
following parameters:
apmd -p 10 -w 5 -s "run-parts /etc/apm/suspend.d" -r "run-parts
/etc/apm/resume.d"
If you use redhat, you can edit the /etc/sysconfig/apmd.
Now you can help me :
I have the problem with the corrupted X after resuming.
Could you please mail me the script to prefend X from being corrupted after
resume? (the script from mr. rader?!)
Thnx,
Kilian
On 07-Aug-99 Werner Heuser wrote:
> logan browne schrieb:
>>
>> I was just wondering if anyone had a good hack to run a script when apm
>> suspends (say when the battery goes dead or I close the lid on the laptop).
>> I have a script so that I can keep X from getting corrupted (thanks to mr.
>> rader), but if it happens autmatically I still need my X session to be
> ..
> Didn't try it myself, but AFAIK 'apmd' version 3.0 is capable of this.
>
> Cheers
>:-> werner
> --
> Werner Heuser | There is no time, /~~
> LiLAC - Linux with Laptop Computers | ... to make war ... /~~~
> Berlin, Germany | -Lou Reed- /~~~~
> T. +49 30 349 53 86 <[EMAIL PROTECTED]> www.snafu.de/~wehe/index_li.html
>
----------------------------------
E-Mail: [EMAIL PROTECTED]
Date: 07-Aug-99
Time: 15:40:54
This message was sent by XFMail
----------------------------------