Systemd the targets runlevel5.target

Runlevel    Target Units                          Description
0           runlevel0.target, poweroff.target     Shut down and power off the system.
1           runlevel1.target, rescue.target       Set up a rescue shell.
2           runlevel2.target, multi-user.target   Set up a non-graphical multi-user system.
3           runlevel3.target, multi-user.target   Set up a non-graphical multi-user system.
4           runlevel4.target, multi-user.target   Set up a non-graphical multi-user system.
5           runlevel5.target, graphical.target    Set up a graphical multi-user system.
6           runlevel6.target, reboot.target       Shut down and reboot the system.

 

Credits

Coreboot ectool

Coreboot comes with a couple of utilities, one of which is ectool. There doesn't seem to be much information about the tool, but what it basically does is set configuration data in address space of the EC. To set the battery charging thresholds to 53 % and 80 % for the lower and upper thresholds, one would execute ectool twice like this:

# Battery start threshold with coreboot: 0x35 = 53 %
./ectool -w 0xb0 -z 0x35
# Stop threshold 0x50 = 80%
./ectool -w 0xb1 -z 0x50

 

Ectool ectool is a small utility that dumps the RAM of a laptop's Embedded/Environmental Controller (EC). It expects an EC as described in the ACPI specification. Only ACPI-compliant ECs will be detected. Installation Manual installation

$ git clone http://review.coreboot.org/coreboot.git
$ cd coreboot/util/ectool
$ make
$ sudo make install

 

Credits | Credits

Maximize Linux Laptop’s Battery Life

 

Check if Your Battery Needs to Be Replaced

For example, on Ubuntu, you can open the Power Statistics application from the Dash. Look at the “Laptop battery” section. “Energy when full” is how much power your battery can currently store when it’s fully charged. “Energy (design)” is how much power your battery could originally store when it’s fully charged.
 
 

Divide “Energy when full” by “Energy (design)”, multiple the result by 100, and you’ll get a percentage. For example, in the screenshot below, we’d do the following math:

(44.8 / 54.3) * 100 = 82.5%

This means the battery currently holds 82.5% of its original capacity. That’s not too bad. You won’t be at 100% unless you just purchased a new laptop. But if it’s low—under 50%, for example—and you aren’t getting much time out of your battery, you may just need to replace the battery.

— OR —

Divide “Energy when full” by “Energy (design)”, multiple the result by 100, and you’ll get a percentage. For example, in the screenshot below, we’d do the following math:

(44.8 / 54.3) * 100 = 82.5%

This means the battery currently holds 82.5% of its original capacity. That’s not too bad. You won’t be at 100% unless you just purchased a new laptop. But if it’s low—under 50%, for example—and you aren’t getting much time out of your battery, you may just need to replace the battery.

 
 

Advanced Battery-Saving Utilities

Intel’s open-source PowerTOP utility will examine your system and see how well various power-saving features are enabled, even providing some suggestions for how to reduce your system’s power consumption. It’s a command-line tool, so you’ll need to run it from there. You’ll usually find it in your Linux distribution’s software repositories.

For example, to install and run PowerTOP on Ubuntu, you’d open a Terminal window and run the following commands:

sudo apt install powertop

sudo powertop --calibrate
Try to write 'powertop –auto-tune' before the exit directive in /etc/rc.local. You will need the administrative permission to modify the file (here with GEdit):
sudo apt install powertop
gksu gedit /etc/rc.local

i've just edited the file:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/usr/sbin/powertop –auto-tune

exit 0

sudo chmod +x /etc/rc.local

For example, TLP will more aggressively suspend USB devices, park your hard drive’s heads, and throttle your CPU. These may not be ideal tweaks if you already have solid battery life on your Linux laptop, but they may be helpful if you’re struggling to squeeze more battery time out of your system.

sudo apt install tlp

You can then restart your system and TLP will automatically start at each boot. To avoid restarting immediately, you can launch it by running:

sudo tlp start

 

Credits

Link 1 | Link 2

 

Tuning your Intel graphics card in Ubuntu/Mint 16.04

Install the graphics driver

Before you do anything please make sure you computer has a Intel Graphics
#sudo lshw -C video

#wget -c https://download.01.org/gfx/ubuntu/16.04/main/pool/main/i/intel-graphics-update-tool/intel-graphics-update-tool_2.0.2_amd64.deb

#sudo dpkg -i intel-graphics-update-tool_2.0.2_amd64.deb

#sudo intel-graphics-update-tool

Mint linux requirements:

Terminal:
#sudo cp /etc/lsb-release /etc/lsb-release.bak

#sudo xed /etc/lsb-release

Do the contents to the next view, add  replace:

#DISTRIB_ID=LinuxMint
#DISTRIB_RELEASE=18
#DISTRIB_CODENAME=sarah
#DISTRIB_DESCRIPTION="Linux Mint 18 Sarah"
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"

run installer and update intel driver.
#sudo intel-graphics-update-tool

Don't forget the /etc/lsb-release file back to its original appearance.

#sudo cp /etc/lsb-release.bak /etc/lsb-release

Reboot
 

Credits_I | Credit_II