LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   hibernate ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/hibernate-ubuntu-355177/)

alaios 08-20-2005 09:17 AM

hibernate ubuntu
 
Hi do u know how i can hibernate ubuntu even from xfce or console?

cement_head 12-04-2006 06:12 AM

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

belda 12-14-2006 03:45 AM

well i think it is more complicated, for example, i cant get it to work with the nvidia module

cement_head 12-15-2006 06:43 AM

http://doc.gwos.org/index.php/Suspend2

deadlinx 12-16-2006 12:39 PM

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

cement_head 12-17-2006 06:58 AM

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

Micro420 12-17-2006 08:26 AM

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.

esaym 12-19-2006 09:50 AM

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?

deadlinx 12-20-2006 05:52 AM

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

thelen 12-25-2006 05:31 PM

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.

deadlinx 12-27-2006 11:30 AM

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

cement_head 12-28-2006 06:10 AM

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

deadlinx 12-29-2006 11:47 AM

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

cement_head 12-30-2006 01:01 PM

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...

deadlinx 03-27-2007 11:34 AM

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


All times are GMT -5. The time now is 08:51 AM.