From owner-freebsd-acpi@FreeBSD.ORG Thu Jun 24 14:05:01 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17449106566C for ; Thu, 24 Jun 2010 14:05:01 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from fep17.mx.upcmail.net (fep17.mx.upcmail.net [62.179.121.37]) by mx1.freebsd.org (Postfix) with ESMTP id 663DD8FC0C for ; Thu, 24 Jun 2010 14:04:59 +0000 (UTC) Received: from edge02.upcmail.net ([192.168.13.237]) by viefep17-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20100624140458.IAVY21441.viefep17-int.chello.at@edge02.upcmail.net>; Thu, 24 Jun 2010 16:04:58 +0200 Received: from mole.fafoe.narf.at ([213.47.85.26]) by edge02.upcmail.net with edge id Zq4u1e06n0a5KZh02q4vjg; Thu, 24 Jun 2010 16:04:58 +0200 X-SourceIP: 213.47.85.26 Received: by mole.fafoe.narf.at (Postfix, from userid 1001) id C7AA26D41D; Thu, 24 Jun 2010 16:04:54 +0200 (CEST) Date: Thu, 24 Jun 2010 16:04:54 +0200 From: Stefan Farfeleder To: Ian Smith Message-ID: <20100624140454.GJ1735@mole.fafoe.narf.at> References: <20100620161124.GA1692@mole.fafoe.narf.at> <20100622010612.T9227@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100622010612.T9227@sola.nimnet.asn.au> User-Agent: Mutt/1.5.20 (2009-06-14) X-Cloudmark-Analysis: v=1.1 cv=BX1z5e3lS7RAKjOkUI/uDpZ/pP4xz0N/VImyOZX9Sfk= c=1 sm=0 a=qZBufsVP3XEA:10 a=ADBQPqJMlbwA:10 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=fJKsmCUffSJKTa77r-cA:9 a=2kWxt2CGPMSViOBh6bAA:7 a=KEoP80C1A1kXd99vLQPOG5Jw0x4A:4 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: freebsd-acpi@freebsd.org Subject: Re: Dell Precision m4400 acline problems X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 14:05:01 -0000 On Tue, Jun 22, 2010 at 01:36:03AM +1000, Ian Smith wrote: > On Sun, 20 Jun 2010, Stefan Farfeleder wrote: > > Hello, > > > > I'm running FreeBSD current on a Dell Precision m4400 notebook and got > > the following issue: When I unplug the notebook's power, the CPU > > performance goes down to < 50%. While this isn't nice, the real problem > > is that when I replug the power adapter, the performance stays low. So I > > basically have to reboot to get back at full performance :( > > > > I suspect this is an ACPI-related problem. You can find dmesg output, > > ACPI tables and ASL at http://people.freebsd.org/~stefanf/m4400/ . > > > > BTW I'm not using powerd. > > Whether or not using powerd, /etc/rc.d/power_profile (run by devd) will > set CPU frequency according to values in {performance,economy}_cpu_freq > whenever state changes between offline (battery) and online (AC). Such > events are typically logged in /var/log/messages. > > The /etc/defaults/rc.conf value for both of these is 'NONE' and you'll > see in power_profile that a 'NONE' value causes no change, where 'HIGH" > or 'LOW' values adjust CPU freq to the highest or lowest values from > sysctl dev.cpu.0.freq_levels - or you can specify one freq from those > levels to apply for either state. > > If you have no overrides in /etc/rc.conf, you may want to set values > there for *_cpu_freq .. it may be that your ACPI chooses some default > frequency on these events, perhaps according to your BIOS settings? Thanks. I think I solved my problem. I do not use power profiles and thus the dev.cpu.0.freq stays at 2801. However going offline evidently causes the frequency to decrease internally, ie. without dev.cpu.0.freq knowing, so when I manually reset the frequency to 2801, the system is fast again. Cheers, Stefan