LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 12-07-2007, 03:50 PM   #1
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 673
Blog Entries: 11

Rep: Reputation: 36
suspend to ram and s2ram


I'm trying to get my computer to suspend to ram, and my model number isn't whitelisted by s2ram. I tried 's2ram -f' from the command line as root and it works great, but when I edit '/etc/hibernate/ususpend-ram.conf' with the proper info ('USuspendRamForce yes') the suspend option from the power management applet in gnome doesn't work. It starts to suspend, the screen goes black, and then it comes back on, on its own, right away. It looks to me like it's doing the exact same thing that it did (successfully) when I executed the command from the terminal. Does anyone know about 'suspend to ram'? Thanks in advance.
 
Old 12-07-2007, 06:48 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,684

Rep: Reputation: 124Reputation: 124
Any cli command can be put in a file, made into a script and executed from there.
 
Old 12-08-2007, 07:40 AM   #3
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 673
Blog Entries: 11

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Dutch Master View Post
Any cli command can be put in a file, made into a script and executed from there.
True, but wouldn't I have to incorporate some mechanism to run the script as root? gksu or something? My taskbar already has an icon for power management and that icon has a menu which runs the 'suspend' without me having to enter in a root password. Isn't this preferable?
 
Old 12-08-2007, 05:18 PM   #4
GhostCow
Member
 
Registered: Aug 2007
Posts: 47

Rep: Reputation: 15
solution

this is a nasty bug indeed
i had the exact same problem once
you must understand, the gnome applet uses a set of scripts called pm-utils
to suspend and hibernate etc
these in turn call on s2ram or s2disk.
these scripts use a list of known computer types in some xml list somewhere i forget where
instead of starting to find exactly where the problem is, there is a nice clean work-around:

create a config file: /etc/pm/config containing simply
S2RAM_OPTNS="-f"

this will tell pm utils to use s2ram directly instead of its own scripts.

more can be read @:

http://en.opensuse.org/Pm-utils
 
  


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
slackware + suspend-to-ram? janhe Slackware 7 07-05-2007 11:05 AM
Suspend to RAM problems broxtor Ubuntu 0 03-31-2007 03:40 AM
How to suspend to ram ? I have problems. gkiagia Linux - Laptop and Netbook 3 09-09-2006 04:45 AM
Requirements for Suspend to RAM kushalkoolwal Linux - Laptop and Netbook 15 08-14-2006 10:51 PM
Suspend to RAM/HD question Lake-end Linux - Laptop and Netbook 6 07-05-2005 02:10 AM


All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
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