Power Supply๏
- OS:
๐ช Windows ๐ง Linux ๐ macOS
Power-supply conditions select settings according to the systemโs current power source.
power๏
Matches the power source:
acThe system is connected to mains power.
batteryThe system is running on battery power.
If the power source cannot be determined, neither value matches and a warning is logged.
Example
This configuration selects a shorter inspection interval on battery power:
<EnvironmentMonitor version="3">
<DefaultEnvironment>
<SystemMonitor timeout="5min" onUsage="sleepless" onIdle="sleep">
<PowerRequestMonitor />
</SystemMonitor>
</DefaultEnvironment>
<Environment power="battery">
<SystemMonitor timeout="2min" />
</Environment>
</EnvironmentMonitor>
The power-request monitor and sleep actions apply under either power source. The inspection interval is two minutes on battery and five minutes on mains power. Additional activity monitors belong in the default environment; see Local Sleep Management.