2018-05-10 07:50:41 +03:00
|
|
|
# rtcwake
|
|
|
|
|
|
|
|
> Enter a system sleep state until specified wakeup time relative to your bios clock.
|
|
|
|
|
|
|
|
- Show whether an alarm is set or not:
|
|
|
|
|
|
|
|
`sudo rtcwake -m show -v`
|
|
|
|
|
|
|
|
- Suspend to ram and wakeup after 10 seconds:
|
|
|
|
|
|
|
|
`sudo rtcwake -m mem -s {{10}}`
|
|
|
|
|
|
|
|
- Suspend to disk (higher power saving) and wakeup 15 minutes later:
|
|
|
|
|
|
|
|
`sudo rtcwake -m disk --date +{{15}}min`
|
|
|
|
|
2018-07-15 12:27:00 +03:00
|
|
|
- Freeze the system (more efficient than suspend-to-ram but linux > 3.9 required) and wakeup at a given date and time:
|
2018-05-10 07:50:41 +03:00
|
|
|
|
|
|
|
`sudo rtcwake -m freeze --date {{YYYYMMDDhhmm}}`
|
|
|
|
|
|
|
|
- Disable a previously set alarm:
|
|
|
|
|
2019-05-18 14:19:31 +03:00
|
|
|
`sudo rtcwake -m disable`
|
2018-05-10 07:50:41 +03:00
|
|
|
|
|
|
|
- Perform a dry run to wakup the computer at a given time. (Press Ctrl + C to abort):
|
|
|
|
|
|
|
|
`sudo rtcwake -m on --date {{hh:ss}}`
|