bopolissimus X platypus Jr wrote:

On Mon, 2006-02-27 at 13:21 +0800, Jay Jesus Amorin wrote:
at first hibernate seems to be ok until i update my ubuntu. when i got my ubuntu to hibernate it would just logout. why? got any tweaks on this? BTW, i'm using ubuntu 5.10.

what do you use for hibernate? is that hibernate to RAM (with the battery trickle feeding memory so that memory doesn't go away) or is that suspend to swap?

im using acpi_sleep.

i use suspend to swap, so my kernel cmdline has:

resume=/dev/hda3

and then i have a suspend script that does the ff:

== start of script

#!/bin/bash

# mysql just won't susp nicely.
service mysqld stop;

echo shutdown > /sys/power/disk; echo disk > /sys/power/state

service network stop;
service network start;
dhclient eth0;
ifconfig vmnet8 192.168.2.1
ifconfig lo 127.0.0.1

server mysqld start;

== end of script

you need software suspend built into your kernel, of course.
i don't know what the recommended size of swap is, mine is around
200MB larger than my RAM. works great, although mandriva's kernel 2.6.12-15 (with tweaks) starts slower than the previous
version (i forget what it was).  still faster than booting from
scratch though, and since i mostly use it on long trips, when
I use cpufreq to slow down the CPU (to save battery) and because
i can safely swap batteries (i don't think hibernate to RAM works
that way), it works great.

http://monotremetech.blogspot.com/2005/11/swsusp-very-useful.html

tiger

software suspend is already enable in my kernel, i think there is problem with the configuration.
can anyone help.

thanks


Jay Jesus Amorin, CCNA
Linux Registered User # 393338


--
Life is one big road with lots of signs. So when you riding through the ruts, 
don't complicate your mind. Flee from hate, mischief and jealousy. Don't bury 
your thoughts, put your vision to reality . Wake Up and Live!  --Robert Nesta 
Marley--

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to