From owner-freebsd-acpi@FreeBSD.ORG Tue Nov 15 19:58:08 2005 Return-Path: X-Original-To: acpi@freebsd.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECE3C16A41F for ; Tue, 15 Nov 2005 19:58:08 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9495143D46 for ; Tue, 15 Nov 2005 19:58:08 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.33] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id jAFJw8De020301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 Nov 2005 11:58:09 -0800 Message-ID: <437A3DB1.4030904@root.org> Date: Tue, 15 Nov 2005 11:57:37 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ulrich Spoerlein References: <20051108082057.GB1067@galgenberg.net> In-Reply-To: <20051108082057.GB1067@galgenberg.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: acpi@freebsd.org Subject: Re: Battery woes since going 6.0-BETA3 -> 6.0-STABLE 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: Tue, 15 Nov 2005 19:58:09 -0000 Ulrich Spoerlein wrote: > I updated my system yesterday from BETA3 to the current RELENG_6. > Booting my system this morning, I found it in a rather unusable state. > > First of all, there were problems with BETA3 before. When charging the > battery (only when charging!) wmbsdbatt would periodically freeze the > system which made MP3 playback impossible. Ok, I first thought wmbsdbatt > is calling sysctl to get the values and sysctl is under Giant. So no > problem. > > Funny thing is, it only occurred when charging, not when running on > batteries or without them. Something in how your system implements the EC means the _BST method is taking a very long time when charging batteries. You can work around this (but lose battery status) with: debug.acpi.disabled="cmbat" To verify this, put some printfs in acpi_cmbat.c around this line: as = AcpiEvaluateObject(h, "_BST", NULL, &bst_buffer); You'll see that when it hangs, you'll get the printf before but not after this method. This won't help solve the problem though since the actual battery access will be performed by the EC and that is a separate CPU (microcontroller). So we can't exactly debug it. However, I suspect what I'm working on right now (burst mode support) will alleviate the problems. I probably won't have time to work on this until the next holiday (in a few weeks). > Now updating to the current RELENG_6 I get the system freezes whenever > running wmbsdbatt. This goes as far as the USB devices losing contact > (!!). I thought my kbd/mouse went wacko, and found the following in > messages > > This is because wmbsdbatt is polling the battery (which right now, is > not even present, as I'm running on AC). > > I'm running a Dell Inspiron 8600, these are the relevant acpi lines from > dmesg > acpi0: on motherboard > pci_link0: irq 11 on acpi0 > pci_link1: irq 11 on acpi0 > pci_link2: irq 11 on acpi0 > pci_link3: irq 11 on acpi0 > pci_link4: on acpi0 > pci_link5: irq 11 on acpi0 > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 > cpu0: on acpi0 > est0: on cpu0 > p4tcc0: on cpu0 > acpi_acad0: on acpi0 > battery0: on acpi0 > battery1: on acpi0 > acpi_lid0: on acpi0 > acpi_button0: on acpi0 > acpi_button1: on acpi0 > > I will revert 6.0-RELEASE for now, I guess the smart battery support is > causing problems for me. You don't have smart battery, therefore it can't be the issue. -- Nate