Bug 19610

Summary: apm flags '-i' and '-n' don't work
Product: [Retired] Red Hat Linux Reporter: Joe Krahn <krahn>
Component: apmdAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-24 08:28:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joe Krahn 2000-10-23 15:24:46 UTC
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
control.

Thanks, Joe Krahn

Comment 1 Bernhard Rosenkraenzer 2000-10-24 08:28:08 UTC
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...

Comment 2 Bernhard Rosenkraenzer 2000-11-02 12:39:16 UTC
Fixed in 3.0final-24