From owner-freebsd-bugs@FreeBSD.ORG Tue Nov 6 09:10:01 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 607D9285 for ; Tue, 6 Nov 2012 09:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 2E7DF8FC12 for ; Tue, 6 Nov 2012 09:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qA69A0Iv003212 for ; Tue, 6 Nov 2012 09:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qA69A06s003211; Tue, 6 Nov 2012 09:10:00 GMT (envelope-from gnats) Date: Tue, 6 Nov 2012 09:10:00 GMT Message-Id: <201211060910.qA69A06s003211@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: J B Subject: Re: kern/173414: ACPI battery time incorrect X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: J B List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 09:10:01 -0000 The following reply was made to PR kern/173414; it has been noted by GNATS. From: J B To: bug-followup@FreeBSD.org, jb.1234abcd@gmail.com Cc: Subject: Re: kern/173414: ACPI battery time incorrect Date: Tue, 6 Nov 2012 10:07:47 +0100 $ sysctl -d hw.acpi.battery.time hw.acpi.battery.time: remaining time in minutes Why is it impossible or improper to compute and show battery's remaining time ? Because the machine is on on-line power supply ? The battery's state, that is, its remaining time, is still valid and of interest to user at any machine state (load, etc), regardless of power supply being on-line or off-line. I want to know WHAT IF, at any time (without or with consideration of current machine state (load, etc) in the computation of battery remaining time), I disconnected the on-line power supply, could I expect to happen to my machine with regard to expected length-of-time availability of battery power supply. If you think that the battery's "percent capacity remaining" is enough, then you are mistaken. hw.acpi.battery.life: percent capacity remaining The battery's "percent capacity remaining" is misleading because its max level is degrading over time (the 100% of a new battery is not the same 100% after a year or so of random discharging and charging). They just do not tell me how much estimated run time I would have as I explained above. This is what Linux shows about my battery state: $ cat /proc/acpi/battery/BAT0/info present: yes design capacity: 56160 mWh last full capacity: 38720 mWh battery technology: rechargeable design voltage: 10800 mV design capacity warning: 1936 mWh design capacity low: 200 mWh capacity granularity 1: 1 mWh capacity granularity 2: 1 mWh model number: COMPATIBLE serial number: 2413 battery type: LION OEM info: BATSZ $ cat /proc/acpi/battery/BAT0/state present: yes capacity state: ok charging state: charged present rate: 0 mW remaining capacity: 38720 mWh present voltage: 12405 mV These are the original and degraded capacity values of 100% I am talking about: ... design capacity: 56160 mWh last full capacity: 38720 mWh ... remaining capacity: 38720 mWh ... So, please compute this hw.acpi.battery.time: remaining time in minutes and make it available at any time, and at any state of the machine. There is a good use for this data.