1SYSTEMD-AC-POWER(1)            systemd-ac-power            SYSTEMD-AC-POWER(1)
2
3
4

NAME

6       systemd-ac-power - Report whether we are connected to an external power
7       source
8

SYNOPSIS

10       systemd-ac-power [OPTIONS...]
11

DESCRIPTION

13       systemd-ac-power may be used to check whether the system is running on
14       AC power or not. By default it will simply return success (if we can
15       detect that we are running on AC power) or failure, with no output.
16       This can be useful for example to debug ConditionACPower= (see
17       systemd.unit(5)).
18

OPTIONS

20       The following options are understood:
21
22       -v, --verbose
23           Show result as text instead of just returning success or failure.
24
25       --low
26           Instead of showing AC power state, show low battery state. In this
27           case will return zero if all batteries are currently discharging
28           and below 5% of maximum charge. Returns non-zero otherwise.
29
30       -h, --help
31           Print a short help text and exit.
32
33       --version
34           Print a short version string and exit.
35

EXIT STATUS

37       On success (running on AC power), 0 is returned, a non-zero failure
38       code otherwise.
39

SEE ALSO

41       systemd(1)
42
43
44
45systemd 254                                                SYSTEMD-AC-POWER(1)
Impressum