Re: Re: first shoot for smartbattery

François Valenduc
2005-01-03T15:41:41Z

Hello again,
In fact, after having completely recompiled the modules, it works better
however the value for "time to empty" seems more correct. Here are the
results with the AC adapter unplugged:
current: 64345 mA
remain: 6327 mA or mWh
time to empty: 221 minutes
time to full: 221 minutes
temperature: 27.4 C
voltage: 16589 mV
And with the AC adapter plugged:
current: 0 mA
remain: 6330 mA or mWh
time to empty: 65535 minutes
time to full: 65535 minutes
temperature: 27.4 C
voltage: 16809 mV
I don't really understand why each time the time to full or to empty are
the same. I tried it knowing my battery was fully loaded so I should get
0 minute for time to full.

François Valenduc a écrit :

> Hello,
> I must have missed something:
>
> When I compile the i2c-acpi-ec module, I get the following errors:
> *** Warning: "i2c_del_adapter"
> [/usr/src/smartbatt/i2c-acpi-ec/i2c-acpi-ec.ko] undefined!
> *** Warning: "i2c_add_adapter"
> [/usr/src/smartbatt/i2c-acpi-ec/i2c-acpi-ec.ko] undefined!
> *** Warning: "acpi_ec_read"
> [/usr/src/smartbatt/i2c-acpi-ec/i2c-acpi-ec.ko] undefined!
> *** Warning: "acpi_ec_write"
> [/usr/src/smartbatt/i2c-acpi-ec/i2c-acpi-ec.ko] undefined!
> I also have a problem when I load the i2c-core module:
> i2c_core: disagrees about version of symbol struct_module
>
> What should I do to fix these errors ?
> Thanks for your help,
> François Valenduc
>
> Mathias Weyland a écrit :
>
>> 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
>> _______________________________________________
>> Acpi-devel mailing list
>> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/acpi-devel
>>
>
>
>
> -------------------------------------------------------
> 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
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel