Re: [PATCH] Linear regression in UPower

2011-10-19 Thread Richard Hughes
On 19 October 2011 16:45, Leonardo Robol wrote: > If you think that this isn't a good idea, feel free to remove it. I've merged your patch with a few stylistic tweaks as: commit b971b43c45bef9251e1d6389716b9fbe107802c7 Author: Leonardo Robol Date: Wed Oct 19 17:13:12 2011 +0100 Use linea

Re: [PATCH] Linear regression in UPower

2011-10-19 Thread Richard Hughes
On 19 October 2011 11:08, Leonardo Robol wrote: > Do you think the patch could be included upstream? I think that many > broken-batteries people would be glad to have a consistent estimate of > the remaining lifetime. Yes, this sounds cool. Back when all the estimation code was in g-p-m I used a

[PATCH] Linear regression in UPower

2011-10-19 Thread Leonardo Robol
Hi folks! I am writing to propose a patch for UPower. I have a broken battery (or ACPI, or what it is, I really don't know) and it doesn't report energy-rate. From the last version UPower is able to compute the discharge (or charge) rate by sampling the energy over time, that is a really nice feat