Results 1 to 2 of 2

Thread: Using s2disk on Battery Critical Level

  1. #1
    Join Date
    Jul 2009
    Beans
    5

    Using s2disk on Battery Critical Level

    Hey, guys

    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:

    SLEEP_MODULE="uswsusp"

    I backed up hal-system-power-hibernate-linux


    mv /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux

    /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux.bak

    and crated a new hal-system-power-hibernate-linux to read

    #!/bin/sh
    /usr/sbin/s2disk

    and I edited /etc/acpi/hibernate.sh to read

    #!/bin/bash
    /usr/sbin/s2disk

    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

    to
    /apps/gnome-power-manager/
    and edited "action_battery_critical" to the value "hibernate"

    /apps/gnome-power-manager/actions

    and edited "critical-battery" to the value "hibernate"

    /apps/gnome-power-manager/general

    and unchecked "use_time_for_policy"

    BUUUUT

    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. Reason: SOLVED!

  2. #2
    Join Date
    Jul 2009
    Beans
    5

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •