Power Management & Temperature Monitor for My ThinkPad | Ubuntu

Environment
  • Lenovo ThinkPad x61
  • Ubuntu 14.04 x64


Content
Power management
Powertop
$ sudo apt-get install powertop

$ powertop --html=powertop.html


Read the powertop.html, go to tab - "Tuning"

Copy the part of scripts and save it to /etc/rc.local



TLP
$ sudo add-apt-repository ppa:linrunner/tlp
$ sudo apt-get update
$ sudo apt-get install tlp tlp-rdw
Note: Starting with Ubuntu Wily TLP is provided via the official Ubuntu repos. Only newer versions will be published here. More info: https://launchpad.net/~linrunner/+archive/ubuntu/tlp


As a ThinkPad:
$ sudo apt-get install tp-smapi-dkms acpi-call-dkms

Start TLP firstly:
$ sudo tlp start

To show TLP setting:
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1


To show a battery information:
$ sudo tlp-stat -b | more
--- TLP 0.7 ------------------------------------
--------

+++ ThinkPad Extended Battery Functions
tp-smapi = active
tpacpi-bat = inactive (unsupported hardware)

+++ ThinkPad Battery Status: BAT0 (Main / Intern
al)
/sys/devices/platform/smapi/BAT0/manufacturer
= SONY
/sys/devices/platform/smapi/BAT0/model
= 42T4776
/sys/devices/platform/smapi/BAT0/manufacture_dat
e = 2010-11-05
/sys/devices/platform/smapi/BAT0/first_use_date
= 2010-12-30
/sys/devices/platform/smapi/BAT0/cycle_count
= 47
/sys/devices/platform/smapi/BAT0/design_capacity
= 74880 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capac
ity = 74880 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capac
ity = 74880 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_perce
nt = 100 [%]
/sys/devices/platform/smapi/BAT0/remaining_runni
ng_time_now = not_discharging [min]
/sys/devices/platform/smapi/BAT0/remaining_charg
ing_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/start_charge_th
resh = 96 [%]
/sys/devices/platform/smapi/BAT0/stop_charge_thr
esh = 100 [%]
/sys/devices/platform/smapi/BAT0/force_discharge
= 0


Psensor | Temperature Monitor
$ sudo atp-get install psensor


References


Update
  • 2016-Oct-21