Red Hat Bugzilla – Bug 19610
apm flags '-i' and '-n' don't work
Last modified: 2007-04-18 12:29:27 EDT
apm has flags '-i' and '-n' to enable/disable system suspend.
These appear to be no longer relevant for newer kernels, so the
functionality is compiled out with #ifdef APM_IOC_IGNORE statements,
but the usage message and manpage both suggest that this
feature is still there.
While this could be quickly fixed with another #ifdef or two,
it would be nice if apm could control/query state settings to
pass to the apmd proxy script. It would be good to have a set
of variables and available settings in /etc/apm.conf, so that
adding features to apm control doesn't mean rewriting apm.
I came across this when trying to figure out how to use a laptop
with an external keyboard, mouse and monitor plugged in, and be
able to close the lid without suspending. This is similar to using
an real docking bay, which may or may not benefit from more apm
Thanks, Joe Krahn
We actually have a set of variables and available settings. It's in /etc/sysconfig/apmd. (config files specific to Red Hat Linux usually are in /etc/sysconfig, and the base package doesn't support this sort of stuff).
Fixing up the man page now...
Fixed in 3.0final-24