Active Topics

 


Reply
Thread Tools
Posts: 30 | Thanked: 4 times | Joined on Dec 2009
#101
Originally Posted by DaveQB View Post
I have put those two files you create in that in a tarball you get download onto the N900 directly.

So run this as roo:

Code:
wget http://www.dward.us/software/118.tar
tar xf 118.tar
Now run ls and they will both be there, so now just run:

Code:
mv 118 /usr/local/bin/
mv 118.desktop /usr/share/applications/hildon/
HTH
Am i doing something wrong here, my n900 says wget not found??

Also by roo do you mean root?

I'm a complete novice by the way, sorry if this is all a bit obvious
 
slavikko's Avatar
Posts: 20 | Thanked: 15 times | Joined on Nov 2009 @ Turku, Finland
#102
root yes.
wget is not installed by default.
You can get it by running 'apt-get install wget' (as root)
 
Posts: 23 | Thanked: 8 times | Joined on Dec 2007 @ St.Petersburg, Russia
#103
Originally Posted by slavikko View Post
Note, needs bash which you can get by
Code:
apt-get install bash
AFAICS your script doesn't use any bash specific features. Can you check it's work with standard /bin/sh?
 
Posts: 25 | Thanked: 2 times | Joined on Dec 2009
#104
hi, i have had success using echo in the terminal.

following the instructions from daveqb for a desktop shortcut for it has not worked...i have a desktop shortcut, however it is not making any changes.

I may have done something wrong, wanted to let you know though just in case!
 
slavikko's Avatar
Posts: 20 | Thanked: 15 times | Joined on Nov 2009 @ Turku, Finland
#105
Originally Posted by Egres View Post
AFAICS your script doesn't use any bash specific features. Can you check it's work with standard /bin/sh?
Didn't work directly since it was a bit bashy, but I posted a new version in the original post that does not need sh.
 
Posts: 147 | Thanked: 49 times | Joined on Dec 2009
#106
nice one!

it seems that frequency setting is disabled on my phone

I get:

"fmtx_client: ERROR: Unable to set frequency (Frequency is not currently allowed)"

or am I doing something wrong?
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#107
Originally Posted by xmob View Post
I initially thought the same regarding the RDS. However, the PS field is only 8 characters and very few receivers support the RT field (64 characters).

It may be possible to do some clever scrolling in the 8 character PS field, but the RDS data rate is very slow (1187.5 bps).
1187.5bps is, what, over 100 chars per second? so you could change the 8char field over 10 times per second? Sounds plenty fast to me.
 
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#108
Messed around with the scripts a little and came up with some stuff that doesn't require any outside apps etc to work.

Edit a file called /opt/bin/boostfm.sh
Code:
!/bin/sh
STATE=`fmtx_client | grep state | cut -d '=' -f2`
if [ "disabled" = ${STATE} ]
then
   echo "Turning on FM transmitter"
   fmtx_client -p1
else
   echo "Turning off FM transmitter"
   fmtx_client -p0
fi
/bin/echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level
exit 0
Now add the following to /etc/sudoers

Code:
user ALL = NOPASSWD: /opt/bin/boostfm.sh
Now create a file called BoostFM.desktop in /usr/share/applications/hildon which contains

Code:
[Desktop Entry]
Version=0.1
Type=Application
Name=BoostFM
Exec=osso-xterm 'sudo /opt/bin/boostfm.sh'
Icon=general_fm_transmitter
X-Windows-Icon=
X-HildonDesk-ShowInToolbar=false
X-Osso-Type=application/x-executable
This will open up an xterm, run the script and then close the xterm. It checks to see if the transmitter is on and will turn it off if it is. I used a standard system icon for the icon in the desktop file. All you need to now is put it as a shortcut on your desktop and its one tap on and off.
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 

The Following 11 Users Say Thank You to Bratag For This Useful Post:
Posts: 185 | Thanked: 103 times | Joined on Aug 2008
#109
 

The Following 4 Users Say Thank You to legoman666 For This Useful Post:
Posts: 117 | Thanked: 23 times | Joined on Aug 2008 @ Hardenberg
#110
Sorry if this is asked before, I did some searching, but could not find it. Seems there are some experts on this thread..

Is there a way to use bluetooth for my Parrot carkit and use the FM tramsmitter as well? I find the N900 'seas' the Parrot as 'an earphone' and I get the music through bluetooth.. The volume is very low and I can't adjust it on Parrot or caraudio or N900! So I would like having a carkit and fm tfransmitter for my music. Thx!
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:02.