From owner-freebsd-acpi@FreeBSD.ORG Tue May 10 23:11:31 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 8867516A4CE for ; Tue, 10 May 2005 23:11:31 +0000 (GMT) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id C591543D5E for ; Tue, 10 May 2005 23:11:30 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper [212.12.50.230]) by schlepper.zs64.net (8.13.1/8.12.9) with ESMTP id j4ANBFpa067280; Wed, 11 May 2005 01:11:16 +0200 (CEST) (envelope-from cracauer@schlepper.zs64.net) Received: (from cracauer@localhost) by schlepper.zs64.net (8.13.1/8.12.9/Submit) id j4ANB9ac067279; Tue, 10 May 2005 19:11:09 -0400 (EDT) (envelope-from cracauer) Date: Tue, 10 May 2005 19:11:09 -0400 From: Martin Cracauer To: Nate Lawson Message-ID: <20050510191109.A67111@cons.org> References: <20050510141405.A61946@cons.org> <20050510185251.9E2A15D09@ptavv.es.net> <20050510161103.A63566@cons.org> <42812FD0.9070201@root.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <42812FD0.9070201@root.org>; from nate@root.org on Tue, May 10, 2005 at 03:04:00PM -0700 cc: Takanori Watanabe cc: freebsd-acpi@freebsd.org Subject: Re: Thinkpad R40 secondary battery swap 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 23:11:31 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Nate Lawson wrote on Tue, May 10, 2005 at 03:04:00PM -0700: > Martin Cracauer wrote: > > Ah. Actually it looks like apm(1)s translation of acpi output is > > broken. acpiconf -i 1 reports a remaining capacity > 0 and it is > > raising. See below for cut'n'paste. > > > > I think I'm all set except for a bug in apm(1). > > > > Thanks so much for your help. Seems I can use the secondary battery > > with no problems and even swap in and out freely. BTW, is it safe to > > remove the primary battery when running and A.C. is plugged in? I > > assume not. > > > > > > Here is the output: > > > > APM version: 1.2 > > APM Management: Disabled > > AC Line status: on-line > > Battery Status: charging > > Remaining battery life: 98% > > Remaining battery time: unknown > > Number of batteries: 2 > > Battery 0: > > Battery Status: high > > Remaining battery life: 100% > > Remaining battery time: 0:00:00 > > Battery 1: > > Battery Status: charging > > Remaining battery life: 0% > > Remaining battery time: 0:00:00 > > What is the output of: > sysctl hw.acpi Appended. However, I found that the output of apm(1) was fixed after I ran `acpiconf -i 1`. It seems there was an initialization problem. After I ran `acpiconf -i 1` apm(1) reported the correct charge of the secondary battery for the rest of the session (the session was started with the battery plugged in, empty). Now I rebooted and cannot reproduce the problem, now apm(1) just works right after reboot :-/ Is it possible that something has been initialized on the battery? Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ No warranty. This email is probably produced by one of my cats stepping on the keys. No, I don't have an infinite number of cats. --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=l hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S3 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.reset_video: 1 hw.acpi.cpu.cx_supported: C1/1 C2/1 C3/85 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% 0.00% 0.00% hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.tz0.temperature: 52.0C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 94.5C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 97.0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.battery.life: 99 hw.acpi.battery.time: -1 hw.acpi.battery.state: 0 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 hw.acpi.acline: 1 --wRRV7LY7NUeQGEoC--