Active Topics

 


Reply
Thread Tools
macey's Avatar
Posts: 283 | Thanked: 276 times | Joined on Aug 2011 @ uk or @Pai,Mae Hong Son, Thailand
#1
Hello, so I can turn on the FM transmitter with one tap on an icon
via /usr/bin/fmtx_client -p 1. I want to be able to turn the transmitter
OFF with the same icon. I want to know if there is a way to query the
transmitter status so I can just code a toggle function.
 

The Following User Says Thank You to macey For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#2
Have you looked at the Queen Beecon Widget pages or the sources of desktop plugins that are already available?

Can you not use the hildon-status-menu to toggle this on and off.
If using CSSU this can be set to always shown in the menu.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#3
Originally Posted by sixwheeledbeast View Post
Have you looked at the Queen Beecon Widget pages or the sources of desktop plugins that are already available?

Can you not use the hildon-status-menu to toggle this on and off.
If using CSSU this can be set to always shown in the menu.
Use this with QBW
Code:
result=$( /usr/bin/fmtx_client -p$( /usr/bin/fmtx_client | /bin/grep -q  '^state=enabled' ; echo $? ) | /usr/bin/awk -F '=' '($1=="state") {print  $2}' ); echo $result; [ $result = "enabled" ]
 

The Following User Says Thank You to For This Useful Post:
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#4
There used to be a desktop widget with on/off icons for the FM transmitter & bluetooth (as well as up/down freq adjustment buttons for the FM transmitter).

I had it on my desktop & it worked very well, but it didn't come back after the last reflash. I can't remember what it was called, but it came from maemo.org

Edit:
Here it is, Friendly FM. Is this sort of what you're looking for? Has a button to toggle the FM transmitter on & off.

http://talk.maemo.org/showthread.php?t=70619

Last edited by rotoflex; 2013-07-23 at 05:41.
 

The Following User Says Thank You to rotoflex For This Useful Post:
macey's Avatar
Posts: 283 | Thanked: 276 times | Joined on Aug 2011 @ uk or @Pai,Mae Hong Son, Thailand
#5
This is the (very easy) answer:-

Code:
[ -f /home/user/fmon.txt ] &&  /usr/bin/fmtx_client -p 0 && rm /home/user/fmon.txt && exit 0
/usr/bin/fmtx_client -p 1 >/home/user/fmon.txt
Don't need a "widget", just a very simple bit of code
 

The Following 2 Users Say Thank You to macey For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:15.