1 |
swift 11/08/17 07:10:12 |
2 |
|
3 |
Modified: power-management-guide.xml |
4 |
Log: |
5 |
Bug #367145 - Update powermanagement guide to reflect OpenRC changes |
6 |
|
7 |
Revision Changes Path |
8 |
1.47 xml/htdocs/doc/en/power-management-guide.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/power-management-guide.xml?rev=1.47&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/power-management-guide.xml?rev=1.47&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/power-management-guide.xml?r1=1.46&r2=1.47 |
13 |
|
14 |
Index: power-management-guide.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v |
17 |
retrieving revision 1.46 |
18 |
retrieving revision 1.47 |
19 |
diff -u -r1.46 -r1.47 |
20 |
--- power-management-guide.xml 28 Mar 2011 10:26:10 -0000 1.46 |
21 |
+++ power-management-guide.xml 17 Aug 2011 07:10:12 -0000 1.47 |
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/en/power-management-guide.xml,v 1.46 2011/03/28 10:26:10 nightmorph Exp $ --> |
26 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.47 2011/08/17 07:10:12 swift Exp $ --> |
27 |
|
28 |
<guide> |
29 |
<title>Power Management Guide</title> |
30 |
@@ -24,8 +24,8 @@ |
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>3</version> |
37 |
+<date>2011-08-17</date> |
38 |
|
39 |
<chapter> |
40 |
<title>Introduction</title> |
41 |
@@ -391,18 +391,20 @@ |
42 |
<c>softlevel=battery</c>, but it's likely to forget choosing it. A better way |
43 |
is faking an ACPI event in the end of the boot process and letting |
44 |
<path>pmg_switch_runlevel.sh</path> script decide whether a runlevel change is |
45 |
-necessary. Open <path>/etc/conf.d/local.start</path> in your favourite editor |
46 |
-and add these lines: |
47 |
+necessary. Create a <path>/etc/local.d/battery.start</path> file with the |
48 |
+following contents: |
49 |
</p> |
50 |
|
51 |
-<pre caption="Runlevel adjustment at boot time by editing local.start"> |
52 |
+<pre caption="Runlevel adjustment at boot time through local.d/battery.start"> |
53 |
+#!/bin/sh |
54 |
<comment># Fake acpi event to switch runlevel if running on batteries</comment> |
55 |
/etc/acpi/actions/pmg_switch_runlevel.sh "battery/battery" |
56 |
</pre> |
57 |
|
58 |
<p> |
59 |
-Prepared like this you can activate Power Management policies for individual |
60 |
-devices. |
61 |
+Don't forget to mark the file as executable (<c>chmod +x |
62 |
+/etc/local.d/battery.start</c>). Prepared like this you can activate Power |
63 |
+Management policies for individual devices. |
64 |
</p> |
65 |
|
66 |
</body> |
67 |
@@ -886,11 +888,17 @@ |
68 |
loaded with the experimental parameter. |
69 |
</p> |
70 |
|
71 |
-<pre caption="automatically loading the thinkpad_acpi module"> |
72 |
+<pre caption="Automatically loading the thinkpad_acpi module"> |
73 |
<comment>(Please read the warnings above before doing this!)</comment> |
74 |
+ |
75 |
# <i>echo "options thinkpad_acpi experimental=1" >> /etc/modprobe.d/thinkpad_acpi</i> |
76 |
# <i>update-modules</i> |
77 |
-# <i>echo thinkpad_acpi >> /etc/modules.autoload.d/kernel-2.6</i> |
78 |
+# <i>nano /etc/conf.d/modules</i> |
79 |
+<comment># Autoload the thinkpad_acpi module</comment> |
80 |
+modules_2_6="thinkpad_acpi" |
81 |
+<comment># Parameters for the thinkpad_acpi module</comment> |
82 |
+modules_thinkpad_acpi_args_2_6="experimental=1" |
83 |
+ |
84 |
# <i>modprobe thinkpad_acpi</i> |
85 |
</pre> |