Created
May 15, 2012 23:13
-
-
Save shuhaowu/2705895 to your computer and use it in GitHub Desktop.
Thinkpad ACPI Set Stop Charge Script for Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -ne "Changing stop charge threshold from " | |
cat /sys/devices/platform/smapi/BAT0/stop_charge_thresh | tr -d "\n" | |
sudo sh -c "echo $1 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh" | |
echo -ne " to " | |
cat /sys/devices/platform/smapi/BAT0/stop_charge_thresh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment