2018-05-10 05:50:41 +01:00
|
|
|
# rtcwake
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
> Enter a system sleep state until specified wakeup time relative to your BIOS clock.
|
2018-05-10 05:50:41 +01:00
|
|
|
|
|
|
|
- Show whether an alarm is set or not:
|
|
|
|
|
|
|
|
`sudo rtcwake -m show -v`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Suspend to RAM and wakeup after 10 seconds:
|
2018-05-10 05:50:41 +01:00
|
|
|
|
|
|
|
`sudo rtcwake -m mem -s {{10}}`
|
|
|
|
|
|
|
|
- Suspend to disk (higher power saving) and wakeup 15 minutes later:
|
|
|
|
|
|
|
|
`sudo rtcwake -m disk --date +{{15}}min`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Freeze the system (more efficient than suspend-to-RAM but version 3.9 or newer of the Linux kernel is required) and wakeup at a given date and time:
|
2018-05-10 05:50:41 +01:00
|
|
|
|
|
|
|
`sudo rtcwake -m freeze --date {{YYYYMMDDhhmm}}`
|
|
|
|
|
|
|
|
- Disable a previously set alarm:
|
|
|
|
|
2019-05-18 12:19:31 +01:00
|
|
|
`sudo rtcwake -m disable`
|
2018-05-10 05:50:41 +01:00
|
|
|
|
2020-12-04 12:37:44 +00:00
|
|
|
- Perform a dry run to wakeup the computer at a given time. (Press Ctrl + C to abort):
|
2018-05-10 05:50:41 +01:00
|
|
|
|
|
|
|
`sudo rtcwake -m on --date {{hh:ss}}`
|