/[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.46 Revision 1.47
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.46 2011/03/28 10:26:10 nightmorph Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.47 2011/08/17 07:10:12 swift 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>2</version> 27<version>3</version>
28<date>2011-03-02</date> 28<date>2011-08-17</date>
29 29
30<chapter> 30<chapter>
31<title>Introduction</title> 31<title>Introduction</title>
32<section> 32<section>
33<body> 33<body>
389from AC, but we'd like to boot into the battery runlevel otherwise. One 389from AC, but we'd like to boot into the battery runlevel otherwise. One
390solution would be to add another entry to the boot loader with the parameter 390solution would be to add another entry to the boot loader with the parameter
391<c>softlevel=battery</c>, but it's likely to forget choosing it. A better way 391<c>softlevel=battery</c>, but it's likely to forget choosing it. A better way
392is faking an ACPI event in the end of the boot process and letting 392is faking an ACPI event in the end of the boot process and letting
393<path>pmg_switch_runlevel.sh</path> script decide whether a runlevel change is 393<path>pmg_switch_runlevel.sh</path> script decide whether a runlevel change is
394necessary. Open <path>/etc/conf.d/local.start</path> in your favourite editor 394necessary. Create a <path>/etc/local.d/battery.start</path> file with the
395and add these lines: 395following contents:
396</p> 396</p>
397 397
398<pre caption="Runlevel adjustment at boot time by editing local.start"> 398<pre caption="Runlevel adjustment at boot time through local.d/battery.start">
399#!/bin/sh
399<comment># Fake acpi event to switch runlevel if running on batteries</comment> 400<comment># Fake acpi event to switch runlevel if running on batteries</comment>
400/etc/acpi/actions/pmg_switch_runlevel.sh "battery/battery" 401/etc/acpi/actions/pmg_switch_runlevel.sh "battery/battery"
401</pre> 402</pre>
402 403
403<p> 404<p>
404Prepared like this you can activate Power Management policies for individual 405Don't forget to mark the file as executable (<c>chmod +x
405devices. 406/etc/local.d/battery.start</c>). Prepared like this you can activate Power
407Management policies for individual devices.
406</p> 408</p>
407 409
408</body> 410</body>
409</section> 411</section>
410</chapter> 412</chapter>
884<p> 886<p>
885To be able to set the brightness level, the thinkpad_acpi module has to be 887To be able to set the brightness level, the thinkpad_acpi module has to be
886loaded with the experimental parameter. 888loaded with the experimental parameter.
887</p> 889</p>
888 890
889<pre caption="automatically loading the thinkpad_acpi module"> 891<pre caption="Automatically loading the thinkpad_acpi module">
890<comment>(Please read the warnings above before doing this!)</comment> 892<comment>(Please read the warnings above before doing this!)</comment>
893
891# <i>echo "options thinkpad_acpi experimental=1" >> /etc/modprobe.d/thinkpad_acpi</i> 894# <i>echo "options thinkpad_acpi experimental=1" >> /etc/modprobe.d/thinkpad_acpi</i>
892# <i>update-modules</i> 895# <i>update-modules</i>
893# <i>echo thinkpad_acpi >> /etc/modules.autoload.d/kernel-2.6</i> 896# <i>nano /etc/conf.d/modules</i>
897<comment># Autoload the thinkpad_acpi module</comment>
898modules_2_6="thinkpad_acpi"
899<comment># Parameters for the thinkpad_acpi module</comment>
900modules_thinkpad_acpi_args_2_6="experimental=1"
901
894# <i>modprobe thinkpad_acpi</i> 902# <i>modprobe thinkpad_acpi</i>
895</pre> 903</pre>
896 904
897<p> 905<p>
898This should work without error messages and a file 906This should work without error messages and a file

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

  ViewVC Help
Powered by ViewVC 1.1.20