Results 1 to 2 of 2
Discuss how to disable wifi 30 minute timeout - anyone figured this out yet? at the Free Toolchain Software (Cydia App's) -; Hey all, I've been beating my head against this particular problem for awhile now, my ...
  1. #1
    Newbie Array

    Join Date
    Oct 2008
    Post Thanks / Like
    Rep Power

    Question how to disable wifi 30 minute timeout - anyone figured this out yet?

    Hey all, I've been beating my head against this particular problem for awhile now, my toolchain based daemon needs persistent wifi, I can accept the battery penalty.

    of course once the device goes to sleep and is off a power supply, the wifi shuts off after 30 minutes...
    I've prevented this in other cases with a foreground application running, backlight turned off and not allowing the device to go to sleep.

    But when going to sleep, everything I've tried so far fails to prevent the 30 minute wifi timeout/shutdown.

    I've tried (in basically the order I tried it):

    UIRequiresPersistentWifi YES or boolean set to true - no joy

    [[ UIApplication sharedApplication ] setIdleTimerDisabled: YES ]; - no joy

    IONotificationPortRef notificationPort;
    root_port = IORegisterForSystemPower(self, &notificationPort, powerCallback, &notifier);
    // add the notification port to the application runloop
    					   kCFRunLoopCommonModes );
    the above intercepts the kIOMessageCanSystemSleep msgs and cancels them, but the wifi still shuts off after 30 minutes... (I've seen maybe one post that suggests that these are two different problems.)

    more recently I replace the above with:
    IOPMAssertionID assertionID;
    IOReturn success = IOPMAssertionCreate(kIOPMAssertionTypeNoIdleSleep, 
    again this is power management and seems to be separate from the wifi problem.

    Recently I noticed the following in console messages on my device:
    "Thu May 14 17:40:43 unknown configd[15] <Notice>: WiFi: Disassociation timer disabled because we are connected to a power source

    this lead me down the path of investigating configd.

    I've written code to dump all the key/value pairs in configd and see nothing that correlates (at least to me) to the 30 minute or 1800 second timeout.

    I found lots of references to a 1800 and disconnecting on sleep in the /System/Library/Frameworks/SystemConfiguration.framework/NetworkConfiguration.plist like:

    but changes made to this file don't seem to affect anything... (after power cycle) same 30 minute timeout...

    sooo I'm beginning to run out of ideas...
    I was going to start searching for the string "Disassociation" in binaries to see if I can trace the configd message to something else...
    There is also a POWERSAVE key in one of the dictionaries in configd that has to do with the network:

    key is State:/Network/Interface/en0/AirPort
     is a Dictionary
        STATE : 3
        POWER : (
        BSSID : <XXXX XXXXX>
        TXPOWER : 1496
        POWERSAVE : 1
        RSSI : {
        "RSSI_CTL_AGR" = 10;
        "RSSI_UNIT" = 89;
        AUTH_TYPE : {
        "AUTH_LOWER" = 1;
        SSID : <XXX XXX>
        CHANNEL : {
        CHANNEL = 1;
        "CHANNEL_FLAGS" = 10;
        RATE : 54
    But I haven't modified my configd code to change that yet...

    I've been scouring the forums to no avail...
    Perhaps someone out there in the know will see this and shed some light on the issue...

    Thanks for any thoughts on this...

  2. #2
    Newbie Array

    Join Date
    Sep 2010
    Post Thanks / Like
    Rep Power

    Default The Fix for 30min timeout for ipod or iphone

    You have to open ssh or ifile and modify the time manually.
    here is the file location:
    look to the:
    and change to:
    this will keep it on for a week.
    if you have any questions please email me because i don't often visit



Similar Threads

  1. Replies: 0
    Last Post: 10-11-2010, 09:26 PM
  2. [Help] [Solved] How to disable phone function while keeping WiFi active
    By jayzhuo in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 10-25-2008, 08:53 AM
  3. Anyone figured out how to run Tabulate without syncing bookmarks?
    By darngooddesign in forum Free Toolchain Software (Cydia App's)
    Replies: 11
    Last Post: 12-13-2007, 06:29 AM
  4. Replies: 4
    Last Post: 09-20-2007, 07:05 AM
  5. Replies: 1
    Last Post: 07-11-2007, 06:56 AM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012
All times are GMT +2. The time now is 03:27 PM.
twitter, follow us!