From owner-freebsd-mobile@FreeBSD.ORG Mon Aug 11 00:51:53 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F12E637B401 for ; Mon, 11 Aug 2003 00:51:52 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C8B643FBD for ; Mon, 11 Aug 2003 00:51:52 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 8112372DD4; Mon, 11 Aug 2003 00:51:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 7EEDB72DD2; Mon, 11 Aug 2003 00:51:52 -0700 (PDT) Date: Mon, 11 Aug 2003 00:51:52 -0700 (PDT) From: Doug White To: Peter Schuller In-Reply-To: <20030811013921.GB24952@infidyne.com> Message-ID: <20030811004931.R72106@carver.gumbysoft.com> References: <20030811013921.GB24952@infidyne.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-mobile@freebsd.org Subject: Re: Extra battery causes hangs (T40p, FreeBSD 5.1/CURRENT) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2003 07:51:53 -0000 On Mon, 11 Aug 2003, Peter Schuller wrote: > The laptop comes with one primary battery and, as an opion, an extra battery > that fits into the "Ultra Bay" (replacing the CD-ROM). As I realized after > some time, the presence of the extra battery causes hangs. When I have the > CD-ROM in the bay instead of the extra battery, there are no such problems. > But when the battery is in, the machine hangs totally when: Are you swapping the CDROM and battery while FreeBSD is booted? FreeBSD does not handle this at all and will get really upset if you attempt it. > I assume this has something to do with ACPI events or something simiar > coming in when such actions are taken. The question is why it happens with > the extra battery but not without it. You'd have to examine the DSDT table (and perhaps other namespace tables, and dmesg) to see exactly how the code path changes. Typically, though, the ACPI device tree already has space reserved for two batteries even if one is not present. > acpi_cmbat0: on acpi0 > acpi_cmbat1: on acpi0 ok so both battery slots do register. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org