Re: Controlling subsystem power using APM

2000-10-14 Thread Thomas Hood
> Linux aesthetics disaproves of no-value-added definitions like > +struct apm_get_power_state_inparms { > + unsigned short dev_id; > +}; This is included for reasons of symmetry---it is one of the components of a union. > and in the code you present, rtnval seems redundant, > since

Controlling subsystem power using APM

2000-10-14 Thread Thomas Hood
Hello. For the purpose of minimizing power consumption on a ThinkPad 600 laptop I would like to be able to issue "set power state" and "get power state" commands to the APM BIOS so as to power down the serial port and other subsystems. However the apm code does not presently support this. I

Re: Controlling subsystem power using APM

2000-10-14 Thread Thomas Hood
Linux aesthetics disaproves of no-value-added definitions like +struct apm_get_power_state_inparms { + unsigned short dev_id; +}; This is included for reasons of symmetry---it is one of the components of a union. and in the code you present, rtnval seems redundant, since