Using s2disk on Battery Critical Level
I am using Ubuntu 10.04 and have had hibernate problems for a while on my
Dell Latitude D620
I installed uswsusp and tested out s2disk from the command line and it worked!
I edited some config files and now when I select Hibernate from the menu it works
but I can't get it to use s2disk when the battery is critically low
Here's a summary of the files I edited and in their order
I edited the file /etc/pm/config.d/00_sleep_module
and added the line:
I backed up hal-system-power-hibernate-linux
and crated a new hal-system-power-hibernate-linux to read
and I edited /etc/acpi/hibernate.sh to read
I also did chmod 755 hibernate.sh
***So now, when I select Hibernate from the menu. It uses s2disk and that's GREAT****
but I can't get it to use s2disk when the battery is critically low!!!!
I've gone to System -> Preferences -> Power Management
Gone to the "On Battery Power" tab
and changed "When Battery Power is Critically Low" to "Hibernate"
I also went into gconf-editor
and edited "action_battery_critical" to the value "hibernate"
and edited "critical-battery" to the value "hibernate"
and unchecked "use_time_for_policy"
When my battery hits low power I get a message box saying:
"Laptop battery is critically low."
"Computer will hibernate very soon unless it is plugged in"
But when the power gets too low. My laptop just dies. It doesn't hibernate or doesn't use s2disk
Does anyone know how I can get s2disk to run when battery level is critically low?????
Last edited by tony1grendel; October 17th, 2011 at 10:34 PM.
Re: Using s2disk on Battery Critical Level
NEVERMIND! I Got it work
the file /etc/pm/config.d/00_sleep_module
should actually be
edited the file /etc/pm/config.d/00sleep_module
with only one underscore