LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   suspend to ram and s2ram (https://www.linuxquestions.org/questions/debian-26/suspend-to-ram-and-s2ram-605251/)

radiodee1 12-07-2007 02:50 PM

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.

Dutch Master 12-07-2007 05:48 PM

Any cli command can be put in a file, made into a script and executed from there.

radiodee1 12-08-2007 06:40 AM

Quote:

Originally Posted by Dutch Master (Post 2983601)
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?

GhostCow 12-08-2007 04:18 PM

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


All times are GMT -5. The time now is 12:19 PM.