<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=93.103.35.172</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=93.103.35.172"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/93.103.35.172"/>
	<updated>2026-04-22T10:38:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Phone_control&amp;diff=31891</id>
		<title>Phone control</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Phone_control&amp;diff=31891"/>
		<updated>2010-03-07T17:34:38Z</updated>

		<summary type="html">&lt;p&gt;93.103.35.172: /* dbus-send-show_conn */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Recommended phone usage}}&lt;br /&gt;
&lt;br /&gt;
=DBUS=&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a number of dbus examples that can be run as simple shell scripts. When running them they should be run with `run-standalone.sh` in front of them to set up the environment correctly. Otherwise they may barf when run from cron, startup, install scripts, etc. They run fine when run as user &amp;quot;user&amp;quot; without `run-standalone.sh`. Example:&lt;br /&gt;
 run-standalone.sh dbus-send /foo bar &#039;boo&#039;&lt;br /&gt;
&lt;br /&gt;
Also note that &amp;quot;--print-reply&amp;quot; in dbus-send commands is usually not needed. It is, however, needed in &amp;quot;lock screen&amp;quot; command (add more).&lt;br /&gt;
&lt;br /&gt;
===dbus-send-call===&lt;br /&gt;
 dbus-send --system --dest=com.nokia.csd.Call --type=method_call --print-reply \&lt;br /&gt;
 /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:&amp;quot;$1&amp;quot; uint32:0&lt;br /&gt;
&lt;br /&gt;
With this fantastic command you can make a fone call from the command line. Change $1 to whatever number you want, or if you put this in a shell script, run it and use the number you want to call as the option, ala:&lt;br /&gt;
 dbus-send-call 15555551234&lt;br /&gt;
&lt;br /&gt;
====From Python :====&lt;br /&gt;
  &lt;br /&gt;
  import dbus&lt;br /&gt;
  def place_call(number):&lt;br /&gt;
    bus = dbus.SystemBus()&lt;br /&gt;
    csd_call = dbus.Interface(bus.get_object(&#039;com.nokia.csd&#039;,&lt;br /&gt;
                                             &#039;/com/nokia/csd/call&#039;),&lt;br /&gt;
                                             &#039;com.nokia.csd.Call&#039;)&lt;br /&gt;
    csd_call.CreateWith(str(number), dbus.UInt32(0))&lt;br /&gt;
&lt;br /&gt;
===dbus-send-call-start-ui===&lt;br /&gt;
 dbus-send --print-reply --type=method_call --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:&#039;rtcom-call-ui&#039;&lt;br /&gt;
&lt;br /&gt;
===dbus-release-call===&lt;br /&gt;
&lt;br /&gt;
 dbus-send --system --dest=com.nokia.csd.Call --print-reply \&lt;br /&gt;
 /com/nokia/csd/call com.nokia.csd.Call.Release&lt;br /&gt;
&lt;br /&gt;
This will release/end/hangup/reject the current call (or possibly all calls if more then one call is active - needs testing to verify behavior when more then 1 call active) or do nothing if no calls are active. &lt;br /&gt;
&lt;br /&gt;
===dbus-send-activate-led===&lt;br /&gt;
 dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_activate string:PatternCommunicationIM&lt;br /&gt;
&lt;br /&gt;
===dbus-send-deactivate-led===&lt;br /&gt;
 dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_deactivate string:PatternCommunicationIM&lt;br /&gt;
&lt;br /&gt;
===dbus-send-email-new===&lt;br /&gt;
 dbus-send --print-reply --type=method_call --dest=com.nokia.modest /com/nokia/modest com.nokia.modest.MailTo string:mailto:&lt;br /&gt;
&lt;br /&gt;
===dbus-send-email-tx-rx===&lt;br /&gt;
Doesn&#039;t work&lt;br /&gt;
 dbus-send --session --type=method_call --dest=com.nokia.osso_email /com/nokia/osso_email com.nokia.osso_email.send_and_receive&lt;br /&gt;
&lt;br /&gt;
===dbus-send-get-imei===&lt;br /&gt;
 dbus-send --system --print-reply --type=method_call --dest=com.nokia.phone.SIM /com/nokia/phone/SIM/security Phone.Sim.Security.get_imei&lt;br /&gt;
&lt;br /&gt;
===dbus-send-google===&lt;br /&gt;
 dbus-send --system --type=method_call --dest=&amp;quot;com.nokia.osso_browser&amp;quot; --print-reply /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:&amp;quot;google.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===dbus-send-hello-world===&lt;br /&gt;
 dbus-send --print-reply  \&lt;br /&gt;
 --type=method_call --dest=org.freedesktop.Notifications  \&lt;br /&gt;
 /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog  \&lt;br /&gt;
 string:&#039;Hello, world!&#039; uint32:0 string:&#039;NAO OK!&#039;&lt;br /&gt;
&lt;br /&gt;
===dbus-send-im-here===&lt;br /&gt;
 dbus-send --type=method_call --print-reply --dest=org.freedesktop.Telepathy.MissionControl /org/freedesktop/Telepathy/MissionControl org.freedesktop.Telepathy.MissionControl.SetPresence uint32:2 string:&amp;quot;I&#039;m here&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===dbus-send-lock===&lt;br /&gt;
 dbus-send --print-reply --system --type=method_call --dest=com.nokia.system_ui /com/nokia/system_ui/request com.nokia.system_ui.request.devlock_open string:&#039;com.nokia.mce&#039; string:&#039;/com/nokia/mce/request&#039; string:&#039;com.nokia.mce.request&#039; string:&#039;devlock_callback&#039; uint32:&#039;3&#039;&lt;br /&gt;
&lt;br /&gt;
===dbus-send-media-play===&lt;br /&gt;
 dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:&amp;quot;file:///$1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===dbus-send-music-pause===&lt;br /&gt;
 dbus-send --dest=com.nokia.osso_media_server /com/nokia/osso_media_server com.nokia.osso_media_server.music.pause&lt;br /&gt;
&lt;br /&gt;
N900&lt;br /&gt;
 dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.pause&lt;br /&gt;
&lt;br /&gt;
===dbus-send-notification===&lt;br /&gt;
Usage:&lt;br /&gt;
 dbus-send-notification &amp;quot;foo bar boo bah bang&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 dbus-send --print-reply  \&lt;br /&gt;
 --type=method_call --dest=org.freedesktop.Notifications  \&lt;br /&gt;
 /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog  \&lt;br /&gt;
 string:&amp;quot;$1&amp;quot; uint32:0 string:&#039;NAO OK!&#039;&lt;br /&gt;
&lt;br /&gt;
====From Python :====&lt;br /&gt;
  &lt;br /&gt;
  import dbus&lt;br /&gt;
  def show_notification_dialog(message, mode=&amp;quot;single&amp;quot;):&lt;br /&gt;
    bus = dbus.SystemBus()&lt;br /&gt;
    iface = dbus.Interface(bus.get_object(&#039;org.freedesktop.Notifications&#039;,&lt;br /&gt;
                                          &#039;/org/freedesktop/Notifications&#039;),&lt;br /&gt;
                                          &#039;org.freedesktop.Notifications&#039;)&lt;br /&gt;
    if mode == &amp;quot;single&amp;quot;:&lt;br /&gt;
        iface.SystemNoteInfoprint(message)&lt;br /&gt;
    elif mode == &amp;quot;multiline&amp;quot;:&lt;br /&gt;
        iface.SystemNoteDialog(str(message), dbus.UInt32(0), &#039;Ok&#039;)&lt;br /&gt;
&lt;br /&gt;
This function allows you to show notification either with multiline (on maemo pre-5 it will show a dialog with an &amp;quot;Ok&amp;quot; button) or single line (tiny notifications hiding automatically).&lt;br /&gt;
&lt;br /&gt;
===dbus-send-pause-panucci===&lt;br /&gt;
 dbus-send --type=&amp;quot;method_call&amp;quot; --dest=org.panucci.panucciInterface /panucciInterface org.panucci.panucciInterface.playPause&lt;br /&gt;
&lt;br /&gt;
===dbus-send-reboot===&lt;br /&gt;
 dbus-send --system --type=method_call --dest=&amp;quot;com.nokia.mce&amp;quot; --print-reply &amp;quot;/com/nokia/mce/request&amp;quot; com.nokia.mce.request.req_reboot&lt;br /&gt;
&lt;br /&gt;
===dbus-send-regist-status===&lt;br /&gt;
 dbus-send --system --print-reply --type=method_call --dest=&#039;com.nokia.phone.net&#039; /com/nokia/phone/net Phone.Net.get_registration_status&lt;br /&gt;
&lt;br /&gt;
===dbus-send-show_conn===&lt;br /&gt;
 dbus-send --print-reply --system --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;boolean:true&amp;quot; at the end, one-line notification saying &amp;quot;No saved connections available&amp;quot; appears. Maybe affects more than that?&lt;br /&gt;
&lt;br /&gt;
===dbus-send-shutdown===&lt;br /&gt;
 dbus-send --system --type=method_call --dest=&amp;quot;com.nokia.mce&amp;quot; --print-reply &amp;quot;/com/nokia/mce/request&amp;quot; com.nokia.mce.request.req_shutdown&lt;br /&gt;
&lt;br /&gt;
===dbus-send-speaker-off===&lt;br /&gt;
 dbus-send --type=method_call --dest=com.nokia.osso_hp_ls_controller /com/nokia/osso_hp_ls_controller com.nokia.osso_hp_ls_controller.loudspeaker.force_ loudspeaker_off&lt;br /&gt;
&lt;br /&gt;
===dbus-send-speaker-on===&lt;br /&gt;
 dbus-send --type=method_call --dest=com.nokia.osso_hp_ls_controller /com/nokia/osso_hp_ls_controller com.nokia.osso_hp_ls_controller.loudspeaker.force_ loudspeaker_on&lt;br /&gt;
&lt;br /&gt;
===dbus-send-task-switcher===&lt;br /&gt;
 dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view&lt;br /&gt;
&lt;br /&gt;
===Unlock screen and keys===&lt;br /&gt;
 dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:&amp;quot;unlocked&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Unlock secured phone===&lt;br /&gt;
 dbus-send --print-reply --system --type=method_call --dest=com.nokia.system_ui /com/nokia/system_ui/request com.nokia.system_ui.request.devlock_close string:&#039;com.nokia.mce&#039; string:&#039;/com/nokia/mce/request&#039; string:&#039;com.nokia.mce.request&#039; string:&#039;devlock_callback&#039; uint32:&#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
===Connect to specific saved connection===&lt;br /&gt;
 dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:IAP_ID uint32:0&lt;br /&gt;
&lt;br /&gt;
IAP_ID is internet access point identifier and can be obtained with the following command :&lt;br /&gt;
&lt;br /&gt;
  gconftool -R /system/osso/connectivity/IAP&lt;br /&gt;
&lt;br /&gt;
Find lines which matches /system/osso/connectivity/IAP/&amp;lt;IAP_ID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;IAP_ID&amp;gt; is a string (for GPRS connections as example, use double quotes in the command and replace @32@ by a space)&lt;br /&gt;
&lt;br /&gt;
Keep in mind that phone has to be disconnected in order to connect via this call.&lt;br /&gt;
&lt;br /&gt;
===dbus-send-disconnect-net===&lt;br /&gt;
 dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true&lt;br /&gt;
&lt;br /&gt;
===Set phone radio mode===&lt;br /&gt;
&lt;br /&gt;
 dbus-send --system --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.set_selected_radio_access_technology byte:0&lt;br /&gt;
&lt;br /&gt;
byte: 0=Dual, 1=2G, 2=3G&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>93.103.35.172</name></author>
	</entry>
</feed>