Active Topics

 



Notices


Reply
Thread Tools
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#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
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
 

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
Posts: 66 | Thanked: 26 times | Joined on Apr 2010
#2
nice ! this make a lot easy do some really useful apps

Thanks!
 
jaywink's Avatar
Posts: 46 | Thanked: 26 times | Joined on Dec 2007 @ Helsinki
#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.
 
vkv.raju's Avatar
Posts: 402 | Thanked: 451 times | Joined on Dec 2007 @ India
#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.
 
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#5
Marvelous as always MuhammadAG
 
Posts: 102 | Thanked: 23 times | Joined on Apr 2010
#6
Excellentay Mohammed... This makes things easier for everyone
 
joelsk's Avatar
Posts: 93 | Thanked: 30 times | Joined on Apr 2010 @ Malaysia
#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.
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#8
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.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 278 | Thanked: 209 times | Joined on Dec 2009
#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.
 
Posts: 1,427 | Thanked: 2,077 times | Joined on Aug 2009 @ Sydney
#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:
Reply


 
Forum Jump


All times are GMT. The time now is 21:17.