Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-18 Thread Pavel Machek
Hi!1 >>> Yes, but in that case you might as well just purchase a coulomb >>> counter with a built-in accumulator and an I2C/SPI/microwire interface >>> save yourself some PCB space and cost (maybe) Hardware is already given. >> Well, Pavel attempts to implement a "poor man's Coulomb counter" or

Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-16 Thread Pavel Machek
On Mon 2009-12-14 12:12:47, Mark Brown wrote: > On Sun, Dec 13, 2009 at 02:24:14PM +0100, Pavel Machek wrote: > > > > actual charger hardware. My main concern here is that battery > > > performance monitoring has no pressing need to be in kernel and that > > > pushing it into the kernel creates a

Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-16 Thread Andy Green
On 12/15/09 23:32, Somebody in the thread at some point said: Hi - Yes, but in that case you might as well just purchase a coulomb counter with a built-in accumulator and an I2C/SPI/microwire interface save yourself some PCB space and cost (maybe) Well, Pavel attempts to implement a "poor man

Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-16 Thread Stanislav Brabec
Aras Vaichas wrote: > Yes, but in that case you might as well just purchase a coulomb > counter with a built-in accumulator and an I2C/SPI/microwire interface > save yourself some PCB space and cost (maybe) Well, Pavel attempts to implement a "poor man's Coulomb counter" or at least "poor man's A

Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-16 Thread Aras Vaichas
2009/12/15 Bill Gatliff : > Aras Vaichas wrote: >> Unfortunately the simple coulomb counting chips have the disadvantage >> that the CPU has to be running to accumulate the pulses. Of course, >> the pulses could wake the CPU from a suspend mode, but I'd rather not >> do that just to add "one" to a

Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-14 Thread Bill Gatliff
Aras Vaichas wrote: > Unfortunately the simple coulomb counting chips have the disadvantage > that the CPU has to be running to accumulate the pulses. Of course, > the pulses could wake the CPU from a suspend mode, but I'd rather not > do that just to add "one" to a counter ... > Could you have

Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-14 Thread Aras Vaichas
2009/12/15 Pavel Machek : > Hi! > >> > > I'm not sure how familiar you are with the issues surrounding trying to >> > > do a voltage to charge mapping for a battery but it's much more complex >> > > than a simple table if you want to get it accurate.  There's a lot >> > > of >> >> > Well... current

Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-14 Thread Pavel Machek
Hi! > > > I'm not sure how familiar you are with the issues surrounding trying to > > > do a voltage to charge mapping for a battery but it's much more complex > > > than a simple table if you want to get it accurate. There's a lot > > > of > > > Well... current zaurus kernels use _huge_ table t

Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-14 Thread Mark Brown
On Sun, Dec 13, 2009 at 02:24:14PM +0100, Pavel Machek wrote: > > actual charger hardware. My main concern here is that battery > > performance monitoring has no pressing need to be in kernel and that > > pushing it into the kernel creates a barrier to implementing more > > advanced schemes in us

Re: [Zaurus-devel] [POWER] battery calibration parameters from sysfs

2009-12-13 Thread Pavel Machek
Hi! > > If you browse down to line 275 you can see it parse the sysfs > > attribute "capacity", then this propagates up to the battery > > status indicator on *all* Android phones out there. So if > > you want to run Android unmodified, this is what you need to > > provide. They are effectively us