2018-05-10 06:50:41 +02:00
|
|
|
# rtcwake
|
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
> Enter a system sleep state until specified wakeup time relative to your BIOS clock.
|
2022-03-22 03:07:48 +10:00
|
|
|
> More information: <https://manned.org/rtcwake>.
|
2018-05-10 06:50:41 +02:00
|
|
|
|
|
|
|
- Show whether an alarm is set or not:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`sudo rtcwake {{[-m|--mode]}} show {{[-v|--verbose]}}`
|
2018-05-10 06:50:41 +02:00
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
- Suspend to RAM and wakeup after 10 seconds:
|
2018-05-10 06:50:41 +02:00
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`sudo rtcwake {{[-m|--mode]}} mem {{[-s|--seconds]}} {{10}}`
|
2018-05-10 06:50:41 +02:00
|
|
|
|
|
|
|
- Suspend to disk (higher power saving) and wakeup 15 minutes later:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`sudo rtcwake {{[-m|--mode]}} disk --date +{{15}}min`
|
2018-05-10 06:50:41 +02:00
|
|
|
|
2021-08-15 19:59:09 +02: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 06:50:41 +02:00
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`sudo rtcwake {{[-m|--mode]}} freeze --date {{YYYYMMDDhhmm}}`
|
2018-05-10 06:50:41 +02:00
|
|
|
|
|
|
|
- Disable a previously set alarm:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`sudo rtcwake {{[-m|--mode]}} disable`
|
2018-05-10 06:50:41 +02:00
|
|
|
|
2025-03-09 14:03:08 +02:00
|
|
|
- Perform a dry run to wakeup the computer at a given time. (Press `<Ctrl c>` to abort):
|
2018-05-10 06:50:41 +02:00
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`sudo rtcwake {{[-m|--mode]}} on --date {{hh:ss}}`
|