[ltp] suspend/Thinkpad A20p/Woody/apmd_proxy

Thomas Hood linux-thinkpad@www.bm-soft.com
Tue, 1 May 2001 22:40:21 +0100 (BST)


--- Tino Keitel <tino.keitel@web.de> wrote: 
> On Monday, 30. April 2001 00:24, Vivek Dasmohapatra wrote:
> > I upgraded to woody recently, and discovered a quirk in the apmd_proxy
> > script: It short circuits and ignores system suspend events when
> > on_ac_power returns true: This has the unfortunate effect of not
> 
> Do you mean these lines?
> 
> if [ "$1,$2" = "standby,system" -o "$1,$2" = "suspend,system" ]; then
>         if on_ac_power >/dev/null; then
>                 # Reject system suspends and standbys if we are on AC power
>                 exit 1  # Reject (NOTE kernel support must be enabled)
>         fi
>         # otherwise fall through and call the scripts!
> fi

This has been reported as a bug: #67410 (http://bugs.debian.org/67410).

> I found them in apmd_proxy of my Debian potato system, so it doesn't seem to 
> be a change in woody.
> 
> After killing the "exit 1" and restarting apmd I just did a test and noticed 
> that my apmd didn't recieve any System Standby events, neither with Fn-F3 nor
> 
> with tpctl --standby. Fn-F4 and Fn-F12 as well as tpctl --Z and tpctl --H 
> produce System Suspend events logged by apmd. apm -S and apm -s produce the 
> corresponding User Standby and User Suspend events.
> 
> So I wonder if there really exists a System Standby. I'm using a TP 765L.

I think that the BIOS doesn't report standby events.

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