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 39 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 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.
-
 
-
====Call "starhash code"====
 
-
 
-
 
-
For example '''*100#'''.
 
-
dbus-send --system --type=method_call --dest=com.nokia.CallUI /com/nokia/CallUI com.nokia.CallUI.HandleMMICode string:"*100#"
 
Line 167: Line 161:
  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 Vibrating Incoming Call====
+
====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
Line 173: Line 167:
PatternXXX according to definition in /etc/mce/mce.ini
PatternXXX according to definition in /etc/mce/mce.ini
-
====Stop Vibrating Incoming Call====
+
====Stop vibrating====
  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
-
 
-
====Vibration Single Shot====
 
-
dbus-send --system --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_start_manual_vibration int32:255 int32:1000
 
-
 
-
First int is power, second is duration in milliseconds
 
===Profiles===
===Profiles===
Line 328: Line 317:
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)
-
 
-
====Send email/SMS style notification====
 
-
see http://wiki.maemo.org/Phone_control#Make_an_.22Email_Style.22_notification_dialog
 
===Securing===
===Securing===
Line 430: Line 416:
  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
-
 
-
====Change device mode====
 
-
 
-
String possibility "offline","flight","normal"
 
-
 
-
dbus-send --system --dest=com.nokia.mce --type=method_call /com/nokia/mce/request com.nokia.mce.request.req_device_mode_change string:offline
 
-
 
-
====Query device mode====
 
-
 
-
dbus-send --system --dest=com.nokia.mce --type=method_call --print-reply /com/nokia/mce/request com.nokia.mce.request.get_device_mode | awk -F "\"" '/g/ {print $2}'
 
===Radio mode===
===Radio mode===
Line 540: Line 516:
  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.
-
 
-
Yet another method: dsmetool -b
 
===Shutdown===
===Shutdown===
Line 990: Line 964:
Credits: MohammadAG (on irc).
Credits: MohammadAG (on irc).
-
 
-
Additional note by Linkandzelda (on irc):
 
-
The type "control_bluetooth_paired" is the name of the icon used, picked from this folder
 
-
 
-
<source lang="bash">
 
-
/usr/share/icons/hicolor/48x48/hildon
 
-
</source>
 
[[Category:Power users]]
[[Category:Power users]]
[[Category:Development]]
[[Category:Development]]

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)

Templates used on this page: