Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-26-2007, 06:05 AM
|
#1
|
|
Member
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217
Rep:
|
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?
|
|
|
|
09-26-2007, 06:48 AM
|
#2
|
|
Member
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110
Rep:
|
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?
|
|
|
|
09-26-2007, 07:08 AM
|
#3
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,476
|
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 07:09 AM.
|
|
|
|
09-26-2007, 07:36 AM
|
#4
|
|
Member
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217
Original Poster
Rep:
|
Quote:
Originally Posted by AlucardZero
TC, what version Debian on the laptop?
|
Debian etch
Quote:
Originally Posted by AlucardZero
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.
|
|
|
|
09-26-2007, 09:18 AM
|
#5
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,476
|
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.
|
|
|
|
10-08-2009, 09:57 AM
|
#6
|
|
LQ Newbie
Registered: Oct 2009
Posts: 1
Rep:
|
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.
|
|
|
|
02-19-2010, 10:36 AM
|
#7
|
|
LQ Newbie
Registered: Feb 2010
Posts: 7
Rep:
|
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!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:24 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|