The speedfreq.rc checks for the charging/discharging state of the BATn. What it should really do to is check the on-line/off-line state of an AC-Adapter. Same is true for the battery.sh script...this one even logs the AC-Adapters state derived from the BAT state. Beside of the fact that checking the (usually single) ADP state is easier this works more reliable on buggy ACPI-BIOS implementations, namely my Clevo-Laptop and probably several others stating 'discharging' for a fully charged BAT. Reproducible: Always Steps to Reproduce: 1. set speedfreq-policy to auto 2. switch on my laptop with fully charged BATs and AC-Adapter plugged in 3. Actual Results: speedfreq.rc decides to start speedfreq using the powersave instead of the performance govenor Expected Results: check for AC-Adapters state and start speedfreq with performance govenor Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apm arts avi berkdb cdr crypt cups dga doc dvd encode esd ethereal foomaticdb gdbm ggi gif gpm gtk gtk2 imap imlib input_devices_synaptics java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pcmcia pda pdflib perl png postgres python qt quicktime readline samba sasl sdl slang spell sse ssl svga synaptics tcltk tcpd tetex truetype unicode usb wifi x86 xml2 xmms xv zlib"
this is earlier than the dup, but the other has a patch.. *** This bug has been marked as a duplicate of 56593 ***