Thread
:
Question on HAL, battery logging behavior
View Single Post
wahlau
2010-08-07 , 22:17
Posts: 61 | Thanked: 7 times | Joined on Aug 2007 @ Kassel, Germany
#
1
Hi all,
I am now figuring out a way to record battery/power consumption of a test script i am performing on the N900, and found a way to access Hal via python/dbus. I realize one thing - when i check the log file - it does not display changes of "'battery.reporting.current" if the phone turns off its screen.
As soon as i unlock the phone, i see the value gets updated. Is this behavior normal? When i look at batteryGraph, the sqlite DB has the same type of log too. if the phone is not used (screen locked/off) it will not log any changes.
Does it mean it is useless for me to put a script that automatically record the current value every say 30 seconds and leave it running at background, since the way i access the value via dbus/hal will not get the update unless i keep the phone "on" (which again forfeit the purpose - the script should run in background...)
thanks.
regards,
wahlau.
Quote & Reply
|
wahlau
View Public Profile
Send a private message to wahlau
Find all posts by wahlau