LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-20-2005, 10:17 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,197

Rep: Reputation: 45
hibernate ubuntu


Hi do u know how i can hibernate ubuntu even from xfce or console?
 
Old 12-04-2006, 07:12 AM   #2
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by alaios
Hi do u know how i can hibernate ubuntu even from xfce or console?
Code:
sudo hibernate
I think you have to have "HIBERNATE" install. You defintely need to have to "HAL" installed.

- CH
 
Old 12-14-2006, 04:45 AM   #3
belda
LQ Newbie
 
Registered: Dec 2006
Posts: 15

Rep: Reputation: 0
well i think it is more complicated, for example, i cant get it to work with the nvidia module
 
Old 12-15-2006, 07:43 AM   #4
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Rep: Reputation: 15
http://doc.gwos.org/index.php/Suspend2
 
Old 12-16-2006, 01:39 PM   #5
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
hibernation and drivers

Hi,

Remember that if you use ATI or NVIDIA drivers I'll get in trouble when you restore the nibernated session.

deadlinx
 
Old 12-17-2006, 07:58 AM   #6
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by deadlinx
Hi,

Remember that if you use ATI or NVIDIA drivers I'll get in trouble when you restore the nibernated session.

deadlinx

Not necessarily. you can STW and find many workarounds. It's usually a hardware specific problem.

- CH
 
Old 12-17-2006, 09:26 AM   #7
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Good luck getting hibernate to work. I have Ubuntu on 4 systems and none of them can hibernate. The only one that hibernates in and out is using the new Ubuntu 7.04 Alpha release.
 
Old 12-19-2006, 10:50 AM   #8
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Rep: Reputation: 32
Quote:
Originally Posted by Micro420
Good luck getting hibernate to work. I have Ubuntu on 4 systems and none of them can hibernate. The only one that hibernates in and out is using the new Ubuntu 7.04 Alpha release.
So I guess suspend is generally a better idea?
 
Old 12-20-2006, 06:52 AM   #9
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
Hibernate always works in these ways

Quote:
Originally Posted by Micro420
Good luck getting hibernate to work. I have Ubuntu on 4 systems and none of them can hibernate. The only one that hibernates in and out is using the new Ubuntu 7.04 Alpha release.
Hi,

I'm using Ubuntu since the 4.10 and I've installed it many times on different machines.
I use these procedures and I never had problem in hibernating machines!


Hibernate works perfectly with NVIDIA and ATI drivers, it's sufficient you digit:

sudo /etc/hibernate.sh

That's all, quite simple.






If you use Xorg drivers you have no problems in hibernating your machine, just digit, as root:

echo 4 > /proc/acpi/sleep

"As root" means:

sudo su -

and then:

echo -n 4 > /proc/acpi/sleep


This procedure is ncessary 'cause a:

sudo echo 4 > /proc/acpi/sleep

obviously doesn't work!




If you want to hibernate using sudo you should use this "hack":

echo -n 4 | sudo tee /proc/acpi/sleep





If you build your own kernel remeber to add, at the end of the kernel line in
/boot/grub/menu.lst

resume=/dev/nameoftheswappartition

Find a line like this:

kernel /boot/vmlinuz-2.6.18 root=/dev/hda1 ro

and add the swap partition from which you'll restore your session:

kernel /boot/vmlinuz-2.6.18 root=/dev/hda1 resume=/dev/hda2 ro

The swap should be the double size of your RAM MB or you could have space problems when your machine saves files to disk for hibernating.



I hope this helps,

sincerely,

deadlinx

Last edited by deadlinx; 12-20-2006 at 06:55 AM.
 
Old 12-25-2006, 06:31 PM   #10
thelen
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
As cement head said, using
(sudo) apt-get install hibernate

will download and install the hibernate package. you can then run it with
(sudo) hibernate

you will have to use sudo obviously if you are on ubunutu and have no set it up differently.
 
Old 12-27-2006, 12:30 PM   #11
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
unuseful...

Quote:
Originally Posted by thelen
As cement head said, using
(sudo) apt-get install hibernate

will download and install the hibernate package. you can then run it with
(sudo) hibernate

you will have to use sudo obviously if you are on ubunutu and have no set it up differently.
Hi,

maybe cement head doesn't know hibernate is installed by default in Ubuntu
...
maybe cement head doesn't know hibernate can be launched in different ways
...

deadlinx

Last edited by deadlinx; 12-27-2006 at 12:32 PM.
 
Old 12-28-2006, 07:10 AM   #12
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Rep: Reputation: 15
Exclamation

Hi,

"Hibernate" is installed by default in Ubuntu. The hibernate script that is called by $sudo hibernate after hibernate is manually installed by Synaptic is the script originally written for Software Suspend (ver 1), or swsusp [this is my understanding].

Installing the hibernate script will allow you to configure more options. If Hibernate, or Suspend works without manually installing hibernate, then you're home free and no need to muck with all of this.

For example, most Sony Viao's with nVIDIA cards are supposedly capable of hibernating without installing additional software. However, in many cases where "hibernate" was not manually installed the "Suspend" (Suspend-to-RAM) option is not available.

- CH

Last edited by cement_head; 12-28-2006 at 07:12 AM.
 
Old 12-29-2006, 12:47 PM   #13
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
what about news

Quote:
Originally Posted by cement_head

"Hibernate" is installed by default in Ubuntu.
[cut]
- CH
Hi,
Yes, I know.

Quote:
Originally Posted by cement_head

Installing the hibernate script will allow you to configure more options. If Hibernate, or Suspend works without manually installing hibernate, then you're home free and no need to muck with all of this.

- CH
of course.

The aim of my posts is saying the majority of machines I used don't need any additional software to hibernate then I sent an exhaustive explanation about my experiences in successfully hibernating different machines.

My last post is not referred to you, cement_head, I simply underlined the nonsense of thelen's post: there's no additional details or experiences or anything new and useful, it's just a copy&paste.

Sincerely,

deadlinx
 
Old 12-30-2006, 02:01 PM   #14
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Rep: Reputation: 15
yeah that's cool. actually, I didn't know that hibernate was initally installed on machines (or supported) until I started to muck with all this stuff. Never hurts to re-iterate things as someone else may read this and could help them.

have a good new year...
 
Old 03-27-2007, 12:34 PM   #15
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by cement_head
Never hurts to re-iterate things as someone else may read this and could help them.

have a good new year...

Hi,

you're right, I was not so friendly in my recent post,
please be patient --> too much caffeine ;-)

sincerely

deadlinx
 
  


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 prabhakar_kushwaha Linux - Software 1 10-21-2005 09:28 AM
Cant hibernate 9.3 alaios SUSE / openSUSE 20 08-18-2005 01:08 PM
Can I Hibernate? ernesto_cgf Linux - Software 3 12-23-2004 03:22 AM
Hibernate How To... ???? trey85stang Linux - Laptop and Netbook 3 05-12-2004 08:07 PM
hibernate demmylls Linux - General 3 09-12-2003 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration