Re: Acer Travermate 8005 and battery info

Sergey Vlasov
2004-10-06T09:46:10Z

On Tue, 05 Oct 2004 16:42:09 +0100 Pedro Venda wrote:

> Pavel Machek wrote:
> > Hi!
> >
> >
> >>|>>Search maillist archives, look up "smart battery specification" in
> >>google.
> >>|>>If you are willing to spend few days writing driver, let me know.
> >>|>
> >>|>Ive checked out some specs now and Im willing to give it a shot but
> >>Ive
> >>|>no idea on where to start.. Ive checked out my DSL and I find
> >>nothing
> >>|>containing SBS in it. Suggestions?
> >>|
> >>|
> >>| Right start probably is drivers/i2c. I collected these links:
> >>
> >>i'm willing to participate also. but first, let me see if i
> >>understood... the first step should be building a driver to
> >>communicate
> >>with the smbus via i2c. am i right?
> >
> >
> > I believe that smbus is subset of i2c... So first step would be
> > "make it talk with smart battery over i2c".
> >
> > Anyway I may be wrong. You'll know for sure when the patch starts
> > working :-).
>
> sometime in the not-so-near future :-)
>
> i'll start studying i2c to find out the smbus "address" (sorry if this
> is a dumb mistake) and try to scan it for the smart battery.

Some code already exists - the lm_sensors package
(http://secure.netroedge.com/~lm78/) includes the "smartbatt" module.
However, it is for 2.4.x kernels, therefore some porting work will be
needed to use it on 2.6.x.

SMBus controller drivers already exist for most chipsets - see
drivers/i2c/busses/.