[Tweak][V2.4] Extend your Battery Life - init.d, build.prop and everything

kobridge

Senior Member
Jan 10, 2012
1,710
3,459
0
Jacksonville, FL
Just curious if you are experiencing any Sleep of Death using the CPU screenstate settings you have, specifically enabling a powersave as the sleep governor with a cpu freq range of 200-500. A very common issue on the ICS builds so far is setting the max freq below 1ghz can cause Sleep of Death where the device will not wake from sleep and must be rebooted.
I didn't experience that for many days and ever with this tweaks. Yes, just like you saw, sleep governor with 200-500 cpu freq, it's totally ok with me. Only the chance for sleep of death would be the time when the phone wakes up. An that time, phone goes back to with 200-1000 range to avoid the some known issues.
 
Last edited:

kobridge

Senior Member
Jan 10, 2012
1,710
3,459
0
Jacksonville, FL
And I was curious if the undervolt or underclock have triggered any 4g reboots for you. A few of my friends were getting them on earlier ICS ROM and I had them delete the undervolt script and they stopped. Some people's phones just handle that stuff better than others though

Sent from my Nexus S 4G using Xparent Blue Tapatalk 2
I'm not using any under-volting tweak in my tweak. Actually, uv is not supported in stock ICS kernel.
I believe under-clocking does not affect the 3g functionality. In general terms, under-clocking makes the system a little slower but system still works. But uv is little different because some apps or components need certain range of voltage to work properly. So, uc is much safter than uv.
 
Last edited:

JohnCorleone

Senior Member
Dec 19, 2010
16,188
5,864
0
Whittier,CA
I'm not using any under-volting tweak in my tweak. Actually, uv is not supported in stock ICS kernel.
I believe under-clocking does not affect the 3g functionality. In general terms, under-clocking makes the system a little slower but system still works. But uv is little different because some apps or components needs certain range of voltage to work properly. So, uc is much safter than uv.
Oh I agree completely. I haven't had a chance to try your tweak yet but I definitely will tonight. I have never undervolted this phone but I can see underclocking helping quite a bit. It sure does on my Nexus (800/200) in combination with the lazy governor and a 400/200 wheatley governor screen off profile. Hopefully when we get source we can get a few other governor options in the kernel because the 2 I mentioned increased my battery life by 1/3

Sent from my Nexus S 4G using Xparent Blue Tapatalk 2
 

kobridge

Senior Member
Jan 10, 2012
1,710
3,459
0
Jacksonville, FL
Oh I agree completely. I haven't had a chance to try your tweak yet but I definitely will tonight. I have never undervolted this phone but I can see underclocking helping quite a bit. It sure does on my Nexus (800/200) in combination with the lazy governor and a 400/200 wheatley governor screen off profile. Hopefully when we get source we can get a few other governor options in the kernel because the 2 I mentioned increased my battery life by 1/3

Sent from my Nexus S 4G using Xparent Blue Tapatalk 2
Definitely, I could work for Nexus one but I don't have enough knowledge about Nexus. I need to have some background on that phone like - the default governors provided by Nexus kernel and CPU freq ranges for each governors, etc. Do you know any good place showing all this information for Nexus?
 
  • Like
Reactions: TeamERA

TeamERA

Senior Member
Nov 2, 2011
586
306
0
Everywhere
Well I just started looking at the build.prop (havnt gone any further yet, now off work, just want to warn) and I noticed 2 things right away, its bloated beyond anything Ive ever seen lol. It is changing the lcd density to 200 in 2 (edit = 3 times)different locations, might want to take that out and change it to 240. There are several lines I think shouldnt be in there also. If you want me do do a full run down send me a pm.


edit, In your kobridgetweaks script you have ring delay at 1000, and in build.prop 0, it should be 0. Anyways Im done looking at it really, I never used calks scripts either, always made my own. No Im not trying to say your work is bad, jsut that it looks sorta sloppy atm, sorry man just want you to get better is all. Im a kobridge fan my friend.

Sent from my SPH-D710 using xda premium
 
Last edited:
  • Like
Reactions: kobridge

kobridge

Senior Member
Jan 10, 2012
1,710
3,459
0
Jacksonville, FL
Well I just started looking at the build.prop (havnt gone any further yet, now off work, just want to warn) and I noticed 2 things right away, its bloated beyond anything Ive ever seen lol. It is changing the lcd density to 200 in 2 (edit = 3 times)different locations, might want to take that out and change it to 240. There are several lines I think shouldnt be in there also. If you want me do do a full run down send me a pm.


edit, In your kobridgetweaks script you have ring delay at 1000, and in build.prop 0, it should be 0. Anyways Im done looking at it really, I never used calks scripts either, always made my own. No Im not trying to say your work is bad, jsut that it looks sorta sloppy atm, sorry man just want you to get better is all. Im a kobridge fan my friend.

Sent from my SPH-D710 using xda premium
Whoops! Updating now and sent PM to you!
Saw your edit portion. Thanks for another one and your advice. I'm still trying to getting there within my limited and allowed time.
 
Last edited:
  • Like
Reactions: TeamERA

sfhub

Senior Member
Oct 23, 2008
5,342
7,217
0
For the "new-install-recovery.zip" you should do a symlink from busybox-initd to busybox
Code:
su
cd /system/xbin
ln -s busybox busybox-initd
Crap, had a brain fart. I meant to say busybox-initd (previously I wrote busybox-lite and now corrected it, so what is quote above is correct)
 

Saear

Member
Apr 23, 2012
42
5
0
Houston
Trying to access the toggle for running wifi while in sleep mode.I'm running Calks 2.8.2 rom with the kernal provided in the rom. I don't have any menu or advanced options under wifi settings.

I have
Wi-fi check box
network notification check box
WPS button connection
than a wi-fi network list
 

kobridge

Senior Member
Jan 10, 2012
1,710
3,459
0
Jacksonville, FL
Trying to access the toggle for running wifi while in sleep mode.I'm running Calks 2.8.2 rom with the kernal provided in the rom. I don't have any menu or advanced options under wifi settings.

I have
Wi-fi check box
network notification check box
WPS button connection
than a wi-fi network list
It it's not there then it would be the option that upgraded in ICS. For anyone using GB Rom, do you know how this can be done in any way?
 

JohnCorleone

Senior Member
Dec 19, 2010
16,188
5,864
0
Whittier,CA
Definitely, I could work for Nexus one but I don't have enough knowledge about Nexus. I need to have some background on that phone like - the default governors provided by Nexus kernel and CPU freq ranges for each governors, etc. Do you know any good place showing all this information for Nexus?
I will see what info I can get when I get off of work. I would like to see some of these in our ICS kernels when we get source...

Sent from my Nexus S 4G using Xparent Blue Tapatalk 2
 

Attachments

gershee

Senior Member
Oct 19, 2006
1,718
637
143
Miami, Florida
Do you think aosp kernel works on stock rom? If it is, then I think I can make some test.

If init.d fails on boot, and boot screen is stuck on Samsung logo, then we would flash the rom again. Flashing kernel would not help because it does not delete the system partition. Once after the rom is flashed, do the nandroid recovery that you made before the init.d test.
aosp kernel wouldn't work on tw based roms (stock).
and I odined a kernel because I didn't want to flash anything from an ics recovery so went back to el26 first.
I was trying to just delete the init.d script from adb cause that seemed faster. but couldn't touch /system without su and I couldn't grant it cause it wouldn't boot..
 
  • Like
Reactions: kobridge

kobridge

Senior Member
Jan 10, 2012
1,710
3,459
0
Jacksonville, FL
aosp kernel wouldn't work on tw based roms (stock).
and I odined a kernel because I didn't want to flash anything from an ics recovery so went back to el26 first.
I was trying to just delete the init.d script from adb cause that seemed faster. but couldn't touch /system without su and I couldn't grant it cause it wouldn't boot..
Understood. Maybe sometime I need to flash the AOKP rom and do some test. But right now I just want to stick with stock/Calk/Sfhub's rooted roms. I'm not ready yet to jump in.
 

sfhub

Senior Member
Oct 23, 2008
5,342
7,217
0
and I odined a kernel because I didn't want to flash anything from an ics recovery so went back to el26 first.
I was trying to just delete the init.d script from adb cause that seemed faster. but couldn't touch /system without su and I couldn't grant it cause it wouldn't boot..
You shouldn't need su with a custom recovery as the adb is usually already set to give you root permissions when you boot into recovery.
 

kobridge

Senior Member
Jan 10, 2012
1,710
3,459
0
Jacksonville, FL
The second version tweak coming soon...
Mainly on 41tweaks and build.prop file.

Edit: created issue log section in post #2. It seems like there's some wifi issue. I'm not sure it's Kernel related or this tweak related. Checking it now.

Update: Tested with Wifi Fixer but wifi still do not want to sleep. Now I'm heading to drug store to buy 'phenobarbital'(sleeping-aid). Still checking...
 
Last edited:

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
0
TampaBay
Trying to access the toggle for running wifi while in sleep mode.I'm running Calks 2.8.2 rom with the kernal provided in the rom. I don't have any menu or advanced options under wifi settings.
Settings/wireless and network/wi-fi settings, press the menu key, select advanced, select wi-fi sleep policy, select never.
 

adma84

Senior Member
Aug 23, 2010
926
190
0
All three scripts seem to get me stuck on the SGS2 screen on AOKP m5. I have to odin el26 kernel and then use recovery to remove the scripts. Anyway to troubleshoot? /etc/init.d/ works because I made a test script to echo output to a file in /data/local/tmp

Any way for me to troubleshoot?
 

kobridge

Senior Member
Jan 10, 2012
1,710
3,459
0
Jacksonville, FL
All three scripts seem to get me stuck on the SGS2 screen on AOKP m5. I have to odin el26 kernel and then use recovery to remove the scripts. Anyway to troubleshoot? /etc/init.d/ works because I made a test script to echo output to a file in /data/local/tmp

Any way for me to troubleshoot?
SManager if it works on AOKP rom. But please don't use this tweak on AOKP. Some people reported it's causing stuck on boot screen.
I need to test the script and make it to work on AOKP.

Thanks.
 
Last edited:
  • Like
Reactions: gershee and adma84