Active Topics

 



Notices


Reply
Thread Tools
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#171
Originally Posted by jacekowski View Post
well, region 4 problem was fixed long time ago (http://jacekowski.org/Maemo/FMTXD#comment-16) and i'm quite amazed how people managed to get it to work without changing module/region ( which is impossible )
yes, I'm planing to use your fixed for the last resort. I want to make this hack as noobies friendly as much as possible. By replacing some of the Kernel modules may result in consequences. But for now I have a really good Idea to work around this issue without replacing the fmtx-si4713.ko inside the system directory.

If something gone wrong in there, there will be no turning back therefore best way to avoid replacing any system files as much as possible. An alternative is there for us to do it but I need some help with tutorial on how to create a simple app plugin.

maxxi
 

The Following User Says Thank You to maxximuscool For This Useful Post:
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#172
so i just download the one from http://maemo.jacekowski.org/binary/fmtx-si4713.ko instead of the one from the first post?
 
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#173
Fcron is an implementation of crontab.

It runs "things" on a schedule.

It is most likely in devel repos.

You would need some things to do this, most have it already.

1) Rootsh
2) devel repos enables
3) I would recommend Nano as a text editor installed.
4) Install fcron
5) google fcrontab for info on how to use
6) edit /etc/fcron.conf to change the editor line to be vi or nano when fcrontab -e is evoked, nano would be the easiest. Leafpad may work.
7) Use this line in fcrontab to set the region every 60 min:

# Set Region from 2 to 4
@ 60 echo 4 > /sys/class/i2c-adapter/i2c-2/2-0063/region

There is also a fcrontab option to do it at first boot, but I don't remember it. I'm sure somebody will know it.
 
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#174
Originally Posted by les_garten View Post
Fcron is an implementation of crontab.

It runs "things" on a schedule.

It is most likely in devel repos.

You would need some things to do this, most have it already.

1) Rootsh
2) devel repos enables
3) I would recommend Nano as a text editor installed.
4) Install fcron
5) google fcrontab for info on how to use
6) edit /etc/fcron.conf to change the editor line to be vi or nano when fcrontab -e is evoked, nano would be the easiest. Leafpad may work.
7) Use this line in fcrontab to set the region every 60 min:

# Set Region from 2 to 4
@ 60 echo 4 > /sys/class/i2c-adapter/i2c-2/2-0063/region

There is also a fcrontab option to do it at first boot, but I don't remember it. I'm sure somebody will know it.
I've developed a small applet plugin to accomidate this issue already. It will be available for people to install very soon. Once installed, you don't need to change the region again. It will be done automatically at startup.

Also, I'm not going to add fmtxd into the script yet, so the first hack has to be done before installing this.
 

The Following User Says Thank You to maxximuscool For This Useful Post:
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#175
Why on EARTH would you need a cronjob to do this?

Change it on boot using an /etc/event.d/ script and be done with it. There's no reason you need to constantly echo the value in.

/etc/event.d/region-swap
start on started hildon-desktop
stop on starting shutdown
console none
service

script

echo 4 > /sys/class/i2c-adapter/i2c-2/2-0063/region

end script

And that's it. If you want it controlled by a cronjob, and only run at boot, simply use @reboot.
 

The Following User Says Thank You to hawaii For This Useful Post:
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#176
Originally Posted by hawaii View Post
Why on EARTH would you need a cronjob to do this?

Change it on boot using an /etc/event.d/ script and be done with it. There's no reason you need to constantly echo the value in.

/etc/event.d/region-swap
start on started hildon-desktop
stop on starting shutdown
console none
service

script

echo 4 > /sys/class/i2c-adapter/i2c-2/2-0063/region

end script

And that's it. If you want it controlled by a cronjob, and only run at boot, simply use @reboot.
Thanx! I knew someone would pipe in about the @reboot option.

n.b. tried the @reboot option and it did not work, BTW.

your startup script did BTW, thanx!

Last edited by les_garten; 2010-08-31 at 02:14.
 
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#177
can anyone help me packaging my little app?
I tried and got it copmpiled but didn't seems to get the files into the directory.
 

The Following User Says Thank You to maxximuscool For This Useful Post:
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#178
I've decided to upload my little fix to the "region" changes here.

You can download it from here.

Update: Sorry found a little bug with the previous version. Now all fixed. Please download again and replace the old one with this.
Attached Files
File Type: zip FMTX-MaxxiLimit.zip (4.2 KB, 138 views)

Last edited by maxximuscool; 2010-09-04 at 09:02.
 

The Following 2 Users Say Thank You to maxximuscool For This Useful Post:
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#179
Originally Posted by maxximuscool View Post
I've decided to upload my little fix to the "region" changes here.

You can download it from here.rsion. Now all fixed. Please download again and replace the old one with this.
I don't need and can't use lower frequencies so this is way OT...
I read in this thread that you post from NZ.

You OK dude?
>> http://www.youtube.com/watch?v=KFCJL...=youtube_gdata
__________________

SLN member # 009
 
jukey's Avatar
Posts: 246 | Thanked: 204 times | Joined on Jun 2007 @ Potsdam (Germany)
#180
I was able to install your modifications. Now I can activate a frequency like 80.0 Mhz but if I try to disable the fmtx I get the "unable to use fmtx" message. If I switch back to - let's say - 90.0 Mhz I'm able to disable the transmitter again.

So in short terms:
Enabling works fine
Disabling does not work
(both in the GUI)

Best regards Uwe
__________________
-> Join the SailfishOS Meetup Berlin - every first Monday a month <-

Me on twitter
 
Reply

Tags
fm transmitter, freedom fm


 
Forum Jump


All times are GMT. The time now is 13:45.