home · contact · privacy
Add second battery thresholds.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 12 Dec 2016 10:32:04 +0000 (11:32 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 12 Dec 2016 10:32:04 +0000 (11:32 +0100)
jessie_postinstall.sh

index 0a9abc241350b891dd5dc3cccb4d2f08950c209e..6d12cef1815eb6bf1ab4d1055b2abfc2a904d04a 100755 (executable)
@@ -118,6 +118,10 @@ if [ "$1" = "thinkpad" ]; then
 '#START_CHARGE_THRESH_BAT0/' /etc/default/tlp
     sed -i 's/^#STOP_CHARGE_THRESH_BAT0/STOP_CHARGE_THRESH_BAT0=95 '\
 '#STOP_CHARGE_THRESH_BAT0/' /etc/default/tlp
+    sed -i 's/^#START_CHARGE_THRESH_BAT1/START_CHARGE_THRESH_BAT0=10 '\
+'#START_CHARGE_THRESH_BAT1/' /etc/default/tlp
+    sed -i 's/^#STOP_CHARGE_THRESH_BAT1/STOP_CHARGE_THRESH_BAT0=95 '\
+'#STOP_CHARGE_THRESH_BAT1/' /etc/default/tlp
     sed -i 's/^#DEVICES_TO_DISABLE_ON_STARTUP/DEVICES_TO_DISABLE_ON_STARTUP='\
 '"bluetooth wifi wwan" #DEVICES_TO_DISABLE_ON_STARTUP/' /etc/default/tlp
     tlp start