MyRTCWAKE

Easy to use GUI for rtcwake.

First of all play with the commands. If you find your best result use the GUI.
The Button 'Remember root privileges' will start the GUI next time without input 
the root password.

--------------------------------------------------------------------------------------
Note that the command uses root privileges to work, so we’ll need to ensure we have 
a user with root privileges. Misuse of this utility may crash the system or kernel.

The rtcwake utility comes preinstalled in most Linux distros, and we can verify if 
it’s available on our current system:

$ which rtcwake
/usr/sbin/rtcwake

2.1. Using rtcwake to Suspend and Wake the System Automatically
Let’s check the basic syntax of the rtcwake command:

$ rtcwake [options] [-d device] [-m standby_mode] {-s seconds | -t time_t}

We can use rtcwake to suspend the computer to either memory or disk and wake it back 
up at a specific time.

For example, let’s suspend our system to RAM, then wake it up one minute later:

 # rtcwake -u -s 60 -m mem
rtcwake: wakeup from "mem" using /dev/rtc0 at Wed Nov 9 15:11:05 2022

Alternatively, we can suspend the system to disk:

 # rtcwake -u -s 60 -m disk
rtcwake: wakeup from "disk" using /dev/rtc0 at Wed Nov 9 15:33:35 2022

Here, we’re using the -u option to assume the hardware clock is set to UTC.

The -s option sets the wake-up time in seconds and the -m option sets the standby 
state.

We could also wake up our computer at a specific time of the day:

 # rtcwake -m no -l -t "$(date -d 'today 16:20:00' '+%s')"

Here, we’re setting the mode to no to prevent suspending the system and only set 
the RTC wake-up time.

The -l option assumes the hardware clock is set to local time and the -t option 
sets the wakeup time to 4:20 pm today.

Additionally, we can even run a specific program after waking the computer:

 # rtcwake -s 60 -m mem && code

To show the settings try:
 # rtcwake -m show
 
-------------------------------------------------------------------------------------- 
 Designed for PCLinuxOS-LXQT-2024.04
 Author:	Daniel Meiß-Wilhelm
 Website: 	www.pclinuxos.com/forum
 Release: 	2024
 License: 	GPL2 
 Version:	$VERSION
