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