Function

IOPMFindPowerManagement

Finds the Root Power Domain IOService.

Declaration

io_connect_t IOPMFindPowerManagement(mach_port_t master_device_port);

Parameters

master_device_port

Just pass in MACH_PORT_NULL for master device port.

Return Value

Returns a io_connect_t handle on the root domain. Must be released with IOServiceClose() when done.

See Also

Miscellaneous

IOPMAssertionTypes

Use as AssertionType argument to IOPMAssertionCreate. The idle display will not sleep when enabled, and consequently the system will not idle sleep.

IOPMCopyBatteryInfo

Request raw battery data from the system.

IOPMGetAggressiveness

Retrieves the current value of one of the aggressiveness factors in IOKit Power Management.

IOPMSetAggressiveness

Sets one of the aggressiveness factors in IOKit Power Management.

IOPMSleepEnabled

Tells whether the system supports full sleep, or just doze

IOPMSleepSystem

Request that the system initiate sleep.