Difference between revisions of "Power Management"

no edit summary
imported>Verityproductions
imported>Verityproductions
Line 2: Line 2:
Power Saving Techniques can be used on Laptops to maximize the Battery Life and minimize the heat produced, and conserve energy.
Power Saving Techniques can be used on Laptops to maximize the Battery Life and minimize the heat produced, and conserve energy.


== Power Saving using TLP ==
= Power Saving using TLP =


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:
Line 15: Line 15:
== How to Install TLP ==
== How to Install TLP ==


TLP is present in the AUR. It can be installed by using the following command-
{{warning|TLP can conflict with laptop-mode-tools, so if you have laptop-mode-tools installed and want to install TLP, then uninstall laptop-mode-tools first!}}
 
 
TLP is available form the '''[[Arch User Repository]''', and where access has been enabled, can be installed by entering the following command into your terminal:


  yaourt -S tlp
  yaourt -S tlp


After installing it, it needs to be configured to be run at startup-
 
After installation, TLP then needs to be configured to be run automatcially when you start up your computer. To do so, enter the following commands into your terminal:


  systemctl enable tlp
  systemctl enable tlp
  systemctl enable tlp-sleep.service
  systemctl enable tlp-sleep.service


The above commands will make it autostart at boot time.


=== Note ===
Now TLP will automatically start every time you boot your computer.
 


TLP can conflict with laptop-mode-tools, so if you have laptop-mode-tools installed and want to install TLP, then uninstall laptop-mode-tools first!
= An Alternative to TLP for Laptop Users =


{{warning|Again, TLP and laptop-mode-tools '''must not''' be installed together!}}


== Alternative to TLP: Laptop-Mode-Tools ==


From the Arch Wiki-
From the Arch Wiki:


<blockquote>Laptop Mode Tools is a laptop power saving package for Linux systems. It is the primary way to enable the Laptop Mode feature of the Linux kernel, which lets your hard drive spin down. In addition, it allows you to tweak a number of other power-related settings using a simple configuration file.</blockquote>
<blockquote>'Laptop Mode Tools is a laptop power saving package for Linux systems. It is the primary way to enable the Laptop Mode feature of the Linux kernel, which lets your hard drive spin down. In addition, it allows you to tweak a number of other power-related settings using a simple configuration file.'</blockquote>


To install laptop-mode-tools
 
To install '''laptop-mode-tools''', enter the following command into your terminal:


  sudo pacman -S laptop-mode-tools
  sudo pacman -S laptop-mode-tools


Note that laptop-mode-tools and tlp shouldnt be installed together!


To enable laptop-mode-tools to start at boot automatically
Once installed, to enable ''laptop-mode-tools'' to start automatically every time you boot your computer, enter the following into your terminal:


  sudo systemctl enable laptop-mode.service
  sudo systemctl enable laptop-mode.service


laptop-mode-tools also automatically configures some settings for optimising battery life.
 
''Laptop-mode-tools'' will automatically configures some settings for you in order to optimise your laptop's battery life.




'''For user configuration, the file to edit is'''
= Manually Setting Laptop-Mode-Tools Configuration =
<code>/etc/laptop-mode/laptop-mode.conf</code>
(primary configuration file)


The individual modules can be configured from the configuration files present in
For user configuration, the file to edit is '''/etc/laptop-mode/laptop-mode.conf''' (primary configuration file)


/etc/laptop-mode/conf.d/
The individual kernel modules can be configured from the configuration files present in '''/etc/laptop-mode/conf.d/'''