yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] saravanan_ganesan:
Battery draining

Hello Render,

I am running on 20140224 mod version which flashed recently and I noticed that the battery is draining so fast. There are 39 posts in this thread about the battery draining issue and have gone thru all of em...No useful suggestions made.. I have disabled google sync and other background services, but still no luck. your attention needed...Please fix this in next build, waiting for the new build...If someone have any other thoughts, kindly drop here...
[AT&T Samsung Galaxy S II SGH-I777] SteveMurphy:
There after several ways:

- Give the ROM a few days to settle in. In the beginning of a new flash (this includes updating an existing build), the Android system goes crazy trying to optimize everything. It settles down a few days later, so it's natural to see high battery drain following a flash. While Render's builds aren't nightlies, this helps explain why devs who generate nightlies generally ignore battery drain observations - their users never give the ROM enough time to settle.

- Use BBS and Wakelock Detector. They will tell you exactly what's draining your battery. If nothing unusual shows up in their findings, see above statement.

- There are many great guides on XDA designed to help combat this stuff, a recommendation would be this one: http://xdaforums.com/showthread.php?t=2357417
[AT&T Samsung Galaxy S II SGH-I777] saravanan_ganesan:
Dude Steve, this is simply brilliant :good: lemme wait for my ROM gets settled down...
[AT&T Samsung Galaxy S II SGH-I777] iXNyNe:
I'm going to have to disagree. My new phone (lg g2) has no battery issue. I can make it two days on a single charge. This is on official cm11 nightly builds.

My s2 couldn't make it 6 hours.

It's something about KitKat (not cyanogenmod specific, omni suffers too) that drains battery on certain devices.

I couldn't say exactly what the issue is, but it's not about letting the flash settle. I've flashed a nightly every day since I got my g2.
[AT&T Samsung Galaxy S II SGH-I777] SteveMurphy:
I understand. It's good to have dialogue like this, if for nothing else but to share knowledge and information. I will say KK needs a lot more tweaking to get the battery drain under control, but it is something that can be done if you have the time to do so.

Thank you for your input.
[AT&T Samsung Galaxy S II SGH-I777] nimper:
Maybe it's because the G2 has double the size of battery of the S2, combined with a better processor? You can't really compare the battery performance of a 2013 phone to a 2011 phone.
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
Thank you, thank you, thank you! I think this should be included in the op of every ROM! It's really unfair to a Dev to say "this ROM drains my battery too fast". It kills me that people root and run custom builds in their phone but won't utilize the tools they now have at hand to track down undesirable behaviors.

If a ROM (any ROM, not just this one) is causing your battery to drain abnormally, then it would be causing EVERYBODY to have abnormally high battery drain - not just a handful of people.
[AT&T Samsung Galaxy S II SGH-I777] Eric Karz:
Every rom on my SGH_S959G eats the battery life quickly If -data enabled over mobile network- if disabled it seems to last the day depending on how much I use it.

I also read about battery life on a lot of Samsung phones - so its not just this phone.
[AT&T Samsung Galaxy S II SGH-I777] cyril279:
I flash daily nightlies as well on the i777, and when I initially clean-installed OMNI (or CM11), there was a considerably higher drain the first day than the following days. I always attributed that to media scan activity, which would not need to happen during subsequent nightly updates.

I agree that KK battery life isn't what it was on JB, but based on my experience with the i777, I am a firm believer in the concept of allowing the firmware to settle in before judging battery life.

as [MENTION=3528604]nimper[/MENTION] metioned, I'm not sure of the validity of an lg g2 / SGII comparison.

---------- Post added at 07:52 AM ---------- Previous post was at 07:47 AM ----------

formatting sd cards to exfat was the workaround, but apparently cm11 doesn't fully support exfat.

more:

http://xdaforums.com/galaxy-s2/development-derivatives/-t2634693/post51050302
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
There are also other things that people are missing. We no longer need scroll caching since KK handle this in a more efficient way. This is one example of many that make KK run way smoother than Stock or even any JB Rom out there. Trust me I am a flashoholic and have tried everything under the sun for our phone. My experience with KK is a more stable and smooth experience. This comes with a consequence of more battery use.

There inst much that can be done other than prevent wake locks on a ROM level. Also the battery drain is not a wake-lock issue since I get deep sleep constantly while not using my i777. Where I take steps to increase battery life is with my kernel. For those that do not know, the kernel is a piece of software that allows the Rom/software interface and manipulate the hardware. I have tired to give the best of both worlds with my kernel. I wanted to give better performance and increase battery life while giving the end user the tools to adjust accordingly. I bet you could go and change all the kernel settings to increase battery life and your experience would still be smoother (Overall) than with a JB rom

Lastly I have been throwing around the idea of building a kernel for JB as well. Anyone interested? I am glad we are able to discuss such things here in this thread. I encourage it. Thanks guys for keeping it cordial!
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
You may need a new battery. I get great battery life on this phone with every ROM I've tried after using it for a few days

Sent from my SGH-S959G
[AT&T Samsung Galaxy S II SGH-I777] iXNyNe:
Just wanted to report that my charge port replacement for my i777 arrived and replacement was a breeze. I no longer have a Sim card to test reception (new phone uses smaller Sim) but Wi-Fi works and charging works.
[AT&T Samsung Galaxy S II SGH-I777] tribaldoc:
I would be interested in a Jb kernel, I'm still running cm10 nightlies.
[AT&T Samsung Galaxy S II SGH-I777] Eric Karz:
did you ever have to replace yours? I thought about another battery but RenderB got my (mind)head looking at a Moto G (xt1032)so I got that instead.
[AT&T Samsung Galaxy S II SGH-I777] azeem40:
I will need to do that as well. My charging port is messed up. Seeing how easy it was for you, I hope it is as easy for me.
[AT&T Samsung Galaxy S II SGH-I777] a_lleras:
It will be. It's mostly unscrewing the back cover screws, a few more on the motherboard and charger port board, disconnecting and unsticking the flex charger flex, which is glued to the case. Most guides will tell you to remove the mainboard, but I didn't, I just unscrewed the screws on the lower part of it and lifted it to proceed and remove the flex, no trouble.

Oh, and the charger port board has a slightly tricky way to get out and fit, so be careful ;)

Sorry for going off-topic :angel:
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
Not yet

Sent from my SGH-S959G
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
Glad to hear! You wont find better for the money. I like the fact that the hardware can be pushed further than other phones. I like to tinker and this phone is a breeze to operate and mess with. Also as I have said performance is great and battery life if phenomenal!

Dont sweat the topic. As i have said before, if the thread is staying educational and respectful, I don't care what the topic is. I can easily use the search function to find the info I need. I dont need to manually go through each page. Thank you for your info!

I have been working on a kernel for both the i777 and Moto G and have been dealing with issues for both. Since it takes about 35 minutes to build a kernel and 3.5 to 12 hours to build the Rom, I am trying to finish my kernel work before building the next rom. I apologize for the wait guys.

Kind Regards,

Render
[AT&T Samsung Galaxy S II SGH-I777] Eric Karz:
yes but I think there is problem - when I use data over mobile both phones dip in to the battery - I use my cam and view cams (set up on RV mirror in car).

I seen this posted . maybe my problem has always been with the cam?

http://www.ibtimes.com/google-worki...android-devices-kitkat-qualcomm-chips-1559771
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
Are you talking about on the Moto G?
[AT&T Samsung Galaxy S II SGH-I777] Eric Karz:
well both (ST S2 and moto g) do the same thing -today was the first time being out long enough to try it (moto g) data enabled over mobile

Camera is something I use a lot of the time . for live chat With video .

Reading about phones and the battery drain seems to run across many types of phones running kitkat .
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
Well my battery life has been leaps and bounds better than my S2. Another thing I like about the Moto G for example:

when my phone is at 70% battery life, I can plug it in for the drive home or for 15 minutes and my phone will have charged about 1.25 percent per minute.

The phone charges so fast even without "Fast Charge" enabled.

Also I love the hardware since I have the ability to tweak my software and settings more than my S2. If you haven't installed a custom recovery > Rom > kernel then you are completely missing out. I hope to convince more of you amazing S2 users to come with me to the Moto G since I will miss the great community that we have built here.

Literally the i777/S959G XDA Threads were dead. When KK came out there was nothing going on.I knew very little about Dev'n then but wanted to learn and bring KK to my phone. Then I started porting the KK rom and sharing the work. From there i built onto my knowledge and now build from source. Over that time our thread goes from completely dead to a group of people or community striving to help each other. I love that. I thanked a Dev for one of the kernels for the Moto G and PMed him. I still have not heard back and he completely ignored me both times. It doesn't hurt my feelings, I am just showing the contrast. I would love to see some familiar names over there. I plan on running a similar thread over there like the Rom Dev Discussion one here. Except it would be for the kernel at first. I want to teach others and have them teach me what they have learned in turn. At the moment this sort of community is lacking for the Moto G.
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
I might just have to get a moto G now... That was inspiring :):beer:

Sent from my SGH-S959G
[AT&T Samsung Galaxy S II SGH-I777] SteveMurphy:
Agree. It's because of RB that our phone lives beyond 4.3. We can't thank you enough for your contributions.
[AT&T Samsung Galaxy S II SGH-I777] dollardollar:
Just thinking of trying this ROM, do I need to get SuperSU from Playstore or is it same as CM's Superuser (default in the rom)
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
They're not the same

Sent from my SGH-S959G
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
I would definitely install SuperSU from the Play Store. It works way better in my opinion.
[AT&T Samsung Galaxy S II SGH-I777] dollardollar:
I'm on regular CM 10.2 & the default superuser in the Rom is way more that enough for me. Now coming to this, does it have the same superuser as cm's or do I need to install an separate supersu from play store to keep up.
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
To me, it seems like I had root issues using the builtin superuser. It wasn't til I installed SuperSU by Chainfire that I was able to overcome these issues. It may be different with my newer builds but thats how it was in the beginning.
[AT&T Samsung Galaxy S II SGH-I777] a_lleras:
Well, that got me.

I've been around here for quite some time and sometimes it crossed my mind to get into android development. Now I see this just when I'm trying to learn as much as I can (still am a complete noob), and it's nice to see someone willing to, in your words, teach and have others teach you. I'm my opinion that's the best way to learn, even more than reading guides and all that stuff.

Don't doubt I'll be looking for you in the moto G forums, if I get one. It's an awesome device for its price tag and seems to have quite some life ahead.

Cheers
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
I have been stumbling lately. I cant seem to get on a roll. i have been trying to work out why I am having boot issues with the i777 kernel. I am trying to implement new code for my Moto G kernel. Builds all the way to the end and errors out. And lastly, I am waiting to get the kernels built before I dedicate 15-18 hours of build time with my build machine and ripping another CM nightly. I like the new slim recent panel and have implemented that in the new rom. I just need to build now. I just wanted to give a heads up and let everyone in on whats going on. I am now rebasing my i777 kernel source to a point that I know will boot. I plan on building and uploading new kernel builds today. After that I will be focusing on my Moto G kernel. Once thats done I will rip a new CM11 build. Thanks Guys!

Render
[AT&T Samsung Galaxy S II SGH-I777] shinji257:
So I'm pretty sure I know what's up but my phone just did the Cyanogenmod first time setup and a bunch of the user settings were wiped. This happened on 10.2 as well. Do you think this is due to the NAND chip issue that our phones are suspect to? Mine came back as affected when I ran the one app so I've always been weary on doing full wipes with my phone in general.
[AT&T Samsung Galaxy S II SGH-I777] cyril279:
Everytime someone brings up that app, it says that they're affected, and the device is fine. I've come to understand that it's really trying to tell us that i777 nand is succeptible to corruption whether it has actually been corrupted or not. Once the nand has actually been corrupted, you end up doing the creepyncrawly recovery sequence, or sending it off to mobile-tech videos. Either way, you won't need an app to tell you your nand is corrupt. If you're booting all the way into any firmware, I'd bet your device is okay.

wiping /data, /system, /dalvik, and /cache are paramount to trouble free operation when you are changing firmware, changing firmware versions, or trying to troubleshoot issues. You will certainly lose settings when doing so, but the gains long-outweigh the annoyance of crashing apps and devices.

happy flashing

-Cyril
[AT&T Samsung Galaxy S II SGH-I777] shinji257:
Well that was a long time ago. The reason I think I'm actually getting real nand corruption is because during this last usage I noticed about 500mb of data in lost+found folder which is never a good sign imo. It also has issues with the radio crashing and dumping log which is also an issue in itself.

To be honest I'm not new to this. When I changed roms (going from CyanogenMod 10.2 to 11) I did a full wipe of all partitions. I even wiped the sdcard space. Once that was done I reinstalled. That was like 2 weeks ago.
[AT&T Samsung Galaxy S II SGH-I777] dollardollar:
Is there any new build coming up and there is no changelog for 25th's file in your folder

Facing random hangs in 24th, do I need to change some Settings/Performanance like governor settings or Scheduler
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
Yes, I have been saving my build machine for my dev work but am still having some issues for my Moto G kernel. Regardless of anything I decided I will run a new build this weekend. There may also be some minor changes that I make as well. As for the changelog, I usually post those but must have forgotten when I moved to MediaFire. It would have just been a CM Source Sync at that date if you are interested.
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
I will be kicking off the build tonight. Its past due to update and stabilize our CM11 roms. there have been numerous stability changes since a month ago. Also, I was looking at adding Slims new recent window. What do you guys think?
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
Slim recent is nice. Seems like it's a little easier on the phone. I've started using omni switch myself. It's like recent apps but then it also has a list of favorite apps in a drop down menu. Would it be possible to add that in?
[AT&T Samsung Galaxy S II SGH-I777] dollardollar:
That is a very great idea, actually saw the demo video few weeks ago and searched the ROM for our phone, unluckily there weren't any available.

This addition would be like a small dream come true. Thanks, eagerly waiting for it.:highfive:
[AT&T Samsung Galaxy S II SGH-I777] dollardollar:
Just changed runtime to ART and its just amazing, the speed and response time has increased drastically and is very noticeable.

Seems almost every app i have is compatible with it, expect xposed.

But after changing to ART the folder in data/dalvik-cache has increased to 945mb, occupying majority of internal storage.

Should I be having that for ART to run or can I delete it.
[AT&T Samsung Galaxy S II SGH-I777] SteveMurphy:
If you use ART, that's the tradeoff, it uses a lot more data so you need plenty of free space in order to use it. If you want to keep seeing the speed you have leave the folder alone - if you delete it the runtime will simply rebuild the cache.
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
i am building right now. Sorry it will take forever with my dual core build machine. lol I have been using LiquidSmooth on my Moto G and I have to say i am impressed. It has enough features but still runs great. I am really close to just start building Liquid for the i777. Would be much easier. lol What do yall think?
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
Bring it on! I love to try something new.
[AT&T Samsung Galaxy S II SGH-I777] david72262:
+1

....
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
Well there are alot of things there that I want to have so what i was thinking was building Liquid and tweaking it to our prefered settings.
[AT&T Samsung Galaxy S II SGH-I777] SteveMurphy:
I ran Liquid a long time ago, when it was supported on the i9100 side; it's a pretty sweet rom! It would be great if you decided to bring it to us.
[AT&T Samsung Galaxy S II SGH-I777] cyril279:
liquid rendered smooth

smooth rendered liquid

rendered smooth

-whatever man, just bring it.
[AT&T Samsung Galaxy S II SGH-I777] desteele:
Would it still be based off of 4.4?
[AT&T Samsung Galaxy S II SGH-I777] SteveMurphy:
Yes.
[AT&T Samsung Galaxy S II SGH-I777] desteele:
Still churning?
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
I had a couple build errors. I was way too busy last night (2 jobs) to work through them real quick. I will kick it off when I get back home.
[AT&T Samsung Galaxy S II SGH-I777] d_j_l:
why don't we ask sam3000 to flip the cm11 switch in cyanogenmod so that Render has less pressure and more time to play with his optimization and kernel?
[AT&T Samsung Galaxy S II SGH-I777] desteele:
? Sorry, wasn't trying to apply pressure, just noticed it went 2 days with no word.
[AT&T Samsung Galaxy S II SGH-I777] david72262:
That would be nice anyone know sam

....
[AT&T Samsung Galaxy S II SGH-I777] Eric Karz:
Put the Motot G down and back away from the phone. lol

I am not even rooted and I cant put down .

Can the battery saver be ported over to use on the sgs2?
[AT&T Samsung Galaxy S II SGH-I777] azeem40:
What battery savers mode?
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
I think he's referring to the moto G
[AT&T Samsung Galaxy S II SGH-I777] azeem40:
Oh, that. I remember now.
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
The Build is steadily going now. I was running into issues with Slim_recents and it just created a vortex of time suck. So I just reverted it. The next build I do will be of Liquid Smooth. It will have all the goodies I have been adding to my wish list so I figured why keep wasting more time making it work.

The next order of business is upgrading my build machine. Two things I will be changing asap are updating my Hard drives and setting up CCACHE to drastically increase build speed. Problem with CCACHE is you need a crapton of free space which I haven't had anyways. I am looking to change that. What I am planing is doing builds of both CM11 and Liquid. I would just do straight up nightly builds with them. Once again the difference between my builds and stock builds would be the toolchain and CFlags I use which bring out better performance. Of course I will still be doing my kernel work. Just wanted to drop an update. I will upload asap.

Thanks,

Zac
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
Is this build going to be liquid smooth or cm?
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
CM til I install the new Hard drive. Then I can download another repo
[AT&T Samsung Galaxy S II SGH-I777] dollardollar:
Great, kind of like CM base and addicted to it. So, happy as of now :D
[AT&T Samsung Galaxy S II SGH-I777] desteele:
---------- Post added at 10:31 AM ---------- Previous post was at 10:29 AM ----------

Just so you have a "dunce question of the day" to answer, if I chose to go the LS route, I'd have to install a new kernel, then a clean install of that install package?
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
You just flash Liquid then my kernel on top.

New build uploading now. Its just a regular nightly build.
[AT&T Samsung Galaxy S II SGH-I777] azeem40:
Thanks man! I am downloading it now. :)
[AT&T Samsung Galaxy S II SGH-I777] desteele:
Getting lots of "Unfortunately, "XXXX" has stopped" messages. Not even able to get fully booted.
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
Would xxxx happen to be Google play services?
[AT&T Samsung Galaxy S II SGH-I777] desteele:
DSP Manager, Theme Provider, incallui (sp?) and no amount of hitting "OK" made them go away. Rebooted into CWM, wiped cache and Dalvik again, reinstalled new ROM and rewiped both. Optimizing now....we'll see what happens. If it chokes again, I'll just go back to R8.

---------- Post added at 10:42 PM ---------- Previous post was at 10:35 PM ----------

I switched to ART a few days ago to see if it was any smoother...what are the chances that is the source of my problem?
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
I'd say the chances are very good. Switch back to dalvik and see if that helps
[AT&T Samsung Galaxy S II SGH-I777] desteele:
Unfortunately, I can't boot into the phone to do that... :-/ trying to go back to R8 now. But I resorted to a factory reset, that should have done it for me, yes?

Sigh...made it back, alllllll customization is gone. Crap. Never could get the updated ROM to boot.
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
If all else fails, dirty flash your ROM
[AT&T Samsung Galaxy S II SGH-I777] desteele:
That's what I did first, per OP... twice actually, then did a clean flash, no love, then clean flash back to last version, finally got it back.
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
Glad you got it back up. Are you using the stock kernel or renderbroken's custom one?
[AT&T Samsung Galaxy S II SGH-I777] desteele:
Render's.
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
Im sorry for your troubles. It may be an issue since the roms are so far apart in date. Has everyone been having issues with the newest Rom?
[AT&T Samsung Galaxy S II SGH-I777] Eric Karz:
i was on 2-25-2014 with Render-KK-03-22-TWRP.zip

on install of cm-11-20140403-UNOFFICIAL-i777.zip

i kept getting a app stop error over and over until

i rebooted in to TWRP and reinstall

Render-KK-03-22-TWRP.zip

after that i can use again with no error
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
Glad you got it going :thumbup::)
[AT&T Samsung Galaxy S II SGH-I777] RenderBroken:
What about you? Are you having any issues?
[AT&T Samsung Galaxy S II SGH-I777] razen_kain:
No sir! I had one freeze right after doing a full wipe and not even a hiccup since. Been using zanezam optimized and I'm very pleased with the performance. I'm having some battery problems on mobile data but i don't think it's kernel related