HotShotDJ
November 18th, 2009, 06:28 PM
Due to a bug (probably in the new DeviceKit-Power module) in Karmic, many laptop users, including System76 laptops, have found that their laptops will not hibernate when the battery is critically low. Instead, the laptops simply loose power, risking data loss and damage to the battery itself.
Fortunately, there is a rather easy "work-around" that will restore your laptop's ability to hibernate at the appropriate time when your battery reaches a critically low state.
Open a terminal and execute the following commands:
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type bool --set /apps/gnome-power-manager/general/use_time_for_policy false
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type int --set /apps/gnome-power-manager/thresholds/percentage_action 5
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type int --set /apps/gnome-power-manager/thresholds/percentage_critical 6
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type int --set /apps/gnome-power-manager/thresholds/percentage_low 10
Unless you have edited these parameters in your regular user account, once you log out and then log back in, these new settings will take effect and will become the default setting for all users. When your battery reaches 10% remaining, you will receive a low battery warning. At 6%, you will receive a battery critical warning. At 5%, your laptop will hibernate. (assuming you have not changed the default action set by System76 Driver).
WARNING: The gnome defaults for percentage_critical and percentage_action are too low! Do not set those values below 6 and 5 respectively or your laptop may not start the hibernation action in time to prevent a power-loss condition. If you have an older battery that is not in good condition, you may want to set these values higher.
ThomasAaron: Is it possible for the System76 Driver developers to add these settings to base_system.py in the System76 Driver. Until the root problem is fixed upstream, these settings should really be the default to prevent users from loosing data or damaging their hardware.
Fortunately, there is a rather easy "work-around" that will restore your laptop's ability to hibernate at the appropriate time when your battery reaches a critically low state.
Open a terminal and execute the following commands:
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type bool --set /apps/gnome-power-manager/general/use_time_for_policy false
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type int --set /apps/gnome-power-manager/thresholds/percentage_action 5
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type int --set /apps/gnome-power-manager/thresholds/percentage_critical 6
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type int --set /apps/gnome-power-manager/thresholds/percentage_low 10
Unless you have edited these parameters in your regular user account, once you log out and then log back in, these new settings will take effect and will become the default setting for all users. When your battery reaches 10% remaining, you will receive a low battery warning. At 6%, you will receive a battery critical warning. At 5%, your laptop will hibernate. (assuming you have not changed the default action set by System76 Driver).
WARNING: The gnome defaults for percentage_critical and percentage_action are too low! Do not set those values below 6 and 5 respectively or your laptop may not start the hibernation action in time to prevent a power-loss condition. If you have an older battery that is not in good condition, you may want to set these values higher.
ThomasAaron: Is it possible for the System76 Driver developers to add these settings to base_system.py in the System76 Driver. Until the root problem is fixed upstream, these settings should really be the default to prevent users from loosing data or damaging their hardware.