PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   12/19: Need testers for kernel that can simultaneously battery save and overclock (http://forum.ppcgeeks.com/showthread.php?t=138284)

manekineko 12-12-2010 04:53 PM

12/19: Need testers for kernel that can simultaneously battery save and overclock
 
Updated 12/19

bzo has created a new kernel here that needs testing:
http://forum.ppcgeeks.com/showthread...39#post2016367

Prior to this kernel, if startup.txt was overclocked, pm.sleep_mode had to be set to 2, disabling power saving features and halving battery life, or else sleep of death would occur. This new kernel allows overclocked phones to set power saving pm.sleep_modes and should improve battery life for overclocked phones significantly.

If you can help test, and provide feedback if it worked for you, it would be very helpful so that the update can be submitted to the kernel team.

zeurx 12-13-2010 12:58 PM

Re: FYI, overclock vs. battery
 
whats the default pm.sleep_mode if you do not define it?

arrrghhh 12-13-2010 01:48 PM

Re: FYI, overclock vs. battery
 
Quote:

Originally Posted by zeurx (Post 2012715)
whats the default pm.sleep_mode if you do not define it?

I believe 0...

Confirmed, 0.

butler360 12-13-2010 05:01 PM

Re: FYI, overclock vs. battery
 
Is the speed decrease noticeable?

shikyo 12-13-2010 05:10 PM

Re: FYI, overclock vs. battery
 
I have a tilt2 and I run Sleep Mode 0 with overclock at 671744. Thats 656Mhz. Short of the usual 768 I did but it gives me sleep mode 0 stable and better battery life... when its asleep. You know its fully asleep when the light turns green.

tpdjr 12-13-2010 05:19 PM

Re: FYI, overclock vs. battery
 
so is the decrease noticeable at all when you overclock under 700?

zeurx 12-13-2010 06:02 PM

Re: FYI, overclock vs. battery
 
Things take a bit longer to load like gmail but over all still snappy, and seems more stable. also battery is a lot better.

manekineko 12-13-2010 06:56 PM

Re: FYI, overclock vs. battery
 
Quote:

Originally Posted by tpdjr (Post 2012848)
so is the decrease noticeable at all when you overclock under 700?

The benchmarks showed there was a speed difference between overclock and no overclock, but I never noticed on in practice. Both are sluggish, I guess I'm not sensitive enough to detect the difference in sluggishness.

manekineko 12-13-2010 06:56 PM

Re: FYI, overclock vs. battery
 
Quote:

Originally Posted by shikyo (Post 2012840)
I have a tilt2 and I run Sleep Mode 0 with overclock at 671744. Thats 656Mhz. Short of the usual 768 I did but it gives me sleep mode 0 stable and better battery life... when its asleep. You know its fully asleep when the light turns green.

You managed to run both sleep mode 0 and overclock at the same time? Can you post your startup.txt? I'd like to try that.

zeurx 12-13-2010 07:01 PM

Re: FYI, overclock vs. battery
 
just leave the pm options out and run oc options... but this way 12% in around 6-7 hrs

Quote:

set ramsize 0x10000000
set ramaddr 0x10000000
set mtype 2292
set KERNEL zImage
set initrd initrd.gz

set cmdline "lcd.density=240 7x00.a11=500 msmvkeyb_toggle=off pmem.extra=1 gsens
or_axis=2,1,3 rel_path=andboot hw3d.force=1 acpuclock.oc_freq_khz=726000 physkey
board=rhod500 force_cdma=1"

arrrghhh 12-13-2010 07:16 PM

Re: FYI, overclock vs. battery
 
Quote:

set ramsize 0x10000000
set ramaddr 0x10000000
set mtype 2292
set KERNEL zImage
set initrd initrd.gz

set cmdline "lcd.density=240 7x00.a11=500 msmvkeyb_toggle=off pmem.extra=1 gsensor_axis=2,1,3 rel_path=andboot hw3d.force=1 acpuclock.oc_freq_khz=726000 physkeyboard=rhod500 force_cdma=1"
Just to let you know, there were a couple of deprecated commands in your startup. They're in bold/red. They shouldn't hurt anything, but there's no need for them either.

bzo 12-19-2010 03:27 PM

Re: FYI, overclock vs. battery
 
1 Attachment(s)
I have a fix for using sleep mode of 1 while overclocked. I haven't tested 0, but it should work if 0 works normally. I was under the impression that the sleep mode of 0 was broken.

Test kernel attached. I'll get the patch submitted as soon as I get at least a few reports of success.

manekineko 12-19-2010 05:54 PM

Re: FYI, overclock vs. battery
 
Quote:

Originally Posted by bzo (Post 2016367)
I have a fix for using sleep mode of 1 while overclocked. I haven't tested 0, but it should work if 0 works normally. I was under the impression that the sleep mode of 0 was broken.

Test kernel attached. I'll get the patch submitted as soon as I get at least a few reports of success.

I can confirm that at least initially, your fix appears to work.

I tested this by adding overclock, and setting sleep mode to 1 on a regular kernel. I then booted my phone 3 times and put it to sleep, waiting until the green light came on (this actually took quite a few more than 3 boots, because most of the time the green light would never come on). After the green light came on, I attempted to wake the phone with the power button. In all 3 cases, the green light changed orange but the phone did not wake.

I then installed your kernel, while keeping everything else the same. I booted, and then put the phone to sleep. Green light came on, I successfully woke the phone.

What was the cause of the issue?

I'm going to update first post and ask for more testers.

bzo 12-19-2010 06:47 PM

Re: FYI, overclock vs. battery
 
Quote:

Originally Posted by manekineko (Post 2016439)
What was the cause of the issue?

Normally, the PLL2 clock is setup to run at 1056mhz and divided by 2 for the regular 528mhz top speed of the cpu. The max speed of PLL2 is 1200mhz, so if a 2 divider is used, the max frequency possible is 600mhz. So for overclocking, we skip the divider and use the frequency directly so that frequencies above 600mhz are possible.

It appears that in the deeper sleep modes, the clocks are automatically being shut down and powered up again on wake up. The wakeup assumes that PLL2 should be brought back up to 1056mhz and does not reset the divider back to 2, so the cpu is trying to run at 1056mhz which will obviously not work.

The fix checks that PLL2 is being run at the frequency we expect at wakeup or whenever the cpu frequency is changed, and corrects if necessary.

docnas 12-20-2010 02:27 AM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
maybe im missing something im using the startup overclocking and when i let it sleep the green indicator goes on meaning the phone sleeps properly or am i missing something? I havent used your kernel yet as im trying out tiads package right now to see how it works but just wanted to know if im mistaken about my phone actually sleeping when the light was green.

manekineko 12-20-2010 02:38 AM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
Quote:

Originally Posted by docnas (Post 2016651)
maybe im missing something im using the startup overclocking and when i let it sleep the green indicator goes on meaning the phone sleeps properly or am i missing something? I havent used your kernel yet as im trying out tiads package right now to see how it works but just wanted to know if im mistaken about my phone actually sleeping when the light was green.

Yeah, the green indicator means your phone is sleeping properly. Overclocked phones have no problem sleeping.

What this kernel enables you to do is set the battery saving pm.sleep_mode=1 command which is normally incompatible with overclock. Without this kernel, after an overclocked phone goes to sleep, when it wakes up again it crashes.

pm.sleep_mode=1 about doubled my battery life without overclock, I haven't had a chance to observe battery life with overclock and pm.sleep_mode=1.

docnas 12-20-2010 02:46 AM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
Thanks for the info. well lemme run a few more tests on tiads package ( so far i got a quadrant score of 596 or was it 594 neocore was 18.1 so it looks good to me) and then il try out this kernel. will report my findings when i test it out and let it run for a bit.

fishingmedic 12-20-2010 09:52 AM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
Been running this kernel since last night, no issues at all with it waking up, goes to sleep nice, not sure on batt life with it as I was up late and didn't give it a full charge after loading up the kernel, but so far so good on stability. 20.9 neocore w/o sound, 632 quadrant, no issues found knock on wood...

arrrghhh 12-20-2010 01:45 PM

Re: FYI, overclock vs. battery
 
Quote:

Originally Posted by bzo (Post 2016463)
Normally, the PLL2 clock is setup to run at 1056mhz and divided by 2 for the regular 528mhz top speed of the cpu. The max speed of PLL2 is 1200mhz, so if a 2 divider is used, the max frequency possible is 600mhz. So for overclocking, we skip the divider and use the frequency directly so that frequencies above 600mhz are possible.

It appears that in the deeper sleep modes, the clocks are automatically being shut down and powered up again on wake up. The wakeup assumes that PLL2 should be brought back up to 1056mhz and does not reset the divider back to 2, so the cpu is trying to run at 1056mhz which will obviously not work.

The fix checks that PLL2 is being run at the frequency we expect at wakeup or whenever the cpu frequency is changed, and corrects if necessary.

As always, awesome explanation bzo. Thanks :D

I need to test this kernel! Oy, work is killing me...

ryanmv213 12-20-2010 02:06 PM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
Quote:

Originally Posted by fishingmedic (Post 2016719)
Been running this kernel since last night, no issues at all with it waking up, goes to sleep nice, not sure on batt life with it as I was up late and didn't give it a full charge after loading up the kernel, but so far so good on stability. 20.9 neocore w/o sound, 632 quadrant, no issues found knock on wood...

do you mind posting your sprint startup.txt you are currently using with this kernel? Also are you changing anything for those scores via tiad8's methods in his thread? What differences have you noticed between ACL's 12.18/19 and this? Also what class sd card are you using? Thanks for the link earlier.

bzo 12-20-2010 04:28 PM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
by the way guys, my kernel is a snapshot of the latest code and there may be a power drain issue in kernels from 12/17 and on. So the main thing to evaluate in the test kernel is whether pm mode 1 is stable with overclocking.

tpdjr 12-20-2010 04:36 PM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
Hey bzo my phone is completely stable with overclocking using your kernel. I set overclock to 718600 and pm to 1 and it is working perfect awesome work.

fishingmedic 12-20-2010 04:54 PM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
1 Attachment(s)
Quote:

Originally Posted by ryanmv213 (Post 2016859)
do you mind posting your sprint startup.txt you are currently using with this kernel? Also are you changing anything for those scores via tiad8's methods in his thread? What differences have you noticed between ACL's 12.18/19 and this? Also what class sd card are you using? Thanks for the link earlier.

Here's my startup.txt file. I haven't really seen much as far as differences, I'm able to OC, changed pm mode to 1 and giving it a day to play around with. I've noticed it sometimes goes to sleep (green light) on both kernels, wakes up good from either, but at times it also stays on with the orange LED even though it should be sleeping (kinda like my kids, lol). But I haven't had an issue with either at this point, still trying to see what kind of batt life I'm getting on it.

Quote:

Originally Posted by bzo (Post 2016926)
by the way guys, my kernel is a snapshot of the latest code and there may be a power drain issue in kernels from 12/17 and on. So the main thing to evaluate in the test kernel is whether pm mode 1 is stable with overclocking.

As I noted above bzo, it seems to be stable, I'm OC to max, 768xxx and waking fine, no issues to note and had it on since last night, although if I had to bet, I'd say no improvement on batt life, or if there is, it's minimal in my case, but haven't given it a completely fair shot yet.

MrPib 12-20-2010 05:20 PM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
Working great for me. I'd been having SOD issues with the 12/4 kernel, both OC'd w/ sleep mode 2, and non-OC with mode 1.

Did a fresh install, ran XDAStartup w/ OC at 700k, rebooted and manually set sleep mode to 1 (and checked off Manual Startup on XDAStartup to keep that mode setting).

No SODs so far, and it does seem to be sleeping & waking properly.

NICELY DONE!

manekineko 12-21-2010 10:49 PM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
After playing with this for a few days, with my phone overclocked to 768, without a doubt my battery life is much worse than before, most likely due to whatever bug was committed on Dec 17 that reduced battery life. I'm seeing about 15% usage an hour without really using it much.

Other than that, everything is smooth and no crashes. Thumbs up!

bzo 12-22-2010 07:10 PM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
thanks to all the testers. The patch has been pushed out so this fix will be included in kernels going forward.

steveholtam 01-04-2011 08:02 PM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
Sorry to rehash this old thread, but I would like to confirm that bzo's changes from this kernel are a) in all the new kernels, like from F22/Wistilt, etc, and b) should we no longer have a pm.sleep_mode command or just use pm.sleep_mode=1 in our startups?

Thanks!

natemcnutty 01-04-2011 08:11 PM

Re: 12/19: Need testers for kernel that can simultaneously battery save and overclock
 
Quote:

Originally Posted by steveholtam (Post 2029989)
Sorry to rehash this old thread, but I would like to confirm that bzo's changes from this kernel are a) in all the new kernels, like from F22/Wistilt, etc, and b) should we no longer have a pm.sleep_mode command or just use pm.sleep_mode=1 in our startups?

Thanks!

F22 builds from the git because autobuild is currently down. These changes were pushed a while ago, and all of his builds that are directly from git will have the patch in it.

As for WisTilt, he does a lot more experimental stuff, but I'm confident he keeps his local tree up to date and makes changes from there. That means all of his test kernels should have this fix in it as well.

As for using pm.sleep_mode=1, you do need to leave that in your startup.txt. I believe there are three modes: 0,1,2. I'm not sure what the default is off the top of my head.


All times are GMT -4. The time now is 07:07 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0