Line 1:
Line 1:
+
{{DEFAULTSORT:dev/usr_cfg}}
+
[[Category:Wii U Filesystem]]
+
'''/dev/pm''' is the IOSU device node for Power Management.
+
== ioctl() interface ==
== 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 <code>PM_STANDBY</code> (or <code>PM_OFF</code> if standby is disabled).
+
+
=== 0xe3 - Restart ===
+
Starts a power transition to <code>PM_RESTART</code> to the current coldboot OS title.
+
+
=== 0xe4 - Request SetPowerTransitions ===
+
Requests power transitions to be disabled or enabled.
+
+
=== 0xe5 - Unknown ===
=== 0xe6 - MCP_PowerButtonEvent() ===
=== 0xe6 - MCP_PowerButtonEvent() ===
Takes a 32-bit int.
Takes a 32-bit int.