trigger rtcwake from suspend

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Post Reply
notzippy
Growing Hen
Posts: 115
Joined: Sat Jun 16, 2012 14:34

trigger rtcwake from suspend

Post by notzippy » Wed Jan 29, 2014 18:21

Hi

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

thx
Nz

notzippy
Growing Hen
Posts: 115
Joined: Sat Jun 16, 2012 14:34

Re: trigger rtcwake from suspend

Post by notzippy » Thu Jan 30, 2014 2:35

Part of the answer with the suspending the shutdown appears to be a call to
kwriteconfig --file powermanagementprofilesrc --group AC --group SuspendSession --key idleTime 60000

Post Reply