From owner-freebsd-stable@FreeBSD.ORG Wed Aug 15 09:43:23 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BDB89106566B for ; Wed, 15 Aug 2012 09:43:23 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.server1.bsdforen.de (bsdforen.de [82.193.243.81]) by mx1.freebsd.org (Postfix) with ESMTP id 524448FC12 for ; Wed, 15 Aug 2012 09:43:23 +0000 (UTC) Received: from mobileKamikaze.norad (MN-VPN2.HS-Karlsruhe.DE [193.196.117.63]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.server1.bsdforen.de (Postfix) with ESMTPSA id 94DFA86184; Wed, 15 Aug 2012 11:43:22 +0200 (CEST) Message-ID: <502B6F3A.9090207@bsdforen.de> Date: Wed, 15 Aug 2012 11:43:22 +0200 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120807 Thunderbird/14.0 MIME-Version: 1.0 To: Andreas Nilsson References: <502B5F7D.6000909@bsdforen.de> <502B61B8.4040304@bsdforen.de> In-Reply-To: Content-Type: text/plain; charset=ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: battery state X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2012 09:43:23 -0000 On 15/08/2012 11:07, Andreas Nilsson wrote: > On Wed, Aug 15, 2012 at 10:45 AM, Dominic Fandrey wrote: > >> On 15/08/2012 10:40, Andreas Nilsson wrote: >> >>> On Wed, Aug 15, 2012 at 10:36 AM, Dominic Fandrey >>> wrote: >>> >>>> For a while now "acpiconf -i0" always shows the battery state that >>>> was correct when booting the system. It's never updated. >>>> >>>> snip >>>> >>> >>> It wont solve the problem, but does the sysctl hw.acpi.battery.time update >>> correctly? >>> >> >> Thanks for the fast reply, right now it shows -1 (the system was plugged >> in during boot). >> >> I just unplugged it and it still shows -1: >> >>> sysctl hw.acpi.battery >>> >> 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 >> > > Sounds like there is some acpi-problem then. On my thinkpad it takes maybe > five seconds for it to go from -1 to an estimate. You can tune this with hw.acpi.battery.info_expire. But 5 seconds sounds like an OKish value to me. > Also > hw.acpi.battery.state=0 for me equals "AC plugged in and battery full". That was the correct state while the system was booting. -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?