yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] Erythnul:
Well, something is definitely up. You've got ~1 hour screen on time but only ~5.5 hours Deep Sleep over ~9.5 hours total.. Something is keeping your device awake when it should be idling better. You should get something like BetterBatteryStats (it's my favourite battery analysis tool) and track down the source of the problem. If you need any help with that, let me know. (Don't forget to enable the root functions in advanced settings!)

Personally, I can get about 4 hours screen on time, from 90% battery all the way way down, but that's the absolute max. With moderate use (~2.5 hours screen on time), my battery will last 15-17.5 hours easily, probably more, but I try to keep my full charge cycles as far apart as possible.
[Nexus S Android Development] CrackerTeg:
That doesn't make any sense. I have the same and running 4.8. Did you download the correct version?
[Nexus S Android Development] polobunny:
14 hours, down to 86%. Wifi on all the time when I'm home (since 6pm or so) and off while at work (8:15am to 5pm). Data off all the time, only enabled when I want to use it. Received a couple texts, 2 calls, one I answered the other I denied. 20 mins screen on time only (hey I've been working and then drinking with friends) but it should show you the kernel is doing well in idle. 1% per hour or less is always good. So far no crash, freeze, reboot or anything of the like, so i'll keep my fingers crossed 4.8 will be the version that has squeezed the PVR bug!
[Nexus S Android Development] pandaman21:
What are the best settings for battery, performance, or both. For version 4.8, thanks in advance.
[Nexus S Android Development] :
Stick with Ondemand, but if you want to play a game, consider smartassv2. For intense games, you may want to see if OC improves the experience.
[Nexus S Android Development] :
https://docs.google.com/spreadsheet/ccc?key=0AntDDKv-lS6IdERmeUtqX2ROYzR5Z19RM2xITnRscHc

I checked my voltages, and in fact I use 1275mV for 1000MHz and 1350mV for 1.2GHz. They all line up already, so that's eased my suspicion that I need to change something.

I think I mistakenly informed a few people that I was using 1325mV for 1.2GHz, sorry about that.

In other news, I found some more RAM! 4MB. It's from Ezekeel's bigmem mod. I can't vouch for the stability when combined with the stolen camera memory, but I figure it's worth a go. I also can't believe that it took me this long to realise Ezekeel's bigmem mod was a completely separate mod!

test version: http://d-h.st/Lny

...just for non-4G non-CM
[Nexus S Android Development] dekaru01:
I know it doesn't make any sense, but that's what's happened nevertheless. Of course I downloaded the right version. No idea what went wrong. Maybe it was a bad download (although, despite how many times I've heard that being speculated in the forums, it never happened to me so far, not once). So I'll try again. But unless something magical happens, looks like I'm stuck on 4.7.x. Really odd, this.
[Nexus S Android Development] :
v4.8.1 is here: http://goo.gl/HvUrp

-Updated all versions

-Due to the extra RAM, there may be instability. Probably fine though, but please feedback!

-4G users didn't have MTP! Only just found out! Fixed. (Hopefully, 4G users please test!)

As I said further up, the RAM is from Ezekeel's bigmem tweak, which pre-dates other memory hacks. I thought I'd already done it! So now I'm sure the memory is maxed out... please feedback if anything unexpected happens.

EDIT: MTP confirmed fixed for 4G :D
[Nexus S Android Development] anshumandash:
Now that you are re-looking at the tweaks & mods, is there a possibility you would consider adding USB fast charge mod? :D
[Nexus S Android Development] :
Hmm. I'll think about it.
[Nexus S Android Development] CrackerTeg:
I think I had asked about this a few versions back. I'd be elated if fast charge was implemented.
[Nexus S Android Development] alen1901:
What a nice progress. ;) my phone is still on repair. Cant wait to flash marmite, mmmm(or yuck). :P
[Nexus S Android Development] BenHeng:
Thanks a lot. I would love to help you test the kernel but I never had a random reboot since I'm using marmite.

Envoyé depuis mon Nexus S avec Tapatalk
[Nexus S Android Development] :
Ah, you'll appreciate it all the more when it returns!
[Nexus S Android Development] melvinchng:
Something strange... I have very high Android system running...

Kernel 4.8 + 4.8.1

Accidentally sent from my Google Nexus S
[Nexus S Android Development] DarkhShadow:
That's your rom then

Sent from my Jelly Nexus S
[Nexus S Android Development] CrackerTeg:
Is Google now enabled? I could've sworn that was a culprit.
[Nexus S Android Development] melvinchng:
Nope... i have it disabled and only using normal Google search...

Accidentally sent from my Google Nexus S
[Nexus S Android Development] SPVlover:
Try just disabling Location & Google search under

It worked for me, Google now still works....... Android system usage is under 8% and Bat-life seems back to normal.....:)
[Nexus S Android Development] Erythnul:
Easiest way to get to the core of (most) battery problems is to use BetterBatteryStats. Grab it (it's free on the forums, or buy it on the Play Store, it's worth it to support the dev), install and set it up (enable the root functions in advanced settings), run through a cycle and see the culprit(s) :) If you need any help, let me know.

By the way, everybody, let's try not to mess this thread up with "battery life problem-solving" posts. I'm willing to pick up any questions people have about high battery drain/bad idling people may have and try to answer to the best of my abilities. In my own quest for best battery life, I've picked up quite a bit of knowledge and feel I can help as long as it's not a hardware issue (obviously).

Any battery life problems? Shoot me a message. (Please add some screenshots and other information you feel is necessary (e.g. phone model, ROM/kernel version). Preferably, install BBS first and try to troubleshoot it yourself. I can't guarantee a timely response every day, but I try to be online quite a lot.). Bedalus, feel free to add this to the OP.
[Nexus S Android Development] melvinchng:
As usual... it is disabled... will check later

Accidentally sent from my Google Nexus S
[Nexus S Android Development] :
I think a cache wipe and fix permissions will solve it.
[Nexus S Android Development] :
@Erythnul

http://xdaforums.com/showpost.php?p=32382904&postcount=3404

Got a battery drain issue? Ask Erythnul![/b}

Erythnul explains better battery stats

Please quote this message and fill in your responses inside the quote itself.

My phone model:

My ROM:

My kernel version:

My issue:
[Nexus S Android Development] :
Erythnul: I'll link my post in the OP if you agree to keep an eye on the thread and give advice when needed.

We'll try it out for a few weeks and see if it works well.

If Erythnul helps solve your issue, please hit thanks for him.
[Nexus S Android Development] :
I'm extremely tired this evening, but I want to update that I'm experimenting with some new kernel ideas with tchaari, who builds Slim Bean on Krarvind's behalf.

-added fast charge

-lowered screen refresh rate

-lowered volts for 1GHz to 1250mV and 1.2GHz to 1300mV in accordance with this

I then let asphalt 7 run in my pocket for a few hours with smartassv2 and 1.2GHz OC to check for stability.

The upper frequency volts shift will be coming the regular kernel asap. Fastcharge too.

The low Hz idea will be exclusively for tchaari, and whether he decides to include it in the next Slim Bean release... well, only tchaari knows that!
[Nexus S Android Development] spider623:
Just finished checking with trinity is an android problem most probably from the latest play store(it was saying android something) update, I also had it with thalamus so I can guess the killer was Google this time

Sent from my Nexus S
[Nexus S Android Development] sdhanjal15:
EXCITING!
[Nexus S Android Development] 309041291a:
I remember when Matrix 20.0 came out with 50 FPS as opposed to 56. Lower screen refresh rates will save us AMOLED users more battery for sure :D! This is how I pulled 7 hours screen time twice before. However, LCD users may experience jittery performance and some other weird stuff. I think you'll work it all out! Waiting to upgrade my ROM when you update your kernel!

Nexus S (GSM i9020a)

Paranoid Android (2.1.3 - 4.1.1)

Marmite Kernel (4.7 - Bedalus)

Ondemmand (Screen On) (800/100)

Ondemmand (Screen Off) (400/100)

Deep Idle (N/A - Deadline)

BLX (98 - Inverted Apps)

Black Exodus (Stock Voltage)
[Nexus S Android Development] CrackerTeg:
It's too bad bedalus is sleeping as I post this. I really want to try the version he's testing right now. All I know, it's going to be epic.
[Nexus S Android Development] towelboy:
Paranoid android + marmite 4.8 is almost breaking the 4+ hours screen on time for me! :eek: :D :rolleyes: :beer:

- 1.2 oc, smartassv2 & cfq

- using old stock battery

- regular use, didn't try to improve battery in any way (black wallpaper, uc, etc.)

Love it great job bedalus!
[Nexus S Android Development] Erythnul:
My pleasure. I'm already subscribed to this thread anyway, haven't missed a post since page 300 or so ;) As said, I can't give any guarantees, but if my own experience is worth anything to anyone, it'll be nice to feel useful inside a thread full of people who know so much more about all of this than me :)
[Nexus S Android Development] :
v4.8.2: http://goo.gl/HvUrp

-Added fastcharge

-Fixed volts (see the changelog on the download matrix for more detail)

I don't normally OC, but since I changed the voltages I decided to give it a damn good test yesterday. 3 hours on Asphalt 7. Even when my battery was running low, there were no problems. I'm currently letting Stability Test loop around. It's reached half an hour since I built this batch of kernels, with 32 CPU passes, and 302 GPU passes. I'll let it continue a little further. Lowering the voltages for stability may seem controversial, but with the previous settings I found I was getting reboots almost immediately when I OC'ed. Anyway, I think I've banged on about this enough recently, so if you're interested, just read through my recent posts.
[Nexus S Android Development] :
I forgot about the SLCD problems introduced by that mod. I'm not going to pursue it.
[Nexus S Android Development] fear_factory84:
Finally, I want to kiss you!!
[Nexus S Android Development] polobunny:
Got a freaking weird thing yesterday night, similar to that previous PVR bug reboot, except it didn't reboot, everything just became black and I couldn't load settings from the notification drawer or bring up the power menu. Had to pull the battery.

Couldn't grab any log either because I was in the process of texting someone and awaiting an answer. :/

Not sure if it was related, but the end result was very similar to the previous time. I'll update rom soon and see, never know.
[Nexus S Android Development] caliban2:
Sounds like a more extrem version of what I've got yesterday:

When waking up the phone via power-button, only sw-buttons and backlight went on (black screen). No reaction at all. Already thinking "oh-oh" I turned it off, on (still the same), off and on again and everything was fine from then on. This was on cm nightly 1004 and marmite 4.8.1.

Dunno - glitch, rom, kernel? I've got 23 hours of uptime before updating rom and kernel today.
[Nexus S Android Development] anshumandash:
4.8.2 feels a little slower than 4.8. Is it only me? I am on CNA 3.6.6. I am asking because I was trying another ROM today, didn't like it and did a nandroid restore and flashed 4.8.2. Not sure if nandroid restore is causing little lag here & there or is it 4.8.2.

But I am liking the fast charge very much. :D
[Nexus S Android Development] :
Are you on v4.8.2? There was some important code I somehow missed out: https://github.com/bedalus/marmite/commit/8a351995e0fcc52865539bf60f29d9916eab51c0

...which impacts how big the OS thinks the buffer is.
[Nexus S Android Development] beppegg:
Another reboot... after I wiped my nexus entirely and even formatted sdcard :(

I was playing a simple game, "blood brothers".

ROM: latest RasBeanJelly (Sept, 26th)

Kernel: marmite 4.8.0

last_kmsg available here: https://www.dropbox.com/s/b9po2i2vao6uz58/last_kmsg_20121005_1413.txt
[Nexus S Android Development] polobunny:
No I was on 4.8. I took the time to update my ROM to Oct 5th version and the kernel to 4.8.2 this morning, since the crash test failed anyway.
[Nexus S Android Development] :
Hmm. I think there were some fixes that were quite important to the how the graphics system allows direct memory access to the OS. If the addresses are wrong that would cause panics, and the addresses certainly might be considering I missed some important code (commit in link above). Let's see how we go on this version.
[Nexus S Android Development] :
I'm tweaking the colours in voodoo again.

R=1951208320

G=1708750560

B=1974299520

For people with the voodoo app, the above settings are what I'll be recommending.

For people without voodoo, your colours should improve, but you can set the your own values with a script if you like. There's some guidance via a link in the OP.
[Nexus S Android Development] polobunny:
Alrighty. I'm all updated now, so I'll see how that goes. =)

Why these values especially?
[Nexus S Android Development] anshumandash:
Thanks for letting that know in advance. I like the current colors and have saved the settings. In case I don't like the new colors, I will change them to old RGB. :)
[Nexus S Android Development] DarkhShadow:
Have you tried/seen these colours?

R=284

G=307

B=393

Sent from my Jelly Nexus S
[Nexus S Android Development] dinuvali:
bedalus, have a look:

http://www.youtube.com/watch?v=FWQqgfE1YaM
[Nexus S Android Development] polobunny:
I missed your post earlier. It looked a lot like that, I forgot to say my screen went black without status bar then i turned off then on and the bar was there after unlocking. Pretty sure we had the same issue, and I still got the never going away feeling it's a ROM issue, and we're both running CM nightlies (euroskank kang, but yeah).
[Nexus S Android Development] Drizzy xS:
Is it just me or is 8.2 quite a bit slower than 4.8?
[Nexus S Android Development] CrackerTeg:
I think its just you. Feels just as smooth as 4.8
[Nexus S Android Development] jimdem:
I'm testing 4.8.2 with the latest aokp jelly bean. It is running very smooth. Not a sigle hang or reboot. And the battery also seems fine. The best marmite so far ;)
[Nexus S Android Development] kiden:
Bedalus, I read a lot around here, but don't post much. But I have to thank you. Your kernel is awesome! 4.8 has been very stable and smooth. I appreciate all the research and work.

I thought I would contribute. This is the script I use to configure everything. I'm still tweaking my settings and learning, so don't pay too much attention to my settings. (like the cpu_min, thats not needed and commented out) figured others could use this script as well.

EDIT: Make sure to set permissions to rwxr-xr-x (755) otherwise the script wont be able to run at boot.

#!/system/bin/sh
# ---------- CPU (Overclock and Gov) ----------
echo "smartassV2" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
#echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
#echo 1000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

# ---------- BLD (Backlight Dimmer) ----------
# Enabled (0 - Disable; 1 - Enable)
echo 1 > /sys/devices/virtual/misc/backlightdimmer/enabled

# Delay (in milliseconds)
echo 5000 > /sys/devices/virtual/misc/backlightdimmer/delay

# ---------- Vodoo Colors ----------
echo 1951208320 > /sys/class/misc/voodoo_color/red_multiplier
echo 1720296160 > /sys/class/misc/voodoo_color/green_multiplier
echo 1974299520 > /sys/class/misc/voodoo_color/blue_multiplier
echo -50 > /sys/class/misc/voodoo_color/red_v1_offset
echo -53 > /sys/class/misc/voodoo_color/green_v1_offset
echo -44 > /sys/class/misc/voodoo_color/blue_v1_offset

# ---------- BLN (Backlight Notification) ----------
# Enabled (0 - Disable; 1 - Enable)
echo 1 > /sys/class/misc/backlightnotification/enabled

# Blink (0 - Disable; 1 - Enable)
echo 1 > /sys/class/misc/backlightnotification/in_kernel_blink

# Blink Speed (1 is fastest; 10 is slowest)
echo 10 > /sys/class/misc/backlightnotification/blink_speed

# Blink Mode
# MODE 1: Normal blinking, no special timing effects
# MODE 2: Starts fast, and slows
# MODE 3: Starts slow, and speeds up
# MODE 4: Starts fast, slows, then speeds up again, etc
echo 1 > /sys/class/misc/backlightnotification/blink_mode

# Max Blink Mode
# MODE 1: how blinks there will be.
# MODE 2/3/4: how many times the pattern will repeat
echo 0 > /sys/class/misc/backlightnotification/max_blink_count

# Final Blink State(1 is on, 0 is off)
echo 0 > /sys/class/misc/backlightnotification/blink_finalstate
[Nexus S Android Development] grotesque02:
For battery (stock rom) 4.8 is better than 4.7?
[Nexus S Android Development] lukappaseidue:
I've noticed that with 4.8.0 kernel the battery life is shorter that 476. now i'w trying 482....

ONDEMAND 100min 1000 max CFQ
[Nexus S Android Development] jojoost:
Anyone else experiencing lag on the latest cm10 nightly? Of course with cm kernel version
[Nexus S Android Development] anshumandash:
+1. I feel similar on CNA. Had posted a little while ago. Which ROM are you on?
[Nexus S Android Development] caliban2:
Nope.
[Nexus S Android Development] pan1980:
what ever version i try i have either random reboots or high android system battery drain and always i return back to the old good 3.5
[Nexus S Android Development] jojoost:
Guess I'm doing something wrong..

What's your setup exactly?
[Nexus S Android Development] polobunny:
Sometimes that's due to something else than the kernel, even though it seems like it is the kernel from flashing it and noticing that problem right away. Think of it as "incompatibility", although per se it's usually due to a real issue such as a dirty SD, leftover parts from previous kernels/roms. It's a good policy to wipe everything once in a while. Safe to backup your apps and their data with Titanium Backup and restore them, but leave alone system apps. It always helped me fix most if not all of my weird problems and I'm sure a lot of others users can vouch for that cleaning "procedure".
[Nexus S Android Development] pan1980:
i always do clean install, always, either i flash kernel or rom.
[Nexus S Android Development] polobunny:
Alright. Never know! Strange though, because a lot of us are having very good results, both with battery & stability. :)
[Nexus S Android Development] Drizzy xS:
Also on CNA. I'm thinking it's a CNA problem tbh.

Forgot to quote it.
[Nexus S Android Development] capoooro:
For me everything run smooth with 4.8.2 cm and strawberry. For the battery I have to try longer. For the past version s better 4.7 than 4.8.
[Nexus S Android Development] lukappaseidue:
For me it is the same

using with CodeNameAndroid 365 with ver. 4.8.x marmite kernel battery life is really shorter than 4.7.x
[Nexus S Android Development] :
The voodoo RGB multipliers seems to multiply on top of the kernel set multipliers, rather than simply substituting them. The values I've worked out there look pretty balanced at low brightness, so people can work off those values as a base, tweaking for individual preference.
[Nexus S Android Development] :
I love David Mitchell! "Marmite: less popular than Hitler once was."
[Nexus S Android Development] CrackerTeg:
Are the multipliers you're talking about currently implemented in 4.8.2?
[Nexus S Android Development] JokerAce:
Crashed 3 times. Finally got to pull the last_kmsg out

on 4.8.2, OC to 1.2
[Nexus S Android Development] :
Excellent. I love it! I'm linking it in the OP.
[Nexus S Android Development] :
The whole reason CM need a separate version is because of a tweak to how VSYNC works, which they claim saves power, and as a result we get this glitchy crappy scrolling with stuttery jittery delays. As you can tell, I'm not happy with that mod. You'll see the same thing on Strawberry by knzo, if you compare it to his chocolate version. tchaari's built me a version of Slim Bean with it, and I see the exact same thing.

I'm not saying battery savings aren't good, but the most exciting thing about Jelly Bean for me was the smoother interface. If we lose that, we might as well go back to ICS, which genuinely did have better battery life.
[Nexus S Android Development] :
No, they'll be in the next version. Which I'm uploading now!
[Nexus S Android Development] CrackerTeg:
Cool.

---------- Post added at 06:51 PM ---------- Previous post was at 06:50 PM ----------

Similar to current colors? I love how cool the current ones are.
[Nexus S Android Development] :
Awesome! Nice catch!

<6>PVR_K:(Error): MMU_Alloc: RA_Alloc of VMArena failed [2658, drivers/gpu/pvr/sgx/mmu.c]
<6>PVR_K:(Error): MMU_Alloc: Alloc of DevVAddr failed from heap General ID117440512 [2661, drivers/gpu/pvr/sgx/mmu.c]
<6>PVR_K:(Error): DevMemoryAlloc ERROR MMU_Alloc [1637, drivers/gpu/pvr/buffer_manager.c]
<6>PVR_K:(Error): BM_ImportMemory: DevMemoryAlloc(0x100000) failed [2349, drivers/gpu/pvr/buffer_manager.c]
<6>PVR_K:(Error): AllocMemory: RA_Alloc(0x100000) FAILED [115, drivers/gpu/pvr/buffer_manager.c]
<6>PVR_K:(Error): BM_Alloc: AllocMemory FAILED [1257, drivers/gpu/pvr/buffer_manager.c]
<6>PVR_K:(Error): AllocDeviceMem: BM_Alloc Failed [398, drivers/gpu/pvr/devicemem.c]

Now, which thing did I do that caused this problem... Hmmm. I found what I thought looked like a crucial commit but it might also be that Ezekeel's bigmem tweak isn't compatible with the other crazymem tweak. But I'll assume it's the linked commit for now, and push out another incremental version.
[Nexus S Android Development] :
Yes, hopefully not very different, but should just be a bit nicer for those without voodoo.
[Nexus S Android Development] mpjoe2000:
it is funny to see all changes to your matrix in real time :)
[Nexus S Android Development] :
v4.8.3: http://goo.gl/HvUrp

-Hopefully fixes bug introduced by trying to fix bugs :p

-Small tweak to colours

I encourage everyone to update and test this release. If there are continuing problems I will also have to revert Ezekeel's bigmem patch. Otherwise, it'll mean build a new-new debug release.
[Nexus S Android Development] kiden:
Hey bedalus,

Im having high battery drain issues with high Android OS. I tried disabling location, but it seems that the phone still doesn't want to go into deep sleep. I'm currently on CNA with 4.8. I dont have many apps installed. Mostly Google stuff, and things like root explorer and such.

Im going to try slim bean. Any other ideas what it could be though?
[Nexus S Android Development] :
In location > disabling Location & Google Search seems to do the trick for most people. Otherwise you might try disabling Google Now
[Nexus S Android Development] :
I'm real! Watch me do stuff! *does stuff*
[Nexus S Android Development] CrackerTeg:
Dude. You aren't giving me enough time to let a kernel sit! Lol. Do more stuff. I'm having a hard time seeing you do stuff over the tapatalk.
[Nexus S Android Development] neosynthesis:
Short tutorial on battery analysis?

Hi Erythnul, thank you for your info. Like many others here, I'm very interested in prolonging my Nexus S batt life. I'm on Marmite 4.83 now and running BetterBatteryStats on latest MIUI US JB rom. I couldn't find the advanced root functions you're referring to. Is this in the BetterBatteryStats app?

If you don't mind, maybe write a short tutorial on how to use the BetterBatteryStats tool to troubleshoot our battery woes. That'll help us out a lot. Thanks kindly. ;)
[Nexus S Android Development] jark99:
I would love this too. I have some issues interpreting the stats

Sent from my Nexus S