Re: Re: first shoot for smartbattery

Pedro Venda
2005-01-11T10:12:43Z

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

Zdzis³aw A. Kaleta wrote:
| Dnia niedziela 09 stycznia 2005 14:41, Johan Vromans napisa³:
|
|>Pedro Venda <pjvenda-pQd4kjVL+RHfqL7NgpvPWWD2FQJk+8+b@public.gmane.org> writes:
|>
|>>I actually read some of the pdf you pointed me to and implemented a
|>>couple of functions on the smartbattery.c. It now gets much more
|>>information from the battery. If you find it relevant, I'll clean it
|>>up a bit and post a patch for you. I know it will soon be dumped,
|>>but it may show useful when debugging other driver informations.
|>
|>The attached program produces a nice battery status display using your
|>modified version of battstat. It may be temporary, but at least now I
|>have decent battery info at hand.
|>
|>-- Johan
|
| First thank to all (especially to Bruno) for moving "smart battery problem
| ahead)
| The module and smartbattery program has compiled at kernels 2.6.10 (vanilia
| and with the ac8, bk7, bk11 and bk12 patches)
| The effect was
| sanskryt@kender:/usr/local/download/acpi/smartbattery$ smartbattery 1
| status: charging
| current: 1957 mA
| time to full: 105 minutes
| remain: 3020 mAh
| charge state: 74%
| temperature: 35.8 C
| voltage: 16451 mV
| So it look great.
| Two problems:
| First the /dev/i2c-1 node can be read only by root. I think that the battery
| status has to be readably for ordinary user.

the smartbattery program is just a hack to see things working. people shouldn't
be using it in "production".

soon there will be an emulation driver that will allow you to use current
battery monitoring tools.

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

iD8DBQFB46abeRy7HWZxjWERAtC7AKCUtdkb4+8LzCZ97VoyRhqgqJYgpQCfWNpd
gxA0h0lobTX1tHOJNX9OZmk=
=TyWZ
-----END PGP SIGNATURE-----