/dev/pm

From WiiUBrew
Jump to navigation Jump to search

/dev/pm is the IOSU device node for Power Management.

ioctl() interface

0x43 - Set/Clear IsPowerTransitionsEnabled BootFlag

Sets/Clears if the IsPowerTransitionsEnabled bit in Boot1#BootFlags.

0x44 - Check IsPowerTransitionsEnabled BootFlag

Checks if the IsPowerTransitionsEnabled bit is set in Boot1#BootFlags.

0xe0 - Register Resource Manager

Registers a resource manager in PM to receive PM events.

0xe1 - Activate Resource Manager?

Sets the state of a registered resource manager to 1.

0xe2 - Enter Standby

Starts a power transition to PM_STANDBY (or PM_OFF if standby is disabled).

0xe3 - Restart

Starts a power transition to PM_RESTART to the current coldboot OS title.

0xe4 - Request SetPowerTransitions

Requests power transitions to be disabled or enabled.

0xe5 - Unknown

0xe6 - MCP_PowerButtonEvent()

Takes a 32-bit int.