from:
http://www.ubuntugeek.com/how-to-improve-ubuntu-laptop-power-management.html
and
http://linrunner.de/en/tlp/docs/tlp-configuration.html
- 將PPA加入系統
sudo add-apt-repository ppa:linrunner/tlp - 安裝套件
sudo apt-get install tlp tlp-rdw smartmontools ethtool
若為ThinkPad筆電,還需安裝以下
sudo apt-get install tp-smapi-dkms acpi-call-tools - 執行以下指令開啟TLP
sudo tlp start
執行 sudo tlp-stat 檢查目前設定 - 編輯設定檔 /etc/default/tlp
參考http://linrunner.de/en/tlp/docs/tlp-configuration.html的說明,以下為我有更動的項目:- #Select a cpu frequency scaling governor: ondemand/powersave/performance/conservative
# Important:
# - You *must* disable your distribution's governor settings or conflicts will occur
# - ondemand is sufficient for *almost all* workloads, you should know what you're doing!
CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=ondemand - 硬碟待機停止時間:
# Hard disk spin down timeout:
# 0: spin down disabled
# 1..240: timeouts from 5s to 20min (in units of 5s)
# 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
# (see 'man hdparm' for details)
DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
DISK_SPINDOWN_TIMEOUT_ON_BAT="60 0" - 藍牙較少使用,因此設定預設為關閉
# Radio devices to disable on startup: bluetooth wifi wwan
DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"
- #Select a cpu frequency scaling governor: ondemand/powersave/performance/conservative