From owner-freebsd-acpi@FreeBSD.ORG Mon Jun 21 15:36:16 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 8C258106564A for ; Mon, 21 Jun 2010 15:36:16 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 0D3548FC22 for ; Mon, 21 Jun 2010 15:36:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id o5LFa3Uc090197; Tue, 22 Jun 2010 01:36:04 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Tue, 22 Jun 2010 01:36:03 +1000 (EST) From: Ian Smith To: Stefan Farfeleder In-Reply-To: <20100620161124.GA1692@mole.fafoe.narf.at> Message-ID: <20100622010612.T9227@sola.nimnet.asn.au> References: <20100620161124.GA1692@mole.fafoe.narf.at> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: Mon, 21 Jun 2010 15:36:16 -0000 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? cheers, Ian