![]() |
APMD-List: |
to APMD Home
|
Index:
[thread]
[date]
[subject]
[author]
From: Avery Pennarun <apenwarr@worldvisions.ca> To : Edward A. Falk <falconer@best.com> Date: Wed, 8 Dec 1999 20:57:40 -0500 Re: Control apmOn Wed, Dec 08, 1999 at 05:46:55PM -0800, Edward A. Falk wrote: > Here is an executive summary of the ioctls I added to apm_bios.c: > > APM_IOC_CHECK > Executes bios call 5300 to return information about > the apm bios. Not very useful, and I don't think I'd > keep it. > > APM_IOC_ENABLE > Enable or disable apm. Extremely useful. > > APM_IOC_DEFAULTS > Reset to power-on defaults. Don't know if it's > worth keeping. > > APM_IOC_GET_POWER > Get current power levels. Doesn't work for retrieving > individual battery levels, but that might just be the > bios in my laptop. > > APM_IOC_GET_STATE > Get the state of individual components. Doesn't work > on my laptop. > > APM_IOC_GET_VERSION > Returns apm protocol version. > > APM_IOC_GET_CAPS > Return apm bios capabilities. > > APM_IOC_GET_TIMER > Retrieve resume timer settings. > > APM_IOC_SET_TIMER > Set resume timer > > APM_IOC_DISABLE_TIMER > Disable resume timer > > APM_IOC_RING > Control resume-on-ring function Note that many of these are informational and should be reported in /proc/apm instead. I'd rather control some of the others with sysctls (/proc/sys/...) but ioctls would be okay too. It's nice to see someone working on it though. Have fun, Avery Index: [thread] [date] [subject] [author] |