Thread
:
DBus and Presence
View Single Post
jolouis
2008-09-26 , 20:11
Posts: 631 | Thanked: 837 times | Joined on May 2007 @ Milton, Ontario, Canada
#
1
I'm sure I'm missing something here but I just can't for the life of me figure it out. I'm trying to use Dbus-send to control the native Presence settings on Diablo.
Background: the problem I'm running into is that I've got the tablet set to auto-associate with any of the known access points that it finds, but only some of them actually have internet connectivity (i.e. the one in my Jeep, for example, is just a local AP that I connect and use for managing the media player on, not for internet access). I've also got the Presence accounts for my SIP and MSN connections setup to auto connect whenever Wifi activates. However, when the tablet associates with an AP that doesn't actually have internet access, the Presence system just continuously tries to connect... over, and over, and over... leading to a much faster drop in battery life than if it just GAVE UP. Anyways, so the idea is to write a script that will be called by dbus-scripts to check which AP profile the tablet has just associated with, and if it's one that doesn't have internet connectivity than to manually disconnect the Presence accounts. I've read all kinds of documentaiton about Telepathy, Mission Control, DBus, etc and have come up with:
dbus-send --system --print-reply --type=method_call --dest=org.freedesktop.Telepathy.MissionControl /org/freedesktop/Telepathy/MissionControl org.freedesktop.Telepathy.MissionControl.SetPresen ce string:"offline"
but unfortunately it doesn't actually do anything, and I'm thinking I've gone wrong somewhere as I can't seem to get any kind of response from a GetPresence call, or anything else from Mission Control. So, am I completely wrong here, or? Any ideas?
Reference documentation I've been to thus far:
http://www.manpagez.com/man/1/dbus-send/
http://maemo.org/development/documen...managers_bora/
http://telepathy.freedesktop.org/wiki/Mission%20Control
http://telepathy.freedesktop.org/spec.html
Any ideas/thoughts/help is greatly appreciated!
Thanks,
-Rob
Quote & Reply
|
The Following User Says Thank You to jolouis For This Useful Post:
jolouis
View Public Profile
Send a private message to jolouis
Find all posts by jolouis