Active Topics

 



Notices


Reply
Thread Tools
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#1
http://wiki.maemo.org/Fcron

You can use this simple yet powerful tool to schedule just about anything at anytime. You can schedule:

- profiles
- backup scripts
- resetting the GPRS counter every month
- disconnection and connection of mobile network or internet
- 3G/2G/Dual radio modes
- NTP update
- email notify/refresh
- brightness level
- locking
- rebooting
- your own scripts
- ...

The wiki entry covers why is using fcron the best way for scheduling events, installation and configuration guide and some scripts.

Last edited by rooted; 2010-03-14 at 20:40.
 

The Following 5 Users Say Thank You to rooted For This Useful Post:
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#2
The sample configuration file in the wiki has been updated with a very important function and whoever did already set fcron up should re-configure it (the difference is that in the new sample config GPRS counter reset is also performed on the next boot if the phone was off at 00:00 or whenever did you set it up).
 
Posts: 521 | Thanked: 296 times | Joined on Sep 2009
#3
Can you provide a sample if I wanted to:
- turn off internet (but keep phone) at 01:00 and turn back on at 07:00 (thus allowing any IM's to be received)

I couldnt figure out how to reconnect, I tried:
dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:false

dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.connect boolean:true


Thanks!
 
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#4
0 1 * * * /disconnect/script
0 7 * * * /connect/script

disconnect script is in the fcron wiki (but I think you got it right)
connect script is wrong, because you have to specify what should phone connect to, you can't just type a command connect and expect that phone will know to which connection

the info you need is to be found: http://wiki.maemo.org/Phone_control#...ved_connection

also check out Phone control wiki page extensively, because it also contains dbus calls to control IM...
 
Posts: 23 | Thanked: 15 times | Joined on Mar 2010 @ Aachen, Germany
#5
On the wiki page it says that fcron sleeps between events, does that imply that it doesn't affect the battery life at all?
 
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#6
That's right, there is no difference in battery times. I definitely trust fcron more than alarm daemon and a few other Nokia daemons...
 
Posts: 521 | Thanked: 296 times | Joined on Sep 2009
#7
Originally Posted by rooted View Post
0 1 * * * /disconnect/script
0 7 * * * /connect/script

disconnect script is in the fcron wiki (but I think you got it right)
connect script is wrong, because you have to specify what should phone connect to, you can't just type a command connect and expect that phone will know to which connection

the info you need is to be found: http://wiki.maemo.org/Phone_control#...ved_connection

also check out Phone control wiki page extensively, because it also contains dbus calls to control IM...
Unfortunately (no fault of fcron), the disconnect at 1am would eventually be re-connected by the OS if you have "automatically switch to wifi". Any other way to disable IM's during bedtime but still allow phone calls (possible emergencies)?
 
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#8
disable wlan during the night. scripts are in the wiki.
 
Posts: 67 | Thanked: 24 times | Joined on Dec 2009 @ Helsinki Finland
#9
Hi,

I set up fcron according to instructions. Everything looks ok, but nothing happens.. No errors either..

according to ps, fcron seems to be running and fcrontab -e works

I tried to run dbus-send (phone to silent/general mode) scripts manually with run-standalone.sh. Also...nothing happens.

What might be wrong?
 
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#10
Originally Posted by bugelrex View Post
Unfortunately (no fault of fcron), the disconnect at 1am would eventually be re-connected by the OS if you have "automatically switch to wifi". Any other way to disable IM's during bedtime but still allow phone calls (possible emergencies)?
Use a Tweakr profile for night: turn volume down for email, im, sms, etc and leave ringer volume up.

Then you just need to run a script to switch your profile at night and in the morning.
__________________
*Consumer*, not a developer! I apologize for any inconvenience.
My script to backup /home and /opt
Samsung Galaxy S Vibrant, Huawei S7, N900(retired), N800(retired)
 
Reply


 
Forum Jump


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