Thinkpad 电池设置 (Ubuntu)

1. 安装下面的包:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo apt-get install tp-smapi-dkms acpi-call-tools

2.执行

sudo gedit /etc/default/tlp

在末尾加入:

# Main battery (values in %)
START_CHARGE_THRESH_BAT0=15
STOP_CHARGE_THRESH_BAT0=100

3. 执行:

sudo tlp setcharge 
重启。

4.查看配置信息:

$ sudo tlp-stat --battery
--- TLP 0.8 --------------------------------------------

+++ ThinkPad Extended Battery Functions
tp-smapi   = active
tpacpi-bat = active

+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/devices/platform/smapi/BAT0/manufacturer               = SANYO
/sys/devices/platform/smapi/BAT0/model                      = 42T4791
/sys/devices/platform/smapi/BAT0/manufacture_date           = 2011-04-13
/sys/devices/platform/smapi/BAT0/first_use_date             = 2011-07-23
/sys/devices/platform/smapi/BAT0/cycle_count                =     35
/sys/devices/platform/smapi/BAT0/design_capacity            =  56160 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capacity         =  40360 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capacity         =  31560 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_percent          =     78 [%]
/sys/devices/platform/smapi/BAT0/remaining_running_time_now = not_discharging [min]
/sys/devices/platform/smapi/BAT0/remaining_charging_time    = not_charging [min]
/sys/devices/platform/smapi/BAT0/power_now                  =      0 [mW]
/sys/devices/platform/smapi/BAT0/power_avg                  =      0 [mW]
/sys/devices/platform/smapi/BAT0/state                      = idle

tpacpi-bat.BAT0.startThreshold                              =     15 [%]
tpacpi-bat.BAT0.stopThreshold                               =    100 [%]
tpacpi-bat.BAT0.forceDischarge                              =      0

参考:

1. http://www.ubuntugeek.com/how-to-improve-ubuntu-laptop-power-management.html

2. http://forum.ubuntu.org.cn/viewtopic.php?f=42&t=456473&start=15

你可能感兴趣的:(ThinkPad,battery)