1. Download our Official Android App: Forums for Android!

Root [Boost Mobile] PowerNap script family

Discussion in 'Android Devices' started by mercury0x000d, Dec 10, 2013.

  1. mercury0x000d

    mercury0x000d The ultra-modern operator
    Thread Starter
    Rank:
    None
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

    [​IMG]

    PowerNap is a script specifically designed for the ZTE Warp which can significantly increase battery life. It made its debut in the Warp OEM ROM and accomplishes its magic by automatically disabling the data connection and restricting the CPU speed to an upper limit of 244MHz when the phone's screen shuts off. When you resume using your Warp, the script then restores your previous CPU speeds and re-enables the data connection. As only the 3G band of your radio is powered down, you can still receive calls and texts while PowerNap is active.

    You need to be running a custom kernel which supports asynchronous scripting (e.g. init.d2) to use PowerNap. Installation is easy, just download the script, place it inside your init.d2 folder using your favorite root-enabled file browser, and reboot.



    Downloads:

    PowerNap
    The original battery saver script. You may notice some lag upon wake with this version.

    PowerNap v2
    Version 2 eliminated the lag which some users noticed with the original and also removed a condition which could cause problems with restoring the previous CPU speed.

    PowerNap v3
    The latest in the PowerNap family, this version also governs the 3G connection to push more life out of the battery.

    Bug reports are welcome (especially with v3 since it has not yet been tested outside of my phone :eek:) and as always... enjoy!
     

    Advertisement

  2. Skinnyjeans21

    Skinnyjeans21 Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    2,617
    Joined:
    Oct 25, 2012

    Oct 25, 2012
    2,617
    1,796
    333
    Male
    High School Senior and Professional Sleeper
    Houston, TX
    Mind if I ask you to add a HaloBean Edition to that family later on? I'm working on my own version as well :)
     
  3. jimsmith80

    jimsmith80 Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,361
    Joined:
    Aug 22, 2012

    Aug 22, 2012
    1,361
    777
    213
    Male
    Phoenix AZ
    If you want you can post the modified DS power nap. Its based on your first generation script with a few modifications
     
    mercury0x000d likes this.
  4. mercury0x000d

    mercury0x000d The ultra-modern operator
    Thread Starter
    Rank:
    None
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

    No problem! New additions to the family are always welcome ^_^
     
    sb43 and LilBit like this.
  5. LilBit

    LilBit Android Expert
    Rank:
    None
    Points:
    533
    Posts:
    5,865
    Joined:
    Sep 1, 2012

    Sep 1, 2012
    5,865
    3,308
    533
    Female
    U.S.A.
    Works as you said, Im running Warp OEM right now, Deffinatly a Faster charge when plugged in, Seems to get better battery life like you said. For those who dont know how or where to drop the text file, Just navigae to System/etc/initd2

    Drop the new file in there and delete the powernap2, set permissions, reboot, enjoy.
    Thanks again Merc!!
     
    mercury0x000d likes this.
  6. mercury0x000d

    mercury0x000d The ultra-modern operator
    Thread Starter
    Rank:
    None
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

    Thanks, Bit! :)

    Have you noticed any lag or slowdowns over the previous PowerNap?
     
    LilBit likes this.
  7. LilBit

    LilBit Android Expert
    Rank:
    None
    Points:
    533
    Posts:
    5,865
    Joined:
    Sep 1, 2012

    Sep 1, 2012
    5,865
    3,308
    533
    Female
    U.S.A.
    Not a single hiccup:)
    Works great!!;)
     
  8. GChild78

    GChild78 Member
    Rank:
    None
    Points:
    18
    Posts:
    36
    Joined:
    Dec 1, 2013

    Dec 1, 2013
    36
    14
    18
    Male
    Texas
    Question. When setting permissions, is it supposed to be set to 0777?
     
  9. rickpcb

    rickpcb Android Enthusiast
    Rank:
    None
    Points:
    88
    Posts:
    448
    Joined:
    Sep 11, 2012

    Sep 11, 2012
    448
    265
    88
    Male
    St Augustine, FL
    You don't need to set any permissions... keep in mind all the current stable roms have this integrated already...
     
    LilBit, mercury0x000d and GChild78 like this.
  10. Zayny

    Zayny Member
    Rank:
    None
    Points:
    18
    Posts:
    38
    Joined:
    Apr 5, 2013

    Apr 5, 2013
    38
    13
    18
    Male
    Student
    Fort Lauderdale, FL
    I love this script however only one problem for me. When using it I notice when I listen to Spotify and having my screen off it extremely lags the music, is there a way to prevent the script from making Spotify really laggy or am I out of luck? Thanks :)
     
  11. rickpcb

    rickpcb Android Enthusiast
    Rank:
    None
    Points:
    88
    Posts:
    448
    Joined:
    Sep 11, 2012

    Sep 11, 2012
    448
    265
    88
    Male
    St Augustine, FL

    Which version are you using? I would suggest V2 but this script is meant to conserve battery while your phone is sleeping... Not while running processor intensive tasks like streaming.
     
    mercury0x000d likes this.
  12. mercury0x000d

    mercury0x000d The ultra-modern operator
    Thread Starter
    Rank:
    None
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

    I've been noticing a general lag on WOEM with many apps which run in the background. To test this I installed multiple messaging and audio playing apps which I know will need to run constantly in the background. The result I get is severe lag when switching between apps or even when using different features within the same app. This happens even when the device has been awake for a period of time which leads me to think this is an issue with WOEM and not PowerNap in particular. Anyone else notice this?
     
  13. iram

    iram Android Enthusiast
    Rank:
    None
    Points:
    73
    Posts:
    405
    Joined:
    Aug 9, 2012

    yes...just installed woem.....its very lagging switching between apps
     
  14. mercury0x000d

    mercury0x000d The ultra-modern operator
    Thread Starter
    Rank:
    None
    Points:
    313
    Posts:
    1,665
    Joined:
    Nov 24, 2011

    I think I know what the problem may be. It seems the ROM works okay as long as it's not heavily loaded down, but when it is the lag becomes quite problematic.

    Thanks for the input!
     

Share This Page

Loading...