From owner-freebsd-current@FreeBSD.ORG Sun Jul 24 20:57:34 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38D8216A41F; Sun, 24 Jul 2005 20:57:34 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from lapdance.yazzy.net (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABE9743D49; Sun, 24 Jul 2005 20:57:32 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from localhost (localhost [127.0.0.1]) by lapdance.yazzy.net (8.13.4/8.13.4) with SMTP id j6OKvL9q000840; Sun, 24 Jul 2005 22:57:21 +0200 (CEST) (envelope-from lists@yazzy.org) Date: Sun, 24 Jul 2005 22:57:21 +0200 From: Marcin Jessa To: Marcin Jessa Message-Id: <20050724225721.0f869e66.lists@yazzy.org> In-Reply-To: <20050724215818.55f951ae.lists@yazzy.org> References: <42E1481F.5040306@root.org> <20050723133819.36efb537.lists@yazzy.org> <42E29CAA.1020007@root.org> <20050724215818.55f951ae.lists@yazzy.org> Organization: YazzY.org X-Mailer: Sylpheed version 1.9.12 (GTK+ 2.6.7; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: acpi@freebsd.org, kjelderg@gmail.com, freebsd-current@freebsd.org, nate@root.org Subject: Re: acpi battery rework patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2005 20:57:34 -0000 On Sun, 24 Jul 2005 21:58:18 +0200 Marcin Jessa wrote: > On Sun, 24 Jul 2005 12:47:13 +0900 > Eric Kjeldergaard wrote: > > > On 7/24/05, Nate Lawson wrote: > > > Marcin Jessa wrote: > > > > On Sat, 23 Jul 2005 19:00:01 +0900 > > > > Eric Kjeldergaard wrote: > > > >>>Please test to be sure your battery status works as usual, along with > > > >>>any apps. Since most apps (xbatt, gnome, etc.) use the apm compat > > > >>>layer, they should work as before with no recompilation needed. > > > > > > > > > > > >>-CURRENT as of 23/07/2005, does not compile. > > > > > > > > > > > > Prolly because it's for 6.0, not 7.0 > > > > > > Sorry, the problem was I left a file out of the diff. I just committed > > > the patch so please just cvsup and test from 7-CURRENT. > > > > > > Thanks, > > > -- > > > Nate > > > > > Excellent. compiled and appears working. It does however have > > different values than the old system for some of the sysctl variables. > > I get > > > > hw.acpi.battery.life: 98 > > hw.acpi.battery.time: 0 > > hw.acpi.battery.state: 0 > > hw.acpi.battery.units: 1 > > hw.acpi.battery.info_expire: 5 > > > > when plugged in. But used to get time as -1 when plugged in and I > > think state may have been 1 when plugged in before (less sure about > > that than the time). Thanks for the enormous amount of work your > > efforts are very much appreciated, > > > > Eric > > Ditto, thanks a lot. It works well here too. I can now actually correctly see whether the lapper is connected to power or runs on battery. > Before the state change could not be detected. > What lacks is remining time which AFAIR worked before, now showing : hw.acpi.battery.time: -1 > I don't miss it though since showing remining percentage is more than enough. > Thanks again for great work! It seems like I was wrong. The time values showed up after a short while of running on battery.