yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] :
I'm on thin ice with him as it is.

I reduced the ordinary-idle [C1] residencies back to their default values. It's helped a lot, but the processor still has to wake up. Really, I think that small delay is causing too many interface problems to be worth it.

EDIT: Actually, the C1 values were fine. I should have known it was the C2 values, as this is TOP=ON, which can now be activated when the screen is on.

Good spot.
[Nexus S Android Development] :
Did you try to format the sdcard yet? (backup everything to a computer first obviously)
[Nexus S Android Development] linuxxp:
Yes, many times. No positive result.
[Nexus S Android Development] :
Do a search in this thread for the word blink. You should find some helpful posts
[Nexus S Android Development] xjerlzx:
4.4.1 somehow feels snappier idk why, anw battery drain for 4.4 is great, 20hours, 4hr screen on. Not sure why android is bug still exist, probably doing a full wipe later when I'm home
[Nexus S Android Development] :
Damn. I'm afraid it must be a ROM thing, because people have reported the same bug on other kernels. If you are using Slim Bean, you should report the issue in krarvind's thread.
[Nexus S Android Development] caliban2:
What do you want, at least you're ON the ice. ^^

The lag gets more noticeable if the screen is on longer without interaction (like reading a newspage). After scrolling down it's gone first and then comes back.

Still, it ain't a showstopper. Reading your conversation with thalamus I understand it's just a matter of tweaking some values.

Personally I just hate the fact that I don't fully understand idle2 yet, especially how to read the stats. :o I hope his blog will enlighten me a bit when I read up on it later today.

Kernel itself seems to be stable, no drain so far.
[Nexus S Android Development] Articudos:
I'm using v4.4, and I tried to download kalim's cm10 rev25. But Download failed. And.. sometimes wifi signal drops (or turn gray and blue again) even it's full strength.

I really want to help u, but cannot extract that- related log.

Maybe is there any recommended value in "keep wifi during sleep"?
[Nexus S Android Development] :
Exactly, after meddling with the residencies more, things have improved. Check the post below...
[Nexus S Android Development] :
Next version is here:

http://xdaforums.com/showpost.php?p=30789713&postcount=1987

v4.4.3 has no noticeable lag, and gets good C3 time (i.e what thamalus calls the TOP=OFF state: the most power-saving state).

I'm going to get out the ammeter now and measure. Fingers crossed, we'll see power savings.

There is also a version for stock ota users.
[Nexus S Android Development] linuxxp:
I guess the problem is Slim Bean or AOSP sources, I do not know. In the krarvind's thread have any mention of battery drain but no response from him. Now testing with JellyBro Nightly Kangs. I will share the results. I hope we can find the culprit.
[Nexus S Android Development] Corioli:
3.0.42?
[Nexus S Android Development] caliban2:
Just had what looked like a SoD at first with 4.4.3.

Screen went off (normal behaviour), but couldn't turn it back on a few seconds later. Waited a bit and finally plugged it to a laptop (which recognized it). Phone still "dead", then it rebooted to boot-anim (not google-logo!), no sim-unlock needed. Now it behaves as if nothing ever happened. ^^

Hope it happens again, after I have this laptop set up for ADB...

Anyhow, here's the kmsg - looks familiar... ^^ (yes "kmsg" - last_kmsg hasn't been saved during that reboot)
[Nexus S Android Development] italia0101:
Testing 4.4.3 on stock now ...

Here's my idle2 stats so far
[Nexus S Android Development] :
Thanks, I'll add that in now.

I'm going to mess with the C3 residency and see if I can get more power savings too.
[Nexus S Android Development] hiphopboy:
Problem with PIN Lockscreen, when i entered password have some over on number
[Nexus S Android Development] :
Unfortunately, the kmsg has nothing in it!

In CWM wipe cache and fix permissions.
[Nexus S Android Development] caliban2:
huh? how about those many untracked pids?
[Nexus S Android Development] :
I don't know what they are, but I don't think it's anything to worry about
[Nexus S Android Development] caliban2:
They're connected, as they only show if my phone acts strangely. Remember me having freeze/reboot-issues some time ago? Then they also occured. I've checked the logs from time to time during the past weeks just to be sure and they weren't there (phone was stable during that time).

I just hope when/if it happens again, I'm near a pc to pull logs while it actually is in lingo. :)

Edit:

4.4.3 is Linaro-TC... Is Linaro deemed stable now?
[Nexus S Android Development] :
Nice, I like a good correlation!

Yes, it could be the toolchain. It's not a stable release. It's a pre-release testing version. I also want to check out google's toolchain. I'll see if I can set it up before I push out 4.4.4
[Nexus S Android Development] italia0101:
Man thalamus has a short fuse lol
[Nexus S Android Development] :
Late for work!!!

http://d-h.st/V54

-v 4.4.4 Google toolchain
[Nexus S Android Development] alen1901:
Im testing v4.4 now. Hope its good like v3.5. ;)

Sent from SpeedMachine i9023
[Nexus S Android Development] XxSilent22xX:
Yeah and that's an understatement, he has no tact and is straight rude at times.

Sent from my Nexus S
[Nexus S Android Development] dimeim:
I just did but didn't find a complete way to make it work. Besides, I understand you've made changes and custom tweaks, so I'm not sure if stuff mentioned for previous versions will work.. I tried echoing 1 to finalstate, NSTools, BLN control. Nothing. I can make it blink but as soon as the screen goes off, BLN goes off too.. I don't know how to make an init.d script. Maybe that could help..

I'm on Codename 3.4.0.

Thanks in advance!
[Nexus S Android Development] noizy1234:
Here's an easy way to make an init.d script http://xdaforums.com/showthread.php?p=30087898
[Nexus S Android Development] dimeim:
That's great thanks. But what exactly do I need to put in the init.d script to simply have BLN on, no blinking or timeouts?

Also, I guess this is also possible without NSTools right? That is, I gues I can simply put a file in the init.d folder with the necessary code, correct?
[Nexus S Android Development] caliban2:
#!/system/bin/sh

echo 1 > /sys/class/misc/backlightnotification/enabled
echo 1 > /sys/class/misc/backlightnotification/blink_finalstate
echo 0 > /sys/class/misc/backlightnotification/in_kernel_blink
echo 0 > /sys/class/misc/backlightnotification/max_blink_count
[Nexus S Android Development] jojoost:
How is 4.4.4 doing?
[Nexus S Android Development] gmorel4:
So far, im finding 4.4.4 great. I was having the OS drain issue, running CNA 3.2.0,3.2.1,3.2.2. Now I am running CNA 3.4.0 with marmite 4.4.4, and the OS is at 5% as opposed to +20% with the others. I dont know if the kernel resolved the issue or it was the ROM, but either way, its great. Its also been really smooth so far, no reboots or stutters.
[Nexus S Android Development] dimeim:
Thanks a lot. I created a file named 99bln_script, pasted your code there and put the file in the init.d folder. However, still no success in making bln work after screen is off.. For some reason I'm still getting blinking even though I have uninstalled NSTools and other BLN control apps...
[Nexus S Android Development] Blackcrx:
did you do a full wipe before going to CNA3.4.0?

I just flashed CNA 3.4.0 without a full wipe and wanting to try marmite 4.4.4
[Nexus S Android Development] polobunny:
Did you change the rights of the file you dropped in init.d?

rwxr-xr-x or chmod 755
[Nexus S Android Development] caliban2:
That's just copy/paste from my own script, I have the same setup you want to have. It works. :p

Error's on your end. Check permissions like polobunny said. It's easier with root explorer though, just check what the 98-script has. And while you're at it, change owner as well. (Again, like 98-script)

Most easy way is to add the script to init.d-folder inside the kernel-zip. That way you just flash kernel and don't have to bother about the rest.
[Nexus S Android Development] granets:
4.4 works perfectly for me. Great battery life and performance. Probably the first good and stable kernel for me since 3.5. I think this pm_fast thingy that had to do with the wifi draining the battery is now under control. All the battery drain i get now when idling is from Android os and nothing else noticeable
[Nexus S Android Development] linuxxp:
Obviously only for me has almost no difference - 70% dropped to 44%. Tomorrow I continue with the tests :)
[Nexus S Android Development] :
Ok, I'm back from work. v4.4.4 was a last minute upload. I didn't test it much myself before uploading. It looks like no-one is complaining, in fact the feedback so far seems exclusively positive.

I myself found my phone in my pocket in a SOD state while at work... will treat as a one off for now, unless someone else can confirm?

Thanks again to everyone, it's good to see users helping each other out with the questions. It saves me time which I can then spend on merging, tweaking, testing, etc.!
[Nexus S Android Development] :
I'm pretty sure this is a problem with slim bean. Has anyone else had this problem on other ROMs? I can't remember... too much going on!
[Nexus S Android Development] 309041291a:
Remain calm Bedalus :). Don't stress yourself out over the kernel. We can help one another like you said. Thank you for your work the kernel is amazing. In testing 4.4.3 ATM and it's amazing, so I'll give 4.4.4 a whirl soon.

Nexus S. (GSM i9020a)

Paranoid Epsilon 1.2(1.992 - 4.1.1)

Marmite Kernel (4.4.3 - Bedalus)

Smartassv2 (800/200)

Deep Idle (Off - Deadline)

BLX (98 - Inverted. Apps)

Black Exodus (Stock Voltage)
[Nexus S Android Development] linuxxp:
I am with Jellybro Nightly at the moment. Just I don't update my signature.
[Nexus S Android Development] y3mita:
Yep same issues with slimbean here and suddenly data drops hating it a lot.
[Nexus S Android Development] CrackerTeg:
bedalus, that tip you gave with the alcohol did the trick. My nexus is back and running what is currently in the sig! Marmite 4.4 and RasBeanJelly. This phone is literally flying now. Props to you and rascarlo.
[Nexus S Android Development] :
Yeah, and actually I saw someone else reported the same bug with an earlier version of CNA, so it's not specific to one ROM, but it could be a specific commit that these ROMs may have cherry-picked. But I'm becoming more and more sure that it's not a kernel problem. Sorry I can't be more specific.
[Nexus S Android Development] :
Hey, cool. Glad it worked out. In case anyone is interested, CrackerTeg isn't talking about a night-on-the-town... Isopropyl Alcohol with a 95%+ concentration will mix with water and evaporate completely, so it's a good solution for electronics that get wet, so long as none of the components have shorted and blown, or connections have corroded.

Obviously, if electronics get wet, remove power immediately, and try to get some alcohol on the affected areas asap.

Ordinary alcohol may be consumed if your device fails to come back to life. :p
[Nexus S Android Development] Blackcrx:
CNA 3.4.1 with marmite 4.4.4

Android OS drain seems to be less or gone. 5hours of up time and Android OS is only 10% of battery usage
[Nexus S Android Development] grotesque02:
This 4.4.4 can be flashed in stock rom?
[Nexus S Android Development] noizy1234:
There's a stock version
[Nexus S Android Development] :
There's no stock version of 4.4.4, but there is one of 4.4.3 which is the same, except built with linaro (experimental 4.7.2 toolchain) see the OP for the link

I may upload a new incremental version tonight if I'm not too tired
[Nexus S Android Development] grotesque02:
Ok, thanks bedalus, I wait for update!
[Nexus S Android Development] :
It's now 1am and I call that quitting time.

No progress on the residencies. I'm trying the same method to force 400 MHz when the phone is suspended that worked well with DI in ICS. I figure if power savings can found in IDLE2, the best residencies will be most obvious at this frequency.
[Nexus S Android Development] noizy1234:
Dev host is down can anyone post a mirror for 4.4.4?
[Nexus S Android Development] Blackcrx:
Had 2 freezes just now. CNA 4.4.0 with marmite 4.4.0

Had music player on while at the gym. Froze twice. Both times no last kmsg. Only thing running was MMS and music player.

I even played the same song in case if was a corrupted fils. After reboot both songs played fine.
[Nexus S Android Development] smoka206:
It might be your phone, my gf has reboots on air kernel where I do not. I'm going to try 4.4 on her phone to see if still reboots. I have never had reboots this kernel or air kernel.
[Nexus S Android Development] 309041291a:
The DL server is down.. Does someone have a mirror to 3.5 and 4.4.4?
[Nexus S Android Development] sdhanjal15:
I can upload 3.5 to my drop box. Hold for 5 mins

http://db.tt/m6Mms8p2

There's 3.5 on my dropbox
[Nexus S Android Development] 309041291a:
Thanks, I'm hearing good things with battery on this version, giving it a whirl!
[Nexus S Android Development] linuxxp:
v.3.5 and v.4.4.4 To Download: go to top left corner > File > Download or Ctrl + S
[Nexus S Android Development] caliban2:
Getting to 17 hours uptime with 4.4.4, no problems so far. Stats for android os & sys are fine, 10 and 5%. Did some ebook-reading last night and got 4:15 hours of screen-time, that's good. (I have smartass set to 400/100/400, maybe I should try your settings for a change and see if it actually has an effect at all) No PID's in log so far, so my troubles with 4.4.3 really could've been toolchain-related.
[Nexus S Android Development] :
I think they might have been. Thanks for letting me know. I'll stick with the google toolchain from now on!

Some people have reported good battery life with smartassV2, my settings, but that's not really what I designed it for. It should spend less time at 1GHz, but a lot more time at 800MHz, but possibly it'll work out as less power drain. I've never tried it for general use, so I have no idea!
[Nexus S Android Development] caliban2:
Yeah, same here, no clue because I never really did a comparison. ^^ Makes the point mute, doesn't it. But just to give you a raw impression, this is my current cpuspy.
[Nexus S Android Development] :
I would be interesting to use your phone in a similar way with my settings, and compare. If 1000MHz is less than before, and 100MHz is more, there's a chance it is comparatively power saving. Difficult to judge this sort of thing without extensive use, or doing applying some rigorous test conditions.
[Nexus S Android Development] :
I forgot to mention, v4.4.4 was merged to linux 3.0.42
[Nexus S Android Development] djees:
Since i flashed 4.4.3 in nstools i have no available governor

Any idea
[Nexus S Android Development] xjerlzx:
go cwm, fix permissions.
[Nexus S Android Development] :
If that doesn't work, try wiping cache. I'm pretty sure one of those things does the trick
[Nexus S Android Development] alen1901:
Testing v4.4 for 2 days now and everything is good. No problems. DI enabled. Might try 4.4.4 soon because i hear good reviews. ;)

Sent from SpeedMachine i9023
[Nexus S Android Development] kwibis:
Well don't know if it was already on 4.4, but now on 4.4.4 the 100mhz is used more instead of the 200mhz which wasn't really used before :\ Now on the new Rasbeanjelly. It's extremely fast with this combo! :good:
[Nexus S Android Development] djees:
Fix permissions did the job

I prefer 4.4.1 it's more responsive and smoother on miui v4 jb 2.8.24

Testing 4.4.4 Will report soon

Thanks bedalus for your hardwork
[Nexus S Android Development] :
Thanks, more confirmation that wiping cache is probably pointless!

I'm going to be releasing a version with thalamus' v3.60 IDLE2 code soon, and I've measured it, is definitely power-saving! Hopefully it is stable! :fingers-crossed:
[Nexus S Android Development] :
What is IDLE2?

marmite versions 4.4.5 onwards are available with IDLE2

Note: The IDLE2 code does not work when MTP is enabled in the ramdisk, which is why there are separate downloads. IMPORTANT: If you now want to use an IDLE2 version, please backup your init.d scripts then reflash your ROM (no wipe). This only needs to be done one time, only if coming

from

an MTP version. It will give you a clean ramdisk.

IDLE2 replaces Ezekeel's Deep Idle. The aim is to save power while playing music with the screen off by keeping the CPU in a lower power state as much as possible.

Rules

thalamus developed IDLE2 but users posting in his threads seems to bug him, and if he is busy telling people off, he is not working on the code. Post all issues here, and I'll work out if they are reproducible, and let him know. Thanks! :)

Known Issues

No reproducible issues are confirmed as yet. Reboots may occur at random, due to an imprecise external abort. thalamus is working on the issue.

Tips

In a terminal emulator:

cat /sys/kernel/debug/idle2/statistics

...will tell you how well it's working

In v4.4.6 and earlier use this instead:

cat /sys/kernel/debug/idle2/error_stats

Idle States: Equivalent Terminology

Idle	= C1	= State 0
TOP ON	= C2	= State 1
TOP OFF = C3	= State 2
[Nexus S Android Development] italia0101:
Sweet will gives this a try on stock now ...

Did you fix it at 400?

Edit- just saw the thalamus thread so yea 400 is fixed when screen is off ! nice!

also checked out your video! nice work!
[Nexus S Android Development] Jamalsid:
Don't suppose anyone can provide an alternative mirror? it is blocked here in my work.

EDIT: No need to bother I just used my phone instead.
[Nexus S Android Development] linuxxp:
I still have problems with battery drain. I think I remained alone with this problem. These are the final results Jellybro and marmite 4.4.4. I think I'll be return to SlimICS 4.2, there are no problems and was very stable.

Something strange: Now flash marmite 4.4.5. Before I restart the battery was 27% after loading the battery is 46%. :eek:
[Nexus S Android Development] :
It's the fuel gauge chip, it sometimes goes a bit out of whack after flashing something new. It'll settle on an accurate value soon enough.
[Nexus S Android Development] gmorel4:
Originally I didn't, and got a bootloop after flashing kernel, but then i did a wipe, ROM flash, Titanium restore, then kernel Flash, and got another bootloop. Then i did a wipe, ROM flash, kernel flash, then reboot and restore and everything was fine after that.
[Nexus S Android Development] granets:
All is well on the Bluetooth front for me. Version 4.4.5 seems smoother than 4.4. Battery life is great. Im using one of the latest AOKP ROMs and everything is perfect with smartassV2 and deadline. Fastest combo to date! Keep it up bedalus.

p.s. just found a small bug with 4.4.5 - when I lock the screen, the CRT Off animation is... how can I explain.... Simply put, its lagging, and it's going too slow, dragging itself. I tried disabling it by reducing the window animation scale, but then the screen blinks in green after it goes black. I think this might be a deep idle problem. maybe 400MHz is too low for the lockscreen animation and it simply does this strange thing. but that's just my humble oppinion. I'll upload a video of the problem, if you need it, when I come back home from work. If needed - I can post a last_kmsg or something to help you bedalus.
[Nexus S Android Development] italia0101:
Yea i have also noticed this on stock rom with both 4.4.4 and 4.4.5. so i dont think its teh 400mhz issue, i think its just an idle2 issue.. maybe powering down the cpu as soon as the button is pressed?

4.4.5 does seem smoother though, good work! idle2 seems really good so far! battery saving is excellent
[Nexus S Android Development] granets:
yeah, maybe that is the problem, I have no idea, i'm no dev in any way :) just my thoughts out loud :) also for me 4.4.5 is the fastest and smoothest of them all!

Also, I should add that this problem is not always there. Sometimes everything is ok, but sometimes the screen off animation laggs like hell, pardon my french
[Nexus S Android Development] caliban2:
Oh my god, the animation-bug is back?! A real showstopper, rendering the phone completely useless, a bug right out of hell. Yeah, let's all complain about it at least twice a day. I mean, this has to be fixed, otherwise this kernel simply blows.

Seriously, what's that fetish about screen off-animation?!

I noticed it two days ago, guess what? It's gone with today's version of Jellybro and v4.4.5.
[Nexus S Android Development] granets:
you are right fine sir, the animation thing is small and it's not bothering me one bit, but it seems to be a bug, and I just wanted to report it. I am sticking to this great kernel, and I'm not switching untill something better is out. I just wanted to let bedalus know that there is such a thing.

and to prove that I am lazy and stupid - I reflashed the kernel, this time wiping cache and dalvik (I did not do that the first time, because of said lazines), and the problem seems to have disappeared.
[Nexus S Android Development] italia0101:
LOL , wow what a reaction,

yea its just a bug , its not keeping me up at night
[Nexus S Android Development] raducux:
CRT or not this is still the best, smoothest, fastest and most responsive kernel for our device.

I have i9023

Also no oc problem here... with other kernels I get loads of reboots if oc1200 .

The rotations are responding and fast too compared to others.

I flashed it on top of all jb ROMs I tried and got stuck to it.

Bottom line .

Thank you for your work.
[Nexus S Android Development] asphantix:
I'm on stock OTA and I don't have this issue with the animation using v4.4.5

v4.4.5 is performing very great so far :)

edit: try using ondemand. I had issues with smartass with some versions of marmite, too
[Nexus S Android Development] italia0101:
Is it meant to use 400mhz when the screen is off all the time other than when its in deep sleep ?

Mines showing this

Here's my error stats
[Nexus S Android Development] mpjoe2000:
That only happens to me when i keep the phone charging while i'm restarting the phone
[Nexus S Android Development] alen1901:
It uses 400mhz when you are listening music with screen off.

Sent from SpeedMachine i9023
[Nexus S Android Development] italia0101:
Ah Ok only music ... I thought it would use it for anything like syncing

Also I dunno if its the mainline merging but this definitely feels smoother !
[Nexus S Android Development] :
haha just found out I can log in to the forum using the work-cafe's computers. Now I can XDA all day long! :p

Just to pick up a couple of issues I've read.

Yeah, I get the animation bug too. Don't know why exactly but it wasn't there before I merged IDLE2. It probably is some sort of CPU issue, like it's trying to do some things at the same time... difficult to explain or even think clearly about it while at work... there is a fix, I think, which may be to introduce a delay allowing the animation to complete before the screen turns off. I'll have to double check whether this 'hack' is in my kernel already, because I can't remember right now.

The feedback for the v4.4.5 test version seems positive, and I've not had a single problem with it, excepting the above issue. I've had it running music for hours. I'm going to try it sleeping with airplane mode for a few hours.

Oh - people concerned about the 400 MHz thing. Yes, that is deliberate. That is thalamus' code, not mine. He's interested in me trying locking to other frequencies to look for the most power-saving... although from previous experience, 400MHz is where it's at. Anyway, don't worry... it is saving power.

Also on the TODO list: I need to try is an identical build with IDLE2 disabled. I can do overnight music drain tests to get extra confirmation of the power saving. But I'll try the alternate frequency builds first.

If you're just re-visiting the thread the big news is IDLE2 is added, is saving power, and seems stable, so head to the OP for the link. (Second link, labled 'testing').