From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathias Weyland Subject: Re: Re: first shoot for smartbattery Date: Mon, 03 Jan 2005 15:55:24 +0100 Message-ID: <41D95CDC.8050802@phys.ethz.ch> References: <20041231092156.GA612@phys.ethz.ch> <41D56002.5060008@mega.ist.utl.pt> <20041231150724.GK19199@poupinou.org> <20041231181628.GL19199@poupinou.org> <20050101082605.GA24896@phys.ethz.ch> <20050103143902.GQ19199@poupinou.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050103143902.GQ19199-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org> 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: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Bruno Ducrot wrote: > I think I found was wrong. Please refetch, or (at your option) replace > i2c-acpi-ec.ec with > http://www.poupinou.org/acpi/smartbatt/smartbatt/i2c-acpi-ec/i2c-acpi-ec.c > then redo the sh compile.sh > Sorry, it was a stupid bug(tm) requiring that I buy a brown bag... Ok, I don't understand the joke with the brown bag, but.... wooohoo! It looks like something is working! Wich ac plugged in: corcovado:/usr/src/smartbatt# ./smartbattery 1 current: 0 mA remain: 2027 mA or mWh time to empty: 65535 minutes time to full: 65535 minutes temperature: 28.7 C voltage: 16767 mV And after I plugged it out: corcovado:/usr/src/smartbatt# ./smartbattery 1 current: 64499 mA remain: 2026 mA or mWh time to empty: 117 minutes time to full: 117 minutes temperature: 28.7 C voltage: 16428 mV You definitley are my hero! Thank you very much. I'll instantly call my girlfriend. > Something wrong also with rmmod i2c-acpi-ec :( so you have to reboot in > order to be able to 'insmod i2c-acpi-ec.ko' again (I'm sure the brown > bag will still be helpfull also...). Well yes, and when I run smartbattery several times, I don't always get exactley the same values: corcovado:/usr/src/smartbatt# ./smartbattery 1 current: 64108 mA remain: 1885 mA or mWh time to empty: 79 minutes time to full: 79 minutes temperature: 30.1 C voltage: 15950 mV corcovado:/usr/src/smartbatt# ./smartbattery 1 current: 64159 mA remain: 1885 mA or mWh time to empty: 82 minutes time to full: 82 minutes temperature: 30.1 C voltage: 15926 mV And it would be nice if that could be read through a /sys file. I think it's time for me to contribute something: I'll fix the 65535 error and try to make the information available through a /sys interface. Thank you very very much for all the work you made. Best Regards Mathias ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt