Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    How to set presence from cli on N900?

    Reply
    ScarCow | # 1 | 2010-06-01, 08:17 | Report

    According to the wiki entry, this should set the presence:

    Code:
    dbus-send --type=method_call --print-reply --dest=org.freedesktop.Telepathy.MissionControl /org/freedesktop/Telepathy/MissionControl org.freedesktop.Telepathy.MissionControl.SetPresence uint32:2 string:"I'm here"
    I also found an old topic where this gets better explained.

    Unfortunately this doesn't work in N900, as there is no service named MissionControl. There is MissionControl5, but that doesn't work if i just try to use it the same way.

    I stuck here, because i know nothing about DBus and stuff. Does anyone know a method to set the status from command line?

    -sc

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mabahj | # 2 | 2010-06-07, 13:23 | Report

    Could maybe this this thread help?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to For This Useful Post:
    ScarCow

     
    ScarCow | # 3 | 2010-06-08, 07:59 | Report

    Thanks, that helped!

    -sc

    Edit | Forward | Quote | Quick Reply | Thanks

     
    magick777 | # 4 | 2010-07-24, 10:59 | Report

    I've been playing with this and think I may have stumbled upon the solution. Other posts have mentioned mc-tool, which is not by default installed on the N900.

    However, it is available in the package "libmissioncontrol-utils" and can be invoked with

    mc-tool request <account name> <presence>

    It also has a list command showing the telepathy accounts on the system, so to set everything bar the ring/tel account offline (used for voice calls), we can just

    mc-tool list | grep -v "ring/tel" | awk {'print "mc-tool request "$1" offline"'} | sh


    Replace "offline" with "online" to reverse the process, et voila.

    Usual disclaimers, works for me, use at your own risk, and check your commands before you pipe them to sh!

    It should be noted that while the status bar icon behaves as expected, this does not seem to update the global presence setting found within the status menu, so if you go offline, each account will show "network disconnected", but the online button will remain highlighted. You can just hit "Save" and it will put you back online as expected.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by magick777; 2010-07-24 at 11:34.
    The Following 2 Users Say Thank You to magick777 For This Useful Post:
    scifi.guy, Tstone

     
    Tstone | # 5 | 2010-08-05, 07:12 | Report

    Thanks!
    Works great, have been looking the solution for ages.

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout