yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
battery story

Folks, kernel is just part of the equation. The ROM you are running and apps play a significant role. For example, in my case the damn enterprise app which has not been ported to ICS yet, which drains my battery faster (although lcd should be the biggest drainer). yeah, not going back to GB..So you must do a BBS to figure out what is the cause..when I turn my sync of it def. goes to deep sleep. But alarms, background sync's and rogue apps can all cause the phone to not go into deep sleep. All this assumes you are not overclocking or using some other governor than the default, like I said before ondemand should give overall better performance. Turn off BLN if you don't need it..it takes amperage to light those soft keys :)..

Also, once I finish my merge, I will tweaking some more..have few ideas..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Decepticaons:
What is the lowest voltage settings you all have been able to run without a hitch?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] xcrazydx:
-75
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Decepticaons:
i must be missing something, voltage control isn't showing voltage options
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] xcrazydx:
Using system tuner? It works for me.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Decepticaons:
Thanks I'll give that a try
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ian1:
Again im getting heating issues even when underclocking. So I'm beginning to think the gpu is running to high. It helps in games though. But just navigating the UI I get insane temperatures.

Thanks
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
ok..maybe I will restore it back to stock..next iteration..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ian1:
Is there any app where we can control the gpu clock. I currently use system tuner.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ian1:
Well oddly the temperature issues went away when I switched launchers and battery life has never been better. Loving this kernel!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] bluntman420:
There's nothing wrong with the gpu overclock.please don't put it back to stock.maybe create two versions.one with and one without? Thanks

---------- Post added at 09:44 PM ---------- Previous post was at 09:41 PM ----------

What app were you using that resulted in the high temps?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ian1:
I agree I like the gpu overclocked. When I switched from touchwiz nature launcher to touchwiz 4.0 launcher my phone runs almost 10 degrees cooler. No idea why ... but what evs
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Phatboyj420:
no problems with over heating here. Used with Alien8 and now Embryo4 flawlessly.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] scott14719:
Just flashed 1.5 onto Alien8 and it seems to be working very well so far. I wiped dalvic and cache 3X each and then flashed it. I let the phone sit 10 minutes before I touched it (to let the files settle and interact properly). I don't and will not be messing with anything UV / OC related at all. Of course I noticed the Always on touchlight setting seems to be working again :good:...but the scrolling wallpaper seems to have stopped. I wonder if there is an easy way to get it back to scrolling again? I'll check a few more things out over the next couple of days such as the battery life and the camera.

**Edit I long touched the screen and went back through the wallpaper selection process and it started working (scrolling) again. I guess it just needed to be redone.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] chinthekng:
Mohan I was just wondering if this kernel will work on uclf6 roms
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
yes..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] christianxin:
can i use it with skyics uclf6 rom?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
Yes..It's there in the OP...The kernel + ramdisk (bootimage) can be flashed on any SAMMY Released ICS firmware (leak or official) (and yes, it works fine on UCLF6). Just DONT flash it on AOKP or CM9 since they require a different RAMDISK..

P.S: You would want to download the 1.5 release (see OP) not the dev one..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
Basass Governor sysfs interface

To whoever was asking about the sysfs levers for badass governor. Here there are (since you asked you already know how to adjust and what those means, :)). Of course, you need to enable it first: (once you tweak it to your satisfaction, drop in as an init.d script).

/sys/devices/system/cpu/cpufreq/badass/sampling_rate_min
/sys/devices/system/cpu/cpufreq/badass/sampling_rate
/sys/devices/system/cpu/cpufreq/badass/up_threshold
/sys/devices/system/cpu/cpufreq/badass/down_differential
/sys/devices/system/cpu/cpufreq/badass/sampling_down_factor
/sys/devices/system/cpu/cpufreq/badass/ignore_nice_load
/sys/devices/system/cpu/cpufreq/badass/powersave_bias
/sys/devices/system/cpu/cpufreq/badass/io_is_busy
/sys/devices/system/cpu/cpufreq/badass/two_phase_freq
/sys/devices/system/cpu/cpufreq/badass/semi_busy_threshold
/sys/devices/system/cpu/cpufreq/badass/semi_busy_clr_threshold
/sys/devices/system/cpu/cpufreq/badass/three_phase_freq
/sys/devices/system/cpu/cpufreq/badass/busy_threshold
/sys/devices/system/cpu/cpufreq/badass/busy_clr_threshold
/sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_threshold
/sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_clr_threshold
/sys/devices/system/cpu/cpufreq/badass/gpu_busy_threshold
/sys/devices/system/cpu/cpufreq/badass/gpu_busy_clr_threshold
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ReedX50v:
Yep... Just to add to that: you can always find out the available options with "ls" (as in lower case L) in adb or a terminal emulator:

ls /sys/devices/system/cpu/cpufreq/badass/
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] petrochemicals:
@mohan_kr

Was wondering if this kernel would be updated to the Skyrocket source? http://opensource.samsung.com/reception/receptionSub.do?method=search&searchValue=727
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kishke:
try this

https://play.google.com/store/apps/details?id=com.antutu.CpuMasterFree&hl=en
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
If you read the OP, I have already mentioned what would be done :). Next here is something I wrote about yesterday, in general regarding the kernel source:

http://xdaforums.com/showpost.php?p=28617745&postcount=11

Hopefully that answers the question. And yes, I have already started looking at the difference, and as far as our device is concerned, as expected nothing that I can see needs to be cherry-picked. Except, there are sources for SGSIII US chipset (which is not enabled anyways)...Anyways, I might provide an update this weekend, which will include any changes if any.

GOVS/OC/UC etc..

Folks, please read the OP. I do not tune *any* of the govs, except for the stock ondemand, which will *always* be the default and match the stock settings. Any other gov, once you enable it, you can find out the tuneable parameter via:

adb shell ls -l /sys/devices/system/cpu/cpufreq/<govname>

And you can find all the available gov.s via adb (see post #2) or any app..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] greenteg:
Any personal suggestions for a DD scheduler/governor setup to promote battery life? Even with light/moderate use today I wasn't able to get 10hrs using:

Scheduler: Deadline

Governor: Wheatley

Clock: 1.512mhz MAX / 192mhz MIN

I'll try Badass tomorrow followed by SavageZen, SmartassV2 (an old friend), etc, etc
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Phatboyj420:
Try some of the settings I used you can pick and choose obviously http://xdaforums.com/showpost.php?p=28696367&postcount=204

Especialy if Battery is your #1 concern Stick with Ondemand /CFQ or Conservative/ CFQ pick one and then tweak Freq/Vltg

Hope this Helps Its the best I can offer
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Krakozawr:
Why ondemand but not a intellidemand?..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Phatboyj420:
Can't speculate I've never used it Sorry
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] slam666:
Hi Mohan,

is this kernel base on GB or ICS?

Thanks.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
I will try to be gentle :) (As if you look up few posts and the OP title, it should be clear). The answer ICS. It would be humanely gargantuan task (even for me :)) to take a GB kernel source from sammy and port/make it compatible with ICS platform (Android 4.0.x)

Android Platform 4.0.x (ICS) is forked of mainline linux kernel 3.0.x stream. The one that comes with AOSP is 3.0.8, and Sammy unlike other vendors (surprisingly) stuck with the AOSP ICS kernel base. JB (Android 4.1) e.g. is forked of linux mainstream 3.1.10. So the kernel version string in your Settings -> About Phone for Sammy ROM's will tell you which Android Platform it is based for..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] slam666:
Hi Mohan,

Your kernel is the only one so far that solve my disconnect/connect problem with my bluetooth in my car. So I was wondering if it was GB or ICS since I dont have the problem with GB and every ICS kernels I tried so far (execpt yours) have the problem.

Any idea whats different in your kernel that fix that problem?

Thanks.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
Not much, except it has been kept uptodate with the latest upstream caf tree. (don't ask me what is caf :)).
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
EDIT: oops..looks like DP.

Not much, except it has been kept uptodate with the latest upstream caf tree. (don't ask me what is caf :)). Sammy understandbly, have to freeze the code base long before release, except for changes due to bug fixes, this issue must not have been in their release process radar. Of course, I just guessing here that Sammy has a rigorous release process..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] MarlowXim:
@mohan_kr any chance of updating your git repo? We just got the ICS sourced released for i717 Galaxy Note, looks similar. Was hoping of attempting to port out features on a Samsung based kernel.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
Hey, I have been cutting releases from feature branches that I created and I have two other hanging branches, which are not done yet...I have been tied with lot of crap and the damn official release just a week or so after the last leak, has not given me much time to merge and push, the only thing I can do is respond to questions now :(, even that might be difficult next couple of weeks..pm me, if you need specific patchsets..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] number16:
Thanks for the kernel mohan. I dunno if it's just me, but since switching to this kernel my ROM (Sean's UXCLF3 base 4.2F) has been draining battery. Looking at BBS shows the phone goes from ~ 80-90% Deep Sleep to only 65-70% DS when it's mostly idling. Digging deeper shows there're a lot of "android alarms" ... and that's the biggest difference between the stock (or mostly stock minor modified by Seanz) kernel and yours. Any clue what it might be?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
Dupe..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
The stock kernel has no BLN. The current BLN impl. holds a kernel lock, that should be the difference from stock kernel. This kernel is built from source, has to.. Anyways, look in the OP there are links to shell scripts (thanks to Reed0Xv) that can give you some arsenal to do what you want with battery performance..I don't and will not tune it (except for the ondemand)...the knobs are there for you to tune it. Otherwise the 1.5 has pretty much the same settings as the UCLF5 kernel (pull the kernel config and compare, except for the cpu clocks)..

And then read about the battery stats file here:

https://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT

even thought it talks about calibration, hint: read the parts about the file and what it means and how the different apps interpret it. delete the file from /data/system in between flashing kernels.

I am not going to make wreckless claims about battery life in the kernel or my roms :)..figure it out..search..

As far as alarms, here is what you need to do to find out who the culprits are:

adb shell dumpsys alarm > alarm_dump.txt

It will give you clues to what apps are the culprits..from a alarm manager perspective..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] christianxin:
i just curious is it possible to have a uclf6 kernel by you mohan. your kernel is the best.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
My ROM thread (4.1) has all the stock kernel + modified ramdisk..anyways here it is:

kernel-skyrocket-Stock-UCLF6-cwm5.zip

Also for people who DONT want BLN, i have version that I compiled (the only other difference is I have increased the wifi sensitivity):

CYMBALINE-1.6-DEV-1-cwm5.zip
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] bluntman420:
mohan, i have tried your kernel on embryo and skyics and there is for sure some touchscreen lag. When scrolling on a web page or up and down in a menu it just doesn't register touch correctly. Normally if on aweb page you can just flick from top to bottom very quickly, but about 80-90% of the time it just moves the page a very little.(with your kernel) I am currently using faux123 kernel on GB and it has no issues at all with touch. Please look into this further if you you get the chance.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ian1:
Ya the touch response is really messing a lot of games up. Also the kernel doesn't sleep very well. I've tryed swapping kernels and other ones sleep better. I do love this kernel though and can get around 3 hours screen time while connected to wifi and with like an hour of gaming
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mohan_kr:
The lag (not sure, but after you mentioned, maybe i noticed a little slower than the first time, using stock browser) will be fixed in the next iteration (going back and checking if things are different)..just tied up right now..will see over the weekend if i can get a release out..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Decepticaons:
Im just curious, I have the UCLF6 modem, what will flashing this kernel do to that if anything? Change it? Also the UCLF6 kernel you posted is that stock UCLF 6 with all your tweaks or just the generic kernel? I have been on the UCLF6 that sean posted, the one he modded I believe, and the battery life is horrendous, cant even get 8 hrs. I used to get well into the teens. Lemme know what you think. My plan right now is to flash 1.5 and flash some of the scripts that were generously created. I dont, however, want to not use the UCLF6 modem as I am getting awesome downloads speeds on it here in Michigan. You the man mohan, thanks for your hard work!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] waiters:
can't wait for the new version, looking fwd to flashing this kernel! thanks for everything you do man!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] FlKTION:
I really want to use this kernel but for some reason it murders my battery. I did not touch a thing ran it as it came. I don't mind losing some battery with a custom kernel but this is just too much. I get about 1d 20 hours on Rogers Sky ICS. in comparison I unplugged today at 7:45am came home at 11:30am and was down to 48% and all i did was send one text and listen to a podcast. I know there is nothing running that is killing it just for some reason this kernel kills my battery.

Looking forward to future releases though!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] waiters:
That in general boggles me lol.. I have 2 spare batteries and a charger in my car, work and home..

I'm lucky to only have to swap my battery with a new one only once..

Iphone 4s lasted 2 hr for me... BlackBerry a little less.

Cats will fall from the sky before I ever see a battery last a full day lol
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] FlKTION:
Damn dude that is crazy!!!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] greenteg:
This was extremely helpful to more than doubling my battery life with this kernel.

Here is my personal setup:

CWM_Cym_CPU_OneCoreOC_192-1674MHz.zip

CWM_Cym_GOV_Badass.zip

CWM_Cym_IOScheduler_CFQ.zip

CWM_Cym_UV_Experimental.zip

In all honesty, the phone runs cooler, is faster, and doubled the battery life from 1.5. (I'm also on 1.6 Sans BLN)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] epapsiou:
Optimal DPI

Did anyone play with dpi to see what is optimal with this kernel in terms of battery life?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] aycockonxion:
Agreed. OC to 1836, set to badass Gov. :good:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] cnewsgrp:
Mohan: Apologize for posting in your thread for an issue that is unrelated to the Kernel. I wanted your opinion on an issue I have been facing on all ICS ROMS. I have explained the issue in detail here

http://xdaforums.com/showpost.php?p=28853199&postcount=1

Questions

1) Has something changed in ICS as far at BT goes over GB? Visually I now see two profiles "Phone" and "Media" that did not exist before. Can that lead to BT issues?

2) Is there a way to install GB BT files in ICS ROMS? For me and several others BT works perfectly with GB, but is broken is ICS.

Apologize again.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ReedX50v:
Thanks... I'm glad it helped you out. Now, that finals are out of the way, I should be able to drop a big update with in the next few days.

If anyone is looking for the original post it is can be found here:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] whassupmyninja:
To use the scripts do you have to run on cymbaline? Because i know to fully overclock and underclock you have to be on that kernel, but i can underclock just fine on Sky ics.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ReedX50v:
I would say cymbaline-only, if the actual feature is in the other kernel then, that would work too... But, these scripts are primarily geared to the available features and settings of Cymbaline. Stock kernals won't support: VDD tables, overclock, or most of the governors.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] whassupmyninja:
Im on a modded kernel, settings from setcpu work fine they stick. I read that some people are experiencing battery issues with this kernel, so im not inclined to flash this...yet. I just wanted to know if the scripts would work so that i wouldnt have to rely on setcpu as post said without using a app.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ReedX50v:
Yeah, a post in the Cymbaline thread... Like I said, if your setup supports init scripts, frequencies you use, and the governors, then they would work.

But, let's keep this on-topic to this thread's kernel, Cymbaline.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kishke:
I'm trying 1.6 and battery life is still bad compared to others. I didn't uc/uv yet but the kernel causes a lot of alarm manager wakelocks exactly like on 1.5.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] rccar:
1.6 gives me installation aborted :(
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kishke:
Bad download, download again and check md5 before flashing.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] greenteg:
It's the same kernel SANS BLN.

So if you want to improve your battery life, go back 2 pages to my post from Reed on undervolting using scripts in TCWR 5.5/5.8.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] rccar:
I've downloaded it 4 times over the course of 3 days so it can't be the download, how would I go about checking md5?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kishke:
I know about the uv/uc scripts it wont make a big difference when the phone wakes up so much, I thought the wakelocks on 1.5 were due to the

BLN so 1.6 with no BLN shouldn't have them. But for some reason the wakelocks are still there.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] bluntman420:
Hopefully mohan still plans on redoing this kernel to fix these kinds of things as well as the touchscreen lag. :)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Decepticaons:
I think Mohan disappeared.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kishke:
He said he's not gonna have time the next few weeks.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ReedX50v:
Today or tomorrow I will finally have the update to my flashable scripts done & uploaded. One of the options available is to adjust screen sensitivity... :D

There are 132 zips in the update, so it takes a while. :eek:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] aycockonxion:
Is there a way to enable/disable BLN? I like it most of the time, but my wife doesn't like when our bedroom glows in the middle of the night if I get an email, etc..
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kishke:
Try bln control pro, and maybe but its a long shot you could get something done using tasker to make it automated.

Or simply place your phone upside down, I don't think the light is that strong.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] aycockonxion:
Thanks for the tip. I'll check those out. And I tried turning the phone over, and it's still noticeable enough to bother her apparently.. Possibly only because my phone lives in an Otterbox, so the face isn't completely flush with the surface of the table when it's upside down.

EDIT: BLN Pro works great. $2.99 seems a bit steep, but it does the job.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
I gotta say thanks a lot for your scripts. Glad to see you taking care of us here. Cheery on top! Lol

I was wondering about GPU OC? Have any scripts for that? Haha not sure if this kernel supports it?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] aycockonxion:
Random reboots seem to be an issue when using the lulzactive governor. I've never had a random reboot until I switched from SmartassV2 to lulzactive, trying to figure out the best combination of OC, governor, and Rom Toolbox profile for max battery life. Also, seems like the Rom Toolbox profile isn't activating according to the set condition - I set it to a time condition, and it didn't appear to activate the set frequency for the correct profile.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ReedX50v:
Thanks! Although, I don't mean to steal any of Mohan's thunder. He did the real heavy lifting here putting together a great kernel and is just busy with, ya know, real life stuff at the moment.

As to the GPU... Unfortunately that is set at the kernel level and not configurable. Mohan does have a moderate OC implemented already, however.

I would recommend you not use profiles, they generally cause more problems than they solve and add extra overhead.

I especially recommend against using them with BrazilianWax, Lazy, LulzActive, SavagedZen, or SmartassV2, because those governors have built-in profiles and lock the max frequencies at lower levels when the screen is off. This may be causing your problem.

Also, it seems that many apps do not correctly report current frequencies or governors. Often, these apps are only looking at CPU0 and ignore CPU1, or are not updating frequently enough.

You can use a terminal emulator or ADB to find out the current max freq with:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

Or, for the second core:

cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
Not sure if this is your area of expertise but I have a question posted in Q&A here==>http://xdaforums.com/showthread.php?t=1796871

Regarding MIPS. Only if you have a sec, thanks.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
Will you be posting script updates to your post 249 or the end of the thread?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] waiters:
Mohan hasn't been around in a while... :(