From owner-freebsd-mobile@FreeBSD.ORG Mon Jun 19 12:59:21 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 B403516A47A for ; Mon, 19 Jun 2006 12:59:21 +0000 (UTC) (envelope-from zec@icir.org) Received: from xaqua.tel.fer.hr (xaqua.tel.fer.hr [161.53.19.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1133243D45 for ; Mon, 19 Jun 2006 12:59:21 +0000 (GMT) (envelope-from zec@icir.org) Received: by xaqua.tel.fer.hr (Postfix, from userid 20006) id AD2529B659; Mon, 19 Jun 2006 14:59:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on xaqua.tel.fer.hr X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.1 Received: from [192.168.200.106] (zec2.tel.fer.hr [161.53.19.79]) by xaqua.tel.fer.hr (Postfix) with ESMTP id D0ACA9B650; Mon, 19 Jun 2006 14:59:11 +0200 (CEST) From: Marko Zec To: freebsd-mobile@freebsd.org Date: Mon, 19 Jun 2006 14:59:02 +0000 User-Agent: KMail/1.9.1 References: <44946F66.1570.642B0D75@dan.langille.org> <449663F7.26986.33730F0@dan.langille.org> In-Reply-To: <449663F7.26986.33730F0@dan.langille.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606191459.03707.zec@icir.org> Cc: Dan Langille 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:59:21 -0000 On Monday 19 June 2006 12:44, Dan Langille wrote: > 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. Try booting in windows and using the "ps2" command-line configuration utility to disable the secondary IDE channel in BIOS. This recently saved my ThinkPad X32 from becoming a wrack after I went completely nuts with exactly the same symptoms as you observed: the machine would lock hard if booted with APM and without the CDRW installed. I observed this issue only in 6.1; 4.11 works flawlessly out of the box with APM / without CDROM. Hope this helps, Marko