yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] :
Can people who are interest in testing a BLD version please PM me, I'll send you a download link.

EDIT: Also, 800 MHz Deep Idle has been fixed (in this test version).

I can't remember who it was who mentioned this, but they were right... it wasn't working. Turns out I'd reverted my own code by mistake (duhhh... :p) But it's working now. You can easily see by looking at CPUspy.

So testers,

please test

: Does the min frequency ever get jammed at 800 MHz? If so, under what circumstances? Please record all details if it happens.

Also, does your Deep Idle ever just stop working? Check with NSTools or the command line if you know where to look. If you see the TOP=OFF stats have stopped accumulating, then there is a problem.

Obviously, does BLD work as expected? Any stability issues?

Also, do you ever notice any graphical glitches in the app drawer?
[Nexus S Android Development] y3mita:
Ok I just flashed this over trinity and BLD is working, drawer seems fine no lags at all.

I am going to install nstools and CPU spy to test the other factors.

I also noticed colors are not the same as morfics (was that implemented in test version of yours?)
[Nexus S Android Development] madd0g:
That might answer my question, if MTP on stock ICS/JB is possible ;]

One question though, does USB debugging need to be disabled afterwards ?
[Nexus S Android Development] :
I disabled it before installing the app, and that worked fine.

However, does it 'need' to be disabled to work? Possibly not. Give it a try both ways and let us know!
[Nexus S Android Development] :
Does morfic include voodoo color?
[Nexus S Android Development] y3mita:
Bedalus, when using trinity kernel somehow the colors are cooked into kernel therefore there's not the need for voodoo app installed on your device, anyhow there's an option on kangorade ROM (aokp base) where I can change the gamma values and multipliers if I knew which are the ones morfic uses.

Also this ROM has dspmanager and I believe it's a Cyamogen mod app and this one also has the sound options the voodoo app gives you. So now I'm kind of doubtful as if I need to download the voodoo app.

Anyhow I'm installing CPU spy and nstools
[Nexus S Android Development] :
Hmm, I copied his multipliers, I think from there you may have to adjust in voodoo. It's low on the priorities right now, but I'll put it on the list of things to check.
[Nexus S Android Development] y3mita:
He had baked colors on his kernel somehow. So we don't need voodoo app at all.
[Nexus S Android Development] Randomwalker:
First impressions:

setup: 9023 CM9/ondemand: 200-1200/deadline

tests run: stability test (scaling and gpu+cpu), group me for notification

results:

-no reboots

-BLD works

- frq not stuck at 800 so far (but actually the scaling test might not be ideal to test that, as it changes governor settings)

- TOP=ON accumulates, TOP=OFF remains at 0 (known gTalk issue maybe? never paid too much attention to DI, so am not up-to-date how to get TOP=OFF working).
[Nexus S Android Development] JokerAce:
May I ask if this is a CFS or BFS type kernel?

Also is this true?

That CFQ is the worst performing I/O scheduler?
[Nexus S Android Development] :
I/O schedulers are subjective and vary depending on device / benchmark.

However, in real world usage, CFQ is not ideal for flash as it was written for spinning disks and is a hefty chunk of code, SIO is not ideal for anything as its throughput is poor, noop is too inconsistent and deadline will give you the best compromise between performance, latency and consistency, with BFQ second as it is slightly higher latency wise due to the extra code, but BFQ is more consistent than deadline under heavy loads. VR I don't know, because I have never had the desire to test it.

If you consider the usage requirements, heavy I/O loads don't happen often, so you don't really have to optimise for those. What is more important to optimise for in an embedded device is low latency and cheapness in terms of CPU cycles, which deadline provides.
[Nexus S Android Development] caliban2:
Cpuspy shows didle@800 now, doesn't get stuck as min-cpu.

Didle itself is okay, Top-off accumulating as it should. Noticed that i have a few ms of Top-on as well, but i think it's always been that way... (gps & bt are disabled) Anyhoo, currently the figures are roughly 300000 - 1000 - 200000 (idle - top on - top off) -> all's well.

Not interested in BLD, so not testing it. (i'd like touchwake, but it's your kernel, and it's a great kernel as it is)

No glitches noticed in app drawer.
[Nexus S Android Development] towelboy:
I get a gallery force close after having the camera app open over around 2 minutes, im on the latest cm10 nightly! also marmite 4.5 :D
[Nexus S Android Development] :
No problem, I'll take a look at those cm libs.
[Nexus S Android Development] linuxxp:
I'm with CM10 JellyBro Nightly and 4.5 and have no FC, no battery drain, no problems. Thanks Bedalus :)
[Nexus S Android Development] DarkhShadow:
See this is weird, because I don't get a FC when I stop recording :S

AOKP JB build 1

Sent from my Jelly Nexus S
[Nexus S Android Development] Articudos:
OK. Marmite overwrites libs, so I guess not changed, but added more;)

Or picasa sync causes crash..?(there is two types of gapps)
[Nexus S Android Development] leap_ahead:
Because is use bigger ram 400mb
[Nexus S Android Development] caliban2:
Got a freeze/reboot while using opera mobile. Weirdest last_kmsg i've seen, something went really wrong... ^^

First glitch, apart from that 4.5 is great.
[Nexus S Android Development] :
Nice. Usually when the kernel gets ANR it panics and reboots, this time however, something different happened. I think it's probably some esoteric bug, and won't happen often. Perhaps it'll get picked up in a future mainline patch.
[Nexus S Android Development] Drizzy xS:
Just a heads up if you download the power HAL off Thalamus' idle 2 thread and put it in the system folder then flash this kernel it makes the on demand on this kernel as smooth as the one on thalamus. :)
[Nexus S Android Development] leap_ahead:
where i can find this patch ?
[Nexus S Android Development] Drizzy xS:
If you go to the Thalamus kernel thread in general section you'll find it there. I think it's the last thing he posted in the thread.
[Nexus S Android Development] :
I just read this http://xdaforums.com/showthread.php?p=31351993

...a post by thalamus.

I have to agree with him (although he wasn't posting about me) that although I've been able to get a good kernel together, I did it by cherry-picking.

I haven't written any new code apart from the bln blink pattern tweak. It was a very minor code alteration, and it took me several attempts to get it right.

Lots of people have given me praise for my 'development' but just for the record, all I've done is 'configure' and apply a few select tweaks that others have written.

I've been smart enough to muddle through some issues, and avoid certain pitfalls such as undervolting or going feature bonkers... :p

But I feel obligated to remind users that real development is happening elsewhere. If you're really interested in development, keep an eye on what morfic and thalamus are up to. And have a go at building your own kernel! It'll give you a new appreciation of what the devs actually do.
[Nexus S Android Development] kkkhattak:
Bedalus please work on OTG drivers for jb.
[Nexus S Android Development] dosesdoyle:
Either way dude - your kernel is the smoothest / most stable out right now for JB. Thanks!
[Nexus S Android Development] xjerlzx:
Every developer started somewhere. At least u started right bedalus. =]
[Nexus S Android Development] asphantix:
So do you get a guilty conscience from the blah blah blah of our beloved narcissistic thalamus? Please don't.

I think the most of us know who just cherry picked and who actually wrote awesome code. Plain every cherry picker gives credit to these guys in their thread. According to thalamus there is no need to release a kernel which is cherry picked. I beg to differ.

Elaborating a good configuration can be demanding just like actually coding some lines.
[Nexus S Android Development] leap_ahead:
if you know is working without to flash the kenrel again ?

i just put this without flash the kernel again
[Nexus S Android Development] :
It certainly has been demanding! Thanks for the support.
[Nexus S Android Development] technogravy:
@bedalus,

I cant seem to install the java sdk as per your build guide.. i get the below error..

Package sun-java6-jdk is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package 'sun-java6-jdk' has no installation candidate

can i install openJDK instead?
[Nexus S Android Development] jojoost:
Thanks Bedalus!
[Nexus S Android Development] _yaz_:
don't let it roll too deep, please. just an other self-polishing paroxysm of a giant ego. _thalamus is a brilliant mind and a great devel but i would never sit together with him for a beer.

negative. in one hand, cherry-picking is not so easy, either, and lotta ppl love these picks, so, why to blame the pickers ? on the other, you've made a pretty hard work to build a really good kernel. why to blame yourself ? building a marvelous castle is nothing just because it's not you who baked the bricks and invented the door ? oh, c'mon ... this is so stupid.

relax and keep up this great work, please. we all love ya ...
[Nexus S Android Development] :
You can actually skip java completely, unless you also intend to build a ROM
[Nexus S Android Development] italia0101:
Bedalus ... is it alight if i do a video on your kernel for my youtube channel? im starting a new channel and reviewing most tech stuff i can get my hands on....

would love to be able to review your kernel :)

heres my youtube channel if your interested

http://www.youtube.com/user/oode?feature=mhee

Also how do ya pronounce your name .. bed-a-lus?
[Nexus S Android Development] Jamalsid:
Love this kernel.
[Nexus S Android Development] qu3becker:
And while we're at it. Marmite 4.5 with Codename Android 3.5.0.

Sent using Kirby's Warp Star.
[Nexus S Android Development] migz012788:
what theme is that?
[Nexus S Android Development] Billchen0014:
flashed this kernel without dalvik wipe... guess what? my rom crashed, now in a bootloop... sigh
[Nexus S Android Development] towelboy:
What rom did you use?
[Nexus S Android Development] asphantix:
Then retore your backup and try again. As far as I know you even don't need to wipe dalvik for flashing a kernel...
[Nexus S Android Development] jojoost:
Lucid theme
[Nexus S Android Development] :
Oh thanks. Of course you can. Yes, bed-a-lus id correct.
[Nexus S Android Development] :
You need to flash the correct version for your ROM
[Nexus S Android Development] :
He doesn't even need to restore his backup! Flashing correct version will solve it. I'm sure people are confused by the version matrix invisible cells. I reported the issue to Google, but I'm sure it's buried under an avalanche of other reports
[Nexus S Android Development] migz012788:
will the 4.5 marmite will work on codename android?
[Nexus S Android Development] :
Yes
[Nexus S Android Development] jojoost:
Best combo with CNA i think!
[Nexus S Android Development] peepee999:
Thank very much bedalus for ur dedication to this work. Am currently running 4.5 with baked bean 3. Battery Life is awesome and it's so smooth. Almost 8hrs and battery is still at 72% with almost 2hrs screen on.
[Nexus S Android Development] Drizzy xS:
I'm getting 15 - 20 percent android system usage on CNA and marmite 4.5.

Edit: it's gone down now but now media server is using 15 percent ?
[Nexus S Android Development] gregorypeg1000:
The marmite 4.2 version is built with pm_fast or pm_max? Thanks in advance.
[Nexus S Android Development] :
I'm sure it's normal
[Nexus S Android Development] :
I don't think it does. But you can try it, and keep an eye on the download speed when the screen's off.
[Nexus S Android Development] italia0101:
http://www.youtube.com/watch?v=6Uakv2SM02g

heres my video... its not the best, but Subscribe if ya like it :)
[Nexus S Android Development] :
I'm going to link to that from the OP, thanks very much!
[Nexus S Android Development] polobunny:
So pm_fast or pm_max? That was the question, lol.
[Nexus S Android Development] italia0101:
Sure! Na it was my pleasure ! thanks for making it ! lol
[Nexus S Android Development] :
I don't think it has PM_FAST. To confirm, watch the download speed when the screen is off. If it slows to a crawl, then it has PM_MAX
[Nexus S Android Development] peepee999:
Pls bedalus what does Powersave bias do? Can i increase it's setting? Thanks
[Nexus S Android Development] ozone89:
Flashed 4.5 over CM10 nightly...

My phone resuscitated!

Before i was using stock CM kernel, but I had always low memory warnings, the same with Air Kernel, but less frequent...

Now it's faster than ever! :)

As a thank for your work, I'll try to get some Marmite in real life and eat some ;)

(Not very easy, never seen it in stores here in Sardinia... :P )
[Nexus S Android Development] :
It biases the behaviour of the governor towards, uh... power saving. You can increase it, but you may find that performance is adversely impacted.

It's probably a problem with the ROM, but I'm glad you are going to eat some marmite! 'Yeast Extract' is the same thing. You may be able to find a native Sardinian version cheaper!
[Nexus S Android Development] 4tticuz:
BLN is not working with latest euroskank, anyone else with same issue?

Edit: had to edit init.d again after flashing Rom and kernel
[Nexus S Android Development] micha3lvd:
Mine works fine, but my battery drain is awful when turned on somehow =S Android system OS usage extremely high and I think its related..
[Nexus S Android Development] alen1901:
Bedalus, i dont know if this can be related to kernel developement or only for ROM, but i thought you might want to read it. :)

Its a copy-paste from other thread.

http://codingrelic.geekhold.com/2008/11/six-million-dollar-libc.html

The CM bionic contains tiny and fairly inocuous optimizations which I like. https://github.com/cyanogenmod/android_bionic/tree/jellybean[

Sent from SpeedMachine i9023
[Nexus S Android Development] mr.haqeem:
yes5x...android OS usage for me is 42% & i think its really2 high. how to make it low usage? this mornin my battery low while last night it already full of charge. WTF?? i luv this kernel but that prob make me sad =(
[Nexus S Android Development] :
Bionic is google's own stripped out libc for compiling applications, it's not used for compiling the kernel.
[Nexus S Android Development] :
First, are you using the latest v4.5?

Second, did you try disabling Location & Google Seach (in location settings)?
[Nexus S Android Development] caliban2:
Bedalus, stop asking such silly questions. Seriously, bothering users with trivial questions...?! Next you'll start asking for ROM and phone-modell... :what: :p

I've got another freeze yesterday, but this time last_kmsg says a bit more. It is kernel-related, question is why it has trouble reading memory... (hw-failure is the last thing I want to hear! ^^) Upgraded to latest nightly today, now I'm waiting if it happens again. So consider this a FYI: http://db.tt/PD5D2ewm
[Nexus S Android Development] leap_ahead:
any fix for gallery fc after video recording with kernel biggermem400mb ? ??
[Nexus S Android Development] caliban2:
No such problem on CM-based ROMs, have you tried another ROM? And bedalus said he's on vacation this week, so do you really expect him compiling new versions?! Oo
[Nexus S Android Development] :
I'm home again in a few days.
[Nexus S Android Development] micha3lvd:
Yes, and disabled them both already since first boot with 4.5
[Nexus S Android Development] caliban2:
Bedalus, regarding my crash-reboots, I found this: http://permalink.gmane.org/gmane.linux.ports.arm.omap/79403

Looks familiar, maybe this is MY problem with biggermem (instead of vid-recording)?

Edit:

And it just happened again: http://db.tt/x4vnLIEQ

Really looks like the damn thing just runs out of mem, hence the excessive process-killing before the crash?
[Nexus S Android Development] :
Could be. I'm going to give a couple of mb back to the camera in the next version.

Or you could try in your performance settings to increase the limit at which the system kills tasks. (keep more ram free)
[Nexus S Android Development] caliban2:
Already done that, now I'm trying to find out what "traces" in dev-settings do.

But keep in mind that I don't have any problems with camera, so not sure if that's the source...

Edit:

On the contrary, if it really is running out of mem, reducing it should make it even worse, right? ^^
[Nexus S Android Development] mr.haqeem:
yes..im using latest stock ota 4.5. hmm..gonna try it now coz i nver disable dat option in any rom. this the 1st

edit : tanks bedalus..now my battery seems more air to breathe =)
[Nexus S Android Development] :
If your's is set at 50mb, make it 75mb for example
[Nexus S Android Development] _yaz_:
@caliban2

yep, i had the same. some freezes and two reboots on 4.5. all seemed to be panic reactions; free mem run too (critically?) low and the system started a crazy sweep of processes. other operations practically halted/killed.

@bedalus

is it bigmem or biggermem you implemented ? biggermem always made my crespo quite unstable for memory intense operations.
[Nexus S Android Development] caliban2:
No, i was talking about you reducing available mem by giving some back to camera. ^^
[Nexus S Android Development] :
Oh yes, I see that now. Right, no, giving memory back to the camera will solve some memory issues that some users have I think. :fingers-crossed:

If you try my other suggestion anyway, it'll change the way the task killer works, and hopefully there will always be enough free ram for other operations.
[Nexus S Android Development] dinos3:
1200mhz is stable on stock voltage?
[Nexus S Android Development] :
It should be, if your chip can handle the OC. You can't change the voltage here anyway.
[Nexus S Android Development] dinos3:
My chip in ics on matrix and derkernel 1300mhz is stable..

But now on airkernel and JB getting reboots on 1200mhz and this voltage, i try rise voltage but again reboots....

Please post voltages from your jb kernel, ty ..
[Nexus S Android Development] :
ARM: 1325mV

INT: 1100mV
[Nexus S Android Development] caliban2:
Out of the box CM10 only has the option to set taskmanager more aggressive, so I tried that first before messing with the values manually. Seems (!) to have done the trick, it's been stable for 16 hours.

To be found under settings - performance - memory management.

Now the question is if that's enough or if mem-management itself is botched, then it should happen again sooner or later. I'll see.
[Nexus S Android Development] :
I'm home! Kernel Update!

Credit: knzo :p

v4.5.1

-Sorry, no BFQ though, because it's rubbish.

-Some minor stuff from android common

-Free RAM is down a little, I've given some back to the camera

Download via the version matrix (see OP)

-Update from v4.5? Only if you have problems making videos, or have a crackflashing problem

-I think the invisible cell problem is gone. Someone confirm? Thanks!

What's next?

For the upcoming v4.5.2 I expect mainline will be 3.0.43, and the plan is to enable IDLE2 for testing again. I believe thalamus has provided a sysfs interface for turning it on and off, so if idle drain is still present, it can be disabled easily.
[Nexus S Android Development] tchaari:
Thanks bedalus but I don't have any camera or video related issue with 4.5 so I'll keep it as it is now. Btw, Slim Bean 2.4 just released :)
[Nexus S Android Development] :
Slim Bean is compiled by tchaari! He linked me to a testing version which I've been using on holiday, and I'm enjoying it very much. And AFAIK Slim Bean is the only JB ROM with the MTP quick switch in the storage options. No reboots necessary!
[Nexus S Android Development] :
About 7% battery used overnight (9 hours) good 2G signal, wifi on:

I'm pretty happy with that.
[Nexus S Android Development] kwibis:
I'm pretty happy with this :D also listened for 3.5 hours to music.

Sent from my Nexus S
[Nexus S Android Development] :
That's really good!

I'll have to be careful with v4.5.z versions... Don't want to mess things up!
[Nexus S Android Development] gregorypeg1000:
Awesome work bedalus.Great battery life and speed.Although something weird is happening.I use your kernel since i bought the phone and in the beggining 1200mhz was rock stable.In the process the phone begun unstable at this speed.It freezes and reboots.Did the chip degrade or something like that?Is this possible?
[Nexus S Android Development] caliban2:
CM10 & kangs as well, for quite a while now. ;)
[Nexus S Android Development] :
Great! Good to know.
[Nexus S Android Development] ackbarthegreat:
any chance you'd consider adding touchwake advanced? Would save some wear and tear on the power button.

http://xdaforums.com/showpost.php?p=31023235&postcount=42
[Nexus S Android Development] :
No, either the ROM introduced a bug, or I did, or an app, or the CPU is stable as long as your battery is full... Could be a lot of things, but your CPU will be fine!
[Nexus S Android Development] Imppy:
I'm running rasjelly...with the newest 4.5.1 and I still get force close on after recording!
[Nexus S Android Development] kwibis:
Bedalus somehow I managed to get another half hour screen on time on the last 4 percent!

Sent from my Nexus S
[Nexus S Android Development] :
The link you posted contains several posts that i myself wrote about the concept.
[Nexus S Android Development] :
Rascarlo is great! Did you flash Brainmaster's tweaks yet?
[Nexus S Android Development] Imppy:
Yes
[Nexus S Android Development] :
Hmmm... Would you mind formatting /system, reinstall ROM, reboot... See if it works right with stock kernel?
[Nexus S Android Development] Imppy:
Argh I'll do that later...would it be the theme?
[Nexus S Android Development] :
No, it's most likely some ROM /kernel incompatibility unfortunately. Unless the app doesn't work with the included kernel, in which case it's just a ROM issue, but if it were i suspect it would have been reported on the thread. My guess is the specific camera app included is more ram hungry for a specific reason, maybe Rascarlo added a feature? Idk tbh because i haven't investigated ROM code at all really, which is why I'm suggesting using the included kernel (it's still a pure stock kernel if i remember right?) ...if that works, the only difference is how much ram is required. I'm happy to build another version with even more camera ram if it solves the problem.

EDIT: Actually I'll build one now... hang on...

EDIT: http://d-h.st/P12 more memory!
[Nexus S Android Development] Imppy:
Thanks man ! Will test right a way

---------- Post added at 10:43 PM ---------- Previous post was at 10:36 PM ----------

No more force close...you are the best man at trying to make everyone happy!

If I do get any later force close will let you know
[Nexus S Android Development] joeyddr:
Should it work with 4g?
[Nexus S Android Development] :
No this one won't. Unless you know how to extract a zImage!

Why, does ns4g v4.5 have the same problem?
[Nexus S Android Development] jayjay3333:
I see the kernel is from Sept 8, so this 4.5 I assume? Thanks Tchaari for all your work on Slim and including Bedalus Kernel. Awesome job from the both of you. I have been running this combo for 2 weeks now and smooth, no issues and fast.

Should I flash 4.5.1 or 4.5.1b?
[Nexus S Android Development] bjrmd:
using 4.5 on the 4g with no problems--camera is fine
[Nexus S Android Development] ackbarthegreat:
My bad, I didn't read the entire thread. Just the description in the first post and the link that was in it.
[Nexus S Android Development] nd4spdbh:
so @bedalus

You gonna update this with the latest idle 2 patch... now that its stable (.391) ?
[Nexus S Android Development] towelboy:
I think idle2 kills too much battery during idle with no music playing