How to do it…

TLP’s configuration file is in the /etc/default/ directory and the filename is tlp. After installation, it starts as a service automatically. We can check whether it’s running under system by running the systemctl command, as follows:

$ sudo systemctl status tlp

Run the following command to get the operation mode:

$ sudo tlp start

To get the system information as well as TLP status, run the following command:

$ sudo tlp-stat -s

To view TLP configuration, run this command:

$ sudo tlp-stat -c

To get all the power configurations, run the given command:

$ sudo tlp-stat

To get the battery information, use this command:

$ sudo tlp-stat -b

To get the fan speed and temperature of the system, run the next command:

$ sudo tlp-stat -t ...

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.