Está en la página 1de 30

Administracin de energa en

Linux
LTV

The pc use to heat a lot

Why
Because it uses electricity
The electrons flowing over the conductors
surface creates hot.
All electronic devices do it.
More use requiere more power then it produces
a lot of heat.

What can I do?

Use an "abaco"
Use the minimum possible
Use nothing
Use a special cooling system

What about Linux?


At the linux distros are a lot of options for cooling.
Even you could keep your system cooler than a
system that uses windows.

The old Jupiter


As you may know, Jupiter is a powerful and
lightweight power and hardware control applet. It
has been retired and last supported release is
up to Ubuntu 12.10 Quantal. However, Jupiter is
available for Ubuntu 13.04 from JoliCloud
Desktop Environment PPA.

Installing Jupiter

Run below command to add the PPA repository:


sudo add-apt-repository ppa:jolicloud-team/ppa
Then update package lists and install:
sudo apt-get update;
sudo apt-get install jupiter
To install Jupiter support package for Eee PCs:
sudo apt-get install jupiter-support-eee

The new option TLP


Is an advanced power management command
line tool for Linux that tries to apply these
settings / tweaks for you automatically,
depending on your Linux distribution and
hardware.

TLP applies the following settings


depending on the power source
battery / ac

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 management 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 TLP 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;
Undervolting of Intel processors requires kernel with PHC-Patch;
Battery charge thresholds ThinkPads only;
Recalibrate battery ThinkPads only.

Install TLP in Ubuntu


Before proceeding with the installation, there are
a couple of things you need to do:
Firstly, if you've added any power saving
settings / scripts (e.g.: in /etc/rc.local), remove
them or else TLP may not work properly;
Remove laptop-mode-tools ("sudo apt-get
remove laptop-mode-tools").

sudo add-apt-repository ppa:linrunner/tlp


sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start.
sudo apt-get install smartmontools ethtool
smartmontools - needed to display disk drive
S.M.A.R.T. data
ethtool - needed to disable wake on lan.

Thermald
Linux Thermal Daemon (thermald) is a tool
developed by Intel's Open Source Technology
Center which monitors and controls the CPU
temperature, preventing it from overheating.

Thermald tries to prevent the CPU from


overheating without a significant impact on
performance by using some specific Intel
functions available in the Linux Kernel.

Thermald can control cooling using:

Active or passive cooling devices as presented in


sysfs
The Running Average Power Limit (RAPL) driver
(Sandybridge upwards)
The Intel P-state CPU frequency driver
(Sandybridge upwards)
The CPU freq driver the Intel PowerClamp
driver

Thermald applies various cooling methods only


when the temperature reaches a certain
threshold, so you may not notice a difference
while using it if your laptop doesn't usually get
very hot.

How to enable intel_pstate in Ubuntu 14.04


While it's not mandatory, thermald should work
better if Intel P-state is enabled. Intel P-state is
not enabled by default in Ubuntu 14.04, but you
can enable it easily.
You won't try to use with previous versions.

Intel_pstate is a new power scaling driver used


for modern Intel CPUs which is currently used
for Sandy Bridge and Ivy Bridge CPUs.

Enabling intel_pstate
1. To enable intel_pstate in Ubuntu 14.04 (only
enable it if your laptop is using Sandy Bridge or
Ivy Bridge CPUs), edit the:

/etc/default/grub configuration file with a text


editor as root
gksu gedit /etc/default/grub

And for
"GRUB_CMDLINE_LINUX_DEFAULT=" ... "
Add "intel_pstate=enable", like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet
splash intel_pstate=enable"

Make sure you've changed the /etc/default/grub


file properly or else your system may fail to boot!
Once you're done,
Save the file and update Grub:
sudo update-grub

2. Restart your system and to check if intel_pstate


is enabled, run the following command:
cat
/sys/devices/system/cpu/cpu*/cpufreq/scaling_dr
iver
The command above should return:
"intel_pstate".

3. With intel_pstate, there are only two cpufreq


governors:
performance
powersave
there's no "ondemand", that is discontinued.
If is necesary you will install cpufreq applet.

Laptop-mode-tools
Laptop Mode Tools
is a package that
should extend your
laptop's battery life
by enabling the
Laptop Mode Linux
kernel feature along
with other powerrelated tweaks.

Install Laptop Mode Tools 1.65


sudo add-apt-repository
ppa:webupd8team/unstable
sudo apt-get update
sudo apt-get install laptop-mode-tools
gksu /usr/sbin/lmt-config-gui
After any change you have made you will have
to restar the system to apply it.

Xfce
Lxde
Bumblebee
Ironhide
Etc

All of them have their


own packages for
energy admin, you
should chose your
best option.

También podría gustarte