TLP - Linux Advanced Power Management
Youtube Tutorial - tlp tutorial
TLP 是一款進階電源管理的工具, 如果沒特別需求, 你甚至可以在安裝完它之後,
直接忘記他的存在, 然後你會發現你的電池續航力提昇了不少 😆
但有幾個地方要注意 ❗❗
首先是沒有 GUI 界面可以調整, 再來是筆電比較適合使用 😄
安裝文件可參考 tlp-installation,
Ubuntu 安裝方法(其他 distro 請參考上方連結),
先加入 Package Repository (建議執行此步驟, 確保安裝版本是最新的)
sudo add-apt-repository ppa:linrunner/tlp
sudo apt update安裝 packages
tlp (PPA or universe) – Power saving
tlp-rdw (PPA or universe) – optional – Radio Device Wizard
sudo apt install tlp tlp-rdwThinkPads only
acpi-call-dkms (universe) – optional
external kernel module providing battery charge thresholds and recalibration for newer ThinkPads (X220/T420 and later)
sudo apt install acpi-call-dkmstp-smapi-dkms (PPA or universe) – optional
external kernel module providing battery charge thresholds, recalibration and specific status output in tlp-stat for older ThinkPads
sudo apt install tp-smapi-dkms如果需要查看硬碟健康檢查資料, 請安裝 smartmontools
sudo apt-get install smartmontoolsTLP 1.3 and higher 設定檔在以下的路徑, 官方文件 tlp-configuration (包含參數的說明)
sudo cat /etc/tlp.conf附上我自己的設定檔 /etc/tlp.conf 😄
查看全部狀態指令
sudo tlp-stat查看 tlp-stat 有哪些參數可以使用
sudo tlp-stat --help查看電池資訊
sudo tlp-stat -b查看硬碟資訊
sudo sudo tlp-stat -d注意, 如果你這邊沒有資訊,代表硬碟的 id 錯了,
請使用以下指令查詢正確的硬碟 id
sudo tlp diskid以這邊舉例, 所以要把 /etc/tlp.conf 改成 DISK_DEVICES="nvme0n1"
查看系統資訊
sudo tlp-stat -s查看溫度和風扇資訊
sudo tlp-stat -t追蹤模式, 查看 tlp 執行 log
sudo tlp-stat -T查看設定檔
sudo tlp-stat -c查看 PCI 裝置
sudo tlp-stat -e查看顯卡資訊
sudo tlp-stat -g查看 USB 資料
sudo tlp-stat -u
查看警告資訊
sudo tlp-stat -w手動修改 Battery mode
sudo tlp bat手動修改 AC Mode
sudo tlp ac注意, 手動修改會在下一次重開機的時候自動失效.








