The Following User Says Thank You to maxximuscool For This Useful Post: | ||
![]() |
2010-08-30
, 01:06
|
Posts: 1,522 |
Thanked: 392 times |
Joined on Jul 2010
@ São Paulo, Brazil
|
#172
|
![]() |
2010-08-30
, 02:34
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#173
|
![]() |
2010-08-30
, 22:32
|
Posts: 3,664 |
Thanked: 1,530 times |
Joined on Sep 2009
@ Hamilton, New Zealand
|
#174
|
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.
The Following User Says Thank You to maxximuscool For This Useful Post: | ||
![]() |
2010-08-31
, 01:39
|
|
Posts: 1,030 |
Thanked: 792 times |
Joined on Jun 2009
|
#175
|
The Following User Says Thank You to hawaii For This Useful Post: | ||
![]() |
2010-08-31
, 02:00
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#176
|
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.
![]() |
2010-08-31
, 05:49
|
Posts: 3,664 |
Thanked: 1,530 times |
Joined on Sep 2009
@ Hamilton, New Zealand
|
#177
|
The Following User Says Thank You to maxximuscool For This Useful Post: | ||
![]() |
2010-09-02
, 22:53
|
Posts: 3,664 |
Thanked: 1,530 times |
Joined on Sep 2009
@ Hamilton, New Zealand
|
#178
|
![]() |
2010-09-05
, 01:24
|
|
Posts: 2,869 |
Thanked: 1,784 times |
Joined on Feb 2007
@ Po' Bo'. PA
|
#179
|
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.
![]() |
2010-09-06
, 07:18
|
|
Posts: 246 |
Thanked: 204 times |
Joined on Jun 2007
@ Potsdam (Germany)
|
#180
|
![]() |
Tags |
fm transmitter, freedom fm |
|
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
Install Preenv games into eMMC| Click Here to get rid of Uboot screen
My N900 running at 250-1150Mhz
Unlocking your FM-transmitter to 76.0Mhz - 107.9Mhz range - CLICK HERE.