/[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.34 Revision 1.35
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.34 2008/01/21 12:15:56 jkt Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.35 2008/01/31 23:38:05 nightmorph Exp $ -->
4<guide link="/doc/en/power-management-guide.xml"> 4<guide link="/doc/en/power-management-guide.xml">
5<title>Power Management Guide</title> 5<title>Power Management Guide</title>
6 6
7<author title="Author"> 7<author title="Author">
8 <mail link="earthwings@gentoo.org">Dennis Nienhüser</mail> 8 <mail link="earthwings@gentoo.org">Dennis Nienhüser</mail>
21 21
22<!-- The content of this document is licensed under the CC-BY-SA license --> 22<!-- The content of this document is licensed under the CC-BY-SA license -->
23<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 23<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
24<license/> 24<license/>
25 25
26<version>1.38</version> 26<version>1.39</version>
27<date>2008-01-21</date> 27<date>2008-01-31</date>
28 28
29<chapter> 29<chapter>
30<title>Introduction</title> 30<title>Introduction</title>
31<section> 31<section>
32<body> 32<body>
822<c>setterm -blank &lt;number-of-minutesM&gt;</c>, <c>setterm -powersave on</c> 822<c>setterm -blank &lt;number-of-minutesM&gt;</c>, <c>setterm -powersave on</c>
823and <c>setterm -powerdown &lt;number-of-minutesM&gt;</c>. For X.org, modify 823and <c>setterm -powerdown &lt;number-of-minutesM&gt;</c>. For X.org, modify
824<path>/etc/X11/xorg.conf</path> similar to this: 824<path>/etc/X11/xorg.conf</path> similar to this:
825</p> 825</p>
826 826
827<pre caption="LCD suspend settings in X.org and XFree86"> 827<pre caption="LCD suspend settings in X.org">
828Section "ServerLayout" 828Section "ServerFlags"
829 Identifier [...]
830 [...]
831 Option "BlankTime" "5" <comment># Blank the screen after 5 minutes (Fake)</comment> 829 Option "blank time" "5" <comment># Blank the screen after 5 minutes (Fake)</comment>
832 Option "StandbyTime" "10" <comment># Turn off screen after 10 minutes (DPMS)</comment> 830 Option "standby time" "10" <comment># Turn off screen after 10 minutes (DPMS)</comment>
833 Option "SuspendTime" "20" <comment># Full suspend after 20 minutes</comment> 831 Option "suspend time" "20" <comment># Full suspend after 20 minutes</comment>
834 Option "OffTime" "30" <comment># Turn off after half an hour</comment> 832 Option "off time" "30" <comment># Turn off after half an hour</comment>
835 [...] 833 [...]
836EndSection 834EndSection
837 835
838[...] 836[...]
839 837
840Section "Monitor" 838Section "Monitor"
841 Identifier [...] 839 Identifier [...]
842 Option "DPMS" "true" 840 Option "DPMS"
843 [...] 841 [...]
844EndSection 842EndSection
845</pre> 843</pre>
846
847<p>
848This is the same for XFree86 and <path>/etc/X11/XF86Config</path>.
849</p>
850 844
851</body> 845</body>
852</section> 846</section>
853<section> 847<section>
854<title>Backlight dimming</title> 848<title>Backlight dimming</title>
858Probably more important is the backlight dimming. If you have access to the 852Probably more important is the backlight dimming. If you have access to the
859dimming settings via a tool, write a small script that dims the backlight in 853dimming settings via a tool, write a small script that dims the backlight in
860battery mode and place it in your <c>battery</c> runlevel. The following script 854battery mode and place it in your <c>battery</c> runlevel. The following script
861should work on most IBM Thinkpads and Toshiba laptops. You've got to enable the 855should work on most IBM Thinkpads and Toshiba laptops. You've got to enable the
862appropriate option in your kernel (IBM Thinkpads only). For Toshiba laptops, 856appropriate option in your kernel (IBM Thinkpads only). For Toshiba laptops,
863install <c>sys-power/acpitool</c> and skip configuration of <c>ibm_acpi</c> as 857install <c>sys-power/acpitool</c> and skip configuration of <c>thinkpad_acpi</c>
864described below. 858(formerly called <c>ibm_acpi</c>) as described below.
865</p> 859</p>
866 860
867<warn> 861<warn>
868Support for setting brightness is marked experimental in ibm-acpi. It accesses 862Support for setting brightness is marked experimental in thinkpad_acpi. It accesses
869hardware directly and may cause severe harm to your system. Please read the 863hardware directly and may cause severe harm to your system. Please read the
870<uri link="http://ibm-acpi.sourceforge.net/">ibm-acpi website</uri> 864<uri link="http://ibm-acpi.sourceforge.net/">thinkpad_acpi website</uri>
871</warn> 865</warn>
872 866
873<p> 867<p>
874To be able to set the brightness level, the ibm_acpi module has to be loaded 868To be able to set the brightness level, the thinkpad_acpi module has to be loaded
875with the experimental parameter. 869with the experimental parameter.
876</p> 870</p>
877 871
878<pre caption="automatically loading the ibm_acpi module"> 872<pre caption="automatically loading the thinkpad_acpi module">
879<comment>(Please read the warnings above before doing this!)</comment> 873<comment>(Please read the warnings above before doing this!)</comment>
880# <i>echo "options ibm_acpi experimental=1" >> /etc/modules.d/ibm_acpi</i> 874# <i>echo "options thinkpad_acpi experimental=1" >> /etc/modules.d/thinkpad_acpi</i>
881# <i>/sbin/update-modules</i> 875# <i>/sbin/update-modules</i>
882# <i>echo ibm_acpi >> /etc/modules.autoload.d/kernel-2.6</i> 876# <i>echo thinkpad_acpi >> /etc/modules.autoload.d/kernel-2.6</i>
883# <i>modprobe ibm_acpi</i> 877# <i>modprobe thinkpad_acpi</i>
884</pre> 878</pre>
885 879
886<p> 880<p>
887This should work without error messages and a file 881This should work without error messages and a file
888<path>/proc/acpi/ibm/brightness</path> should be created after loading the 882<path>/proc/acpi/ibm/brightness</path> should be created after loading the
890the power source. 884the power source.
891</p> 885</p>
892 886
893<pre caption="/etc/conf.d/lcd-brightness"> 887<pre caption="/etc/conf.d/lcd-brightness">
894<comment># See /proc/acpi/ibm/brightness for available values</comment> 888<comment># See /proc/acpi/ibm/brightness for available values</comment>
895<comment># Please read /usr/src/linux/Documentation/ibm-acpi.txt</comment> 889<comment># Please read /usr/src/linux/Documentation/thinkpad-acpi.txt</comment>
896 890
897<comment># brightness level in ac mode. Default is 7.</comment> 891<comment># brightness level in ac mode. Default is 7.</comment>
898BRIGHTNESS_AC=7 892BRIGHTNESS_AC=7
899 893
900<comment># brightness level in battery mode. Default is 4.</comment> 894<comment># brightness level in battery mode. Default is 4.</comment>
922 ebegin "Setting LCD brightness" 916 ebegin "Setting LCD brightness"
923 acpitool -l $LEVEL >/dev/null || ewarn "Unable to set lcd brightness" 917 acpitool -l $LEVEL >/dev/null || ewarn "Unable to set lcd brightness"
924 eend $? 918 eend $?
925 else 919 else
926 ewarn "Setting LCD brightness is not supported." 920 ewarn "Setting LCD brightness is not supported."
927 ewarn "For IBM Thinkpads, check that ibm_acpi is loaded into the kernel" 921 ewarn "For IBM Thinkpads, check that thinkpad_acpi is loaded into the kernel"
928 ewarn "For Toshiba laptops, you've got to install sys-power/acpitool" 922 ewarn "For Toshiba laptops, you've got to install sys-power/acpitool"
929 fi 923 fi
930} 924}
931 925
932start() { 926start() {

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20