yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] ebliss:
Regarding logging, when should it be done? Should it be done the moment I boot up and wait for a crash/reboot/freeze or should I start the log when something has already happened? Sorry, new to android.

I tried to start the logs the moment I boot up, after a while, the logging stops by itself. Not sure why. Device is still functioning well without any reboots.
[Galaxy S II Original Android Development] kalpik:
You should basically be connected to ADB all time with those two commands running, and hope that you crash :p
[Galaxy S II Original Android Development] pulser_g2:
Or do as I do, and in gscript, set it up to do:

logcat > /sdcard/logcat.txt &
cat /proc/kmsg > /sdcard/kmsg.txt &

Then go use the phone, and it WILL drain the battery, but it's logging all the time :)
[Galaxy S II Original Android Development] zikarus:
No fc or reboot issues with 1.0/1.2/1.4 and 1.3 since approx. 15 hours being on Litenin 2.2.

Only issue for me is bluetooth connections in my car breaking down all ca. 2 min which is quite annoying but may not be caused by the kernel (already encountered zhe prob with CF 4)

Great battery life btw. Will stick with this great kernel
[Galaxy S II Original Android Development] ebliss:
ah. great idea. I am close to a power source most of the time. anyway of stopping them other than to reboot?
[Galaxy S II Original Android Development] jlevy73:
Kill the script
[Galaxy S II Original Android Development] pulser_g2:
Fixed a typo in the above script :)
[Galaxy S II Original Android Development] kalpik:
Meh.. Mods and their abilities to reach out into other's posts and edit :p
[Galaxy S II Original Android Development] ebliss:
There is no way of killing the script since gscript is not running in the foreground. I had to reboot. device was running at 1.6ghz and hot. :p
[Galaxy S II Original Android Development] LeWildDroid:
This is the greatest kernel ever :D

EDIT: 1 question: is it ok to use, with this kernel, juice defender ultimate and to let this program manage my cpu ondemand (it has an option for CPU)? TIA
[Galaxy S II Original Android Development] Lennyuk:
I would suggest against it, Juice Defender is not as effective when it is also controlling your CPU
[Galaxy S II Original Android Development] LeWildDroid:
Ok than I will let that option disabled ;)
[Galaxy S II Original Android Development] Kingken:
How is this kernel doing with vr2.0?
[Galaxy S II Original Android Development] pulser_g2:
Doing nicely here :)
[Galaxy S II Original Android Development] Kingken:
Thank..trying it now!
[Galaxy S II Original Android Development] kalpik:
I can see the voltage tab on the latest setCPU and this kernel.
[Galaxy S II Original Android Development] kotty:
hi may i know the voltage setting in setcpu mv is core mv or internal mv? seem different from tegrak..
[Galaxy S II Original Android Development] Hacre:
People querying the lack of Voltage tab in SetCPU before flashing this kernel need to headbutt their desk a few times. The kernel has to have a compatible voltage interface for SetCPU to see it.

Also the voltage that's adjusted is the CPU core voltage.
[Galaxy S II Original Android Development] rmourar:
The voltage tab on SetCpu only shows up on supported kernels, why you're asking these questions using a kernel that it's not the one from the OP is beyond me...

If you flash this kernel, which I have and contgrats to Hacre great kernel, you'll see the voltage tab on setcpu....
[Galaxy S II Original Android Development] mach0boi:
Yeah that's also why I asked if that option is kernel related. Now I know.
[Galaxy S II Original Android Development] jlevy73:
This is what I'm referring to: http://xdaforums.com/showthread.php?t=1161262
[Galaxy S II Original Android Development] js8:
Hacre - I've left the settings as flashed (1200MHZ and no UV/OC). I am on Cognition 1.13 at the moment. Overall seems to be working ok. Twice now the phone has turned off/stopped responding when sleeping. Just fyi. Will let it settle in a bit and see what happens. Looking forward to continuing to play with it.
[Galaxy S II Original Android Development] Hacre:
That's not a multi touch issue, it's a sensitivity of touch issue. That parameter is adjusted in this kernel, however it's set to 5 not 0. Set to 0, it registers a lot of swipes as clicks.
[Galaxy S II Original Android Development] neock:
hi. thanks for your work but, i'd like to know if the kernel has its CIFS module supported?
[Galaxy S II Original Android Development] Hacre:
For things like this, if you could have it connected to your computer and run:

adb logcat > logcat.log

and then in another window:

adb shell cat /proc/kmsg > kmsg.log

If/when the issue arises, please make these logs available so we can track the issue down.

Thanks.
[Galaxy S II Original Android Development] rmourar:
Hey there Hacre, just a quick question, any chance of seeing BLN implemented in this kernel??

Thanks!
[Galaxy S II Original Android Development] js8:
No problem. Am used to doing logcats for Romkitchen testing. Of course, reproducing the error will elude me now :) But if it persists, I'll send you the logcat.

I'm playing with UV and OC now, just to see what settings will kill the phone :P
[Galaxy S II Original Android Development] Hacre:
We'll work on getting BLN included for a later release, right now I wanted fundamental functionality (overclocking/undervolting), various bug fixes and performance enhancements included and stable.
[Galaxy S II Original Android Development] designgears:
@Hacre

Thanks, adding this to Cognition S2 on the next release!
[Galaxy S II Original Android Development] Hacre:
I must stress the importance of both logs, not just logcat but the cat of /proc/kmsg as well. If it's a kernel issue there will no doubt be clues in kmsg if not logcat.
[Galaxy S II Original Android Development] mach0boi:
The download link for zImage seems not working. But the md5 and tar works
[Galaxy S II Original Android Development] Hacre:
Works in my browser. Are you using one that for whatever reason takes issue with files without an extension?
[Galaxy S II Original Android Development] mach0boi:
I'm using only my phone. Weird.. As the two links above it works.
[Galaxy S II Original Android Development] mach0boi:
It takes me directly here http://ninpo.qap.la/kernels/sgs2/ninphetamine-1.0/zImage
[Galaxy S II Original Android Development] daddymatt:
Ooohhhh yeah!!!
[Galaxy S II Original Android Development] kryptoner:
haha, he didnt expect the answer from the rom chef himself... :P
[Galaxy S II Original Android Development] tolis626:
Hey Hacre,we may have had some sort of a bad start over at LennyUK's thread about SetCPU but whatever,in memory of the good old days of the Hero,when you and TeamVillain made me like a phone I had hated when it was all stock,I'm gonna try this.I hope we aren't gonna have any more...misunderstandings here. :)

One question though.Do you have any plans of overclocking the GPU in mind?That's the main reason I use Tegrak Ultimate,as I can have a decent CPU overclock without it,but GPU is another thing.And not so much the max 267MHz when the phone can handle 400MHz without even overheating(more :p ),but the fact that 1)160MHz cripples some games and 2)Voltages can be A LOT lower than stock ones,saving much juice.And by A LOT,I mean they can go as low as 750mV with no issues,versus the stock 1000mV.I hope you do consider doing something about it.If not...Meh,whatever!It's pretty damn fast as it is! :D

And by the way,sorry for me bad-mouthing you the other day(Over at LennyUK's thread again). :o
[Galaxy S II Original Android Development] haven80:
I cant write in System folder with Root Explorer (button its already set to r/w).
[Galaxy S II Original Android Development] woffu22:
When i tried it too much battery Drain - i undervoltet and reduced to 1000 mHz,

but with most time sleeping it lasted max. 14 h. Back to KG1, was much better.

Sorry to say that.
[Galaxy S II Original Android Development] eRajesh:
Using the v1.4 kernel with Leomar75's ROM. No reboots, or any other issues. Also downclocked by 25mv at 200/400/1000Mhz, without any stability issues. :D
[Galaxy S II Original Android Development] saifbechan:
I had v1.3 with villain rom 2.0 on for the night and a few hours after. battery drain was about 2%/hour, but im not running much on the phone, use it primarily for phone calls :eek:. The things that were running are launcherpro, and I downloaded a few things from the market.

I did had some random reboots, it was when I did the benchmarking, and while downloading 4 games at once from the market.

One mayor issue I had was with the screen, it was verry jittery going on and off. It didn't had the smooth fade I usually get, instead it went out a little bit shoky. I hope this makes any sense to you.

For now i'm switching to another kernel, but still following, and maybe flash back when a new version is out. I hope the new version has the deep sleep also, and fixes the reboots.
[Galaxy S II Original Android Development] Lennyuk:
DO NOT USE THIS KERNEL UNLESS YOU ARE LOGGING!!!!!!

Coming on here and telling us you had issues, it was slow, rebooting or whatever does not help anyone without the logs!
[Galaxy S II Original Android Development] www1:
Terrible battery drain with this kernel

10h29m 8% battery

very very light use.

With another kernel I have 70/75%

:(
[Galaxy S II Original Android Development] pulser_g2:
Read the thread please.

This is a debug kernel.

Use version 1.3 for better battery. That version doesn't deep sleep.

Look at post above yours btw :) it's for people doing logs.
[Galaxy S II Original Android Development] Hacre:
Android browser doesn't like extensionless file links.

I'll put it in a zip file instead and update the OP, I forgot about that one.
[Galaxy S II Original Android Development] airbillion:
Can you please post a cwm version of this kernel so I can flash without a computer?
[Galaxy S II Original Android Development] jlevy73:
Great, thanks.
[Galaxy S II Original Android Development] mach0boi:
See post above you:p
[Galaxy S II Original Android Development] airbillion:
I think he just put it in a zip so we can download with the stock browser. I was hoping for a flashable zip if possible please.
[Galaxy S II Original Android Development] Spartoi:
This kernel seems to be aimed for performance over battery life, are there any tweaks in places so that the phone consumes less battery life besides UV? I'm currently on MirageS2 and his kernel seem be aimed at consuming less battery life with comparable performance. So, is it worth switching to this kernel for battery life?
[Galaxy S II Original Android Development] Hacre:
If that's the kernel you're using for battery life, I guarantee you'll get better battery life with this kernel with just an undervolt and if you like, an underclock.

Why? Well, since you offered a reference kernel, let's pick this apart:

-Default Freq: 500-1200 Mhz interactive (the best to get low batt drain, should drain lower in sleep)

Last I checked, 500 is higher than 200 and 500 also uses higher voltage than 200. Interactive is also not conducive to power conservation (nor is it entirely stable on the SGS2).

-Modified Freq range 10 steps (200-400-500-600-800-900-1000-1100-1200-1504 Mhz)

-Modified cpufreq.c to force processor to go step-by-step in freqs.

400 600 900 and 1100 are completely pointless steps. He's forcing the code to step through each frequency, each frequency change creates extra power draw, especially on the frequencies that step up voltage. More steps = more power drain as well as poorer response from whatever governor you're using. Superfluous steps have been historically proven to be extra hazardous with his chosen governor of choice, Interactive.

So, yeah. This isn't epeen waving, this is pure hard irrefutable fact.
[Galaxy S II Original Android Development] daddymatt:
PIT, PDA, or Phone?
[Galaxy S II Original Android Development] jlevy73:
PDA..........................
[Galaxy S II Original Android Development] EarlZ:
Gonna give your kernel a try, I hope this also has the magical screen fix on KG1 kernels :D
[Galaxy S II Original Android Development] tempest2112:
Running it now, looking good :D
[Galaxy S II Original Android Development] jlevy73:
Benchmarks

Ran a couple of benchmarks @ 1.6/1.6:

smartbench 2011: 4834/2665

Linpack (multi-thread): 109.524

Nenamark2: 50.9FPS

Quadrant: 4704

CF-Bench: crashed while running
[Galaxy S II Original Android Development] velgador0:
Undervolt Protocol Testing

OK, so I want to do some fairly standardized testing to see what kind of undervolting my CPU can tolerate.

So far my undervolting testing protocol involves using SetCpu setting the min and max at a frequency on OnDemand governor, running StabilityTest for 10 minutes, then dropping down 25mV, rinse and repeat.

However, I'm pretty sure that this isn't taking some things into account that I might want to consider.

Any ideas?

Thanks
[Galaxy S II Original Android Development] Spartoi:
Yeah, his kernel is missing UV which I thought would have the biggest gain in battery life.

Mirage isn't using stock voltages though, so his 500MHz might be equal (or close enough) to 200 MHz volts, hence why he eliminated 200MHz all together (though I'm not so sure as he hasn't posted the voltages of the kernel yet).

I also found this to be as odd as well, but I know very little about kernels, and since Mirage was aimed at battery life, I figured this was for the best.

I like your prominent confidence in your kernel/work, its kinda refreshing since most devs are humble and never outright express the magnificent's of their work, especially not like you (referring to your colorful OP). I'll give your kernel a try and feel it out.
[Galaxy S II Original Android Development] kalpik:
Hmm.. Seems I've found something.. You cannot do a data wipe on Villain ROM with this kernel. It bootloops. CF-Root works fine.
[Galaxy S II Original Android Development] Mr_Q:
This kernel is working very well, and especially if we are talking about performance.. However, the automatic brightness is acting strange / slow. Using stock kg1.

More people that have this issue?
[Galaxy S II Original Android Development] daddymatt:
Thanks!
[Galaxy S II Original Android Development] EarlZ:
On CF-KG1 kernel the yellow tinting is significantly reduced, on this kernel it seems to be back. gonna make more comparison later this evening.
[Galaxy S II Original Android Development] Coolcat79:
anyone running it on Cognition v1.13 yet?

Like to see first thoughts on it.
[Galaxy S II Original Android Development] Pume:
Flashed on Litening 2.2. So far no problems. Will post if something funny should happen.

Sent from my GT-I9100
[Galaxy S II Original Android Development] no1male:
Great to see you back. You made my reliable old hero do things I didn't thinkbwas possible. Excited about what you could do with this beast.

Kernel flashed and all good so far
[Galaxy S II Original Android Development] sardroid:
CF-Bench: 15099/4586/8791 with 1.6

Quadrant: 4948
[Galaxy S II Original Android Development] kotty:
me running cognition 1.13 working perfect..

my undervolt setting is

1400 -1225mv

1200-1125mv

1000-1025mv

800-925mv

500-825mv

200-825mv

min-500-max14000

on demand

waiting for stable result...
[Galaxy S II Original Android Development] kotty:
lets share undervolt setting n result..

anyway can prevent wake up lag?
[Galaxy S II Original Android Development] designgears:
*whips out his epeen*

look at that!

*slaps you with it*
[Galaxy S II Original Android Development] ravian29:
1.6 ghz is by default ? or do we need any app to do it ?
[Galaxy S II Original Android Development] designgears:
Boots at 1.2, use setcpu if you want to go higher...
[Galaxy S II Original Android Development] TheMorpheus:
Is this a CWM flashable zip?

Thanks ;)
[Galaxy S II Original Android Development] Pume:
/angrymode on

AAARGH WHAT IS WRONG WITH YOU? CAN YOU NOT READ EFFING 7 PAGES STARTING FROM THE BEGINNING?!?!

/Angrymode off
[Galaxy S II Original Android Development] Pume:
Umm doesn't it say CWM? I tested this - guess what? It flashes via CWM...
[Galaxy S II Original Android Development] mach0boi:
Can anyone confirm this? I'm away from my pc so can't test it myself..
[Galaxy S II Original Android Development] Hacre:
It is now.

Updated OP with version 1.1, zip file can now be flashed in recovery and fixed a couple of other minor issues.
[Galaxy S II Original Android Development] velgador0:
Weird Undervolting Results?

SetCpu Settings

Max: 1400

Min: 1400

Ondemand

Voltage @ 1400 = 800mV

Everything is perfectly stable. No wakeup lag. Waking up works just fine. Applications run perfectly. The phone isn't getting too hot, CPU temperature hovering at around 42 to 45 degrees.

However, as soon as I try to lower the minimum to 200 or 500, the phone becomes instantly unresponsive.

I can't imagine that leaving the phone running at 1400 all day can be good for the life of my processor, but why is this happening?

Apologies in advance if I'm being a noob and missing something obvious.
[Galaxy S II Original Android Development] Hacre:
Are you able to get an adb logcat of the boot loop? I can't think of anything in the kernel image that would cause a problem wiping /data...

I've added 1.1 to the OP which fixed a couple of other oddities with the shell, maybe it'll help your issue as well.

Um no idea, I'm running 200-800 on demand and no problems. Are you sure it's the minimum you're lowering and not the maximum? Also 800mV with 1.4GHz? Are you sure?

Can you go back to the stock voltages and stock speeds and check that ondemand with 200-1200MHz works ok before changing other settings again?
[Galaxy S II Original Android Development] mach0boi:
It's not a flashable zip. The zip only contains zImage and doesn't have meta-inf folder.

Edit:

Oops. The OP just updated it :) beat me.
[Galaxy S II Original Android Development] roisagi:
has anyone tried this kernel with this ROM?:

http://xdaforums.com/showthread.php?t=1171523
[Galaxy S II Original Android Development] TheMorpheus:
So, guess what?

Thanks, flashing now :cool:
[Galaxy S II Original Android Development] gravityz3r0:
I did, but i can't seem to flash it via rCWM nor odin. It just starts and aborted the next moment without any error. Not sure why. Maybe it has something to do with the built in UV kernel in that ROM already.
[Galaxy S II Original Android Development] mach0boi:
Try to download again the zImage and flash it via CWM. The OP just updated it
[Galaxy S II Original Android Development] velgador0:
I updated to 1.1. Tested stock clock speeds and voltages, everything worked fine.

Then I went back to the 1400/1400 @ 800mV, everything worked fine.

Then I tried to set to minimum down from 1400 to 1200, phone froze.

I have no idea what is happening, wondering if anyone else can replicate this?
[Galaxy S II Original Android Development] Major_Sarcasm:
Epic.

Just a FYI for those people that can't make logical connections; if you have Tegrak OC installed when you flash this kernel, you might end up with a boot loop. Go back to default settings in the app, then uninstall it before flashing.
[Galaxy S II Original Android Development] nightranger73:
It froze because of the voltage changing while scaling frequency... it's a known issue of undervolting kernel

About 800mV... have you tried unplugging from charger if it still wakes up after 10 seconds of screen off?

Sent from my GT-I9100

If you find this post usefull please press the "Thanks" button
[Galaxy S II Original Android Development] designgears:
edit... nvm, I am a dumb dumb
[Galaxy S II Original Android Development] veyka:
Thanks for the amazing luls from the first port and from the kernel, flashing now ;)
[Galaxy S II Original Android Development] mach0boi:
I have a custom boot anim and it still works fine :)
[Galaxy S II Original Android Development] Hacre:
Yeah, some people just HAPPEN to download the wrong kernel image then try to blame me when it breaks their boot animation...

*cough* DesignGears *cough*

:D
[Galaxy S II Original Android Development] Mr_Q:
My phone went into a 'deep sleep', I had to pull the battery to get it back working again.

I did not have any setcpu installed/set. Is the 'Screen Off' -> 500/500 required for this kernel to prevent this sleep death?
[Galaxy S II Original Android Development] mach0boi:
My screen gets really hot after flashing the kernel. I'm using stock speed and same undervolt settings in tegrak. Anyone experience this?
[Galaxy S II Original Android Development] mach0boi:
Maybe too much undervolting. Try upping every voltages by 1 step
[Galaxy S II Original Android Development] Mr_Q:
I did not have setcpu installed, and I have not changed anything by commandline, so can not be undervolting......
[Galaxy S II Original Android Development] Hacre:
He doesn't have SetCPU installed, thus no undervolting. Mr_Q, I use screen off 200-500 no problem, so I'm honestly not sure. Are you using version 1.1 from the OP?

You're using tegrak with this kernel?
[Galaxy S II Original Android Development] mach0boi:
I don't know but maybe the kernel itself is already undervolted by default. I have my undervolt settings on tegrak and i just put those values in SetCPU. No problems so far except the heating of my screen. Haven't tested cwm data wipe as someone reported it isn't working.
[Galaxy S II Original Android Development] velgador0:
Ah, ok, thanks. But why would the voltage be changing if I'm going from 1400 @ 800mV to 1200 @ mV?

Yep, tested to see whether the phone would unlock after 15 seconds every time, it did just fine.

Somehow this doesn't feel stable to me so I'm ditching it until someone else tries it.

Currently running this just fine.

800 @ 925

500 @ 825

200 @ 800
[Galaxy S II Original Android Development] mach0boi:
Nope. Uninstalled it before flashing this. I just used my values there :)
[Galaxy S II Original Android Development] HellRazorGod:
May I say Hacre that your sense of humour and presentation of your work is outstanding . You deserve an MIT degree just for this rare combination in the geeky world :D
[Galaxy S II Original Android Development] mach0boi:
I agree. I love his attitude and confidence towards his work. Badass :D
[Galaxy S II Original Android Development] Hacre:
If you're trying to run 1.4GHz at 800mV I'm sure that's where the problem is. That's way too low a voltage for that speed.

Ah. Then I'm puzzled as to why you'd be running hot. I'll have a chat with the guy that helped me with the volting interface as I know there's another internal voltage. Did you mess with that on tegrak?

Thanks. If you're bored search for posts started by me in the Hero/G2 (GSM) dev forum from when I worked on the FroydVillain ROM.

I appreciate all the feedback guys. Obviously being an initial release there will be bugs to work out, so keep reporting back and we'll get them fixed.
[Galaxy S II Original Android Development] Major_Sarcasm:
I just tried doing a quick backup with CWM and got an error that I've never had before; the backup failed whilst generating the MD5 sum at the end. I tried doing another backup immediately after and it failed before starting.

Rebooting, will edit if I can get it to work.

Edit: Rebooted, shut down, booted into recovery, tried backup, 'Error while generating MD5 sum!'
[Galaxy S II Original Android Development] Hacre:
Yeah I just tested this myself and have the same issue. I'll work on it, thanks for the report.
[Galaxy S II Original Android Development] mach0boi:
Yeah I also adjust internal voltages but resetted all those to default before uninstalling. Then I flashed this. Maybe because my charger is plugged in and i synced all my accounts then browse the net here on my phone. I know it will likely to get hot but I'm already doing this on cfroot kernel and never had a problem. Aside from that it seems OK and very smooth. I'm running conservative with no stutters or slowdowns :)

Edit:

Just read nandroid isn't working. I can live with that. But hoping for a fix. Good job mate :)