/[gentoo]/xml/htdocs/doc/en/power-management-guide.xml
Gentoo

Diff of /xml/htdocs/doc/en/power-management-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.42 Revision 1.43
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.42 2010/01/22 15:48:00 nightmorph Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.43 2010/04/05 01:25:53 nightmorph Exp $ -->
4 4
5<guide> 5<guide>
6<title>Power Management Guide</title> 6<title>Power Management Guide</title>
7 7
8<author title="Author"> 8<author title="Author">
22 22
23<!-- The content of this document is licensed under the CC-BY-SA license --> 23<!-- The content of this document is licensed under the CC-BY-SA license -->
24<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 24<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
25<license/> 25<license/>
26 26
27<version>1.45</version> 27<version>1.46</version>
28<date>2010-01-22</date> 28<date>2010-04-04</date>
29 29
30<chapter> 30<chapter>
31<title>Introduction</title> 31<title>Introduction</title>
32<section> 32<section>
33<body> 33<body>
271</p> 271</p>
272 272
273<p> 273<p>
274First you need a script which changes the runlevel to <c>default</c> 274First you need a script which changes the runlevel to <c>default</c>
275respectively <c>battery</c> depending on the power source. The script uses the 275respectively <c>battery</c> depending on the power source. The script uses the
276<c>on_ac_power</c> command from <c>sys-power/powermgmt-base</c> - make sure the 276<c>on_ac_power</c> command from <c>sys-power/pm-utils</c> - make sure the
277package is installed on your system. 277package is installed on your system.
278</p> 278</p>
279 279
280<pre caption="Installing powermgt-base"> 280<pre caption="Installing pm-utils">
281# <i>emerge powermgmt-base</i> 281# <i>emerge pm-utils</i>
282</pre> 282</pre>
283 283
284<p> 284<p>
285You are now able to determine the power source by executing <c>on_ac_power 285You are now able to determine the power source by executing <c>on_ac_power
286&amp;&amp; echo AC available || echo Running on batteries</c> in a shell. The 286&amp;&amp; echo AC available || echo Running on batteries</c> in a shell. The

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20