1 |
nimiux 11/08/22 18:52:34 |
2 |
|
3 |
Modified: power-management-guide.xml |
4 |
Log: |
5 |
Bug #367145 - Update guide to reflect OpenRC changes. Bug #367145 - Update pmg_switch_runlevel.sh. |
6 |
|
7 |
Revision Changes Path |
8 |
1.25 xml/htdocs/doc/es/power-management-guide.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/es/power-management-guide.xml?rev=1.25&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/es/power-management-guide.xml?rev=1.25&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/es/power-management-guide.xml?r1=1.24&r2=1.25 |
13 |
|
14 |
Index: power-management-guide.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/es/power-management-guide.xml,v |
17 |
retrieving revision 1.24 |
18 |
retrieving revision 1.25 |
19 |
diff -u -r1.24 -r1.25 |
20 |
--- power-management-guide.xml 9 Mar 2011 19:59:45 -0000 1.24 |
21 |
+++ power-management-guide.xml 22 Aug 2011 18:52:34 -0000 1.25 |
22 |
@@ -1,6 +1,6 @@ |
23 |
<?xml version='1.0' encoding="UTF-8"?> |
24 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
25 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/es/power-management-guide.xml,v 1.24 2011/03/09 19:59:45 nimiux Exp $ --> |
26 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/es/power-management-guide.xml,v 1.25 2011/08/22 18:52:34 nimiux Exp $ --> |
27 |
|
28 |
<guide lang="es"> |
29 |
<title>Guía de Administración de Energía</title> |
30 |
@@ -37,14 +37,28 @@ |
31 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
32 |
<license/> |
33 |
|
34 |
-<version>2</version> |
35 |
-<date>2011-03-02</date> |
36 |
+<version>4</version> |
37 |
+<date>2011-08-17</date> |
38 |
|
39 |
<chapter> |
40 |
<title>Introducción</title> |
41 |
<section> |
42 |
<body> |
43 |
|
44 |
+<!-- |
45 |
+ Eliminar esta nota después de seis meses - Estimado: 01/02/2012 |
46 |
+ Para entonces, asumimos que las migraciones no son tan frecutentes |
47 |
+ y por lo tanto la nota se puede eliminar. |
48 |
+ ~ Sven Vermeulen |
49 |
+--> |
50 |
+<impo> |
51 |
+Desde la introducción de OpenRC, el guión <c>pmg_switch_runlevel.sh</c> |
52 |
+necesita ser actualizado. Si tiene problemas después de la migración |
53 |
+de OpenRC upgrade, por favor, actualice este guión de acuerdo a lo |
54 |
+comentado en esta guía. |
55 |
+</impo> |
56 |
+ |
57 |
+ |
58 |
<p> |
59 |
La capacidad y el tiempo de vida de las baterías de un portátil han mejorado |
60 |
mucho en los últimos años. No obstante, los procesadores modernos consumen |
61 |
@@ -55,9 +69,9 @@ |
62 |
Mucho se puede lograr con tan sólo aplicar políticas inteligentes de |
63 |
Administración de Energía. |
64 |
</p> |
65 |
+ |
66 |
</body> |
67 |
</section> |
68 |
- |
69 |
<section> |
70 |
<title>Una rápida vista general</title> |
71 |
<body> |
72 |
@@ -98,9 +112,9 @@ |
73 |
<uri link="#doc_chap8">Solución de problemas</uri> que lista los |
74 |
errores comunes. |
75 |
</p> |
76 |
+ |
77 |
</body> |
78 |
</section> |
79 |
- |
80 |
<section> |
81 |
<title>Presupuesto de Energía para cada componente</title> |
82 |
<body> |
83 |
@@ -117,6 +131,7 @@ |
84 |
configuración inteligente en los sistemas operativos que se adapta a |
85 |
situaciones diferentes puede lograr mucho más. |
86 |
</p> |
87 |
+ |
88 |
</body> |
89 |
</section> |
90 |
</chapter> |
91 |
@@ -138,9 +153,9 @@ |
92 |
se están usando las baterías. Aquí es cuando viene a mano un nuevo |
93 |
nivel de ejecución llamado <e>battery</e>. |
94 |
</p> |
95 |
+ |
96 |
</body> |
97 |
</section> |
98 |
- |
99 |
<section> |
100 |
<title>La parte de la BIOS</title> |
101 |
<body> |
102 |
@@ -153,9 +168,9 @@ |
103 |
revisar nuevamente su configuración de la BIOS luego de que haya configurado |
104 |
el resto de las cosas. |
105 |
</p> |
106 |
+ |
107 |
</body> |
108 |
</section> |
109 |
- |
110 |
<section> |
111 |
<title>Ajustando los parámetros USE</title> |
112 |
<body> |
113 |
@@ -170,9 +185,9 @@ |
114 |
afectados usando el parámetro <c>--newuse</c> al usar <c>emerge</c>, |
115 |
vea <c>man emerge</c>. |
116 |
</p> |
117 |
+ |
118 |
</body> |
119 |
</section> |
120 |
- |
121 |
<section> |
122 |
<title>Configurando el núcleo</title> |
123 |
<body> |
124 |
@@ -263,9 +278,9 @@ |
125 |
# <i>/etc/init.d/acpid start</i> |
126 |
# <i>rc-update add acpid default</i> |
127 |
</pre> |
128 |
+ |
129 |
</body> |
130 |
</section> |
131 |
- |
132 |
<section> |
133 |
<title>Creando un nivel de ejecución "battery"</title> |
134 |
<body> |
135 |
@@ -295,9 +310,9 @@ |
136 |
<c>default</c>, pero todavía no existe un cambio automático entre ellos. Es |
137 |
hora de cambiar eso. |
138 |
</p> |
139 |
+ |
140 |
</body> |
141 |
</section> |
142 |
- |
143 |
<section> |
144 |
<title>Reaccionando a los eventos de ACPI</title> |
145 |
<body> |
146 |
@@ -333,32 +348,41 @@ |
147 |
<pre caption="/etc/acpi/actions/pmg_switch_runlevel.sh"> |
148 |
#!/bin/bash |
149 |
|
150 |
-<comment># INICIO configuración</comment> |
151 |
+# INICIO de la configuración |
152 |
RUNLEVEL_AC="default" |
153 |
RUNLEVEL_BATTERY="battery" |
154 |
-<comment># FIN configuración</comment> |
155 |
+ |
156 |
+if [ -x /usr/bin/logger ]; then |
157 |
+ LOGGER="/usr/bin/logger -s -p daemon.info -t /etc/acpi/actions/pmg_switch_runlevel.sh" |
158 |
+else |
159 |
+ LOGGER="/bin/echo" |
160 |
+fi |
161 |
+ |
162 |
+ON_AC_POWER=/usr/bin/on_ac_power |
163 |
+# FIN de la configuración |
164 |
+ |
165 |
if [ ! -d "/etc/runlevels/${RUNLEVEL_AC}" ] |
166 |
then |
167 |
- logger "${0}: Runlevel ${RUNLEVEL_AC} does not exist. Aborting." |
168 |
+ ${LOGGER} "${0}: Runlevel ${RUNLEVEL_AC} does not exist. Aborting." |
169 |
exit 1 |
170 |
fi |
171 |
|
172 |
if [ ! -d "/etc/runlevels/${RUNLEVEL_BATTERY}" ] |
173 |
then |
174 |
- logger "${0}: Runlevel ${RUNLEVEL_BATTERY} does not exist. Aborting." |
175 |
+ ${LOGGER} "${0}: Runlevel ${RUNLEVEL_BATTERY} does not exist. Aborting." |
176 |
exit 1 |
177 |
fi |
178 |
|
179 |
-if on_ac_power |
180 |
+if ${on_ac_power} |
181 |
then |
182 |
- if [[ "$(</var/lib/init.d/softlevel)" != "${RUNLEVEL_AC}" ]] |
183 |
+ if [[ "$(rc-status --runlevel)" != "${RUNLEVEL_AC}" ]] |
184 |
then |
185 |
- logger "Switching to ${RUNLEVEL_AC} runlevel" |
186 |
- /sbin/rc ${RUNLEVEL_AC} |
187 |
- fi |
188 |
-elif [[ "$(</var/lib/init.d/softlevel)" != "${RUNLEVEL_BATTERY}" ]] |
189 |
+ ${LOGGER} "Switching to ${RUNLEVEL_AC} runlevel" |
190 |
+ /sbin/rc ${RUNLEVEL_AC} |
191 |
+ fi |
192 |
+elif [[ "$(rc-status --runlevel)" != "${RUNLEVEL_BATTERY}" ]] |
193 |
then |
194 |
- logger "Switching to ${RUNLEVEL_BATTERY} runlevel" |
195 |
+ ${LOGGER} "Switching to ${RUNLEVEL_BATTERY} runlevel" |
196 |
/sbin/rc ${RUNLEVEL_BATTERY} |
197 |
fi |
198 |
</pre> |
199 |
@@ -433,15 +457,15 @@ |
200 |
Alterna pero nos gustaría arrancar en el nivel de ejecución battery en |
201 |
otros casos. Una solución sería agregar un parámetro adicional al |
202 |
gestor de arranque con <c>softlevel=battery</c>, pero es fácil que |
203 |
-dicha elección se olvide. Una mejor manera es falsear un evento ACPI |
204 |
+dicha elección se olvide. Una forma mejor es falsear un evento ACPI |
205 |
al término del proceso de arranque y dejar que el guión |
206 |
-<path>/etc/acpi/default.sh</path> decida si es necesario un cambio del |
207 |
-nivel de ejecución. Abra <path>/etc/conf.d/local.start</path> en su |
208 |
-editor favorito y agregue estas líneas: |
209 |
+<path>pmg_switch_runlevel.sh</path> decida si es necesario un cambio |
210 |
+del nivel de ejecución. Cree el fichero |
211 |
+<path>/etc/local.d/battery.start</path> con el siguiente contenido: |
212 |
</p> |
213 |
|
214 |
-<pre caption="Ajuste del nivel de ejecución al momento del arranque mediante la |
215 |
-edición de local.start"> |
216 |
+<pre caption="Ajuste del nivel de ejecución al momento del arranque mediante local.d/battery.start"> |
217 |
+#!/bin/sh |
218 |
<comment># Falsear un evento acpi para cambiarse el nivel de ejecución si se |
219 |
están usando baterías |
220 |
</comment> |
221 |
@@ -449,10 +473,12 @@ |
222 |
</pre> |
223 |
|
224 |
<p> |
225 |
-Al estar preparado tal como se ha hecho antes, ya puede activar las |
226 |
-políticas de Administración de Energía para los dispositivos |
227 |
+No olvide hacer este fichero ejecutable |
228 |
+(<c>chmod +x /etc/local.d/battery.start</c>). Una vez preparado, puede |
229 |
+activar las directrices de Administración de Energía para dispositivos |
230 |
individuales. |
231 |
</p> |
232 |
+ |
233 |
</body> |
234 |
</section> |
235 |
</chapter> |
236 |
@@ -469,9 +495,9 @@ |
237 |
ajustarla para que disminuya hará que ahorre mucha energía - |
238 |
frecuentemente sin disminución de rendimiento. |
239 |
</p> |
240 |
+ |
241 |
</body> |
242 |
</section> |
243 |
- |
244 |
<section> |
245 |
<title>Algunos términos técnicos</title> |
246 |
<body> |
247 |
@@ -511,9 +537,9 @@ |
248 |
más. Los eventos de ACPI pueden ser usados para activar o desactivar |
249 |
los cambios dinámicos dependiendo de la fuente de energía. |
250 |
</p> |
251 |
+ |
252 |
</body> |
253 |
</section> |
254 |
- |
255 |
<section> |
256 |
<title>Ajustando manualmente la frecuencia</title> |
257 |
<body> |
258 |
@@ -847,16 +873,14 @@ |
259 |
|
260 |
</body> |
261 |
</section> |
262 |
- |
263 |
<section> |
264 |
<title>Verificando el resultado</title> |
265 |
- |
266 |
<body> |
267 |
|
268 |
<p> |
269 |
-La última cosa por chequear es que sus nuevas políticas hagan bien el trabajo. |
270 |
-Una forma fácil de comprobarlo es monitorizando la velocidad de la CPU mientras |
271 |
-esté trabajando con su portátil: |
272 |
+Lo último por chequear es que sus nuevas políticas hagan bien el trabajo. |
273 |
+Una forma fácil de comprobarlo es monitorizando la velocidad de la CPU |
274 |
+mientras esté trabajando con su portátil: |
275 |
</p> |
276 |
|
277 |
<pre caption="Monitoreando la velocidad de la CPU"> |
278 |
@@ -881,6 +905,7 @@ |
279 |
<path>cpufreqd.conf</path>, obtendrá información adicional de lo que |
280 |
está pasando y será reportada a <c>syslog</c>. |
281 |
</p> |
282 |
+ |
283 |
</body> |
284 |
</section> |
285 |
</chapter> |
286 |
@@ -889,6 +914,7 @@ |
287 |
<title>Administración de Energía de la pantalla LCD</title> |
288 |
<section> |
289 |
<body> |
290 |
+ |
291 |
<p> |
292 |
Como puede ver en la <uri link="#doc_chap1_fig1">figura 1.1</uri>, la |
293 |
pantalla LCD consume la mayor parte de la energía (puede que no sea el |
294 |
@@ -897,9 +923,9 @@ |
295 |
contraluz si es posible. La mayoría de los portátiles ofrece la |
296 |
posibilidad para controlar la disminución de aquello. |
297 |
</p> |
298 |
+ |
299 |
</body> |
300 |
</section> |
301 |
- |
302 |
<section> |
303 |
<title>Ajustes de Standby</title> |
304 |
<body> |
305 |
@@ -930,9 +956,9 @@ |
306 |
[...] |
307 |
EndSection |
308 |
</pre> |
309 |
+ |
310 |
</body> |
311 |
</section> |
312 |
- |
313 |
<section> |
314 |
<title>Disminución de contraluz</title> |
315 |
<body> |
316 |
@@ -964,9 +990,15 @@ |
317 |
|
318 |
<pre caption="Cargar automáticamente el módulo thinkpad_acpi"> |
319 |
<comment>(¡Por favor, lea las advertencias indicadas arriba antes de seguir!)</comment> |
320 |
+ |
321 |
# <i>echo "options thinkpad_acpi experimental=1" >> /etc/modprobe.d/thinkpad_acpi</i> |
322 |
# <i>update-modules</i> |
323 |
-# <i>echo thinkpad_acpi >> /etc/modules.autoload.d/kernel-2.6</i> |
324 |
+# <i>nano /etc/conf.d/modules</i> |
325 |
+<comment># Cargar automáticamente el módulo thinkpad_acpi</comment> |
326 |
+modules_2_6="thinkpad_acpi" |
327 |
+<comment># Parámetros para el módulo thinkpad_acpi</comment> |
328 |
+modules_thinkpad_acpi_args_2_6="experimental=1" |
329 |
+ |
330 |
# <i>modprobe thinkpad_acpi</i> |
331 |
</pre> |
332 |
|
333 |
@@ -1035,6 +1067,7 @@ |
334 |
# <i>rc-update add lcd-brightness battery</i> |
335 |
# <i>rc</i> |
336 |
</pre> |
337 |
+ |
338 |
</body> |
339 |
</section> |
340 |
</chapter> |
341 |
@@ -1057,9 +1090,9 @@ |
342 |
frecuencia al disco. Luego puede activar las características de ahorro de |
343 |
energía del disco duro con <c>hdparm</c> como segunda alternativa. |
344 |
</p> |
345 |
+ |
346 |
</body> |
347 |
</section> |
348 |
- |
349 |
<section> |
350 |
<title>Aumentando el tiempo de inactividad - laptop-mode</title> |
351 |
<body> |
352 |
@@ -1127,9 +1160,9 @@ |
353 |
- lm-profiler es probable que genere algunos falsos positivos. No desactive |
354 |
un servicio si está inseguro que este es necesario. |
355 |
</p> |
356 |
+ |
357 |
</body> |
358 |
</section> |
359 |
- |
360 |
<section> |
361 |
<title>Limitar los accesos de escritura</title> |
362 |
<body> |
363 |
@@ -1153,9 +1186,9 @@ |
364 |
para encontrar los servicios a desactivar. Una vez que los haya eliminado todos, |
365 |
siga con la configuración de hdparm. |
366 |
</p> |
367 |
+ |
368 |
</body> |
369 |
</section> |
370 |
- |
371 |
<section> |
372 |
<title>hdparm</title> |
373 |
<body> |
374 |
@@ -1197,9 +1230,9 @@ |
375 |
duro. Ajustándolos a valores pequeños puede que dañe su disco y pierda la |
376 |
garantía. |
377 |
</impo> |
378 |
+ |
379 |
</body> |
380 |
</section> |
381 |
- |
382 |
<section> |
383 |
<title>Otros trucos</title> |
384 |
<body> |
385 |
@@ -1238,6 +1271,7 @@ |
386 |
archivos esenciales. No intente montar el directorio |
387 |
<path>/var/tmp</path> de esta forma. Portage lo usa para compilar ... |
388 |
</warn> |
389 |
+ |
390 |
</body> |
391 |
</section> |
392 |
</chapter> |
393 |
@@ -1264,9 +1298,9 @@ |
394 |
Option "DynamicClocks" "on" |
395 |
EndSection |
396 |
</pre> |
397 |
+ |
398 |
</body> |
399 |
</section> |
400 |
- |
401 |
<section> |
402 |
<title>Administración de energía para tarjetas inalámbricas</title> |
403 |
<body> |
404 |
@@ -1296,9 +1330,9 @@ |
405 |
acceso soportan la modificación de tiempos de faro (beacon), este |
406 |
sería un buen punto de inicio para ahorrar aún más energía. |
407 |
</p> |
408 |
+ |
409 |
</body> |
410 |
</section> |
411 |
- |
412 |
<section> |
413 |
<title>Administración de Energía USB</title> |
414 |
<body> |
415 |
@@ -1321,6 +1355,7 @@ |
416 |
[*] Support for Host-side USB |
417 |
[*] USB suspend/resume (EXPERIMENTAL) |
418 |
</pre> |
419 |
+ |
420 |
</body> |
421 |
</section> |
422 |
</chapter> |
423 |
@@ -1345,9 +1380,9 @@ |
424 |
esté en uso de forma de evitar apagar el sistema debido al largo tiempo |
425 |
de arranque. |
426 |
</p> |
427 |
+ |
428 |
</body> |
429 |
</section> |
430 |
- |
431 |
<section> |
432 |
<title>Suspensión (S3)</title> |
433 |
<body> |
434 |
@@ -1417,9 +1452,9 @@ |
435 |
"UseSysfsPowerState. S3 y S4 son los estados de sueño más interesantes |
436 |
debido a los mayores ahorros de energía. |
437 |
</p> |
438 |
+ |
439 |
</body> |
440 |
</section> |
441 |
- |
442 |
<section> |
443 |
<title>Hibernar (S4)</title> |
444 |
<body> |
445 |
@@ -1609,6 +1644,7 @@ |
446 |
Después abra <path>/etc/hibernate/hibernate/common.conf</path> y |
447 |
active las opciones fbsplash. Ejecute <c>hibernate</c> y disfrute. |
448 |
</p> |
449 |
+ |
450 |
</body> |
451 |
</section> |
452 |
</chapter> |
453 |
@@ -1808,6 +1844,7 @@ |
454 |
lugar para obtener ayuda. Si prefiere IRC, únase al <uri |
455 |
link="irc://irc.gentoo.org">canal</uri> <c>#gentoo-laptop</c>. |
456 |
</p> |
457 |
+ |
458 |
</body> |
459 |
</section> |
460 |
</chapter> |