Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ACPI idle handler fails to cool my Athlon XP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jorgepeixoto
Apprentice
Apprentice


Joined: 27 Apr 2006
Posts: 218
Location: São José dos Campos, São Paulo, Brasil

PostPosted: Tue Sep 25, 2007 11:20 am    Post subject: ACPI idle handler fails to cool my Athlon XP Reply with quote

Hi. Here you can have some information about Athlon XP cooling: http://www.daniel.nofftz.net/linux/Athlon-Powersaving-HOWTO.html

The most relevant parts:

Quote:

The HLT signal which is used by the normal idle-loop of the Linux kernel doesn't normally bring any significant power-saving on processors of the Athlon/Duron family. To get real power-saving on such processors, you have to put the processor in the STPGNT-Mode (Stop Grant Mode). In this mode, the processor is disconnected from the front-side bus (FSB), and can turn off parts of the CPU as well as reduce the clock to save power.

Some modern Motherboards/Chipsets also support a Function to make a STPGNT when a HLT signal is detected.

We must make sure that the “ Disconnect enable when STPGNT detected” bit is set in the north bridge of the chipset. All other work is done by the ACPI subsystem of the kernel which sends a STPGNT signal to the processor, when it enters the acpi-c2 idle mode.

Some Chipsets also support a STPGNT if a HLT signal is detected. This Motherboards/Chipsets don't need ACPI to be enabled!


In the kernel config, under ACPI, I have "ACPI Support", "Sleep states", "Button" and "Processor" enabled.

I can use the program athcool to manipulate two bits: 'Disconnect when STPGNT Detected' and 'HALT Command Detection'

From the explanation above, I should enable 'Disconnect when STPGNT Detected' and enable ACPI in my kernel. I have done that, but the CPU is still hot. This suggests that the ACPI handler is failing to send the STPGNT signal.

If I enable the bit 'HALT Command Detection', then the CPU gets almost 10C cooler, but I get problems with my TV card.

So, why does the ACPI handler fail to send the STPGNT signal?

I wanted the kernel ACPI handler to send the STPGNT signal so that the CPU can be cool without the 'HALT Command Detection'; I have no idea if this would solve the TV card problems, but it is worth a try.

some info:

Code:


jorge@jorge ~ $ emerge --info
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 AMD Athlon(tm) XP 2600+
Timestamp of tree: Mon, 24 Sep 2007 18:50:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ http://gentoo.localhost.net.ar/ http://mirrors.usu.edu/mirrors/gentoo/ http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LANG="pt_BR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/jorgeportage /usr/portage/local/layman/enlightenment /usr/portage/local/layman/initng"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X aac aalib acpi alsa aotuv bash-completion bogofilter branding bzip2 cairo cdr cracklib divx dri emacs emacs-w3 encode evo fam ffmpeg firefox fortran gcj gcl gif glibc-omitfp gmedia gnuplot gpm gstreamer gtk2 gzip-el iconv ipv6 jpeg kdeenablefinal kdehiddenvisibility lesstif libcaca lirc logrotate mad matroska midi mikmod mmx mmxext mng moznopango mp2 mp3 mpeg mplayer mudflap ncurses network-cron nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pch pcre pdf png pppd psyco python qt3support quicktime readline realmedia rtc sdl session sox spell sse ssl svg symlink tcltk tcpd theora tiff tk toolkit-scroll-bars truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis wmp x86 xml xorg xosd xv zlib" ALSA_CARDS="cmipci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="inputlirc" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Code:

jorge@jorge ~ $ sudo lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
00:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0b.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
00:0b.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
00:0c.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 440] (rev a3)
Back to top
View user's profile Send private message
mattsteven
Apprentice
Apprentice


Joined: 27 Oct 2003
Posts: 240
Location: Your Planet

PostPosted: Wed Sep 26, 2007 7:34 pm    Post subject: Reply with quote

I've had good luck with the athcool program on its own, it seems to know the magic parameters for most cpus.
_________________
Matthew Steven
Linux-only desktop since 1998
Graying hair since 2006
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum