openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Public Member Functions | |
isStateSupported ($state) | |
getSupportedStates () | |
reboot () | |
shutdown () | |
standby () | |
suspend () | |
hibernate () | |
suspendHybrid () | |
Public Attributes | |
const | STATE_NONE = 0x0 |
const | STATE_SUSPEND = 0x1 |
const | STATE_HIBERNATE = 0x2 |
const | STATE_SUSPENDHYBRID = 0x4 |
Helper class that implements functions regarding the power management. References: https://www.kernel.org/doc/Documentation/power/swsusp.txt https://wiki.archlinux.org/index.php/Suspend_and_Hibernate
OMV\System\PowerManagement::getSupportedStates | ( | ) |
Get all supported power management states.
OMV\System\PowerManagement::hibernate | ( | ) |
Put the machine into suspend to disk (STD) mode. If this state is not supported the system will be shut down.
OMV\System\PowerManagement::isStateSupported | ( | $state | ) |
Checks if the given power management state is supported.
state | The state to check for. |
OMV\System\PowerManagement::reboot | ( | ) |
Reboot the machine.
OMV\System\PowerManagement::shutdown | ( | ) |
Shut down the machine.
OMV\System\PowerManagement::standby | ( | ) |
Put the machine in a sleep state. If suspend to disk (STD) or RAM (STR) is not supported the system will be shut down. The system will be put into one of the following state depending on which state is supported:
Hybrid suspend (STB)
OMV\System\PowerManagement::suspend | ( | ) |
Put the machine into suspend to RAM (STR) mode. If this state is not supported the system will be shut down.
OMV\System\PowerManagement::suspendHybrid | ( | ) |
Put the machine into suspend-hybrid (STB) mode. If this state is not supported the system will be shut down.