Notices


Reply
Thread Tools
Posts: 203 | Thanked: 375 times | Joined on Nov 2009
#61
if you can't or don't want to install nano for whatever reason you still can use vi which is preinstalled on every linux machine. Please note that vi is one of the oldest editors ever. it was written when computers still had smaller keyboards and were lacking arrow keys, number pads and the like. Because of this vi is a bit funky to use for beginners but very powerfull once you get used to it. Here is a small how to how to use it.

Open the file you want to edit (again, get superuser rights before that if you need to edit system files)
Code:
vi /sbin/fm-boost
Now you can see the contets of the file bu you cannot edit it yet because vi is in navigation mode. Press "i" to switch to insert/edit mode. Now you can edit the contents. After you are done, press Esc to leave insert/edit mode. Now type ":" to enter command mode. Type "w" to write (save) your modifications and then "q" to quit vi. If you have messed up the file and dont want to save your mdifications type "!" instead of "w". The line on the bottom should show ":wq" if you want to save and quit or ":q!" to just exit without saving your changes. Hit enter to actually execute the command. You can also use only ":w" to write the changes without exiting. Google for vi reference list for a complete list of vi commands. They are also available in form of mouse pads or mugs
 

The Following 3 Users Say Thank You to mzanetti For This Useful Post:
Posts: 203 | Thanked: 375 times | Joined on Nov 2009
#62
Originally Posted by ppriyank View Post
ITs giving me the same error, (how do i copy/paste in X-Terminal?) i checked what i typed, and it matches to what it says in the guide...but still no luck...re-starting my phone and will try again see if it works (i didn't restart it after i installed the ifocus).
To avoid typos in linux terminals and write way faster make extensive use of the Tab key. It features a very powerfull autocompletion. But I warn you: Once you get used to it you will get sick every time you open a DOS command prompt
 
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#63
Originally Posted by mzanetti View Post
Yay! Got it! ...

<the crowd goes wild>

...Optionally you can change fm-boost to switch frequency every time by adding the above command in the file /sbin/fm-boost. Make sure you insert it after the "#!/bin/sh" and before "exit 0"

Here is an example of mine:
Code:
#!/bin/sh
/bin/echo 120 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level
/usr/share/lfocus/v4l2-ctl -d /dev/radio0 -f 87.5
exit 0


Have fun!
Now the million dollar question:

can a line be added to /sbin/fm-boost that will also enable the FM transmitter?

This way we can have one button to rule them all!
__________________

SLN member # 009
 
Posts: 739 | Thanked: 220 times | Joined on Dec 2009 @ Surrey, UK
#64
Strange behaviour testing this. I set it to 87.5 which works fine for the most part but sometimes I start picking up a black radio station apparently on that frequency. Now the odd thing is the station is fairly strong on that frequency but if I unplug the N900 charger from the car's cigarette lighter the station disappears.

It seems that the car cigarette charger is affecting the performance of the FM transmitter. Is there a specific type of charger that can be purchased that doesn't produce this sort of scenario?
__________________
There is a way that seems right to a man, but in the end it leads to death. Proverbs 14:12
 
Posts: 5 | Thanked: 1 time | Joined on Jan 2008
#65
Originally Posted by cardiff-blues View Post
Strange behaviour testing this. I set it to 87.5 which works fine for the most part but sometimes I start picking up a black radio station apparently on that frequency. Now the odd thing is the station is fairly strong on that frequency but if I unplug the N900 charger from the car's cigarette lighter the station disappears.

It seems that the car cigarette charger is affecting the performance of the FM transmitter. Is there a specific type of charger that can be purchased that doesn't produce this sort of scenario?
Mine won't let me be plugged in to the cigarette charger and use the fm transmitter at the same time....it tells me "please remove from charger"...weird
 
Posts: 3 | Thanked: 3 times | Joined on Apr 2010
#66
Hey everyone,

first of all thanks for this thread, really helped me out to get normal sound out of my speakers in my car!

Secondly, I've tried to edit the fm-boost file to make it set the frequency to 87.5 automatically, but that didn't work for me. Now I've made 2 files, to start everything automatically;

- setfmfreq.desktop file inside /usr/share/applications/hildon for starting it via one single click. Content of that file is:

[Desktop Entry]
Encoding=UTF-8
Name=Set Frequency
GenericName=Set FM Transmitter signal to 87.5
Exec=osso-xterm "sh /home/user/StartFM.sh"
Icon=fm-boost-64
X-Osso-Type=application/x-executable
X-HildenDesk-ShowInToolbar=false
Terminal=true
Type=Application
StartupNotify=true
- StartFM.sh inside /home/user which contains:

/usr/bin/fmtx_client -p 1
/bin/echo 120 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level
/usr/share/lfocus/v4l2-ctl -d /dev/radio0 -f 87.5
I've created this to make everything set for 87.5( since I'm on the road alot that's the only frequency I can really use ). Now is my problem that I also want to start the mediaplayer and play a song automatically as well. When I try to start the media player via xterminal/script it just never comes up( only comes up when I press on "Mediaplayer" on my desktop or inside my menu for some reason ). Does anyone have experience with this?

Last edited by R4z8r; 2010-04-12 at 18:30.
 

The Following 3 Users Say Thank You to R4z8r For This Useful Post:
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#67
Originally Posted by R4z8r View Post
Hey everyone,

first of all thanks for this thread, really helped me out to get normal sound out of my speakers in my car!

Secondly, I've tried to edit the fm-boost file to make it set the frequency to 87.5 automatically, but that didn't work for me. Now I've made 2 files, to start everything automatically;

- setfmfreq.desktop file inside /usr/share/applications/hildon for starting it via one single click. Content of that file is:



- StartFM.sh inside /home/user which contains:



I've created this to make everything set for 87.5( since I'm on the road alot that's the only frequency I can really use ). Now is my problem that I also want to start the mediaplayer and play a song automatically as well. When I try to start the media player via xterminal/script it just never comes up( only comes up when I press on "Mediaplayer" on my desktop or inside my menu for some reason ). Does anyone have experience with this?
I have done as I think you meant. I made two files containing the appropriate scripts and then placed them in the directories you specified and have rebooted.

I was expecting to find two FM Boost icons in my application manager. One for "FM Boost" proper and one for your "Set Frequency" or "StartFM".

Am I warm?

I only have the original FM Boost app showing and it behaves as it always did.

I know I'm slow like that so please straighten me out.
__________________

SLN member # 009
 
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#68
Originally Posted by thatgadgetgirl View Post
Mine won't let me be plugged in to the cigarette charger and use the fm transmitter at the same time....it tells me "please remove from charger"...weird
Does it say "Charger" or just USB?

Mine will sometimes say "FM Transmitter can not be used while the USB port is in use" or somesuch...
A reboot has fixed it the 2 or 3 times I encountered it.
__________________

SLN member # 009
 
Posts: 3 | Thanked: 3 times | Joined on Apr 2010
#69
Originally Posted by YoDude View Post
I have done as I think you meant. I made two files containing the appropriate scripts and then placed them in the directories you specified and have rebooted.

I was expecting to find two FM Boost icons in my application manager. One for "FM Boost" proper and one for your "Set Frequency" or "StartFM".

Am I warm?

I only have the original FM Boost app showing and it behaves as it always did.

I know I'm slow like that so please straighten me out.
Yeah, you're warm. The problem of my script is that it cant start mediaplayer automatically, when I try to start it via my script mediaplayer just crashes.
 
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#70
Originally Posted by R4z8r View Post
Yeah, you're warm. The problem of my script is that it cant start mediaplayer automatically, when I try to start it via my script mediaplayer just crashes.
OK... baby steps then.

The problem with Media player may be that it needs to be up and running before FMTX is invoked.

If that command is removed, do you have a script capable of starting FMTX, invoking the power increase, and setting the frequency?

The reason I ask is that Quick Launch by Daniele Maio is available in testing. It puts 4 configurable buttons to launch apps from on the Status menu.



Now I don't have to go back to the desktop to launch FM Boost.

If you have a working script, we could eliminate one more step for now, and work on the media player problem later. Perhaps a just programed script pause is needed...

In fact my ideal set up would be to use 4 different copies of your script for different frequencies depending on where I am at.

Quick Launch could be like radio presets for me.

There are two problems I have found using the 87.5 ~ 87.9 frequencies.

The first is that in my city 87.5 is used by a local DTV station. Most of the time this isn't a problem but the stretch of road I sometimes drive runs right along the antenna farm. There is about a 7 mile length of road where I receive a "pulsed" kind of interference and a 1 mile length where everything is flooded with white noise.

The other problem is that the lower frequencies seem to be more suseptable to RF emitted by the cars various electric motors like the windshield wipers. On rainy days I kick it up to 106.5 to reduce this.

BTW, how come I didn't get another copy of the FM Boost icon on my desktop?
__________________

SLN member # 009
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:48.