How To Install Rtcwake In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Rtcwake In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

rtcwake

Enter a system sleep state until specified wakeup time relative to your bios clock.

Maintainer: LaMont Jones


Section: utils

Install rtcwake

  • Debian apt-get install util-linux Click to copy
  • Ubuntu apt-get install util-linux Click to copy
  • Alpine OS apk add util-linux Click to copy
  • Arch Linux pacman -S util-linux Click to copy
  • Kali Linux apt-get install util-linux Click to copy
  • CentOS yum install util-linux Click to copy
  • Fedora dnf install util-linux Click to copy
  • Raspbian apt-get install util-linux Click to copy
  • macOS brew install util-linux Click to copy

Enter a system sleep state until specified wakeup time relative to your bios clock.

How to use rtcwake?

Below are few example commands for rtcwake that you can use in the terminal.

Show whether an alarm is set or not:
sudo rtcwake -m show -vClick to copy
Suspend to ram and wakeup after 10 seconds:
sudo rtcwake -m mem -s 10Click to copy
Suspend to disk (higher power saving) and wakeup 15 minutes later:
sudo rtcwake -m disk --date +15minClick to copy
Freeze the system (more efficient than suspend-to-ram but linux > 3.9 required) and wakeup at a given date and time:
sudo rtcwake -m freeze --date YYYYMMDDhhmmClick to copy
Disable a previously set alarm:
sudo rtc -m disableClick to copy
Perform a dry run to wakup the computer at a given time. (Press Ctrl + C to abort):
sudo rtcwake -m on --date hh:ssClick to copy
Install the latest version of rtcwake in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the rtcwake just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of rtcwake from the respository and install it in your computer/server.