Editing User:Jebba

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 79: Line 79:
=DBUS=
=DBUS=
-
Now at [[User:Jebba/DBUS]].
+
This section is being merged to form a new, better, more powerful [[Phone_control|Phone control]] page. See also [https://garage.maemo.org/plugins/wiki/index.php?Tools&id=1106&type=g call forward] & [https://garage.maemo.org/plugins/wiki/index.php?Tools&id=1106&type=g CSD].
 +
 
 +
Here'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 "user" without `run-standalone.sh`. Example:
 +
run-standalone.sh dbus-send /foo bar 'boo'
 +
 
 +
===dbus-send-call===
 +
dbus-send --system --dest=com.nokia.csd.Call --type=method_call --print-reply \
 +
/com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$1" uint32:0
 +
 
 +
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:
 +
dbus-send-call 15555551234
 +
 
 +
===dbus-send-call-start-ui===
 +
dbus-send --print-reply --type=method_call --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:'rtcom-call-ui'
 +
 
 +
===dbus-send-tick===
 +
Vibrates like the "tick" when you tap or somethig.
 +
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_activate string:'PatternTouchscreen'
 +
 
 +
===dbus-send-vibrate===
 +
Vibrate the phone  :)
 +
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request  com.nokia.mce.request.req_vibrator_pattern_activate string:'PatternChatAndEmail' is a little bit longer
 +
 
 +
===dbus-send-activate-led===
 +
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_activate string:PatternCommunicationIM
 +
 
 +
===dbus-send-deactivate-led===
 +
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_deactivate string:PatternCommunicationIM
 +
 
 +
===dbus-send-disconnect-net===
 +
dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
 +
 
 +
===dbus-send-email-new===
 +
dbus-send --print-reply --type=method_call --dest=com.nokia.modest /com/nokia/modest com.nokia.modest.MailTo string:mailto:
 +
 
 +
===dbus-send-email-tx-rx===
 +
Doesn't work
 +
dbus-send --session --type=method_call --dest=com.nokia.osso_email /com/nokia/osso_email com.nokia.osso_email.send_and_receive
 +
 
 +
===dbus-send-get-imei===
 +
dbus-send --system --print-reply --type=method_call --dest=com.nokia.phone.SIM /com/nokia/phone/SIM/security Phone.Sim.Security.get_imei
 +
 
 +
===dbus-send-google===
 +
dbus-send --system --type=method_call --dest="com.nokia.osso_browser" --print-reply /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"google.com"
 +
 
 +
===dbus-send-hello-world===
 +
dbus-send --print-reply  \
 +
--type=method_call --dest=org.freedesktop.Notifications  \
 +
/org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog  \
 +
string:'Hello, world!' uint32:0 string:'NAO OK!'
 +
 
 +
===dbus-send-im-here===
 +
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"
 +
 
 +
===dbus-send-lock===
 +
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:'com.nokia.mce' string:'/com/nokia/mce/request' string:'com.nokia.mce.request' string:'devlock_callback' uint32:'3'
 +
 
 +
===dbus-send-media-play===
 +
dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"file:///$1"
 +
 
 +
===dbus-send-music-pause===
 +
dbus-send --dest=com.nokia.osso_media_server /com/nokia/osso_media_server com.nokia.osso_media_server.music.pause
 +
 
 +
===dbus-send-notification===
 +
Usage:
 +
dbus-send-notification "foo bar boo bah bang"
 +
 
 +
dbus-send --print-reply  \
 +
--type=method_call --dest=org.freedesktop.Notifications  \
 +
/org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog  \
 +
string:"$1" uint32:0 string:'NAO OK!'
 +
 
 +
===dbus-send-pause-panucci===
 +
dbus-send --type="method_call" --dest=org.panucci.panucciInterface /panucciInterface org.panucci.panucciInterface.playPause
 +
 
 +
===dbus-send-reboot===
 +
dbus-send --system --type=method_call --dest="com.nokia.dsme" --print-reply "/com/nokia/dsme/request" com.nokia.dsme.request.req_reboot
 +
 
 +
===dbus-send-regist-status===
 +
dbus-send --system --print-reply --type=method_call --dest='com.nokia.phone.net' /com/nokia/phone/net Phone.Net.get_registration_status
 +
 
 +
===dbus-send-show_conn===
 +
dbus-send --print-reply --system --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:true
 +
 
 +
===dbus-send-shutdown===
 +
dbus-send --system --type=method_call --dest="com.nokia.dsme" --print-reply "/com/nokia/dsme/request" com.nokia.dsme.request.req_shutdown
 +
 
 +
===dbus-send-speaker-off===
 +
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
 +
 
 +
===dbus-send-speaker-on===
 +
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
 +
 
 +
===dbus-send-task-switcher===
 +
dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view
 +
 
 +
===dbus-send-unlock===
 +
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"unlocked"
 +
 
 +
===dbus-send-unlock2===
 +
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:'com.nokia.mce' string:'/com/nokia/mce/request' string:'com.nokia.mce.request' string:'devlock_callback' uint32:'0'
 +
 
 +
===dbus-send-switch-profile===
 +
dbus-send --session --dest=com.nokia.profiled --type=method_call /com/nokia/profiled com.nokia.profiled.set_profile string:"silent"
 +
 
 +
===dbus-send-switch-to-offline-mode===
 +
dbus-send --system --dest=com.nokia.mce --type=method_call /com/nokia/mce/request com.nokia.mce.request.req_device_mode_change string:"offline"
=Gripes=
=Gripes=

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)