LinuxCommandLibrary

rtcwake

Schedule system wake from sleep using RTC alarm

TLDR

Show alarm status

$ sudo rtcwake -m show -v
copy
Suspend to RAM and wake after 10 seconds
$ sudo rtcwake -m mem -s 10
copy
Suspend to disk and wake in 15 minutes
$ sudo rtcwake -m disk --date +15min
copy
Freeze and wake at specific time
$ sudo rtcwake -m freeze --date [YYYYMMDDhhmm]
copy
Disable alarm
$ sudo rtcwake -m disable
copy
Dry run at specific time
$ sudo rtcwake -m on --date [hh:mm]
copy

SYNOPSIS

rtcwake [-m mode] [-s seconds|--date time] [options]

DESCRIPTION

rtcwake enters a system sleep state and configures the RTC (Real-Time Clock) to wake the system at a specified time. It's useful for scheduled tasks, power saving, and automatic system wake.
The tool supports various sleep modes with different power/wake trade-offs. The RTC alarm persists even if the system loses power (battery backup).

PARAMETERS

-m, --mode _mode_

Sleep/action mode
-s, --seconds _sec_
Wake after N seconds
--date _time_
Wake at specific time
-v, --verbose
Verbose output
-d, --device _rtc_
Use specific RTC device

MODES

mem

Suspend to RAM (S3)
disk
Suspend to disk/hibernate (S4)
freeze
Suspend-to-idle (S0ix, kernel 3.9+)
off
Power off system
on
No sleep, just set wakeup time
show
Display current alarm
disable
Cancel pending alarm

CAVEATS

Requires root privileges. Not all hardware supports all modes. Time is relative to hardware clock (usually UTC). BIOS/UEFI must support RTC wake.

HISTORY

rtcwake is part of util-linux, providing a standard interface to the Linux RTC wake functionality used for scheduled wake-ups and automated power management.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community