Join Today
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2007
    Location
    Winnipeg, Canada
    Posts
    39

    Default sleep & cron on a1200

    I've found it impossible to be able to schedule any event longer than 2 minutes in shell script.

    After a test determined that 'sleep 300' took nearly two hours to complete with the flip shut, I gave up on this tact and tried my hand with cron. I got busybox crond up and running with little issue, then setup the following crontab

    * * * * * /usr/SYSqtapp/phone/vibrateprocess

    Instantly my phone started buzzing every minute, on the minute. If I flipped it shut, I would get one final buzz then nothing at all. On opening the phone, cron would instantly wake up and start buzzing me every minute again.

    Anyone know what's going on? Doesn't cron talk to the hardware clock? Clearly this can't be suspended or the Alarm app would also fail, no?

    My poor timer/event scheduler is all dressed up with nowhere to go...

  2. #2

    Default you need kill the process apmd

    when you killed the apmd process, the phone will never sleep again, so you can use shell run as long as you wish

    command:
    start-stop-daemon -K -p -n apmd

  3. #3
    Join Date
    Aug 2007
    Location
    Winnipeg, Canada
    Posts
    39

    Default

    Cool idea! I bet it'll be hell on battery life tho! lol This idea will be great for the countdown timer, but I wonder if the loss of battery life to enable the cron scheduler would be worth it.

    I'm still curious as to how the alarm app is able to work through apmd...


 
+ Reply to Thread

Similar Threads

  1. Sleep option
    By softz4me in forum E6 General Chat
    Replies: 1
    Last Post: 01-22-2008, 01:10 PM
  2. Q: Can i run a cron job to change background?
    By skalyanasundaram in forum A1200 General Chat
    Replies: 18
    Last Post: 11-15-2007, 05:15 PM
  3. running a cron job to change wallpaper daily
    By Snap in forum A1200 General Chat
    Replies: 3
    Last Post: 04-15-2007, 03:49 PM
  4. Working sleep or cron daemon
    By iniro in forum Development
    Replies: 2
    Last Post: 01-30-2007, 09:57 PM
  5. cron job
    By tungsten in forum E680 General Chat
    Replies: 9
    Last Post: 08-25-2006, 10:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1