Go Back   maemo.org - Talk > Software > Applications
 
Register FAQ Community Calendar Today's Posts Search

Notices

Reply
 
Thread Tools
  #1  
Old 2010-08-13, 02:07
MohammadAG's Avatar
MohammadAG MohammadAG is offline
 
Join Date: Oct 2009
Location: Jerusalem, PS/IL
Posts: 2,473
Thanks!: 1,091
Thanked 12,265 Times in 1,478 Posts
Send a message via MSN to MohammadAG Send a message via Skype™ to MohammadAG
Default [Announce] Phone Control Script

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
After installation open terminal and type phone-control to see the command list.

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
Reply With Quote
The Following 111 Users Say Thank You to MohammadAG For This Useful Post:
aanckar, alef, alexff, alienhead, AlMehdi, anest, appnss, arvind, biobobby89, BLC, BluesLee, cfh11, Chrome, codeMonkey, Crugath, Cue, cy8aer, D4rKlar, dana.s, dave1010, Dave999, Deafboy, debernardis, dhanurdhar, Dousan, DrWilken, egoshin, eiffel, elros34, erniadeldesktop, ersanpermana, Estel, evad, fatalsaint, Faz, Figa, GeneralAntilles, gionni88, Graham Cobb, gregoranderson, grog, Helmuth, Hrw, humble, ivnvir, jakiman, jaywink, jnwi, John McClane, johnel, justmemory, kingoddball, kureyon, laasonen, Laughing Man, leojab, mdengler, mece, microe, moepda, mr id, mrsellout, ndi, nicholes, osama, ossipena, oxpo, pantera1989, patemera, Patola, pcerf, pelago, peterleinchen, phap, pigeond, PUNK, pycage, rotoflex, scifi.guy, SHARP66, shawwawa, sifo, Silvarum, skalogre, Spotfist, sula, Swimm12984, Switch_, talou, tetris11_, timsamoff, tokag, toph, Trestry, uros, v13, videohese, vivmak, vkv.raju, w00t, willi_iam, woody14619, x-lette, xman, xopher, zappa, Zentenario, ZogG, zoner, zvogt
  #2  
Old 2010-08-13, 02:18
e0x e0x is offline
 
Join Date: Apr 2010
Posts: 66
Thanks!: 11
Thanked 26 Times in 18 Posts
Default Re: [Announce] Phone Control Script

nice ! this make a lot easy do some really useful apps

Thanks!
Reply With Quote
  #3  
Old 2010-08-13, 06:34
jaywink's Avatar
jaywink jaywink is offline
 
Join Date: Dec 2007
Location: Helsinki
Posts: 46
Thanks!: 25
Thanked 26 Times in 11 Posts
Default Re: [Announce] Phone Control Script

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.
Reply With Quote
  #4  
Old 2010-08-13, 07:01
vkv.raju's Avatar
vkv.raju vkv.raju is offline
 
Join Date: Dec 2007
Location: India
Posts: 402
Thanks!: 1,481
Thanked 451 Times in 226 Posts
Default Re: [Announce] Phone Control Script

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.
Reply With Quote
  #5  
Old 2010-08-13, 07:18
AlMehdi AlMehdi is offline
 
Join Date: Feb 2010
Location: Sweden
Posts: 1,751
Thanks!: 946
Thanked 844 Times in 460 Posts
Default Re: [Announce] Phone Control Script

Marvelous as always MuhammadAG
Reply With Quote
  #6  
Old 2010-08-13, 08:07
leojab leojab is offline
 
Join Date: Apr 2010
Posts: 102
Thanks!: 190
Thanked 23 Times in 18 Posts
Default Re: [Announce] Phone Control Script

Excellentay Mohammed... This makes things easier for everyone
Reply With Quote
  #7  
Old 2010-08-13, 08:16
joelsk's Avatar
joelsk joelsk is offline
 
Join Date: Apr 2010
Location: Malaysia
Posts: 93
Thanks!: 30
Thanked 30 Times in 23 Posts
Default Re: [Announce] Phone Control Script

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.
Reply With Quote
  #8  
Old 2010-08-13, 09:14
MohammadAG's Avatar
MohammadAG MohammadAG is offline
 
Join Date: Oct 2009
Location: Jerusalem, PS/IL
Posts: 2,473
Thanks!: 1,091
Thanked 12,265 Times in 1,478 Posts
Send a message via MSN to MohammadAG Send a message via Skype™ to MohammadAG
Default Re: [Announce] Phone Control Script

Quote:
Originally Posted by vkv.raju View Post
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.
I'll add it today, already changed the imei and imsi commands so they only display the number.


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.
Reply With Quote
The Following User Says Thank You to MohammadAG For This Useful Post:
  #9  
Old 2010-08-13, 09:43
Corso85 Corso85 is offline
 
Join Date: Dec 2009
Posts: 278
Thanks!: 15
Thanked 209 Times in 70 Posts
Default Re: [Announce] Phone Control Script

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.
Reply With Quote
  #10  
Old 2010-08-13, 10:27
jakiman jakiman is offline
 
Join Date: Aug 2009
Location: Sydney
Posts: 1,427
Thanks!: 674
Thanked 2,077 Times in 597 Posts
Default Re: [Announce] Phone Control Script

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.
Reply With Quote
The Following User Says Thank You to jakiman For This Useful Post:
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:26.