diff -Nru laptop-mode-tools-1.61/debian/changelog laptop-mode-tools-1.61/debian/changelog --- laptop-mode-tools-1.61/debian/changelog 2013-01-27 00:11:49.000000000 -0700 +++ laptop-mode-tools-1.61/debian/changelog 2013-02-27 13:59:01.000000000 -0700 @@ -1,3 +1,10 @@ +laptop-mode-tools (1.61-2.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Add configuration option to disable checking the battery alarm level. + + -- Mike Roddewig Wed, 27 Feb 2013 13:58:21 -0700 + laptop-mode-tools (1.61-2) unstable; urgency=low * [225fd1e] Disable ethernet based on multiple reports of driver failure diff -Nru laptop-mode-tools-1.61/debian/patches/alarm-disable.patch laptop-mode-tools-1.61/debian/patches/alarm-disable.patch --- laptop-mode-tools-1.61/debian/patches/alarm-disable.patch 1969-12-31 17:00:00.000000000 -0700 +++ laptop-mode-tools-1.61/debian/patches/alarm-disable.patch 2013-02-27 14:01:09.000000000 -0700 @@ -0,0 +1,27 @@ +--- a/etc/laptop-mode/laptop-mode.conf ++++ b/etc/laptop-mode/laptop-mode.conf +@@ -175,6 +175,13 @@ + # + DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1 + ++# ++# Ignore the alarm value reported by your batteries. In some instances a ++# a battery will report an abnormally high alarm value, resulting in data-loss ++# sensitive features being disabled prematurely. ++# ++DISABLE_BATTERY_ALARM_CHECK=0 ++ + + + ############################################################################### +--- a/usr/sbin/laptop_mode ++++ b/usr/sbin/laptop_mode +@@ -815,7 +815,7 @@ + ENOUGH_CHARGE=1 + fi + +- if [ "$ALARM_LEVEL" -ne 0 ] ; then ++ if [ "$ALARM_LEVEL" -ne 0 ] && [ "$DISABLE_BATTERY_ALARM_CHECK" -ne 1 ]; then + if [ "$REMAINING" -le "$ALARM_LEVEL" ] ; then + # Restore the state we had before checking this battery, so that + # this battery does not count as having enough charge. diff -Nru laptop-mode-tools-1.61/debian/patches/debian-changes laptop-mode-tools-1.61/debian/patches/debian-changes --- laptop-mode-tools-1.61/debian/patches/debian-changes 2013-01-27 00:54:27.000000000 -0700 +++ laptop-mode-tools-1.61/debian/patches/debian-changes 2013-02-27 14:01:28.000000000 -0700 @@ -146,3 +146,30 @@ ;; esac elif [ -x logger ]; then +--- laptop-mode-tools-1.61.orig/etc/laptop-mode/laptop-mode.conf ++++ laptop-mode-tools-1.61/etc/laptop-mode/laptop-mode.conf +@@ -175,6 +175,13 @@ MINIMUM_BATTERY_CHARGE_PERCENT=3 + # + DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1 + ++# ++# Ignore the alarm value reported by your batteries. In some instances a ++# a battery will report an abnormally high alarm value, resulting in data-loss ++# sensitive features being disabled prematurely. ++# ++DISABLE_BATTERY_ALARM_CHECK=0 ++ + + + ############################################################################### +--- laptop-mode-tools-1.61.orig/usr/sbin/laptop_mode ++++ laptop-mode-tools-1.61/usr/sbin/laptop_mode +@@ -815,7 +815,7 @@ lmt_main_function () + ENOUGH_CHARGE=1 + fi + +- if [ "$ALARM_LEVEL" -ne 0 ] ; then ++ if [ "$ALARM_LEVEL" -ne 0 ] && [ "$DISABLE_BATTERY_ALARM_CHECK" -ne 1 ]; then + if [ "$REMAINING" -le "$ALARM_LEVEL" ] ; then + # Restore the state we had before checking this battery, so that + # this battery does not count as having enough charge. diff -Nru laptop-mode-tools-1.61/debian/patches/series laptop-mode-tools-1.61/debian/patches/series --- laptop-mode-tools-1.61/debian/patches/series 2013-01-27 00:11:49.000000000 -0700 +++ laptop-mode-tools-1.61/debian/patches/series 2013-02-27 13:59:33.000000000 -0700 @@ -1,2 +1,3 @@ disable-ethernet-e1000e.patch debian-changes +alarm-disable.patch