To follow up my own post, I played around with the system again last
night and I think I have a better idea of what's going on.

My system does not run the suspend/resume scripts when I press the Fn-F4
key combination on my 560.  However, if I first type "cardctl eject" and
then press Fn-F4, it does execute the suspend script and then the resume
script on resume.

Also, if I type "apm --suspend" at the command line, the scripts are
executed properly.  So it seems like the suspend key combination is not
being trapped correctly.

Is it possible to do this on the Thinkpaf 560?  Do I need to compile somethin
something else into the kernel in order to get this to work correctly?

Thanks,

- justin

> From [EMAIL PROTECTED] Tue Jun  1 17:08:23 1999
> X-Authentication-Warning: ps.cus.umist.ac.uk: rhw owned process doing -bs
> Date: Wed, 2 Jun 1999 01:08:16 +0100 (GMT)
> From: Riley Williams <[EMAIL PROTECTED]>
> X-Sender: [EMAIL PROTECTED]
> To: Justin Liu <[EMAIL PROTECTED]>
> cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: RE: Module problems at suspend/resume time?
> In-Reply-To: <[EMAIL PROTECTED]>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> X-UIDL: 2ef6f1bd4f42ccc832eda25fa2450f10
>
> Hi Justin.
>
>  > Continuing the thread, I have a question about using the new
>  > apmd. I downloaded the Debian package and installed it, but I
>  > couldn't get pre-suspend commands to work.
>
>  > I created scripts to "cardctl eject/insert" but the suspend
>  > script doesn't execute when I hit suspend on my laptop.  
>  > However, if I manually do a cardctl eject and then resume from
>  > suspend, the resume script does execute.
>
>  > Has this happened to anyone else?  I have a Thinkpad 560 P133
>  > running Debian.
>
> Not sure whether it's relevant, but I had a similar problem, and I
> managed to fix it.
>
> My notepad is RedHat 5.2 based, and RH have a handy script available
> called `run-parts` that takes as parameter a directory and runs every
> script in that directory in `ls *` order. I created two directories
> /etc/apmd/{resume,suspend}.d and then modified the RH apmd script to
> include the following command:
>
>  Q>   daemon /usr/sbin/apmd $APMD_OPTIONS                     \
>  Q>           -r '/usr/bin/run-parts /etc/apmd/resume.d'      \
>  Q>           -s '/usr/bin/run-parts /etc/apmd/suspend.d'
>
> I can confirm that this works fine...but ONLY if I include the full
> path to both run-parts and the above directories...
>
> Best wishes from Riley.
>
> +----------------------------------------------------------------------+
> | There is something frustrating about the quality and speed of Linux  |
> | development, ie., the quality is too high and the speed is too high, |
> | in other words, I can implement this XXXX feature, but I bet someone |
> | else has already done so and is just about to release their patch.   |
> +----------------------------------------------------------------------+
>  * ftp://ftp.MemAlpha.cx/pub/rhw/Linux
>  * http://www.MemAlpha.cx/kernel.versions.html
>
>

Reply via email to