Would some one implement the Battery time esitimation functionality based on Cacko new kernel with APM support?
I think the it is not so difficult.
1)record one value:v at one start point;timed=0;lefttime=0;
2)start one timer
in the timer
compare the new battery value:nv, if equal, update time difference: timed+=timer_interval;
if greater, update the value to this one: v=nv;
if less, calculate the estimated left time: lefttime=timed/(nv-v)*nv;v=nv;timed=0;
update the left time display;
set the timer again;
I don't have the compile enviroment at present, would some one add this function to the applet?
Thanks.