pilas, baterias y energía
Post on 02-Jun-2018
230 Views
Preview:
TRANSCRIPT
-
8/10/2019 Pilas, baterias y energa
1/30
Administracin de energa en
Linux
LTV
-
8/10/2019 Pilas, baterias y energa
2/30
The pc use to heat a lot
-
8/10/2019 Pilas, baterias y energa
3/30
-
8/10/2019 Pilas, baterias y energa
4/30
-
8/10/2019 Pilas, baterias y energa
5/30
-
8/10/2019 Pilas, baterias y energa
6/30
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.
-
8/10/2019 Pilas, baterias y energa
7/30
What can I do?
Use an "abaco"
Use the minimum possible
Use nothing
Use a special cooling system
-
8/10/2019 Pilas, baterias y energa
8/30
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.
-
8/10/2019 Pilas, baterias y energa
9/30
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 isavailable for Ubuntu 13.04 from JoliCloud
Desktop Environment PPA.
-
8/10/2019 Pilas, baterias y energa
10/30
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
-
8/10/2019 Pilas, baterias y energa
11/30
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 andhardware.
-
8/10/2019 Pilas, baterias y energa
12/30
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).
-
8/10/2019 Pilas, baterias y energa
13/30
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.
-
8/10/2019 Pilas, baterias y energa
14/30
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), removethem or else TLP may not work properly;
Remove laptop-mode-tools ("sudo apt-get
remove laptop-mode-tools").
-
8/10/2019 Pilas, baterias y energa
15/30
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.
-
8/10/2019 Pilas, baterias y energa
16/30
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.
-
8/10/2019 Pilas, baterias y energa
17/30
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.
-
8/10/2019 Pilas, baterias y energa
18/30
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
-
8/10/2019 Pilas, baterias y energa
19/30
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 getvery hot.
-
8/10/2019 Pilas, baterias y energa
20/30
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.
-
8/10/2019 Pilas, baterias y energa
21/30
-
8/10/2019 Pilas, baterias y energa
22/30
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
-
8/10/2019 Pilas, baterias y energa
23/30
And for
"GRUB_CMDLINE_LINUX_DEFAULT=" ... "
Add "intel_pstate=enable", like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet
splash intel_pstate=enable"
-
8/10/2019 Pilas, baterias y energa
24/30
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
-
8/10/2019 Pilas, baterias y energa
25/30
2. Restart your system and to check if intel_pstate
is enabled, run the following command:
cat
/sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
The command above should return:
"intel_pstate".
-
8/10/2019 Pilas, baterias y energa
26/30
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.
-
8/10/2019 Pilas, baterias y energa
27/30
Laptop-mode-tools
Laptop Mode Tools
is a package that
should extend your
laptop's battery lifeby enabling the
Laptop Mode Linux
kernel feature along
with other power-related tweaks.
-
8/10/2019 Pilas, baterias y energa
28/30
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.
-
8/10/2019 Pilas, baterias y energa
29/30
Xfce Lxde
Bumblebee
Ironhide
Etc
All of them have their
own packages forenergy admin, youshould chose yourbest option.
-
8/10/2019 Pilas, baterias y energa
30/30
top related