From owner-freebsd-acpi@FreeBSD.ORG Tue May 10 18:52:52 2005 Return-Path: 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 867F016A4CE for ; Tue, 10 May 2005 18:52:52 +0000 (GMT) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C79F43D55 for ; Tue, 10 May 2005 18:52:52 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465; Tue, 10 May 2005 11:52:51 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 9E2A15D09; Tue, 10 May 2005 11:52:51 -0700 (PDT) To: Martin Cracauer In-reply-to: Your message of "Tue, 10 May 2005 14:14:05 EDT." <20050510141405.A61946@cons.org> Date: Tue, 10 May 2005 11:52:51 -0700 From: "Kevin Oberman" Message-Id: <20050510185251.9E2A15D09@ptavv.es.net> cc: freebsd-acpi@freebsd.org cc: Takanori Watanabe Subject: Re: Porting code from the Linux ibm-acpi sourceforge package X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 18:52:52 -0000 > Date: Tue, 10 May 2005 14:14:05 -0400 > From: Martin Cracauer > > > FreeBSD ATA has supported bus detach since ATAng (whenever that was). I > > have had no problem detaching ATA bus 1 and removing the drive (CD or > > HD) in the bay and replacing it with another or with a battery. Of > > course, it MUST be dismounted before the detach or a panic is to be > > expected. > > > > Also, if you use a second battery, you must have it in the system at > > boot time or it won't be seen, used, or even charged. If you boot with > > the battery, you can: > > atacontrol detach 1 > > remove the battery > > insert a disk drive > > atacontrol attach 1 > > use the disk and dismount it. > > atacontrol detach 1 > > remove the disk > > insert the battery > > Battery will be seen and used > > Thank you! > > This works from a detchament/attachment standpoint. > > However, after booting with the secondary battery, the battery is seen > and it says "charging", but the charge never goes above 0% (output of > apm(1), not sure how to see than in ACPI). > > Any clues? Is the primary battery fully charged? The secondary battery won't start charging unless the primary is at 100%. If you are running ACPI, the apm is just a shim on ACPI and the data seen from the apm command is really from ACPI. or a direct ACPI view, use "acpiconf -i 1". It will probably tell you a LOT more than you wanted to know and several important things APM would not tell you. I can only say that my T30 running current does charge the second battery and does report it properly. I THINK that 5-stable and current have the same stuff in this area. I believe that the only real areas of difference are in CPU performance and support of things like PowerNOW!, Speedstep and the like and the presence of powerd. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634