Package: laptop-mode-tools
Version: 1.23-1
Followup-For: Bug #350512
Here is a patch for resolving the "Deactivating data loss sensitive
features." issue.
Antoine
*** laptop-mode.patch
--- /root/laptop_mode 2006-02-15 21:50:14.000000000 +0100
+++ /usr/sbin/laptop_mode 2006-02-15 21:50:50.000000000 +0100
@@ -601,7 +601,7 @@
if [ "$ACTION" == "discharging" ] ; then
PRESENT_RATE=`cat $BATT_INFO | grep "present
rate:" | sed "s/.* \([0-9][0-9]* \).*/\1/" `
if [[ $PRESENT_RATE -ne 0 ]] ; then
- if (($REMAINING * 60 / $PRESENT_RATE >=
$MINIMUM_BATTERY_MINUTES)) ; then
+ if (($REMAINING * 60 / $PRESENT_RATE <=
$MINIMUM_BATTERY_MINUTES)) ; then
ENOUGH_CHARGE=0
fi
if (($REMAINING * 60 / $PRESENT_RATE >=
$AUTO_HIBERNATION_BATTERY_MINUTES)) ; then
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]