From owner-freebsd-stable@FreeBSD.ORG Wed Aug 15 09:07:09 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 9D0C8106566B for ; Wed, 15 Aug 2012 09:07:09 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 613E18FC16 for ; Wed, 15 Aug 2012 09:07:09 +0000 (UTC) Received: by obbun3 with SMTP id un3so2479638obb.13 for ; Wed, 15 Aug 2012 02:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cQO3NCIGDjm2KLu0UVUT/8TQBq9Wx29ybZexccPyWzg=; b=zTYSHB0doWXYBjP7iJ5XWoeL/hwMuJ+c19RbjGiVOnL/Hm38Al+fSFL6gLtU8HjqNO T9OyHFo6yV1KQ9yZiSecv7rHbqMZrFV7T4s9ruNH319k+qjGeSbfqyx/LaZwiTHifTED T6Cb5ylUi/Mmb3MbsU9jmx15paZ0+fb5eAHcR4dzqGGqIRpJtTUFmqnRGqIkp9Xpj4pv 2/v/1n9WwBePL62KXkueCSN1eUqhddijK5cilQQPc0rSI+e+GnmQZT1wYJ8ZiW8OkTjR 6uyW4Bkp3YsHRSCIgjqqEq1vmo/WXPko1EgsZZpnZ1H7tXLArlLBnhOWBoogVrI6ucYc z0iw== MIME-Version: 1.0 Received: by 10.60.29.169 with SMTP id l9mr791801oeh.14.1345021628842; Wed, 15 Aug 2012 02:07:08 -0700 (PDT) Received: by 10.60.16.4 with HTTP; Wed, 15 Aug 2012 02:07:08 -0700 (PDT) In-Reply-To: <502B61B8.4040304@bsdforen.de> References: <502B5F7D.6000909@bsdforen.de> <502B61B8.4040304@bsdforen.de> Date: Wed, 15 Aug 2012 11:07:08 +0200 Message-ID: From: Andreas Nilsson To: Dominic Fandrey Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:07:09 -0000 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 > > > -- > 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? > 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. Also hw.acpi.battery.state=0 for me equals "AC plugged in and battery full". I have this in my .xinitrc to monitor my battery ( in a loop which then uses xsetroot to show the info ): case `sysctl -n hw.acpi.battery.state` in 0) batstate="AC full" ;; 1) batstate="`sysctl -n hw.acpi.battery.time` m" ;; 2) batstate="AC charing" ;; Best regards Andreas