From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rich Townsend Subject: Re: Re: Re: Smart Battery System driver Date: Fri, 21 Jan 2005 13:04:20 -0500 Message-ID: <41F14424.6010600@bartol.udel.edu> References: <20050121141449.GA15288@message-id.gmane0305.slipkontur.de> <41F136AE.3010603@bartol.udel.edu> <1106328167.30227.18.camel@tyrosine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1106328167.30227.18.camel@tyrosine> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Matthew Garrett , Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Matthew Garrett wrote: > On Fri, 2005-01-21 at 12:06 -0500, Rich Townsend wrote: > > >>But aren't we really looking for a kernel-based libpower -- so that >>*nothing* in userspace needs be exposed to the specifics of the hardware? > > > No. The kernel should provide information and functionality, not define > policy. A good comparison point might be the lm-sensors code - each > driver provides all the information it can, and the userland libsensors > abstracts that away from everything else. > Yes, but isn't the lm-sensors kernel code accessed through a uniform API? That's what we need for the kernel battery stuff; at the moment, CM batteries are interfaced using ACPI control methods, while Smart Batteries are interfaced using SMBus accesses. Wouldn't it be a good idea to present all of the available battery info through some unified interface? Or are you arguing that this should all be done (as much as possible) in userland? ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl