Ubuntu18 short battery life solution: install and use tlp, disable independent display

install tlp

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp

After the installation is successful, start TLP or reboot (restart)

sudo tlp start

use tlp

  1. tlp command
sudo tlp start #启动TLP 在第一次安装后,如果不想重启,就可以使用这个命令启动TLP
sudo tlp ac #开启交流电源模式(类似于windows中的性能模式) 相当于sudo tlp false
sudo tlp bat #开启电池模式(节能模式) 相当于 sudo tlp true
sudo usb #将连接的USB设备空闲时自动挂起或关闭
tlp diskid #查看磁盘的id型号  其他是thinkpads only, 所有具体man tlp
  1. View tlp related information
sudo tlp-stat	
Usage: tlp-stat [ -b | --battery   | -c | --config    |
                  -d | --disk      | -e | --pcie      |
                  -g | --graphics  | -p | --processor |
                  -r | --rfkill    | -s | --system    |
                  -t | --temp      | -u | --usb       |
                  -w | --warn      | -v | --verbose   |
                  -P | --pev       |    | --psup      |
                  -T | --trace ]

accelerator@LAB:~$ sudo tlp-stat -s
--- TLP 1.3.1 --------------------------------------------

+++ System Info
System         = HUAWEI M1010 KLV-WX9
BIOS           = 1.06
Release        = Ubuntu 18.04.5 LTS
Kernel         = 5.4.0-56-generic #62~18.04.1-Ubuntu SMP Tue Nov 24 10:07:50 UTC 2020 x86_64
/proc/cmdline  = BOOT_IMAGE=/vmlinuz-5.4.0-56-generic root=UUID=271e54bc-97a4-4f0f-a487-8878f2969b24 ro quiet splash vt.handoff=1
Init system    = systemd v237
Boot mode      = UEFI

+++ TLP Status
State          = enabled
RDW state      = enabled
Last run       = 11时35分40秒,    282 sec(s) ago
Mode           = AC (manual)
Power source   = AC

Disable discrete display


Enter in the terminal: nvidia-settings, Prime Profilesselect in Intel(Power saving mode), restart the computer, open Settings->Details, you can see that the graphics card of the current system has changed to a core display.
After turning off the independent display, the expected battery life of the notebook is greatly improved

Guess you like

Origin blog.csdn.net/qq_20493631/article/details/110732703