2 .\" SPDX-License-Identifier: BSD-2-Clause
4 .\" Copyright (c) 2023 Johannes Totz
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd manipulate the EFI wake timer
38 .Fl e Ar yyyy-mm-ddThh:mm:ss
41 reports the current value of, disables or enables the EFI wake timer that can
42 wake your machine from S3 sleep at a given time.
44 If invoked without arguments, the current EFI time and the current value of the
45 wake timer will be printed, followed by an
50 EFI time is supposed to be in UTC.
51 Note that it can be out of sync with kernel time.
52 The pending status tells whether the wake timer fired recently; it is cleared
57 option, the wake timer is reset and disabled.
61 option, the wake timer is set to the given time and date.
62 If the date or time is invalid, an error is returned.
64 The current EFI time is always printed.
67 .Bd -literal -offset indent
69 Current EFI time: 2023-05-04T15:30:45
70 EFI wake time: 2023-05-04T10:00:00; enabled=0, pending=1
73 Disabling and resetting the wake timer:
74 .Bd -literal -offset indent
76 Current EFI time: 2023-05-04T15:32:16
77 EFI wake time: 2023-05-04T15:32:16; enabled=0, pending=0
80 Enabling the wake timer with a valid date:
81 .Bd -literal -offset indent
82 # efiwake -e 2023-05-04T15:35:00
83 Current EFI time: 2023-05-04T15:34:05
84 EFI wake time: 2023-05-04T15:35:00; enabled=1, pending=0
87 Trying to enable with an invalid date (there is no 31st of April):
88 .Bd -literal -offset indent
89 # efiwake -e 2023-04-31T15:35:00
90 Current EFI time: 2023-05-04T15:35:25
91 efiwake: cannot enable EFI wake time: Invalid argument
95 The tool and manual page were written by
96 .An Johannes Totz Aq Mt jo@bruelltuete.com .
98 The quality of EFI implementations differs widely.
99 Corruption of the wake-up date has been observed on real hardware.