You are not logged in.

#1 2010-03-29 15:57:34

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Suspend to RAM (for a while)

Hi there.. I'd want to know if i can suspend to ram my system for 30m (for example) and auto wake-up it then that time is over. Is there any possibility to do that? What parts of the kernel still running during the sleep process? Thanks!

Offline

#2 2010-03-29 17:18:10

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: Suspend to RAM (for a while)

I have searched around a while ago and found no other solution that wol (wake over lan) or let the computer run by itself.
Cron is your friend.

Offline

#3 2010-03-29 18:06:43

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Suspend to RAM (for a while)

hatten wrote:

I have searched around a while ago and found no other solution that wol (wake over lan) or let the computer run by itself.
Cron is your friend.

Mmmmm... cron is a good solution, but i really need my system to consume very low energy, that means, it'll have to be turned off or suspended.

Offline

#4 2010-03-30 01:25:46

Doehni
Member
From: Germany
Registered: 2007-05-19
Posts: 175

Re: Suspend to RAM (for a while)

Why not suspend to disk?
Suspended system, but no power consumtion smile

Offline

#5 2010-03-30 01:27:31

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Suspend to RAM (for a while)

hatten wrote:

I have searched around a while ago and found no other solution that wol (wake over lan) or let the computer run by itself.
Cron is your friend.

I was thinking that when the OP first asked for help

Offline

#6 2010-03-30 02:41:54

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Suspend to RAM (for a while)

Doehni wrote:

Why not suspend to disk?
Suspended system, but no power consumtion smile

Well, then tell me how I suspend to disk the system for a while, and make it auto wake-up?

Offline

#7 2010-03-30 04:30:21

Doehni
Member
From: Germany
Registered: 2007-05-19
Posts: 175

Re: Suspend to RAM (for a while)

sironitomas wrote:
Doehni wrote:

Why not suspend to disk?
Suspended system, but no power consumtion smile

Well, then tell me how I suspend to disk the system for a while, and make it auto wake-up?

Seems I understood you wrong...
Was thinking of a laptop that gets awaken to be properly shut down when not used for a specific time.... sorry wink

Offline

#8 2010-03-30 05:40:14

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Suspend to RAM (for a while)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#9 2010-03-30 07:48:46

Wraul
Member
Registered: 2010-03-11
Posts: 7

Re: Suspend to RAM (for a while)

You could look up the command "rtcwake".
I think that will do what you want.

Offline

#10 2010-03-30 15:01:39

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Suspend to RAM (for a while)

Wraul wrote:

You could look up the command "rtcwake".
I think that will do what you want.

That is exactly what I've been wanting. Thanks Wraul!

Offline

#11 2010-03-30 15:16:09

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: Suspend to RAM (for a while)

Perfect wraul, that is awesome! +1 internets to you.

Offline

#12 2010-03-30 17:32:12

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: Suspend to RAM (for a while)

I had problems with the system not waking up correctly after

rctwake -s 10 -m mem

but when doing

rtcwake -s 10 -m no
sudo pm-suspend

It worked to perfection. This can be found on google but I'll post it here just in case somebody else needs it.


Oh, and suspend-to-disk and wake-up through the bios is also a solution for the OP, although that works better when you have a set time for it to wake up every day than a set amount of seconds it will be sleeping, where rtcwake shines.

Last edited by hatten (2010-03-30 17:33:49)

Offline

#13 2010-03-31 02:17:43

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Suspend to RAM (for a while)

hatten wrote:

I had problems with the system not waking up correctly after

rctwake -s 10 -m mem

but when doing

rtcwake -s 10 -m no
sudo pm-suspend

It worked to perfection. This can be found on google but I'll post it here just in case somebody else needs it.


Oh, and suspend-to-disk and wake-up through the bios is also a solution for the OP, although that works better when you have a set time for it to wake up every day than a set amount of seconds it will be sleeping, where rtcwake shines.

I with I could do that... Unfortunately, the timer seems to not make an interruption. When I execute:

[sironi@laptop ~]$ rtcwake -s 10 -m on
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "on" using /dev/rtc0 at Wed Mar 31 02:11:08 2010

The command never ends. I tried changing hardware clock, but it still doesn't working. Im frustrated...

Offline

Board footer

Powered by FluxBB