Thread
:
Python D-Bus questions
View Single Post
BrentDC
2009-01-15 , 19:48
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#
1
Sorry for being a nuisance, but programming is a learning experience.
And sometimes I get stuck and need help
So my current dilemma is as follows:
I'm trying to write a (Python) application that logs battery level and I need to catch the dbus signal for when the charger is plugged in / unplugged.
The problem is, I have absolutely no idea how to do this. I've been reading up on dbus, including this manual:
http://maemo.org/maemo_training_mate...m_Development/
But the problem is, although I understand it a little tiny bit, there doesn't seem to be a system dbus reference showing what signals are broadcast by the system (at least I couldn't find any such documentation).
So I was wondering if any of you knew of such a document, or if there isn't any such thing, telling me what python dbus code is needed to "catch" such information.
Well, I have another question, too (sorry!).
I'm able to get the current charge on the battery by using a simple program by Matan (which polls retu) but it isn't enough information. I also really need to know what the current draw on the battery is. So yesterday, on #maemo, Stskeeps and qwerty12 kindly pointed me in the direction of an application called Field Test Display (ftd) which shows this information, but I need to get this data via a CLI so I can document it. So if ftd gets it, then it must be accessible via the terminal somehow? At least I hope...
Any help on either of these issues is greatly appreciated!
Last edited by BrentDC; 2009-01-15 at
19:50
.
Quote & Reply
|
BrentDC
View Public Profile
Send a private message to BrentDC
Find all posts by BrentDC