1. BlackWolf's Avatar
    hi there,
    I'm currently facing a problem with my iPhone I just can't solve myself ....

    It's actually pretty simple: I wanted Insomnia to autostart when my iPhone boots, so I don't have to manually switch it on (which I forget most times ). So I read it up and found out that on Mac OSX "launchd" is responsible for autostarting programs.
    So what I did:
    I put a file called com.imalc.insomnia.plist in /System/Library/LaunchDaemons/. The content of the file is:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    (I also tried some variations of the above)

    and then I executed
    launchctl load /System/Library/LaunchDaemons/com.imalc.insomnia.plist
    which seems to have worked, because when I execute it again it says "already loaded".

    Problem: It just doesn't work. Insomnia does not get executed at startup.
    Any ideas why or how to do this?

    Last edited by BlackWolf; 2008-07-31 at 12:16 PM. Reason: Automerged Doublepost
    2008-07-31 01:24 AM
  2. jakecigar's Avatar
    thanks! I haven't needed to know this (YET)... but it's good to know.
    http://jpassoc.com/x -- with free itunes under the puppy!
    If I help you out, please press THANKS!

    3g QuickPWN'ed with 2.1
    2008-07-31 03:17 AM
  3. BlackWolf's Avatar
    well ... seems I was wrong. I worked once yesterday but doesn't work anymore now (or I imagined it yesterday, I have no idea).
    this is really driving me nuts ... my .plist file seems to work perfectly and when I type
    launchctl start com.imalc.insomnia
    insomnia starts fine. It just doesn't autostart when the iphone boots and I have no idea why.

    So I'm still open to suggestions and stuff ^^ I really want this to work
    Last edited by BlackWolf; 2008-07-31 at 12:47 PM.
    2008-07-31 12:17 PM
  4. Sayen's Avatar
    Hi BlackWolf

    Did you get it to work?
    I need the same as you. :-)
    2008-08-16 05:07 PM
  5. BlackWolf's Avatar
    not really. I got the wiki2touch server to autostart which worked fine, so I guess the problem is that insomnia does not qualify as a "daemon" and therefore cannot be autostarted (wiki2touch server was a daemon and autostarted fine). But I didn't really find any solution on how to autostart normal apps ... still hoping someone will help me, because I would really like to kick insomnia from my homescreen and just have it run in the background all the time.
    2008-08-16 05:44 PM
  6. Kev1000000's Avatar
    Any resolution on this? I am trying to do the same with NemusSync
    Check out Media Database for the iPhone!
    2008-11-09 09:50 AM
  7. michaelwithe21's Avatar
    resolved? I have a basic mobileterminal.app command that I want to add to the startup of the iphone, does anyone know if I have to do this through the terminal or can it be added like "do shell script" to this file?

    Please see my post "Control Your iPhone from Anywhere via SSH/VNC", it should change everything you think about 3G network firewalls:

    2009-07-09 05:39 PM
  8. stephanschulz's Avatar
    i know this thread is old.
    but it seems to me that there is still no well documented way to have your own app auto start when the ipod is launched.

    was i personally would like to have is a way to have the ipod noticed when being plugged in and then start an app.
    but it seems there is no way around the slide/tap to unlock screen. or is there?
    but once someone does slider to unlock it would be great to have an app start right away.

    any ideas?

    2010-05-31 07:22 PM