|
#1
|
||||
|
|
||||
|
Been using the commands on http://wiki.maemo.org/Phone_control for quite some time, and dbus not being my thing I always had to check the page for the commands, so I decided to merge them all into one script, this should give you an idea what the script does:
Code:
Usage: phone-control [OPTIONS] Options: -v Display version. -h Show this help message. --call [number] Call the number specified --answercall Answer an incoming call (if present) --endcall End an ongoing call (if present) --imei Print the IMEI (serial) number --imsi Print the IMSI number --cellstrength Show cellular signal strength --speakeron Turn loudspeaker on --speakeroff Turn loudspeaker off --vibrateon [pattern] Vibrate using the pattern specified --vibrateoff [pattern] Stop vibrating the pattern specified --listvibrapatterns Lists default vibration patterns --ledon [pattern] Activate the LED pattern specified --ledoff [pattern] Deactivate the LED pattern specified --listledpatterns Lists default LED patterns --profileset [profile] Change the current profile to the one specified --email [address] Send an email to address specified --syncemail Send and receive email --mp-play [/path/file] Open the file specified in the media player. --mp-pause Pause media player playback --mp-stop Stop media player playback --mp-resume Resume media player playback --mp-next Skip to the next track --mp-prev Skip to the previous track --notify [message] Show a one-line notification --dialog [message] Show a multi-line dialog (requires attention) --lock Lock the device with a lock code --unlock Unlock the device (useful over SSH) --keylock Lock screen and keys --keyunlock Unlock screen and keys --cellon Enable cellular modem --celloff Disable cellular modem --cellmode [2G/3G/Dual] Set cellular modem mode --bton Turn bluetooth on --btoff Turn bluetooth off --browse [url] Open the specified url in the browser --volume [0-100] Set volume level --dashboard Open dashboard --fmtxon Turn on the FMTX --fmtxoff Turn off the FMTX --fmtxname Set FMTX RDS station name --fmtxinfo Set FMTX RDS info text --capture [/path/file] Capture an image and save it to the file specified --frontcap [/path/file] Capture an image from the front cam and save it to the file specified The script can of course be used as a backend for many other apps. Feel free to report bugs here, although I've tested all the commands (except the camera and the loudspeaker ones) ![]() Package name: phone-control Package page: http://maemo.org/packages/view/phone-control |
|
#2
|
|||
|
|||
|
nice ! this make a lot easy do some really useful apps
Thanks! |
|
#3
|
||||
|
||||
|
nice stuff \o/
edit; I was actually going to make a script to do all the required stuff relating to an alarm clock that opens a certain radio stream, for example. I can do all that with this, including setting volume, profiles etc required
__________________
http://www.basshero.org Last edited by jaywink; 2010-08-13 at 06:54. |
|
#4
|
||||
|
||||
|
Thanks. Very good, clean and useful script.
Can this be enhanced to add lines to control the wifi chip too. I hope you plan to update this script even further.
__________________
maemo.org - Custom Google Search |
|
#5
|
|||
|
|||
|
Marvelous as always MuhammadAG
|
|
#6
|
|||
|
|||
|
Excellentay Mohammed... This makes things easier for everyone
|
|
#7
|
||||
|
||||
|
hi.. i have a question.. is this meant to speed up the phone app launch time? as in the n900 only start ringing after the callers phone has been ringing for a while? thanks.
|
|
#8
|
||||
|
|
||||
|
Quote:
This script won't speed up the phone app, I don't see how you concluded that, it's useful for what I listed above.
|
| The Following User Says Thank You to MohammadAG For This Useful Post: | ||
|
#9
|
|||
|
|||
|
Awesome.
Is there a way we can use it for SMS? Edit: Am having trouble with speakeron and speakeroff. doesn't seem to do anything. Is it just me? Last edited by Corso85; 2010-08-13 at 09:47. |
|
#10
|
|||
|
|||
|
This is awesome. It works perfectly with the Queen Beecon Widget. Now I can "much" easily create buttons on my desktop that calls the a specific number immediately upon click. Well, you can do anything that's mentioned above really. Awesome. Thanks MAG.
|
| The Following User Says Thank You to jakiman For This Useful Post: | ||
![]() |
|
|