![]() |
|
|||||||
| Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
A Carafe of Ubuntu
![]() |
If the normal suspend and hibernate buttons don't work, you can try this little hack.
First get uswsusp: Code:
sudo apt-get install uswsusp Code:
sudo s2ram Code:
sudo s2ram --force Code:
sudo s2disk Note: This part is for FEISTY AND GUTSY ONLY!!! The scripts in Edgy are stored in "/usr/share/hal/scripts" and have different names AFAIK. If someone running Edgy could tell me what the files names are I will add it here. First, backup your original files: Code:
sudo cp /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux.bak sudo cp /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux.bak hal-system-power-suspend-linux Code:
sudo gedit /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux Code:
#!/bin/sh /sbin/s2ram --force Code:
sudo gedit /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux Code:
#!/bin/sh /sbin/s2disk Good luck! Last edited by Bluecircle; June 24th, 2007 at 05:03 PM.. |
|
|
|
|
|
#2 |
|
Ubuntu Geezer !
![]() Join Date: Jan 2007
Location: London, UK
Beans: 3,520
Ubuntu Development Release
|
Re: [HowTo]: Fix suspend and hibernate on laptops
I know few people having this problem in feisty I will ask them to try this.
On my laptops there are no problems either on Edgy or Feisty. Good work though.
__________________
Dell vostro 1400 Core2DUO Laptop, Ubuntu 10.04 Samsung N130 netbook - UNR 10.04, Asus Eee 2GB netbook - Ubuntu 9.10 server zoneminder HTC HERO- Elelinux-6.2.0-RC0-Hero rom, cpu 749mhz |
|
|
|
|
|
#3 |
|
5 Cups of Ubuntu
![]() Join Date: Dec 2006
My beans are hidden!
|
Re: [HowTo]: Fix suspend and hibernate on laptops
Excellent!
This works on my HP Pavilion DV5215us, with xgl and beryl enabled on Feisty But, after I hibernate or suspend, my Hibernate and Suspend buttons from the Log off menu are gone! UPDATE: Sound didn't work, I have to reboot to get it back. Last edited by Unnicknamed; June 15th, 2007 at 07:50 PM.. |
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: Jun 2007
Beans: 2
|
Re: [HowTo]: Fix suspend and hibernate on laptops
Thanks, Bluecircle. The kernalspace (?) suspend/resume stuff (what comes by default) never worked properly on my Toshiba A105. I spent some time long ago trying to figure it out, and eventually because satisfied with only hibernate.
A couple weeks ago, after some update undoubtedly, fan control started to be flaky on resume---the laptop would sometimes get VERY hot! But following your guide, now suspend and hibernate both seem to work fine. The only strange thing I get is that upon resume, Gnome Power Manager reports that there was a problem suspending. So I have to click a checkbox to make that disappear. |
|
|
|
|
|
#5 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Apr 2007
Beans: 2,203
Ubuntu
|
Re: [HowTo]: Fix suspend and hibernate on laptops
See also this thread
http://ubuntuforums.org/showthread.php?t=417964&page=2 Probably, the permanent installation of the alternative hibernate routine is safer the way described in the link. I have applied it with success (Dell Latitude D810) under Feisty
__________________
Ubuntu on a Dell Latitude 800 1 GB RAM, ATI Radeon video, Sigmatel Audio |
|
|
|
|
|
#6 |
|
Way Too Much Ubuntu
![]() Join Date: Jun 2006
Location: California
Beans: 262
Ubuntu 10.04 Lucid Lynx
|
Re: [HowTo]: Fix suspend and hibernate on laptops
Many thanks Bluecircle, I will give a try and report back.
|
|
|
|
|
|
#7 |
|
Spilled the Beans
![]() |
Re: [HowTo]: Fix suspend and hibernate on laptops
tnx!! works fine here
|
|
|
|
|
|
#8 |
|
Gee! These Aren't Roasted!
![]() Join Date: Aug 2006
Location: Braunschweig, Germany
Beans: 175
Ubuntu Jaunty Jackalope (testing)
|
Re: [HowTo]: Fix suspend and hibernate on laptops
Seems to work fine here too. I have an Asus M2400N Centrino Laptop. It's like 4 years old now.
I will have to play around with it a little more, but the test run I just did went fine. Thank you very much! |
|
|
|
|
|
#9 |
|
Way Too Much Ubuntu
![]() Join Date: Jun 2006
Location: California
Beans: 262
Ubuntu 10.04 Lucid Lynx
|
Re: [HowTo]: Fix suspend and hibernate on laptops
Thanks for the post.
I tried s2disk and found it resumes much faster (50 secs v 84 secs), than the default hibernate on my Compaq n610c. So far s2ram does work on this system as i can not resume. I think the ATI graphics controller is not recovering correctly and I will try this again when the later uswsusp0.6 gets release as this adds more options such as -v (save the PCI config space for the VGA card). If anyone has a Compaq n610c and has s2ram working, please let me know what settings you are using and also report the s2ram -i output to the developers, thanks. I will try s2disk and s2ram on my work HP nw8440 laptop soon. |
|
|
|
|
|
#10 | |
|
A Carafe of Ubuntu
![]() |
Re: [HowTo]: Fix suspend and hibernate on laptops
No luck on my Dell inspiron 8600--suspend and hibernate both worked for me in Dapper, but not in Feisty. I've tried several solutions listed here in the forums, but no dice. Everything seems to go down nicely, even with the commands listed in this thread, but when I power up, I get nothing after grub. Does anybody know why the solution listed in this thread works? I'd really like to track down this problem and get it working. Otherwise, I'll have to try and install Dapper again or Edgy. Thanks. Here's my sudo s2ram -i output, if it means anything...
Quote:
Last edited by teasum; June 22nd, 2007 at 05:49 PM.. |
|
|
|
|
| Bookmarks |
| Tags |
| hibernate fails, suspend fails |
| Thread Tools | |
| Display Modes | |
|
|