Difference between revisions of "Power Management"

imported>Aaditya
imported>Aaditya
Line 6: Line 6:
TLP can be used for automatic power management, as explained in the following quote from their website:
TLP can be used for automatic power management, as explained in the following quote from their website:


<blockquote>'TLP brings you the benefits of advanced power management for Linux without the need to understand every technical detail. '''TLP comes with a default configuration already optimized for battery life''', so you may just install and forget it. Nevertheless TLP is highly customizable to fulfil your specific requirements.
<blockquote>TLP brings you the benefits of advanced power management for Linux without the need to understand every technical detail. '''TLP comes with a default configuration already optimized for battery life''', so you may just install and forget it. Nevertheless TLP is highly customizable to fulfil your specific requirements.


All TLP settings are stored in the config file /etc/default/tlp. As the default configuration already provides for optimized battery saving, in many cases there is no immediate need to change it.
All TLP settings are stored in the config file /etc/default/tlp. As the default configuration already provides for optimized battery saving, in many cases there is no immediate need to change it.


TLP is a pure command line tool with automated background tasks. ''It does not contain a GUI''.'</blockquote>
TLP is a pure command line tool with automated background tasks. It does not contain a GUI.</blockquote>


== How to Install TLP ==
== How to Install TLP ==
Line 57: Line 57:
''laptop-mode-tools'' automatically configures some settings for you in order to optimize your laptop's battery life.
''laptop-mode-tools'' automatically configures some settings for you in order to optimize your laptop's battery life.


== Manually Setting Laptop-Mode-Tools Configuration ==
== Laptop-Mode-Tools Configuration ==


For user configuration, the file to edit is '''/etc/laptop-mode/laptop-mode.conf''' (primary configuration file)
For configuration, the file to edit is '''/etc/laptop-mode/laptop-mode.conf''' (primary configuration file)


The individual kernel modules can be configured from the configuration files present in '''/etc/laptop-mode/conf.d/'''
The individual kernel modules can be configured from the configuration files present in '''/etc/laptop-mode/conf.d/'''
Line 71: Line 71:
The Intel pstate driver automatically handles CPU frequency scaling according to system load.
The Intel pstate driver automatically handles CPU frequency scaling according to system load.


Note that the Intel Pstate works only with kernels >= 3.9, and kernel 3.11 is recommended.
Note that the Intel Pstate works only with kernels >= 3.9, and kernel 3.11+ is recommended.


Supported processor families are Intel Sandy Bridge, Ivy Leage and up.
Primary supported processor families are Intel Sandy Bridge (also known as ''2nd generation'' of i3/5/7 processors) and up.


The Intel Thermal Daemon (thermald) can be installed to automatically manage the CPU Temperature.
The Intel Thermal Daemon (thermald) can be installed to automatically manage the CPU temperature.


Install it with
To install it, following command can be used:


  sudo pacman -S thermald
  sudo pacman -S thermald


After installing it needs to be configured to automatically start at boot:
After installing it needs to be configured to automatically start at boot in order to work:


  sudo systemctl enable thermald
  sudo systemctl enable thermald
Line 87: Line 87:
==For AMD Machines==
==For AMD Machines==


With Linux Kernel 3.11, AMD introduced Dyanamic Power Management (DPM) for the GPU for the free drivers, which can lead to lower power consumption and better operating temperatures.
With Linux Kernel 3.11+, AMD introduced '''Dyanamic Power Management (DPM)''' for their  ''free (open-source) GPU drivers'', which can lead to lower power consumption and better operating temperatures.


To enable it,  
To enable it, edit the {{ic|/etc/default/grub}} file:


  sudo gedit /etc/default/grub
  sudo gedit /etc/default/grub


add/change the line
and add/change the line:
 
  ''GRUB_CMDLINE_LINUX=""'' to
  ''GRUB_CMDLINE_LINUX=""'' to
  ''GRUB_CMDLINE_LINUX="radeon.dpm=1"''
  ''GRUB_CMDLINE_LINUX="radeon.dpm=1"''


and regenerate grub.cfg
Then regenerate the grub configuration file:
 
  sudo grub-mkconfig -o /boot/grub/grub.cfg
  sudo grub-mkconfig -o /boot/grub/grub.cfg


Line 105: Line 107:
It can be used to check the power consumption.
It can be used to check the power consumption.


Install it with-
It can be installed as-


  sudo pacman -S powertop
  sudo pacman -S powertop


Run PowerTop to analyze power consumption
To run PowerTop to analyze power consumption:


  sudo powertop
  sudo powertop
Line 116: Line 118:


  sudo powertop --html
  sudo powertop --html


For more details, see [http://wiki.manjaro.org/index.php?title=PowerTOP_to_Optimise_Laptop_Power_Consumption Powertop : Manjaro Wiki]
For more details, see [http://wiki.manjaro.org/index.php?title=PowerTOP_to_Optimise_Laptop_Power_Consumption Powertop : Manjaro Wiki]
Anonymous user