yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] caliban2:
Because it's the next logical step to re-add mtp. I'm still on 4.4.11 -idle2 -mtp and it's doing great, regarding speed AND drain. (it has pm-fast)
[Nexus S Android Development] :
I've already built the RC for the next stable, I'm just testing out the drain while the phone sleeps for a few hours. If MTP/PM_FAST drain matches the build that had no snazzy features, then the culprit was IDLE2 alone.
[Nexus S Android Development] doc_v15:
I have been using v4.3 for 2 weeks, and my device drained for only about 1% when asleep (9pm to 5am)

I think the IDLE2 is pretty effective for me :D

using MIUI JB Rom
[Nexus S Android Development] granets:
Every build with idle 2 is bad for battery life. I say, make builds with mtp and no deep idle until thalamus resolves the issues in the idle 2 code. Every single kernel you made with no idle 2 had better battery life in my experience. But in the end it's your call :)
[Nexus S Android Development] _yaz_:
i've tested the NNN version (everything removed) on my i9023. performance and drain are both amazing. the only problem is the lack of gps. i'm unable to switch it in any way. is it intentional ? (i thought it's only for 4g)
[Nexus S Android Development] :
Don't worry, there will be a fully 4G compatible build up today, probably between 9 and 11pm GMT (if not, then tomorrow morning).

If thalamus continues to develop IDLE2 then I will continue to release testing builds. But I want to release a stable version, it's been a while since the last one.
[Nexus S Android Development] JokerAce:
Just an info.

I am using latest matrix currently, I have location and Google search activated, but nv had that os drain bug. Using it for a week already.
[Nexus S Android Development] micha3lvd:
Thanks for the tip about google now, really improved my battery life!!
[Nexus S Android Development] caliban2:
One should note that disabling Google Now is a "normal" power-saving measure, not the Holy Grail of solving the abnormal batt-drain most of us are experiencing (with idle2?). :)

4.4.11 -idle2 -mtp is still doing great. Can't wait to see how the RC will perform. But this one is my new fallback-kernel.
[Nexus S Android Development] :
The Google Now / Search / Location bug was very bad for some people, with their OS usage at almost 70% which is ridiculous. However, I never had the OS usage bug. My battery was still draining too fast though, and it took me a very long time to accept that it was caused by IDLE2. Probably because I measured it as saving power with music playback, I just assumed it was working properly. But somehow it is using extra power during sleep.

I'm withholding the stable release until my phone has clocked up a good few hours of sleep, so I can be sure that the drain with MTP and PM_FAST re-introduced is also acceptable.

I'll then bring IDLE2 back for further testing releases, if and when thalamus updates his source.
[Nexus S Android Development] fear_factory84:
I also have problems with bluetooth since non-idle2 builds are not available. 4.4 without idle2 worked.

4.4.10 and 4.4.11 don't work well with bluetooth. Main problem is that when you loose connection because other bt device is out of range.

Bluetooth icon remains blue after the bt device connected is out of range. Its state remains connected. In addition it drains a lot of battery when the phone is in this state.

Could you please provide a non idle2 build to test if it's idle2 or not?
[Nexus S Android Development] DarkhShadow:
I cannot, I think I am using 4.4.11 with Google location+search active (or the test one with idle2 and no mtp) and I don't have the Android OS drain anyway.

AOKP JB Build 1

Sent from my Jelly Nexus S
[Nexus S Android Development] :
The next release (stable) has no IDLE2
[Nexus S Android Development] :
http://goo.gl/HvUrp

Edit: If you're on a phone it seems two of the links are invisible... Just tap the empty cell, it still works.

Stable v4.5 is out!

Thanks to everyone who supported me in this project, enjoy! :D

I'll be taking a little break for a week while I'm on holiday!
[Nexus S Android Development] Imppy:
Is this for stock only? Quite confusing
[Nexus S Android Development] kkkhattak:
Awesome it's 1:54AM in my country GMT +5:00.For me it's a nightly release
[Nexus S Android Development] kwibis:
Enjoy your holiday bedalus! :D

Sent from my Nexus S
[Nexus S Android Development] kkkhattak:
Click or touch the empty space.WHERE THE LINK IS USUALLY PRESENT FOR CUSTOM ROMS.
[Nexus S Android Development] towelboy:
Completely satisfied with v4.5, screen on for the last 3 hours and nothing bad to say about it. Coupled with the latest JellyBro, it has been awhile since I was this happy with my phone. :)
[Nexus S Android Development] mpjoe2000:
bedalus, do you think it might be a good idea to backport CPUIdle from Linux 3.5.x (like airkernel) to your kernel while thalamus fixes his iddle2 code?
[Nexus S Android Development] Imppy:
Nice work...finally drain is fixed in your latest version
[Nexus S Android Development] kkkhattak:
In the version 4.5 there is no sign of battery drain and it's really smooth.:thumbup::thumbup::thumbup:;);):):):D:D
[Nexus S Android Development] DarkhShadow:
Now all this kernel needs is a Nexus 7 version ;)

I would try but I have a Ubuntu 12.04 Linux box :(

Sent from my Jelly Nexus S
[Nexus S Android Development] :
I recently upgraded from 10.04 to 12.04 using the software-update method, and it hasn't broken any build stuff, so you are probably okay if you want to try to build yourself (as long as you are on 64 bit)

I'll have a look at the guide, as I need to correct one of the libraries

DONE: http://xdaforums.com/showpost.php?p=27900338&postcount=3

It was lib32ncurses5-dev I needed to add (lib32readline5-dev is obsolete)

EDIT: Obviously you'll need to make some changes for the Nexus 7. I haven't got one, so I can't speak for what governor/scheduler combinations work well, or what tunables are best, or anything really! But I strongly encourage building your own kernel anyway, it's very educational
[Nexus S Android Development] Drizzy xS:
Bedalus are you going to add the new Power HAL thing by Thalamus? Apparently it makes On demand as smooth as interactive but with the same power consumption?
[Nexus S Android Development] :
NS4G version minor update now available in the version matrix.

-very minor, but important tweaks to the ramdisk to enable init.d support and support for more ROMs. E.g. didn't work on blackbean, but now does! :p
[Nexus S Android Development] italia0101:
4.5 ... best battery life yet
[Nexus S Android Development] Imppy:
Agreed...straight line on sleep
[Nexus S Android Development] :
I already tested the CPUIdle backport in my battery benchmark thread, and found it does nothing.

I'll have a look at it, but I find ondemand smoother than interactive anyway. The only thing that I'm interested in adding to the kernel from this point are IDLE2 if it works properly, and maintenance patches.

That reminds me, I forgot to add a joke feature for this stable release. I was going to modify BLD for improved dimness. :p
[Nexus S Android Development] alen1901:
Can you tell whats that, how can you improve bld? :P btw, v4.5 running great, no bugs. :)

Sent from SpeedMachine i9023
[Nexus S Android Development] DarkhShadow:
Thanks, will try when I get home later, not so easy to test kernels on Nexus 7 because of the stupid bootloader bug(can't get into recovery unless connected to PC)

Sent from my Jelly Nexus S
[Nexus S Android Development] migueldbr:
your kernel is great!One of the main things i like about it is the ability to OC. You one of the only devs that include OC on your kernel. Our phone is getting old and in some games, overclocking the phone makes a lot of difference. Don´t really understand why other devs dont include this option. At least from your kernel, at 1.2ghz i can say it is rock solid, never had a reboot of freeze when OCing.

So thanks for your hard work!
[Nexus S Android Development] asphantix:
I really love v4.5 so far. The battery life actually seems to be great. Thanks Bedalus!
[Nexus S Android Development] Accidd:
I've been testing 4.5 in real stress.

Sightseeing Utrecht, NL whole day with Google Nav, Location and taking pictures all along.

Battery drained only when I started to use Messenger (Facebook), but it's the app fault.

Other than this is rock solid and long battery lasting.

Sent from my MIUI Nexus S Jelly Bean
[Nexus S Android Development] granets:
Yup, same for me. First version without deep idle 2, and already battery life is so much better. I think thalamus is still a long way away from a good idle2 patch, so, for me it's best if you just keep making mtp/no idle2 kernels and focus on making other things better, without having to deal with the trouble the idle2 code carries (because as I see it, most of the problems that are reported here are idle2 related)
[Nexus S Android Development] towelboy:
Yes I think idle2 was the culprit, cause I'm getting 4 hours screen on time easily without it
[Nexus S Android Development] technogravy:
Not sure what you put into this marmite mate but its awesome...

Haven't had this battery life since GB.. Android OS usage is still there but just looks very cosmetic to me.
[Nexus S Android Development] tchaari:
I totally agree on this. Marmite 4.4 and 4.5 gave me close battery life to ICS.
[Nexus S Android Development] :
I think it is mostly cosmetic, but if it bugs you, it turns out the solution is to turn off Location Services > Location & Google Search
[Nexus S Android Development] italia0101:
Haven't used my phone loads today ... but this is already alot better than previous builds

So yea it seems to be idle2.. hopefully it will progress into being an epic battery saver though
[Nexus S Android Development] CrackerTeg:
Bedalus, just had a look at the spreadsheet and the other ROM column is blank after 4.2. I'm wanting to try 4.5 but I'm not sure where it is. I'm posting from my phone so searching for it is a pain as you may know.
[Nexus S Android Development] muller37:
Click the blank space. The link is invisible.
[Nexus S Android Development] CrackerTeg:
Yeah. I went back a couple of tapatalk pages and saw his post where it says that. Took some work but now I'm itching to flash it.
[Nexus S Android Development] Naa Laa:
Link and the background cell colors are similar...:)
[Nexus S Android Development] grotesque02:
Stock rom don't execute script?

I make a script, but every reboot I see BLD don't work!

And I prefer don't use NSTools because Fix permission remove swiftkey as default keyboard every reboot!
[Nexus S Android Development] gummie:
I'm also an Ondemand fan and I can say it really does great job specially on shifting frequencies 100-400-800-1000MHz more power saver than Interactive that comes from 100-1000MHz straight.

On the other hand, regarding the CPUIdle backport from Linux I think it works. I tried Air Kernels JR1 Stable version w/c contains that feature and CPU spy shows me that I have been able to utilize the 800MHz frequency a lot specially when offscreen downloading or even music playing on/off screen. This is on Ondemand Governor also I'm at Official CM10 Nightly and I frequently get 800MHz most, I don't know what tweaks are within its kernel but I can say its good.
[Nexus S Android Development] CrackerTeg:
Personally, I'm a fan of smartassv2. I'm loving the speed with the overclock. I may tweak the governor a bit but I like it's current settings.
[Nexus S Android Development] doc_v15:
v4.5 on JB MIUI US 2.9.3 is amazing!

SmartassV2/Deadline

Mid HEAVY usage of internet (FB, Twitter, Whatsapp, News feed and some browsing), SMS, 10 mins call, and downloading 3 apps from playstore caused me 21 hrs usage including 8hrs of sleep that COST almost nothing to the % battery (drained 1% for 8hrs)
[Nexus S Android Development] dinuvali:
Why is the cleaner.sh script set up to wipe Dalvik while flashing?
[Nexus S Android Development] :
Stock ROM doesn't support init.d unfortunately.

Thanks, I'll check out out
[Nexus S Android Development] :
https://github.com/edoko/AirKernel_NS_JBN/commit/0361a974c8dd9398a6f240ea3757cb9ef8d4f262

I showed r_data the code that I used when I was trying to integrate Ezekeel's deep idle, to fix the frequency at 400Mhz using thalamus' method. In the commit above he's reverted that, which is good, because he's removed Deep Idle I think. If he'd left my tweak in after removing Deep Idle, that would have used more power.

https://github.com/edoko/AirKernel_NS_JBN/commit/f5244ea00607a974d4912900e4040104fbb21653

The above commit is the CPU_Idle backport in r_data's kernel, and there's nothing in there that would keep the frequency at 800MHz.

Seeing extra activity at 800MHz is no reason in itself to suspect that the available TOP=ON and TOP=OFF states are being used. These states are independent of processor frequency. AFAIK, Ezekeel was the first to attempt locking the sleep frequency, then myself & Harbb were the first to realise that 400 MHz was the most power saving state, then later, kalimochoAz/morfic/thalamus decided that 800 MHz was the best choice for stability. Thalamus finally created IDLE2 which seems stable locked at any frequency, but still needs work to avoid unusual drain during sleep.

I tested CPU_Idle, and found it does nothing to save power. The results are in my battery drain benchmark thread, or you can look at the raw data here: https://docs.google.com/spreadsheet/ccc?key=0AntDDKv-lS6IdEY4T3dXWVFDWk9lREdJNGFfU2NwRlE
[Nexus S Android Development] Articudos:
@bedalus

I'm using rasbeanjelly sep04, with marmite v4.5.

When I start video recording and stops, It causes FC.., and I guess it was high bigmem issue.

Here is logcat, thanks in advance.

http://db.tt/YTNyBdct
[Nexus S Android Development] kkkhattak:
The battery life is really good compared too old versions.
[Nexus S Android Development] caliban2:
Not sure if this is a kernel-bug, you're only the second person to report this (I think leap_ahead uses the same ROM). Never had that problem with cm10 and kangs. The way you describe it, it rather sounds like a cam-app/gallery-issue. Does it also happen with rasbeanjelly's stock-kernel?
[Nexus S Android Development] fear_factory84:
+1 video recording with marmite 4.5 + cm10 nightly works.

Perhaps I had yesterday another random reboot for the i2c issue I reported some days ago.
[Nexus S Android Development] alen1901:
I also have video recording problem on cna. I dont think its a ROM problem. Maybe not compatible. Dunno.

Sent from SpeedMachine i9023
[Nexus S Android Development] Articudos:
http://db.tt/OYRLLggi

Let's see if this works;)
[Nexus S Android Development] :
Can you get the app to FC, then immediately do a normal reboot, and grab the last_kmsg? There's too much there to wade through.
[Nexus S Android Development] Imppy:
It force closes because you don't have the Google movies and TV app installed
[Nexus S Android Development] :
I can back off the camera ram theft a little, see if it helps, but I'm having a week off building while I'm on holiday!
[Nexus S Android Development] Imppy:
Edit: actually I have the same problem...weird...last time it didn't force close.
[Nexus S Android Development] spupuz:
please can some one post a link to the latest version 4.5.x i can't access google docs from offices.
[Nexus S Android Development] alen1901:
v4.5(not for stock. Not for 4g)

http://d-h.st/kxC

Sent from SpeedMachine i9023
[Nexus S Android Development] Articudos:
http://db.tt/TBw0ywGi

Here:)

+I guess this is boot.img type issue,

But I forgot why did u abandoned anykernel type.

http://xdaforums.com/showthread.php?t=1877120

Anyway,

Enjoy ur holiday!:D
[Nexus S Android Development] grotesque02:
Android OS at 26% after 1 hour...

Location disabled
[Nexus S Android Development] DarkhShadow:
He abandoned it because of issues with NS4G

Sent from my Jelly Nexus S
[Nexus S Android Development] Drizzy xS:
Hey Bedalus sorry if this is a stupid question but if I download the power Hal by Thalamus will it make the on demand in your kernel as fast and smooth as it is in his latest kernel?
[Nexus S Android Development] dosesdoyle:
4.5 stable and great battery life

I've been running v4.5 for the past two days and the battery life is great and it's super smooth and stable too. Loving it!

P.S. I have Location services off
[Nexus S Android Development] miklosbard:
kernel version? Phone type? rom? if you do a bug report do it correctly. but if you are just complaining don't press the send button next time.
[Nexus S Android Development] kmjo29:
My touch calibration get funky at times. I'll be typing at the bottom of the screen and it randomly selects something at the top of the screen and my finger never around that vicinity. Can it be Rom or kernel related?
[Nexus S Android Development] vis80k:
with power cable connected? sometimes, the touch goes crazy when the power source is not stable or grounded.
[Nexus S Android Development] daver68:
Hi all,

I had a reboot today, while the phone was charging (screen off and not running anything at the time). I had just got to the office, turned off the podcast (Pocket Casts), and plugged it in to charge.

Minutes later, the phone just reboot on its own.

Things to note:

- Just updated from CodenameAndroid 3.4.1 to 3.5.0

- Just updated from Bedalus 3.5 -> Marmite 4.5

- Deep Idle was OFF in 3.5 (no Deep Idle of 4.5 anyways)

Attached is my last_kmsg (/proc/ksmg > /sdcard/kmsg.txt), could someone please look at it and let me know what caused the reboot? Was this a kernel problem or a ROM problem?

Thanks!
[Nexus S Android Development] grotesque02:
9023 stock rom, last kernel version
[Nexus S Android Development] miklosbard:
try checking which applications are allowed to sync with your account. There could be a sync issue that causes a wake lock in the process. disable those that aren't so important, and check if the drain is gone. Also can try force closing the maps app.
[Nexus S Android Development] :
Aha mfc can't get memory. I need to go back to 396 MB i think
[Nexus S Android Development] :
I don't know what a power hal is, but i suspect it needs to be compiled. You'll have to build the whole kernel with this tweak.
[Nexus S Android Development] joeyddr:
im on the 4g using 4.5b and it records but FC's when i hit stop recording... the video is still there though.
[Nexus S Android Development] :
Don't disable location, you need to specifically disable Location & Google Search
[Nexus S Android Development] :
The IDLE2 versions put the processor to sleep even while the screen is on. Despite my attempts to prevent this, it still happens sometimes.

Upgrade to v4.5 the problem will be gone
[Nexus S Android Development] :
After a reboot you need to correct the file called last_kmsg
[Nexus S Android Development] daver68:
Oh crap, I got the wrong file didn't I?

Thanks for pointing that out, I should have known better and I'll remember that in case there is a next time (hopefully there won't be one!)

So far your kernel has been solid for me. That was my first reboot ever, so not sure what it was.
[Nexus S Android Development] stojshic:
You could do what I do. Install Script Manager and set it to load your script on boot... It's not init.d, but works...
[Nexus S Android Development] :
Ok, I checked this out. The lines in the cleaner script that mention dalvik cache are actually commented out, so do nothing.
[Nexus S Android Development] Imppy:
Hey bedalus...wonder will releasing a lower memory fix the recording ?
[Nexus S Android Development] :
Yes, I have to give some memory back to the camera, but take it away from the user.
[Nexus S Android Development] Imppy:
I'm glad to do a test on that...I have rasjelly
[Nexus S Android Development] tchaari:
V4.4 was fine with video recording. It offers less memory than 4.5 to the user?
[Nexus S Android Development] vis80k:
just reporting paranoid 2.0 + marmite 4.5 here and the video recording has no FC.
[Nexus S Android Development] 309041291a:
Same here. And with 2G I can pull 5 hours screen use. With 3G I can just touch 4.5 hours. Idling is amazing, straight line with poor reception. Got the SOD once during a phone call... Lol. Otherwise all good.

Nexus S. (GSM i9020a)

Paranoid Android (2.0 - 4.1.1)

Marmite Kernel (4.5 - Bedalus)

Ondemand (Screen On) (800/100)

Smartassv2 (Screen Off) (400/200)

Deep Idle (N/A - Deadline)

BLX (98 - Inverted Apps)

Black Exodus (Stock Voltage)
[Nexus S Android Development] antrobi3:
Everything's fine here running Marmite 4.5 with CM10 09.09 nightly,battery life is great too.
[Nexus S Android Development] :
Now I know why I couldn't boot with the kernels. Clicked Stock OTA on my phone (couldn't see the custom rom link). Unfortunate hahah. Flashing 4.5 now, thanks for the great work bedalus
[Nexus S Android Development] Articudos:
Let's be clear, video recording is fine, but fc in finishing video recording. (It's saving to sd card any way..:p)

If paranoid or CM works fine, I guess sth changed in highbigmem-libs which I uploaded long ago are changed in latest CM nightly.
[Nexus S Android Development] 309041291a:
I just took two videos. One 10 seconds another 2 minutes. Then I watched them. Video is fine. So yeah, the files were probably changed.

Nexus S. (GSM i9020a)

Paranoid Android (2.0 - 4.1.1)

Marmite Kernel (4.5 - Bedalus)

Ondemand (Screen On) (800/100)

Smartassv2 (Screen Off) (400/200)

Deep Idle (N/A - Deadline)

BLX (98 - Inverted Apps)

Black Exodus (Stock Voltage)
[Nexus S Android Development] hiphopboy:
Test this kernel with a new rom install : codenameandroid v3.5.0 with gray icon on wifi connected & data enable.
[Nexus S Android Development] 7TimesCursed:
Tried 0.9.3 cause it said it had trinity colors. But, it didn't work for me. Its real fast but my phone suffer some a nasty green tint without trinity. Anybody can confirm?
[Nexus S Android Development] Articudos:
@Bedalus

Can I enable fsync in this kernel?

Or not-included in this kernel..
[Nexus S Android Development] :
You might need to reset your voodoo settings to default. v1 has morfic's colours, you should upgrade.
[Nexus S Android Development] :
I always thought disabling fsync was a good idea because it improved SQL performance, but after I had a reboot and lost data, I changed my mind, so I won't be providing any fsync switch.
[Nexus S Android Development] pigsan:
MTP also work with MIUI

bedalus, the great

I have tried you V1 kernel on MIUIandroid ver 2.7.13 and gladly report that MTP work on Windows XP!!!

As MIUI don't have option in Setting>Storage>xxxxx ; here's my trial:

1.from Play store search and download "USB mode switch for SGS1 on CM" (need root)

2.Open and select "change to MTP" pop up will ask for reboot then reboot

3.after reboot plugin USB cable and MTP would be found but driver won't install

4.Disable "USB debugging" then MTP driver automaticly installed
[Nexus S Android Development] :
Holy crap! That's awesome! I'm gonna add that to the OP. Thanks a million!

Great tip! Everybody thank pigsan
[Nexus S Android Development] Articudos:
Yay!

I fall in love with this kernel!

Plz keep the great work in JB:D
[Nexus S Android Development] :
Everybody should definitely thank pigsan for this awesome tip.

He's confirmed with MIUI, so I tried with a clean install AOSP+ vanilla (which is pure AOSP with just root and busybox), and followed pigsan's instructions, and MTP works!

This means that all ROMs can have MTP!