User Tools

Site Tools


en:linux:scripts:set_battery_thresholds

/usr/sbin/set_battery_thresholds

Script to keep battery level in within given range (to extend its lifespan).

#!/bin/bash

# set the battery charging thresholds to extend battery lifespan
echo 50 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 80 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
en/linux/scripts/set_battery_thresholds.txt · Last modified: 2010/01/19 14:19 (external edit)