Editing Phone control
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Warning: This page is 38 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.
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 10: | Line 10: | ||
==D-Bus== | ==D-Bus== | ||
- | These D-Bus commands can be run from terminal or as shell scripts. Useful for scheduling events with | + | These D-Bus commands can be run from terminal or as shell scripts. Useful for scheduling events with [[fcron]], executing from [[Desktop Command Execution Widget scripts|Desktop Command Execution Widget]] or [[Queen BeeCon Widget]], startup events, install scripts, etc. They should be run as: |
run-standalone.sh SCRIPT.sh | run-standalone.sh SCRIPT.sh | ||
Line 48: | Line 48: | ||
Another (probably better) approach is to register to the CallStatus D-Bus message (<code>com.nokia.csd.Call</code>, <code>/com/nokia/csd/call/1</code>, <code>com.nokia.csd.Call.Instance.CallStatus</code>) and wait for a call status >= 2 (=<code>CSD_CALL_STATUS_COMING</code>) after the "Coming" message. | Another (probably better) approach is to register to the CallStatus D-Bus message (<code>com.nokia.csd.Call</code>, <code>/com/nokia/csd/call/1</code>, <code>com.nokia.csd.Call.Instance.CallStatus</code>) and wait for a call status >= 2 (=<code>CSD_CALL_STATUS_COMING</code>) after the "Coming" message. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Line 59: | Line 53: | ||
- | Forward | + | Forward [[all ('unconditional') calls]] to e.g. +12223456789 |
dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''0''' string:"+12223456789" uint32: | dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''0''' string:"+12223456789" uint32: | ||
or | or | ||
Line 66: | Line 60: | ||
---- | ---- | ||
- | Forward | + | Forward [[calls when 'busy']] to e.g. +12223456789 |
dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''2''' string:"+12223456789" uint32: | dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''2''' string:"+12223456789" uint32: | ||
---- | ---- | ||
- | Forward | + | Forward [[unanswered calls]] to e.g. +12223456789 (leaving the last uint32: empty will use the last stored waiting time) |
dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''3''' string:"+12223456789" uint32: | dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''3''' string:"+12223456789" uint32: | ||
- | Forward | + | Forward [[unanswered calls, when 'no answer' after 25 sec]] to e.g. +12223456789 (if you want to set this value explicitly; valid values: 5, 10, 15, 20, 25, 30) |
dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''3''' string:"+12223456789" uint32:'''25''' | dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''3''' string:"+12223456789" uint32:'''25''' | ||
---- | ---- | ||
- | Forward | + | Forward [[calls when you are 'out of reach' (no network, shut off, ...)]] to e.g. +12223456789 |
dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''4''' string:"+12223456789" uint32: | dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''4''' string:"+12223456789" uint32: | ||
---- | ---- | ||
- | Forward | + | Forward [[calls when 'not available' (busy, no answer, out of reach)]] to e.g. +12223456789 |
dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''5''' string:"+12223456789" uint32: | dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.SS /com/nokia/csd/ss com.nokia.csd.SS.DivertActivate uint32:'''5''' string:"+12223456789" uint32: | ||
Line 117: | Line 111: | ||
dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM Phone.Sim.get_imsi|awk -F "\"" '/g/ {print $2}' | dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM Phone.Sim.get_imsi|awk -F "\"" '/g/ {print $2}' | ||
+ | |||
====Get [[:wikipedia:Subscriber_identity_module#ICCID|ICCID]]==== | ====Get [[:wikipedia:Subscriber_identity_module#ICCID|ICCID]]==== | ||
Line 167: | Line 162: | ||
dbus-send --type=method_call --dest=org.maemo.Playback.Manager /org/maemo/Playback/Manager org.maemo.Playback.Manager.RequestBluetoothOverride boolean:false | dbus-send --type=method_call --dest=org.maemo.Playback.Manager /org/maemo/Playback/Manager org.maemo.Playback.Manager.RequestBluetoothOverride boolean:false | ||
- | ====Start | + | ====Start vibrating==== |
dbus-send --system --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_activate string:PatternIncomingCall | dbus-send --system --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_activate string:PatternIncomingCall | ||
- | + | ====Stop vibrating==== | |
- | + | ||
- | ====Stop | + | |
dbus-send --system --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_deactivate string:PatternIncomingCall | dbus-send --system --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_deactivate string:PatternIncomingCall | ||
- | |||
- | |||
- | |||
- | |||
- | |||
===Profiles=== | ===Profiles=== | ||
Line 328: | Line 316: | ||
String "OK" is the text for the button. | String "OK" is the text for the button. | ||
--[[User:peterleinchen|peterleinchen]] 21:29, 3 January 2012 (UTC) | --[[User:peterleinchen|peterleinchen]] 21:29, 3 January 2012 (UTC) | ||
- | |||
- | |||
- | |||
===Securing=== | ===Securing=== | ||
Line 337: | Line 322: | ||
dbus-send --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 --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' | ||
- | |||
- | |||
- | |||
- | |||
====Unlock (pop up lockcode requester?)==== | ====Unlock (pop up lockcode requester?)==== | ||
dbus-send --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 --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' | ||
- | |||
- | |||
- | |||
- | |||
====Query Devlock State==== | ====Query Devlock State==== | ||
Line 430: | Line 407: | ||
dbus-send --system --type=method_call --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.set_radio boolean:false | dbus-send --system --type=method_call --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.set_radio boolean:false | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
===Radio mode=== | ===Radio mode=== | ||
Line 540: | Line 507: | ||
dbus-send --system --type=method_call --print-reply --dest=com.nokia.mce "/com/nokia/mce/request" com.nokia.mce.request.req_reboot | dbus-send --system --type=method_call --print-reply --dest=com.nokia.mce "/com/nokia/mce/request" com.nokia.mce.request.req_reboot | ||
This is same as rebooting from power key menu (needs uncommenting in certain XML file to appear) and has been identified as insecure way to reboot the device (no filesystem synchronization, etc.). Better command is to simply enter "reboot" in root terminal. | This is same as rebooting from power key menu (needs uncommenting in certain XML file to appear) and has been identified as insecure way to reboot the device (no filesystem synchronization, etc.). Better command is to simply enter "reboot" in root terminal. | ||
- | |||
- | |||
===Shutdown=== | ===Shutdown=== | ||
Line 990: | Line 955: | ||
Credits: MohammadAG (on irc). | Credits: MohammadAG (on irc). | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
[[Category:Power users]] | [[Category:Power users]] | ||
[[Category:Development]] | [[Category:Development]] |
Learn more about Contributing to the wiki.