Articles by "laptop battery"
Showing posts with label laptop battery. Show all posts
Enable Laptop Mode and other tweaks to improve battery for Ubuntu 15.04 Vivid/14.10 Utopic/14.04 Trusty/12.04/Linux Mint 17.x/17/13/and other related Ubuntu derivatives

Managing battery power in Linux since kernel 3.x is bit difficult, many users face quick battery drain in Linux than other operating systems. There are tools available to manage power of laptop to improve battery life, previously I wrote improve battery with TLP power management. Now I burought other tools for you to improve battery life, if TLP doesn't fit to your needs. This script does all tweaks automatically within your system.

First of all the most popular utility Laptop Mode Tools which saves power by spinning down hard drives, and in addition, it can be configured to tweak all sorts of other power-related things. The core feature of Laptop Mode Tools is that it controls the "laptop mode" feature of the Linux kernel. In addition this tools can tweak things like readahead settings, hard drive power management settings, CPU frequency scaling settings, CPU throttling settings, DPMS settings, terminal blanking settings, and LCD brightness settings. It also supports various other power management features, such as starting and stopping daemons depending on power mode, automatically hibernating if battery levels are too low, and adjusting terminal blanking and X11 screen blanking.
Second tweak is to stop access to HDD for log files. If you are in single user system, probably you don't need log file like when this directory/file was accessed last time.
Third tweak is about to create virtual ram (swappiness), so whenever ram is out of space system is going to use virtual ram. This allows system to use all memory when memory is full use virtual ram, so in this case system won't bother your HDD.
Forth tweak is about to create ram drive for temp filesystem. This tweak moves temporary files from HDD to RAM then system won't hit HDD for temp file. The system touches HDD the more we save battery.
Fifth tweak is a utility called indicator-cpufrequency, It allows user to set specific amout of CPU to system or CPU on demand. In such a way it can help user to save battery by using 'power on demand'.

Download and run script for battery tweaks in Ubuntu 15.04/14.10/14.04/12.04/Linux Mint 17.x/16/13/and other related Ubuntu derivatives open terminal and enter following commands:

Use this one command to undo/uninstall tweaks open terminal and enter following command:

Dual GPU Tweak:
This tweak is only for those who has dual GPU in their Laptop. If you are not using other GPU for example Nvidia, AMD Catalyst, you can disable them in order to save battery.
So there is an open source program written in java. It disables discrete GPU which is not in use to save battery time.
This is a java program that allows the user to simply install acpi_call kernel module via graphic Interface, and also provides an useful script that automatically recompiles the kernel after each update.

Program features:
  • Install the acpi_call kernel module (kernel would be recompiled automatically after each update).
  • Deactivate discrete GPU.
  • Automatically deactivate discrete GPU on every boot.

discrete gpu

discrete gpu

discrete gpu

Also see this video tutorial.

To install Acpi-Call-GPU Utility in Ubuntu/Linux Mint/other Ubuntu derivatives Open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:
This program requires java installed on the system.

To uninstall this program:
That's it
Improve Laptop Power Management in Ubuntu 16.04 Xenial/15.10 Wily/14.04 Trusty/12.04 Precise/Linux Mint 17.x/17/13/and related Ubuntu derivatives

TLP is a power management tool for Linux. TLP is a pure command line tool with automated background tasks, It does not contain a GUI. It brings you the benefits of advanced power management without the need to understand every technical detail. TLP does not replace but enhance the existing power management of your Linux installation. TLP applies it's settings upon system startup and on every change of the power source.

Settings depending on the Power Source:
  • Kernel laptop mode and dirty buffer timeouts
  • Processor frequency scaling including "turbo boost" / "turbo core"
  • Power aware process scheduler for multi-core/hyper-threading
  • Hard disk advanced power magement level and spin down timeout (per disk)
  • SATA aggressive link power management (ALPM)
  • PCI Express active state power management (PCIe ASPM) – Linux 2.6.35 and above
  • Runtime power management for PCI(e) bus devices – Linux 2.6.35 and above
  • Radeon KMS power management – Linux 2.6.35 and above, not fglrx
  • Wifi power saving mode – depending on kernel/driver
  • Power off optical drive in drive bay (on battery)

Additional functions:
  • I/O scheduler (per disk)
  • USB autosuspend with blacklist
  • Audio power saving mode – hda_intel, ac97
  • Enable or disable integrated wifi, bluetooth or wwan devices upon system startup and shutdown
  • Restore radio device state on system startup (from previous shutdown).
  • Radio device wizard: switch radios upon network connect/disconnect and dock/undock
  • Disable Wake On LAN
  • WWAN state is restored after suspend/hibernate
  • Untervolting of Intel processors – requires kernel with PHC-Patch
  • Battery charge thresholds – ThinkPads only
  • Recalibrate battery – ThinkPads only

Every new Linux kernel brings improvements regarding laptop power management. TLP offers many power management benefits to Linux based laptops without any complicated instructions. Basically TLP doesn't replace any existing power management in Linux but it improves current power management.

Note: For Ubuntu 16.04 Xenial and 15.10 Wily, you don't have to add following PPA because TLP is already available for both version in Ubuntu repositories. Just run 3rd install command.

To install TLP in Ubuntu 14.04/12.04/Linux Mint 17/13 open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:

If you are using IBM Thinkpad then use following command to install (first add above PPA):

To start TLP service use following command:

To check if TLP service is working properly, use following command:

You will see such output:
 +++ System Status
 TLP power save = enabled
 power source = ...

Complete configuration instruction are available here.
That's it
Source: TLP