From fc22b3d6507c6745911b9dfcc68f1e665ae13dbc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:43:11 +0200 Subject: Adding upstream version 4.22.0. Signed-off-by: Daniel Baumann --- upstream/debian-bookworm/man1/systemd-ac-power.1 | 62 ++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 upstream/debian-bookworm/man1/systemd-ac-power.1 (limited to 'upstream/debian-bookworm/man1/systemd-ac-power.1') diff --git a/upstream/debian-bookworm/man1/systemd-ac-power.1 b/upstream/debian-bookworm/man1/systemd-ac-power.1 new file mode 100644 index 00000000..9e03f443 --- /dev/null +++ b/upstream/debian-bookworm/man1/systemd-ac-power.1 @@ -0,0 +1,62 @@ +'\" t +.TH "SYSTEMD\-AC\-POWER" "1" "" "systemd 254" "systemd-ac-power" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +systemd-ac-power \- Report whether we are connected to an external power source +.SH "SYNOPSIS" +.HP \w'\fBsystemd\-ac\-power\fR\ 'u +\fBsystemd\-ac\-power\fR [OPTIONS...] +.SH "DESCRIPTION" +.PP +\fBsystemd\-ac\-power\fR +may be used to check whether the system is running on AC power or not\&. By default it will simply return success (if we can detect that we are running on AC power) or failure, with no output\&. This can be useful for example to debug +\fIConditionACPower=\fR +(see +\fBsystemd.unit\fR(5))\&. +.SH "OPTIONS" +.PP +The following options are understood: +.PP +\fB\-v\fR, \fB\-\-verbose\fR +.RS 4 +Show result as text instead of just returning success or failure\&. +.RE +.PP +\fB\-\-low\fR +.RS 4 +Instead of showing AC power state, show low battery state\&. In this case will return zero if all batteries are currently discharging and below 5% of maximum charge\&. Returns non\-zero otherwise\&. +.RE +.PP +\fB\-h\fR, \fB\-\-help\fR +.RS 4 +Print a short help text and exit\&. +.RE +.PP +\fB\-\-version\fR +.RS 4 +Print a short version string and exit\&. +.RE +.SH "EXIT STATUS" +.PP +On success (running on AC power), 0 is returned, a non\-zero failure code otherwise\&. +.SH "SEE ALSO" +.PP +\fBsystemd\fR(1) -- cgit v1.2.3