打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
How To Improve Laptop Battery Life And Usage In Linux Using TLP - See more at: http://www.unixmen.c

TLP is an advanced power management tool for Linux that gives the settings and tweaks to enhance your existing power management automatically without the need to know every technical details. It is purely a command-line tool and doesn’t have a GUI. It should work on almost all laptops.

TLP does not replace the existing power management of your Linux installation, but it enhances the existing it. TLP applies its settings upon system startup and on every change of the power source. TLP packages are available almost for all distributions such as Arch Linux, Debian, RH Fedora, Gentoo, OpenSUSE and Ubuntu.

Features -

Settings depending on the power source:

  • Kernel laptop mode and dirty buffer timeouts
  • Processor frequency scaling including “turbo boost”/”turbo core”
  • Power aware process scheduler for multi-core/hyper-threading
  • Hard disk advanced power management level and spin down timeout (per disk)
  • SATA aggressive link power management (ALPM)
  • PCI Express active state power management (PCIe ASPM) – Linux 2.6.35 and above
  • Runtime power management for PCI(e) bus devices – Linux 2.6.35 and above
  • Radeon KMS power management – Linux 2.6.35 and above, not fglrx
  • Wi-fi power saving mode – depending on kernel/driver
  • Power off optical drive in drive bay (on battery)

Additional functions:

  • I/O scheduler (per disk)
  • USB auto-suspend with blacklist
  • Audio power saving mode – hda_intel, ac97
  • Enable or disable integrated wi-fi, bluetooth or wwan devices upon system startup and shutdown
  • Restore radio device state on system startup (from previous shutdown).
  • Radio device wizard: switch radios upon network connect/disconnect and dock/undock
  • Disable Wake On LAN
  • WWAN state is restored after suspend/hibernate
  • Untervolting of Intel processors – requires kernel with PHC-Patch
  • Battery charge thresholds – ThinkPads only
  • Recalibrate battery – ThinkPads only

 

Install TLP on Ubuntu/Linux Mint

Before installing TLP, make sure that you have removed the user specific power save settings

and scripts (for example in /etc/rc.local), otherwise expect unpredictable results and also remove laptop-mode-tools:

sk@sk:~$ sudo apt-get remove laptop-mode-tools

Add the following TLP PPA:

sk@sk:~$ sudo add-apt-repository ppa:linrunner/tlp

Update the software sources list:

sk@sk:~$ sudo apt-get update

Now install TLP:

sk@sk:~$ sudo apt-get install tlp tlp-rdw smartmontools ethtool

If you are using IBM Thinkpad, run the following command:

sk@sk:~$ sudo apt-get install tlp tlp-rdw smartmontools ethtool tp-smapi-dkms acpi-call-tools

Start TLP

Start TLP Service for the first time only. You don’t need to start it on every reboot, it will start automatically:

sk@sk:~$ sudo tlp start

Test TLP Status

Enter the following command to see the detailed output of TLP:

sk@sk:~$ sudo tlp stat

You will see a output something like below:

--- TLP 0.3.9 --------------------------------------------+++ Configured Settings: /etc/default/tlpTLP_ENABLE=1DISK_IDLE_SECS_ON_AC=0DISK_IDLE_SECS_ON_BAT=2MAX_LOST_WORK_SECS_ON_AC=15MAX_LOST_WORK_SECS_ON_BAT=60SCHED_POWERSAVE_ON_AC=0SCHED_POWERSAVE_ON_BAT=1NMI_WATCHDOG=0DISK_DEVICES="sda sdb"DISK_APM_LEVEL_ON_AC="254 254"DISK_APM_LEVEL_ON_BAT="128 128"SATA_LINKPWR_ON_AC=max_performanceSATA_LINKPWR_ON_BAT=min_powerPCIE_ASPM_ON_AC=performancePCIE_ASPM_ON_BAT=powersaveRADEON_POWER_PROFILE_ON_AC=highRADEON_POWER_PROFILE_ON_BAT=lowWIFI_PWR_ON_AC=1WIFI_PWR_ON_BAT=5WOL_DISABLE=YSOUND_POWER_SAVE=1SOUND_POWER_SAVE_CONTROLLER=YBAY_POWEROFF_ON_BAT=0BAY_DEVICE="sr0"RUNTIME_PM_ON_AC=onRUNTIME_PM_ON_BAT=autoRUNTIME_PM_ALL=0USB_AUTOSUSPEND=1RESTORE_DEVICE_STATE_ON_STARTUP=0+++ System InfoSystem         = Hewlett-Packard F.02 HP 550BIOS           = 68MVU Ver. F.02Release        = Ubuntu 13.04Kernel         = 3.8.0-26-generic x86_64/proc/cmdline  = BOOT_IMAGE=/vmlinuz-3.8.0-26-generic root=/dev/mapper/lubuntu--vg-root ro quiet splash vt.handoff=7+++ System StatusTLP power save = enabledpower source   = ac[...]

For other distribution installation instructions, refer the official website.

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
TLP:一个可以延长 Linux 笔记本电池寿命的高级电源管理工具
PCIe扫盲——Power Management概述(二)——链路唤醒与PME产生
Linux电源管理(1)
Win8比Win7强在哪?
群晖通过定时任务判断停电关机
【转】Android]Android虚拟电源管理驱动
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服