LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-26-2007, 07:05 AM   #1
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Rep: Reputation: 31
how to configure gnome suspend and hibernate?


gnome's power manager fails to suspend and hibernate my laptop. I have managed to get suspending to ram working with s2ram.

Code:
# s2ram
Machine is unknown.
This machine can be identified by:
    sys_vendor   = "Acer, inc."
    sys_product  = "Aspire 5920G    "
    sys_version  = "Not Applicable"
    bios_version = "v0.3505"
This works:
Code:
# s2ram -f -a 1    # -a 1 is required otherwise video doesn't post back correctly all the time
How do I get gnome's power manager to work?
 
Old 09-26-2007, 07:48 AM   #2
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Rep: Reputation: 16
Did you patch the kernel with the suspend2 patches? As soon as I did that, it automatically worked (gentoo), also I think you need acpid running and you need the hibernate-script, do you have all that?
 
Old 09-26-2007, 08:08 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
TC, what version Debian on the laptop?

teek, he doesn't need to patch his kernel.

I don't have my laptop up at the moment, but iirc I had to modify /etc/hibernate/ususpend-ram.conf:
Quote:
USuspendMethod ram
USuspendRamForce yes
USuspendRamAcpiSleep 1
Also double-check the uswsusp package is installed.

Last edited by AlucardZero; 09-26-2007 at 08:09 AM.
 
Old 09-26-2007, 08:36 AM   #4
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by AlucardZero View Post
TC, what version Debian on the laptop?
Debian etch

Quote:
Originally Posted by AlucardZero View Post
I don't have my laptop up at the moment, but iirc I had to modify /etc/hibernate/ususpend-ram.conf:


Also double-check the uswsusp package is installed.
the uswsusp package is installed and I changed /etc/hibernate/ususpend-ram.conf to force and acpi to 1 but it still didn't work. I guess i'll look into it more.
 
Old 09-26-2007, 10:18 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
oh, also, the magic incantation that solved this for me at one point was apt-get install powersaved. YMMV however, so take note of what that uninstalls, and if powersaved changes nothing, reinstall what it uninstalled.
 
Old 10-08-2009, 10:57 AM   #6
andy16666
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
I found an answer to this question though a great deal of trial and error. The power management howto probably should have a separate section for those who use GNOME, because gnome uses HAL, negating the need for acpid, hibernate-scripts and other traditional solutions. GNOME help seems to contain info on how to debug all situations expect there pm-utils is missing. In that case, hal will have the ability to suspend as will GNOME, but not the means to actually carry out the action.

To get GNOME to hibernate all you need is:
- kernel support for ACPI suspend
- hal installed and hald running
- gnome compiled with hal support (USE="hal")
- pm-utils must be installed: it is needed by HAL in order to suspend, and probably should be (but isn't) pulled automatically when HAL is merged.

No configuration should be required and none was in my case once these elements are in place. GNOME should now be able to put the computer to sleep.

Unfortunately if acpid is running under default configuration the computer may also duplicate some of the actions taken by GNOME, causing pseudo-unpredictable things to happen. In my case this caused the computer to shut down and suspend at the same time, which took me quite a while to debug. I highly recommend NOT installing acpid at all if you choose to use HAL/GNOME.

Alternatives you should probably remove:
-> hibernate-ram doesn't work very well...it's buggy. For some reason it worked once for me and never worked again, and over 10 seconds to enter standby mode. If you have installed hibernate-script it is now redundant, run emerge -C hibernate-script to remove it.
-> s2ram doesn't seem to work at all for me, period. With HAL working and pm-utils it is also redundant. If you have installed the "suspend" package, you can remove this with emerege -C suspend.
-> If you haven't specifically configured acpid not interfere with things, it's best just to remove it as it is also now redundant, and will most likely do things you don't want if not carefully configured. Remove it with emerge -C acpid

GNOME should now be able to properly suspend/hibernate your system.
 
Old 02-19-2010, 11:36 AM   #7
mkultra329
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
so... not sure if this belongs here, but here goes:

I have gnome/hal/supsend working just fine. But when I run another WM (specifically Enlightenment dr16) there is no suspend option and closing the lid of my laptop no longer suspends the system. What is different? What files should I look at that are apparently already handled fine by gnome that aren't being looked at when I'm in another WM? Any direction is greatly appreciated. Thanks!
 
  


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
Hibernate/suspend with two swap partitions ordealbyfire83 Linux - Hardware 8 07-30-2007 01:11 PM
Possible Suspend/HIbernate fix angryfirelord Linux - Hardware 0 07-20-2007 07:46 PM
Suspend/Hibernate malfunctioning(Debian) pramodmudrakarta Linux - Desktop 0 07-17-2007 04:54 AM
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 11:21 AM
suspend a.k.a hibernate on kernel 2.6, how to use it? demmylls Linux - General 1 03-06-2004 01:06 PM


All times are GMT -5. The time now is 01:13 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