Created søndag 23 oktober 2016
Some useful Laptop tools for power management ex.
TLP
# Advanced power management, not much setup is required
$ pacman -S tlp
# Enable its two services
$ systemctl enable tlp.service
$ systemctl enable tlp-sleep.service
# And disable rfkill
$ systemctl disable systemd-rfkill.service
Usage
# Status report with configuration and active settings
$ tlp-stat
# Verbose information
$ tlp-stat -v
# Show warnings
$ tlp-stat -w
# Battery information
$ tlp-stat -b
# Disk data
$ tlp-stat -d
# USB devices
$ tlp-stat -u
# PCI devices
$ tlp-stat -e
# CPU data
$ tlp-stat -p
# Temperature
$ tlp-stat -t
# Radio devices (wifi, bluetooth etc)
$ tlp-stat -r
# System information (bios & system a.a.)
$ tlp-stat -s
Configuration
# TLP keeps all its configuration in /etc/default/tlp
# Disk I/O Scheduler
# Using the Zen-kernel, the bfq scheduler is preferred
# Search for DISK_IOSCHED= outcomment and change its value to bfq cfq
DISK_IOSCHED="bfq cfq"
Powertop
# Powertop is a intel tool that can help us with power suggestion,
# system information and show apps with high power consumption.
$ pacman -S powertop
# To get a report
$ powertop --html=powerreport.html
# This will create a powerreport.html file, open this and examine the suggestions etc.
Disable Power/Suspend/Hibernate Buttons
# Systemd can handle the ACPI events
# Edit /etc/systemd/logind.conf
# Outcomment and define ignore to these 4 events (power, hibernation, suspend and lid-close)
{{{code: lang="texinfo" linenumbers="True"
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore}}}
# Changes will take affect after next reboot