i think should help you.
TLP packages are available for Arch, Debian, Fedora, Gentoo and Ubuntu. TLP runs on every laptop brand, but setting the battery charge thresholds is available for IBM/Lenovo ThinkPads only.
The best part, TLP comes with a default configuration already optimized for battery life. Install it once and you don’t have to worry about anything. TLP is a pure command line tool with automated background tasks. It does not contain a GUI.
Install TLP on Ubuntu 14.04
The same set of instruction and commands can also be used to install TLP on Ubuntu 14.04 as well as Linux Mint 13 and 17 but not LMDE.
Before installing TLP, make sure “laptop-mode-tools” is not installed. You must remove “laptop-mode-tools” as it conflicts with TLP. Open the Terminal and run the following command:
sudo apt-get remove laptop-mode-tools
Now run the following commands to install TLP by using its official PPA:
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
Please remember, TLP will start automatically on startup, but for the first time you must start it manually. Run the following command to start TLP manually:
sudo tlp start
There are also some optional packages you can install to improve battery life in Linux Ubuntu with TLP. You can install the optional packages via package management tools (Ubuntu Software Center, Synaptic, …) or terminal command. Run the following command to install the optional TLP packages:
sudo apt-get install tlp tlp-rdw
ThinkPads require an additional:
sudo apt-get install tp-smapi-dkms acpi-call-tools
You can also install smartmontools, needed to display disk drive S.M.A.R.T. data and ethtool, needed to disable wake on lan. Run the following command to install smartmontools and ethtool:
sudo apt-get install smartmontools ethtool
You can also install TLP packages for other Linux distributions: Debian 6.0+, Arch Linux, openSUSE 11.4+, Gentoo, Fedora 16 and others. For detailed installation instructions see the TLP homepage.
you can refer here