From owner-freebsd-mobile@FreeBSD.ORG Mon Jun 19 12:44:42 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org 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 7DBC116A474 for ; Mon, 19 Jun 2006 12:44:42 +0000 (UTC) (envelope-from dan@langille.org) Received: from havoc.unixathome.org (havoc.unixathome.org [66.154.98.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EA2D43D6B for ; Mon, 19 Jun 2006 12:44:42 +0000 (GMT) (envelope-from dan@langille.org) Received: from localhost (localhost [127.0.0.1]) by havoc.unixathome.org (Postfix) with ESMTP id B7A4356445; Mon, 19 Jun 2006 05:44:41 -0700 (PDT) X-Virus-Scanned: by amavisd-new at unixathome.org Received: from havoc.unixathome.org ([127.0.0.1]) by localhost (havoc.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mnUU6Ev7I1+m; Mon, 19 Jun 2006 05:44:40 -0700 (PDT) Received: from bast.unixathome.org (bast.unixathome.org [70.26.229.230]) by havoc.unixathome.org (Postfix) with ESMTP id 8FA4656468; Mon, 19 Jun 2006 05:44:40 -0700 (PDT) Received: from [10.55.0.99] (wocker.unixathome.org [10.55.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 02585B822; Mon, 19 Jun 2006 08:44:39 -0400 (EDT) From: "Dan Langille" To: "Kevin Oberman" Date: Mon, 19 Jun 2006 08:44:39 -0400 MIME-Version: 1.0 Message-ID: <449663F7.26986.33730F0@dan.langille.org> Priority: normal In-reply-to: <20060618033910.AD2DB45043@ptavv.es.net> References: Your message of "Sat, 17 Jun 2006 21:08:54 EDT." <44946F66.1570.642B0D75@dan.langille.org> X-mailer: Pegasus Mail for Windows (4.31) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Cc: freebsd-mobile@freebsd.org Subject: Re: ThinkPad - UltraBay battery magic X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 12:44:42 -0000 On 17 Jun 2006 at 20:39, Kevin Oberman wrote: > > From: "Dan Langille" > > Date: Sat, 17 Jun 2006 21:08:54 -0400 > > > > On 17 Jun 2006 at 16:54, Kevin Oberman wrote: > > > > > > When installing a 2nd battery (i.e in the UltraBay after removing the > > > > CD drive) in a ThinkPad, I think there's some magic you must invoke > > > > to get the system to notice the additional power resource. > > > > > > > > Any ideas? > > > > > > The code to allow ACPI to add batteries has yet to be written (or committed, > > > at least). If the system is booted with 2 two batteries, both will be seen. > > > Even it one is removed and then returned, it will be seen. But if a system is > > > booted with a single battery, ACPI will not ever see the second battery. > > > > > > Please note that the second battery WILL be seen by the hardware and both > > > charged and used. > > > > I rebooted. It froze after probing ad0. I powered off. I removed > > the spare battery. I rebooted. Froze again, same place. I put in > > the CD drive, it booted fine. I swapped out the CD drive and put the > > battery back in. This time I did a verbose boot. > > > > In short: > > both batteries are seen in the probing. > > ad0 is probed > > pcm0 is measured > > fdc0: output ready timeout > > [repeat above line 7 times] > > GEOM: new disk ad0 > > > > Screen shot here: > > > > http://www.langille.org/tmp/100_2831.jpg > > > > Ideas? Suggestions? > > This is sounding just a bit familiar. Do you actually have a floppy > drive? If so, try putting a disk into it. If not, try building a kernel > without the floppy and see if that behaves. There is no floppy in this laptop (IBM ThinkPad T41); I have one, but it is external, connected via USD, and has not been attached during these tests. I created a kernel without fd, based on GENERIC: $ diff GENERIC LAPTOPGENNOFD1 25c25 < ident GENERIC --- > ident LAPTOPGEN 159c159 < #device apm --- > device apm In short, I changed the ident, and added apm. This kernel boots if the CDRW is installed. Without it, the systems boots and then freezes at the login prompt. I have no idea why. The freeze occurs with or without the second battery. With the CDRW installed, all is well. > There have been several similar reports. You might want to look at the > archives. I didn't find anything that gave me a lead to follow. -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php