LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 09-27-2004, 05:47 PM   #1
enigma82
Member
 
Registered: Sep 2004
Location: Fagaras, Romania
Distribution: Mandrake 10.0
Posts: 48

Rep: Reputation: 15
Suspend to RAM in LInuX


I have MDK10 and a Gigabyte GA-7VAXP motherboard. This board knows about suspend to RAM (type S3 - as reported by BIOS). In winblows when I push my PWR button I send my computer into sleep. It's some kind of hibernation but only in RAM. And when I wanna wake-up my PC i push PWR but once again and it starts where it was when it went into Standby mode. (in the middle of a fight in Q3).

How can I do that in LinuX (if possible, of course)! Even if I like the booting part of Linux I would like to save some time (yes, those 2-3 minutes)!
 
Old 09-27-2004, 07:05 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
I think this is what you are talking about: http://softwaresuspend.berlios.de/ -- J.W.
 
Old 09-28-2004, 06:38 PM   #3
enigma82
Member
 
Registered: Sep 2004
Location: Fagaras, Romania
Distribution: Mandrake 10.0
Posts: 48

Original Poster
Rep: Reputation: 15
Yeap! Thank a lot for the info!
 
Old 09-28-2004, 07:24 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
You are certainly welcome. I'm glad the link was useful. -- J.W.
 
Old 09-29-2004, 02:14 AM   #5
christhom
Member
 
Registered: Sep 2004
Distribution: Debian sarge/sid
Posts: 41

Rep: Reputation: 15
errr...the link you gave was for software suspend aka suspend to disk aka window "hibernate" mode, not suspend to RAM. I've been chasing some info on supend to RAM (i.e S3 state - maintain power to RAM, but shut down peripherals, CPU etc to conserve battery life.) recently, but can only find swsusp (S4/S4Bios), not RAM.

any links?
 
Old 09-29-2004, 02:51 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Here's what I do to suspend to RAM (I do that as root):
Code:
echo -n mem>/sys/power/state
That's on Mdk10 with a 2.6 kernel.
But I'm lucky my board is "compatible" with linux for S3. Also, for me, it helps to make sure the CPU is in mode "usermode" (check name in file scaling_available_governors) before doing the echo because I use cpudynd to automatically change the frequency of the CPU when appropriate, so full command is:
Code:
service cpudyn stop
cd /sys/drivers/cpu/cpu0/cpufreq
echo usermode >scaling_governor
cat scaling_maxfreq >scaling_setcpufreq
cd -
echo -n mem >/sys/power/state
service cpudyn start
(from memory, paths and filenames should be checked)

You'll find more information about linux-compatibility inside the /usr/src/linux/Documentation directory (kernel source)

Yves.

Last edited by theYinYeti; 09-29-2004 at 02:56 AM.
 
Old 09-29-2004, 03:57 AM   #7
christhom
Member
 
Registered: Sep 2004
Distribution: Debian sarge/sid
Posts: 41

Rep: Reputation: 15
ok, thanks. I just looked at pavel's notes in Documentation/power/ - the S3 state is just an godawful mess it seems, and I'm too paranoid about my laptop to want to screw with it...

cheers
 
Old 09-29-2004, 04:28 AM   #8
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
swsusp is indeed much more reliable. Just remember to NEVER use the PC with swsusp disabled between a suspend-to-swap swithing-off and resuming this suspended-to-swap session.
I did it. data rotted on disk until I had to reformat everything (thanksfully I had a backup of data).

So in short, after having suspended a session to swap:
- either you resume this saved session,
- or you never ever resuse this session.

Yves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Another suspend-to-RAM problem coldsalmon Linux - Laptop and Netbook 16 08-14-2006 09:57 PM
Suspend to RAM/HD question Lake-end Linux - Laptop and Netbook 6 07-05-2005 01:10 AM
Suspend to Ram - Debian Sarge pjpeter Linux - Newbie 3 06-26-2005 06:27 PM
suspend to ram works at last!!!! jwn7 Linux - Laptop and Netbook 4 03-31-2005 06:42 AM
FC2: suspend-to-ram changes clock? anandj Linux - Laptop and Netbook 7 03-02-2005 09:51 AM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration