View Single Post
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#5
Thanks guys. This morning, just before I read your post inoshishi, I discovered dbus-monitor: wow, cool stuff. I successfully captured battery_plugged_in and battery_unplugged events. Now to figure out how to use the data!

@412b:
I've been using your Advanced Battery applet source a lot to help with things along the way (I even have the .1 release source saved ), but I couldn't figure out how exactly you interacted with dbus...I think I need to read up on dbus a lot more.

My program is coming along nicely though. It's up to the point where it prints out the average of the last 10 retu readings and converts it to a xx.x% number. The main framework is in place so that I can add things like deletion of rogue readings, a current_draw correction algorithm (if I can get the current draw somehow ), etc. Hopefully this will be the most accurate battery reading around!