Howto put linux in sleep mode at 1 am and wake up at 6 am automatically
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The thought of automating the suspend never crossed my mind. As I mentioned, I just suspend it manually when the family are finished with it for the night.
man rtcwake
This program is used to enter a system sleep state until specified
wakeup time.
This uses cross-platform Linux interfaces to enter a system sleep
state, and leave it no later than a specified time. It uses any RTC
framework driver that supports standard driver model wakeup flags.
This is normally used like the old apmsleep utility, to wake from a
suspend state like ACPI S1 (standby) or S3 (suspend-to-RAM). Most
platforms can implement those without analogues of BIOS, APM, or ACPI.
On some systems, this can also be used like nvram-wakeup, waking from
states like ACPI S4 (suspend to disk). Not all systems have persistent
media that are appropriate for such suspend modes.
Through BIOS I have ACPI enabled. I can choose for the suspend mode between:
- suspend to disk
- power on suspend (or something like that)
So it seems my bios does not suspend to ram
I have never succeeded to put my computer into sleep mode, or hibernate mode
My distro: Debian Lenny
When using rtcwake:
razer:/home/hurman# rtcwake -s 3700
rtcwake: wakeup from "suspend" using /dev/rtc0 at Thu Jan 7 11:15:58 2010
And than it does nothing... strangely enough the rtc wake time seems to be in GMT time, while, I am in +1 Amsterdam time. But it does nothing when I do this command.
The same for
pm-is-supported --suspend
It does absolutely nothing
Hibernate is available from the menu, but everytime I do it, it fails... (so it hibernates, but when I want to turn it on again, the first time I press the power button it does load, but not fully. The second time i do a hard reset and it works.
Because software suspend is still experimental, it is not enabled by default on most machines. Depending on your system, a few more steps are needed to get suspend partially or fully working.
Last edited by Simon Bridge; 01-07-2010 at 07:26 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.