I was trying to figure out how to do the following:
At 12am I want my computer to wakeup from suspend and perform a task like a backup or a build, after 3 hours the computer will return to suspend.
Calling rtcwake from a script seems like a way to do this, but not sure where the script should be, should it be in "/usr/lib/systemd/system-sleep/" ? Any examples of this would be helpful. Also my computer is set to go to suspend automatically after 1 hour, so how can I temporarily change this using the script as well ?
Environment Kernel 3.12, KDE