Re: Re: first shoot for smartbattery

Pedro Venda
2005-01-03T17:03:47Z

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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...

happens to everyone.

| 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...).

yes, that still happens. appearently rmmod doesn't deregister drivers.

but now I've got it working.

no battery plugged:

archon smartbatt-2 # ./smartbattery 5
current: 65535 mA
remain: 65535 mA or mWh
time to empty: 65535 minutes
time to full: 65535 minutes
temperature: 6280.5 C
voltage: 65535 mV

all values are bogus, of course. no problem here.
now AC plugged and battery plugged too:

archon smartbatt-2 # ./smartbattery 5
current: 0 mA
remain: 3733 mA or mWh
time to empty: 65535 minutes
time to full: 65535 minutes
temperature: 25.4 C
voltage: 16787 mV
archon smartbatt-2 # ./smartbattery 5
current: 189 mA
remain: 3733 mA or mWh
time to empty: 65535 minutes
time to full: 65535 minutes
temperature: 25.6 C
voltage: 16846 mV

ok. it's draining a small amount of current, which is understandable because
it's almost full.

how can one relate the remain/time to empty/time to full values? we need the
maximum charge of the battery, right?

now battery plugged but no AC power:

archon smartbatt-2 # ./smartbattery 5
current: 64419 mA
remain: 3737 mA or mWh
time to empty: 200 minutes
time to full: 200 minutes
temperature: 27.4 C
voltage: 16496 mV
archon smartbatt-2 # ./smartbattery 5
current: 64423 mA
remain: 3735 mA or mWh
time to empty: 201 minutes
time to full: 201 minutes
temperature: 27.5 C
voltage: 16477 mV
archon smartbatt-2 # ./smartbattery 5
current: 64421 mA
remain: 3733 mA or mWh
time to empty: 200 minutes
time to full: 200 minutes
temperature: 27.5 C
voltage: 16461 mV

here I don't get it:
current 64419 mA? that's 64.4 A!! my dad's car battery can't do that!! is it
being read wrong or am I missing something?
also, time to empty/time to full should be "xor'd" i.e., time to empty+time to
full should return total battery power (in seconds) weird yes, but it makes
sense when calculating averaga power drains, trust me.

note that I'm not at all putting flaws! I'm just pointing some details that I
don't know what could be regular values.

regards,
pedro venda.
- --

Pedro João Lopes Venda
email: pjvenda-pQd4kjVL+REh2FBCd0jGRA@public.gmane.org
http://arrakis.dhis.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB2XrzeRy7HWZxjWERAuduAJkBABAymV3IPFwO6Xwi3AIQeYdBPQCg+qCs
QWVGOfxDEbREzIJiZAJ3RFU=
=WEIQ
-----END PGP SIGNATURE-----