[ltp] stop thinkpad suspending on AC
Thomas Hood
linux-thinkpad@linux-thinkpad.org
15 Oct 2002 10:03:06 +0200
With current Linux kernels, there is no way for
a userspace program to reject an APM BIOS request to
enter the APM SUSPEND state. All userspace can do
is prepare for suspension.
Some of the apmd documentation misleadingly indicates
otherwise, but let me repeat: current Linux kernels
do not support the rejection of suspend events from
userspace. This feature never got added to the apm
driver. In particular, it is not possible to reject
a suspend request when the machine is on mains power.
You can use PS2.EXE or tpctl to disable the initiation
of suspend requests under certain circumstances.
However, there is no way to make the behavior depend
on the power source.
--
Thomas Hood
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com