Hi Klaus.
>> 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'
> Which version of apmd are you using? My version apmd-2.4 don't
> recognize the options '-r' and '-s'.
I don't have my notebook handy at the moment, but I've only done
upgrades using rpm so it'll be one of the following:
1. Supplied with RedHat 5.2: apmd-2.4-6.i386.rpm
2. Supplied with RedHat 6.0: apmd-3.0beta5-7.i386.rpm
3. RedHat 6.0 update: apmd-3.0beta5-8.i386.rpm
I can check when I get home which one it is, but I would presume the
first as both of the last two have glibc 2.1 in their dependancies,
and that isn't installed on RH 5.x systems...
> BTW: does anybody know why the cardmgr do a suspend and a resume
> if the machine suspend/resume. Where it is configured?
Sorry, no idea...
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