# Power management
If you configuring your laptop PM for the first time, I would recommend to read arch wiki power management article to understand the main concepts.
It could be very confusing to pick from a variety of power management tools. Here I'll briefly cover their relation to each other.
- For example you can take advantage of #Optimus technology and switch off your graphic card, which will save a lot of energy - ~6W(depends on card).
- Tweaking #audio powersavings could save you 1-2W
- Disk management with S.M.A.R.T and turning off modules like your web camera, bluetooth, USB et.c., will help you to save even more energy for your laptop.
UPower - is an abstraction layer for desktop applications to various power parameters. You can find config at
Programs may use it to check battery status, adjust backlight, or suspend the system without having to care about the specific platform.
yay -S asus-kbd-backlight sudo systemctl enable asus-kbd-backlight.service #enable a service to allow user permissions
- UPower - using polkit to allow various actions like hibernate without giving away full root privileges.
yay -S upower polkit
systemd-logind - is a native handler and has functions for suspending/hibernating, it handles the most common ACPI events (lid switch, power button, etc.). Worth reading wiki article power management with with systemd. Also see #Hibernation.
tlp - all-in-one tool for power management. Could be a good solution if you don't want to understand every technical detail.
For me right now it's in testing mode, means I'm running it and trying to see advantages against manual PM.
To use it without conflicts you need to mask the systemd service
systemd-rfkill.socket to avoid conflicts and assure \proper operation of TLP's radio device switching options.
yay -S tlp tlp-rdw yay -S tlpui-git # you can also install GUI (As of October 2018, the software is still in beta)
Enable services for tlp:
sudo systemctl enable tlp.service sudo systemctl enable tlp-sleep.service # in case if you installed tlp-rdw which is a Radio Device Wizard sudo systemctl enable NetworkManager-dispatcher.service #requires NetworkManager
If you have hybrid graphic with bumblebee, you should tell TLP not to manage GPU by blacklisting it. Also check available settings in
Blacklist your GPU:
RUNTIME_PM_BLACKLIST="01:00.0" #you can add more devices with spaces "01:00.0 00:02.0 ..."
Also I had hangs with
tlp stat , one of the solutions is enabling video card with bbswitch
# ACPI events
- ACPI(Advanced Configuration and Power Interface) - small program that displays kernel modules for different ACPI parts.
acpid is a daemon that handles ACPI events like battery, lid et.c..
You probably already have systemd-logind installed. So this acpi + acpid bundle is not needed.
# Laptop Mode Tools
yay -S laptop-mode-tools-git # you also can install optional dependencies for lmt yay -S acpid bluez-utils hdparm sdparm wireless_tools # enable lmt sudo systemctl enable laptop-mode.service
# Diagnosing tools
- Intel's powertop - for diagnosing your power state.
With powertop for some reason I have more watts in use. Don't know if it's a bug or mine fault, anyway not using it now.
yay -S powertop
- S.M.A.R.T.(Self-Monitoring, Analysis, and Reporting Technology) - For analyzing and monitoring storage devices.
yay -S smartmontools
- i7z - is an i7 (and now i3, i5) CPU reporting tool for Linux.
yay -S i7z
# Manual config
# Audio powersavings
By default, audio power saving is turned off by most drivers. If you not using tlp or any other tool that cover audio you way want to enable audio powersavings manually.
It can be enabled by setting the powersave parameter - a time (in seconds) to go into idle mode.
To idle the audio card after three seconds, pick one of the settings for your card:
Check your driver with "lspci" lspci -k | grep Audio
# settings for intel soundcard: options snd_hda_intel power_save=3 # use the following settings for ac97: options snd_ac97_codec power_save=3
# Blacklisting modules
You should blacklist unneeded modules that consumes energy.