[ltp] APMD and Standby on the TP-T21

D. Sen linux-thinkpad@www.bm-soft.com
Tue, 06 Mar 2001 17:12:02 -0500


Thomas Hood wrote:

>
>
> > *However*, in my machine 2c doesnt seem to be happening for the Fn+F3 (tpctl
> > --standby) case. apmd_script is called but without the "standby user/system"
> > parameters. So, I dont have control over what commands are called before
> > standby for that sequence.
>
> That sounds like a problem I had with the original apmd_proxy
> script shipped with apmd 3.0final in Debian.  For some strange
> reason the apmd maintainer wrote the apmd_proxy script so that
> it would ignore system suspends while the machine was on AC
> power.  I reported this as a bug and the maintainer replied
> that he found this "feature" useful, but he agreed that it
> should be disable-able and shouldn't be the default.  However
> he hasn't uploaded a new version of the apmd package with
> the change.  I was able to remove the "reject the suspend
> if it's a system suspend and we're on AC power" bit of code
> from apmd_proxy myself, quite easily.

Nope, its definitely *not* the apmd_proxy script. I modified the script to log the
parameters its receiving from apmd. I see things like "suspend system", "suspend
user", "start", "stop", "resume suspend"......but *never* a "standby system". I do
see "standby user" for when I run apm -S.  Either apmd is ignoring the "standy
system" event or the APM BIOS isnt doing things right in the first place.

>
>
> > Thats the first problem. The second is that even if I did have control over
> > the commands, (as in (1) with the apm -S command), I still see 'hda: lost
> > interrupt" unless I use 'cardctl eject' before the machine is put on standby.
>
> Probably what is going wrong is that a device driver is being
> suspended before apmd_proxy is able to do the "cardctl eject",
> resulting in the error message.  If it's a pcmcia device driver
> that's causing the problem then the proper way to get a
> "cardctl eject" is not to put this command in the apmd_proxy
> script but to set APM=eject in /etc/pcmcia/apm.opts .
>

Well, during a standby event I *dont want* a cardctl eject. (I do want a 'cardctl
eject' for suspend but this is not where the problem lies). However, unless I do a
'cardctl eject' with my standby, I see the "hda: lost interrupt" message.

DS

>
> Thomas
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html

--
D. Sen, Room E167
AT&T Labs-Research
Shannon Laboratory
180 Park Ave.
Florham Park NJ 07932-0971
Ph: 973-360-8546
http://www.research.att.com/~dsen



----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html