From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: Generic battery interface Date: Sat, 29 Jul 2006 01:17:56 +0200 Message-ID: <20060728231756.GA4230@elf.ucw.cz> References: <41840b750607271332q5dea0848y2284b30a48f78ea7@mail.gmail.com> <20060727232427.GA4907@suse.cz> <41840b750607271727q7efc0bb2q706a17654004cbbc@mail.gmail.com> <20060728074202.GA4757@suse.cz> <41840b750607280814x50db03erb30d833802ae983e@mail.gmail.com> <20060728202359.GB5313@suse.cz> <41840b750607281548h5ee2219eka1de6745b692c092@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from gprs189-60.eurotel.cz ([160.218.189.60]:5557 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S1161365AbWG1XSL (ORCPT ); Fri, 28 Jul 2006 19:18:11 -0400 Content-Disposition: inline In-Reply-To: <41840b750607281548h5ee2219eka1de6745b692c092@mail.gmail.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Shem Multinymous Cc: Vojtech Pavlik , "Brown, Len" , Matthew Garrett , kernel list , linux-thinkpad@linux-thinkpad.org, linux-acpi@vger.kernel.org, Henrique de Moraes Holschuh Hi! > >> And then we have to maintain both a kernel side and a userspace side. > >> And what do I, poor author of tp_smapi, do if I want to add a > >> non-standard attribute? Tell people to patch and overwrite their > >> disto's batstate binary too? > > > >How often do you plan to do that? > > With tp_smapi, I did it about 10 times over half a year. And there's > probably more to come. I still like /sys approach a bit more, but a word of warning: "it is hard to change kernel<->user interface" is actually a feature. It sucks when you are the one doing the work, but maybe it will mean reusing interfaces where possible. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html