Athlon Powersaving HOWTO Daniel Nofftz Seiji Kaneko - { F 2007-06-06 Revision History Revision 1.2.3 2007-06-06 Revised by: dn 1.2.3 C K p (Rajeev V. Pillai ) Revision 1.2.2 2007-05-30 Revised by: dn nforce disable R } h Typo C Revision 1.2.1 2007-05-13 Revised by: dn ?? \ V ?? C ?ADisclaimer ?C Revision 1.2 2007-05-10 Revised by: dn coolrun ? A | g K ( u W ) URL V K ? A C Z X ?X (GFDL GPL2 ) A A N Z V r e B ?? ?? ?X Revision 1.1.12 2006-04-06 Revised by: dn typo C Revision 1.1.11 2005-03-05 Revised by: dn SiS741 ? ?? - ? ? B R } h C n b N ?? ?C Revision 1.1.10 2005-02-17 Revised by: dn SiS741 B ? ?C B Revision 1.1.9 2004-12-19 Revised by: dn ? ?X V ?A ?W ?L ?C Revision 1.1.8 2004-12-12 Revised by: dn rtsensors ?V N ? Revision 1.1.7 2004-12-10 Revised by: dn J [ l 2.6.9 J [ l p b ` ? B | C f b N X X V A ?? ?X Revision 1.1.6 2004-11-28 Revised by: dn SIS746/748 KT880 ? B ? @ R } h C n b N athcool ??X Revision 1.1.5 2004-05-09 Revised by: dn n K [ | L Revision 1.1.4 2004-04-24 Revised by: dn sis ` b v Z b g R } h C n b N ?X B V ?T E h C ?A2.6.5 J [ l p p b ` Revision 1.1.3 2004-04-01 Revised by: dn ?X Revision 1.1.2 2004-03-30 Revised by: dn KT600 R } h C n b N ? B T E h ??? ??? ? B Revision 1.1.1 2003-12-18 Revised by: dn { u W | B T E h ?C ( ) ? Revision 1.1.0 2003-10-04 Revised by: dn ? N ?? B Athlon/Duron/AthlonXP v Z b T ? } U [ { [ h/ ` b v Z b g ?g ? ?? ?p [ Z [ u @ \ L @ B CPU ?V X e ? d ? A x ?L ( ? A P [ X CPU q [ g V N ? x m t @ g ? A t @ ? ? ) B ----------------------------------------------------------------------- Table of Contents 1. ? ? 1.1. Athlon p [ Z [ u [ h ? { 1.2. Copyright and License 1.3. Disclaimer 1.4. t B [ h o b N/ / T | [ g 1.5. ? ?V 2. l X ?A v [ ` 2.1. R } h C n b N ( E ) 2.2. coolrun V F X N v g ( E ) 2.3. Athcool v O ( E ) 2.4. BIOS A b v f [ g 2.5. J [ l p b ` 2.6. LVCool g @ 2.7. FVCool v O 2.8. AMD 760MP p [ Z [ u 3. ??H 3.1. ? ?? ? e X g @ 3.2. m ?o O/ _ 3.3. ? ??? ?C 3.4. ? ? ? ?C ( ? VIA ` b v Z b g ) 3.5. ToDo 3.6. | 3.7. { ? 1. ? ? 1.1. Athlon p [ Z [ u [ h ? { ? Linux J [ l ?A C h [ v ?g ? HLT M ?AAthlon/Duron/ AthlonXP t @ ~ ?v Z b T ( ? ? Athlon ? ? ? ) ??? ?? ?p [ Z [ u ? ? B Athlon v Z b T ?{ ?p [ Z [ u s ?? ?A v Z b T STPGNT-Mode (Stop Grant Mode) ? K v B ? [ h ??v Z b T ?t g T C h o X (FSB) ?? ACPU ? ?d ? A d ?? ? ??N b N ?? ? B ???} U [ { [ h/ ` b v Z b g ?AHLT M o ? STPGNT [ h ? @ \ T | [ g ? ? B ----------------------------------------------------------------------- 1.2. Copyright and License y ?F { ???? z This document, Athlon Powersaving HOWTO, is copyrighted (c) 2003-2007 by Daniel Nofftz. This work is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. A copy of the license is available at http://www.daniel.nofftz.net/ linux/gpl_v2.txt . Linux is a registered trademark of Linus Torvalds. ----------------------------------------------------------------------- 1.3. Disclaimer y ?F { ???? z This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. All copyrights are held by their respective owners, unless specifically noted otherwise. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark. Naming of particular products or brands should not be seen as endorsements. ----------------------------------------------------------------------- 1.4. t B [ h o b N/ / T | [ g t B [ h o b N ? ? ? d v ? ? B V ` b v Z b g ? ??V @ ?K v ?? ? ? B ? A ?? @ ? ?? K v ? B ? A X y ~ X ???? ?? ? B p ?? ?? ?? ? B ?L ?~ e A ? ] ?? e-mail A h X ? ?? ? B d q [ ?p ?? h C c ?? ? B ? A T | [ g ? ?? APaypal o R ( d q [ A h X ? ) ?? t A V ? V n [ h E F A } ? ;) ----------------------------------------------------------------------- 1.5. ? ?V ? ??V ?? http://www.daniel.nofftz.net/linux/ ?? ?u ? ? B HOWTO ?\ [ X R [ h Linux Documentation Project ?z X g ? B ? ?v ? ? ? B ----------------------------------------------------------------------- 2. l X ?A v [ ` ? ?e ???A ?I A ? Athlon/Athlon-XP x [ X ?V X e ??p [ Z [ u B ?? ??l X ? @ ? ? B ? ? ?? ?? ?? @ ?A" R } h C n b N" p @ ?Aathcool v O ? B J [ l p b ` ? ? ? ? ?J ~ ? ? A LVCool ? ??` b v Z b g t @ ~ T | [ g ? ? B ?e @ ???S ?A ` b v Z b g ?m [ X u b W "STPGNT o f B X R l N g L ?? r b g" ?? ?? B ? ? B ?K v ? ?Aacpi-c2 A C h [ h ? ?v Z b T STPGNT M ? J [ l ACPI T u V X e s ? ? B J [ l ACPI T | [ g g ? ????? ?? ??A J [ l ?? ?V J [ l ?? K v B ACPI ?A ?I v V ?AGeneral Setup+Power Management Setup->ACPI ? ? B ? ? AACPI Bus Manager ASystem Processor ?e I v V ?L K v B ? ?V 2.4.22 J [ l ??AGeneral Setup+ACPI Support ? ? B ? ? Processor ? ?I v V ?L ? K v B 2.6.x J [ l : Powermanagment options+ACPI ? B ? ? AProcessor ? ?I v V L K v B Thermal Zone L ? ?? B ? ?` b v Z b g ??AHLT M o STPGNT ? @ \ T | [ g ? ? B ?} U [ { [ h/ ` b v Z b g ? ACPI @ \ L K v B ?AACPI ? ? ` b v Z b g ACPI K v ?` b v Z b g ? W ? ? B ? ?} U [ { [ h ? ? [ ? (Section 3.1 Q ) B ----------------------------------------------------------------------- 2.1. R } h C n b N ( E ) R } h C n b N g ??A ? J [ l ACPI T | [ g L ? ? K v B s v ??? ??A ?| L ? ? B p [ Z [ u @ \ L ? u [ g ?s v ? B p [ Z [ u @ \ ?? ?R } h On/Off \ ? B KT133/133A, KX133, KL/KLE133, KM/KN133 ?e ` b v Z b g ( ?? ACPI L K v ) L - setpci -v -H1 -s 0:0.0 52=$(printf %x $((0x$(setpci -H1 -s 0:0.0 52) | 0x80))) - setpci -v -H1 -s 0:0.0 52=$(printf %x $((0x$(setpci -H1 -s 0:0.0 52) & 0x7f))) KT266/266A/333,KM266/266A/333 ?e ` b v Z b g L - setpci -v -H1 -s 0:0.0 92=$(printf %x $((0x$(setpci -H1 -s 0:0.0 92) | 0x80))) setpci -v -H1 -s 0:0.0 95=$(printf %x $((0x$(setpci -H1 -s 0:0.0 95) | 0x02))) - setpci -v -H1 -s 0:0.0 92=$(printf %x $((0x$(setpci -H1 -s 0:0.0 92) & 0x7f))) setpci -v -H1 -s 0:0.0 95=$(printf %x $((0x$(setpci -H1 -s 0:0.0 95) & 0xfd))) KT333CF/KT400/KT400A/KM400/KM400A/KT600 ??? L - setpci -v -H1 -s 0:0.0 D2=$(printf %x $((0x$(setpci -H1 -s 0:0.0 D2) | 0x80))) setpci -v -H1 -s 0:0.0 D5=$(printf %x $((0x$(setpci -H1 -s 0:0.0 D5) | 0x02))) - setpci -v -H1 -s 0:0.0 D2=$(printf %x $((0x$(setpci -H1 -s 0:0.0 D2) & 0x7f))) setpci -v -H1 -s 0:0.0 D5=$(printf %x $((0x$(setpci -H1 -s 0:0.0 D5) & 0xfd))) KT880 ??? L - setpci -v -H1 -s 0:0.0 82=$(printf %x $((0x$(setpci -H1 -s 0:0.0 82) | 0x80))) setpci -v -H1 -s 0:0.0 85=$(printf %x $((0x$(setpci -H1 -s 0:0.0 85) | 0x02))) - setpci -v -H1 -s 0:0.0 82=$(printf %x $((0x$(setpci -H1 -s 0:0.0 82) & 0x7f))) setpci -v -H1 -s 0:0.0 85=$(printf %x $((0x$(setpci -H1 -s 0:0.0 85) & 0xfd))) SIS730/733 ??? ( I B ?? ?? A | [ g ) L - setpci -v -H1 -s 0:0.0 6B=$(printf %x $((0x$(setpci -H1 -s 0:0.0 6B) | 0x01))) - setpci -v -H1 -s 0:0.0 6B=$(printf %x $((0x$(setpci -H1 -s 0:0.0 6B) & 0xfe))) SIS735/740/745/755 ??? L - setpci -v -H1 -s 0:0.0 6A=$(printf %x $((0x$(setpci -H1 -s 0:0.0 6A) | 0x0003))) - setpci -v -H1 -s 0:0.0 6A=$(printf %x $((0x$(setpci -H1 -s 0:0.0 6A) & 0xfffc))) SIS741/741GX/746/748 ??? L - setpci -v -H1 -s 0:0.0 6C=$(printf %x $((0x$(setpci -H1 -s 0:0.0 6C) | 0x0003))) - setpci -v -H1 -s 0:0.0 6C=$(printf %x $((0x$(setpci -H1 -s 0:0.0 6C) & 0xfffc))) Nforce ??? L - setpci -v -H1 -s 0:0.0 E7=$(printf %x $((0x$(setpci -H1 -s 0:0.0 E7) | 0x06))) - setpci -v -H1 -s 0:0.0 E7=$(printf %x $((0x$(setpci -H1 -s 0:0.0 E7) & 0xf9))) Nforce 2 ??? (ACPI ? ? ?? ? ) L - setpci -v -H1 -s 0:0.0 6F=$(printf %x $((0x$(setpci -H1 -s 0:0.0 6F) | 0x10))) - setpci -v -H1 -s 0:0.0 6F=$(printf %x $((0x$(setpci -H1 -s 0:0.0 6F) & 0xef))) AMD751 AMD760/761 (760MP ??g ? BACPI ? ? ?? ? ) L - setpci -v -s 0:0.0 0x62=$(printf %x $((0x$(setpci -H1 -s 0:0.0 62) | 0x06))) - setpci -v -s 0:0.0 0x62=$(printf %x $((0x$(setpci -H1 -s 0:0.0 62) & 0xf9))) ----------------------------------------------------------------------- 2.2. coolrun V F X N v g ( E ) coolrun ? ?V F X N v g ?A L ?R } h C n b N g ?K v ? ? S ?? ? B A HOWTO ? ?? ?? ?AGrozdan Nikolov A J E ??? ? B ? ?? ( ?_ E [ h ) https://sourceforge.net/ projects/coolrun/ B ----------------------------------------------------------------------- 2.3. Athcool v O ( E ) Athcool ? setpci R } h ? s ?v O ? B A L ? ` b v Z b g T | [ g ? A ? ? ? ` b v Z b g F ?p [ Z [ u ?? ? s ? B ? ( ?_ E [ h ) http://members.jcom.home.ne.jp/jacobi/ linux/softwares.html s ? B ?v O ?? ?? ! ----------------------------------------------------------------------- 2.4. BIOS A b v f [ g V } U [ { [ h ?? ??A [ J { [ h ` b v Z b g ?K v ?r b g Z b g ( ? ?A L ?? ? BIOS ??? I ? ) @ \ ? ? B } U [ { [ h ?x _ ?z [ y [ W ?A ??? BIOS A b v f [ g ?? ? m F ??? B ----------------------------------------------------------------------- 2.5. J [ l p b ` ?p b ` Newsnet ? ??p b ` (Jan Niehusmann ? ) ? ? ? B ? A ?p b ` KT266/266A ` b v Z b g ? ?? ?X ? ? B ? A ?p b ` ?R } h C n b N ? ? A J [ l s ? ?? ? B ? ?A g { ??P ?A J [ l X K v R } h C n b N ?? ?? B ?? ?i ?? B ? p b ` ? ? B 1. ? ? ?p b ` _ E [ h ? B 2.4.17 ? J [ l p b ` 2.4.21 ? J [ l p b ` (2.4.21 ?| [ g Thomas Reinhardt ) J [ l 2.6.5 p b ` B ?p b ` ?AKT600 ?? VIA ??` b v Z b g T | [ g ? ? (2.6.5 ?| [ g ?A ?` b v Z b g ?? T | [ g Sebastian Droege ) B J [ l 2.6.9 p b ` KT600 ?? Via ` b v Z b g T | [ g ? ? (2.6.5 2.6.9 ???A s Alexander Hug ) B 2. root ? O C ? B 3. cd /usr/src 4. ? ?R } h ?p b ` ??? - ( V 2.6.5 ?p b ` ?Alinux f B N g cd ?Apatch -p1 ? ) cat $path-to-patch/amd_cool.diff | patch -p0 5. cd linux 6. V J [ l B 7. ? u [ g ? B ?J [ l ?u [ g v v g ?? A amd_disconnect=yes ? s ? ? B AAthlon v Z b T ?? m ?o O A ?{ [ h ?? ?? ?? B ? ?A ?p b ` ?? ? e X g K v B ?? ? A/etc/lilo.conf t @ C amd_disconnect=yes ?s ?? ? ? ? B ----------------------------------------------------------------------- 2.6. LVCool g @ LVCool Windows ?v O VCool ??A ? B KT133/133A KX133 ` b v Z b g T | [ g ? ? ?A T | [ g ?? ? B http:// vcool.occludo.net/VC_Linux.html _ E [ h \ ? B Linux J [ l ACPI @ \ K v ? ? B ----------------------------------------------------------------------- 2.7. FVCool v O http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html ?A ?` b v Z b g T | [ g ??p [ Z [ u v O B g ? ? ? ?A ?? ? ? B ??? B ? A ?? ?} U [ { [ h ?{ [ h j ^ @ \ g ??v O (lm-sensors ? ) ? B ----------------------------------------------------------------------- 2.8. AMD 760MP p [ Z [ u 760MP } ` v Z b T ` b v Z b g ?p [ Z [ u L ? J [ l W [ B http://www.muru.com/linux/amd-smp-idle/ ? B ?? ?? x ?? ??? ??? ?A ? ? ?? ? [ ?? ? ? B ??? B ----------------------------------------------------------------------- 3. ??H 3.1. ? ?? ? e X g @ ?A L ?L ? p [ Z [ u i ???? p ?? ?? ?A e X g ?? ? ? ? ? B e X g ? ? @ B A x ? ?? t @ CPU q [ g V N ?g ? A t @ ? ` F b N ? ?? ? ?? ? ???? ? ? ? B ?? ? ? ?A ? CPU ? ? | ? B ? ??? ??? ? ? ? B 1. [ U (root) ?? B 2. cd /usr/src/linux 3. ? A R s [ ^ ?d ^ - while true; do make clean; make bzImage; done 20 30 b A t @ ? o ?t @ ? ?? ? ? ? B ????? ( ) CTRL-C ? [ v ~ ? Y ?? ?B ?? ACPU ? x ??? v O (lm-sensors xmbmon rtsensors ) ?g ? ?? ?? g ? B ----------------------------------------------------------------------- 3.2. m ?o O/ _ Athlon/Duron ?? ? m ?o O B AAMD Athlon Processor Revision Guide #11 #14 ? ? BAthlon XP ?? ?o O p x R ?? ?? ???A ??? Athlon XP ? l ? ? A ? ??? [1] B ? ? \ ( L ?o O ? ) * y ? ?? ? * r f I ? ?? ? * Ultra-DMA n [ h f B X N ?] x ? * V X e n O * USB ? * s [ ? o ?? BIOS A b v f [ g ?? ( o O #11 BIOS \ ? ?? ? ? ? [ X ? ) B A A ?m ?? ? BIOS ?? ? ? ??} U [ { [ h ? ? B Asus A7V133-C ??ABIOS I v V PCI master read caching L ?A ? ??? BBIOS ? Y @ \ ?L m F ? B ? A ? ?{ [ h ??ABIOS I v V Delayed Transaction ?? ? B ?I v V ?? ? ? ?? B : KT133A g { [ h ??A ?I v V L L VIA ?T E X u b W ?o O L ? ? ? ? B Asus A7V ?? Newsnet ?| X g * delayed transaction ? - T E h TV ?? ? * delayed transaction - T E h ? ?? B TV ?? ??? ?? * delayed transaction master read caching - TV ?? ??? ? ?? A T E h ? ?S ? B ? l ? B * d v Z b T/ } U [ { [ h ? d ??? ?? ? ???? B * ? ?} U [ { [ h ?I { [ h M [ ^ ?A d ? B * ? } U [ { [ h K7S5A (Elitegroup) ? ( ?m A ? { [ h ?p [ Z [ u @ \ L { ? s R ?? ) p [ Z [ u @ \ L ?? N ?? A p [ Z [ u ?g ?? ? ?? A ? p [ Z [ u L ? ?A y ?? TV ?I t ? ? ? ?? B ----------------------------------------------------------------------- 3.3. ? ??? ?C ? @ ? ? ?? Michael Hamilton ? ? B ?? ? ?C ? m F ? ?? ?A ?? ?? ?v ? A ?? ? V X e ?? m B @ ?? ? ??? ?? ? B ??A ? ?? ?? B ? A ? ?A f o C X PCI [ e V B ^ C } l ???? ?? ??C \ ??? ? B ? A T E h J [ h PCI A h X m K v B lspci R } h ? ? ? B o ? A "Multimedia audio controller" ? "AudioPCI" ? ?? s T A ?f o C X PCI A h X ?? ( A01:06.0 ??? ?l ?A ?o X ? A X b g ? A t @ N V ? ? ) B ?A ?f o C X ? [ e V B ^ C } l ? ? B setpci g ? B setpci -v -s "pci-address" latency_timer=ff [ e V B ^ C } ? ?? ?AIBM developerworks ? B y ?F ? Developerworks ? { ?? ?l ? B z ?C ?AUSB ? n [ h f B X N ?] x ?? ?A ?O ? ? L m ?A ??e X g ? B ? ??? ?? ? ( S R ? A O S ?I ? ? ?? ? ? ? ? ) B ? ??A ?? ? ? ?N ? ? ?? ?e X g ?? ? ? ? ?? B ?? ?? ? A setpci R } h ? ??/ u [ g ? s K v B init X N v g ?? ??? ? ? ?? ( h C o W [ [ h ?? ? ? ) B ----------------------------------------------------------------------- 3.4. ? ? ? ?C ( ? VIA ` b v Z b g ) ? AWijatmoko Prayitno ? ? B ? AVIA KT266, KT/KM333 KT/KM400 ` b v Z b g ???m F ? ? B VIA ?` b v Z b g ? ?? \ ? B VIA ?` b v Z b g ?? ?? ? B ?P ?A p [ Z [ u ?L R } h C ? l ? ?? ? B KT/KM333 KT/KM400 ` b v Z b g ?T E h C L : setpci -v -H1 -s 0:0.0 70=$(printf %x $((0x$(setpci -H1 -s 0:0.0 70) | 0x08))) : setpci -v -H1 -s 0:0.0 70=$(printf %x $((0x$(setpci -H1 -s 0:0.0 70) & 0xf7))) ?? ?? ? A setpci R } h ? ??/ u [ g ? s K v B init X N v g ?? ??? ? ? ?? ( h C o W [ [ h ?? ? ? ) B ----------------------------------------------------------------------- 3.5. ToDo ?` b v Z b g ? X ?? ?? Athlon64 Opteron CPU ?p [ Z [ u V X e ?? ? m [ g u b N ?p [ Z [ u ?? ? ----------------------------------------------------------------------- 3.6. | ? ?| ? ? ? ? B _ ??A ?? ?{ ?V ??| ? B Zsolt Mocza n K [ Carlos Mayo X y C ( ? ? ? ? ) Bruno Buys u W E | g K Mathieu Pillard t X ( ? ? ? ? ) Maurizio Fantino C ^ A ( ? ? ? ? ) Fabian Mohren h C c ( ? ? ) ? ? { ----------------------------------------------------------------------- 3.7. { ? ?? E E E ?? ?? m ?? B | F * ? Z F * _ ?? Notes [1] : Model 4 (Athlon Thunderbird) ? #11,#14 Model 6 (Athlon XP) ??h L g C ? B ? ?B