yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 Android Development (Snapdragon)] mmui90:
Yeap. But just in case I flashed it again, we'll see how it goes the next time I get a call.

I used to lose about 2% overnight unplugged on Touchwiz. CM12 definitely drains a lot more - I"m not sure if it's Lollipop's Miscellaneous wifi battery drain contributing to this though.

I know on my previous Note 3 running Temasek CM11 I could get flat line idle on battery overnight and lose 1% over 8 or 9 hours though. But granted that was a very mature ROM with a very mature kernel as well.
[Galaxy Note 4 Android Development (Snapdragon)] DBDPCG:
On latest build, nfc disabled and with pa pico gapps I have absolutely no lag , again I think what causing lag and reboots is something in the complete package of gapps , just flash pico gapps and see if problem persists.

I get around 4:30 hours of battery life as opposed to 6 hours on stock , no idea on the overnight drain as I used to charge overnight on tw
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
So, Slayher came up with the suggestion to turn the option "Scanning always available" to off (settings/wifi/menu/advanced). I just did that, also turned wifi and mobile network off an and ran a test for 30 minutes and if I understood and calculated everything correctly, this would mean that the drain for 8 hours now would be 3.7%.

Going to bed actually now so also going to test this again for 8 hours and see if this holds true :) But it looks promising !
[Galaxy Note 4 Android Development (Snapdragon)] albireox:
Scanning always is in fact turned off by default.

After about 7 hours of sleep, with Wi-Fi, data and sync off it seems I lost about 10% of battery (scanning always was turned off).
[Galaxy Note 4 Android Development (Snapdragon)] jazzypit:
This morning
[Galaxy Note 4 Android Development (Snapdragon)] jazzypit:
Sorry this screen is for yesterday
[Galaxy Note 4 Android Development (Snapdragon)] jazzypit:
Screen with lollipop stat. Just for précise data Wi-Fi disconnect
[Galaxy Note 4 Android Development (Snapdragon)] albertoa97:
Yesterday SOT with wifi and 3G data. And i still had 10% of battery remaining.
[Galaxy Note 4 Android Development (Snapdragon)] albireox:
Looks pretty good.
[Galaxy Note 4 Android Development (Snapdragon)] albertoa97:
Yes, but battery today is very bad. 3G drains a lot :/
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
So tonights experiment drained 12% in 8 hours sleep, way too much. I checked the Android Lollipop batterystats logs, it shows 'unaccounted' as the draining category. That at least tells us it's not some wakelock. It's not that the device is awake. It's sleeping allright. But it's draining in its sleep ... So I'm guessing it's some hardware that's not turned off correctly, something like that ... Will keep researching into all this of course, until we've solved it :)
[Galaxy Note 4 Android Development (Snapdragon)] DBDPCG:
That's good to hear that you're working on it , let us know how we can help ...
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
on 8 hours sleep:

Estimated power use (mAh):

Capacity: 3220, Computed drain: 131, actual drain: 386-419

Unaccounted: 255

Cell standby: 73.2

Idle: 45.8

Screen: 5.92

Uid 1000: 2.67

Uid 0: 2.57

Total full wakelock time: 27s 715ms

Total partial wakelock time: 34s 929ms

Mobile total received: 0B, sent: 0B (packets received 0, sent 0)

Phone signal levels:

great 8h 49m 25s 140ms (100.0%) 0x

Signal scanning time: 0ms

Radio types:

none 8h 49m 25s 140ms (100.0%) 0x

Mobile radio active time: 0ms (0.0%) 0x

Wi-Fi total received: 0B, sent: 0B (packets received 0, sent 0)

Wifi on: 0ms (0.0%), Wifi running: 0ms (0.0%)

Wifi states: (no activity)

Wifi supplicant states:

disconn 8h 49m 25s 140ms (100.0%) 0x

Wifi signal levels:

level(4) 8h 49m 25s 140ms (100.0%) 0x

Bluetooth on: 0ms (0.0%)

Bluetooth states: (no activity)

So, phone is sleeping allright, no noticable wakelocks, no wifi, no bluetooth ... Yet huge drain in 'unaccounted' category. Weird ..
[Galaxy Note 4 Android Development (Snapdragon)] dlads:
3% overnight

---------- Post added at 04:11 PM ---------- Previous post was at 04:10 PM ----------

Need to allow a complete discharge but my previous charge went from 1pm until today at midday and I still had 20% battery is definitely getting there.

---------- Post added at 04:39 PM ---------- Previous post was at 04:11 PM ----------

1 - 2% for me, but then again i only lost 3% last night with your latest rom and with all the tweaks i've made.

My screen takes the most battery, i've reduced brightness and switched off anything automatic. Will see over the next 24 hours how it's helped, for me battery life is definitely manageable.

---------- Post added at 04:44 PM ---------- Previous post was at 04:39 PM ----------

That doesn't sound like Gek's build, it sounds like the other one which requires the mixer paths xml document to be pushed to system / etc.

The build which originated from this thread already has the correct mixer path so it wouldn't be needed, as far as i can see, you're flashing the wrong rom.

This is the build everyone is flashing

http://xdaforums.com/showpost.php?p=58071905&postcount=306

Don't forget to flash the blobs and G-Apps after initial installation in recovery.
[Galaxy Note 4 Android Development (Snapdragon)] albertoa97:
For the moment, sadly, i'm switching to TW based rom because battery with 3G/4G drains too much but with wifi is really good. Hope to install this rom again in a few weeks. Oh, [MENTION=3296134]gekkehenkie11[/MENTION] i had problem with in-call sound, in 3 days with this rom i had this bug only once.
[Galaxy Note 4 Android Development (Snapdragon)] dlads:
Strange I don't have that issue, my 4G is constantly on, except overnight (when no one needs it) drain has been quite normal.

Been using autostarts to eliminate apps which I either don't need to start up at those times or don't need.

Titanium to remove apps I no longer need.

Set CPU to set CPU and alter governor Min 422MHz Max 2265MHz, governor interactive, 69.8% of the time is spent in 422Mhz, I could go slower but I get a slight lag when booting phone from a lock, rest of the time is spent at 1190MHz.

No greenify, no battery mods, no facebook (which is a hog by the way) No google plus (which is as bad as facebook)

Battery temp at idle 27.1C

Easily making 24 hours, been using WiFi, 4G, location, Bluetooth, I haven't even disabled NFC.

Might be something you're doing?
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
So you're saying you only have 3% drain at night with my build ? Which app do you use to set CPU speed ? And you could you explain everything you did and all your settings ? I think this could be very helpful in pinpointing the problem.
[Galaxy Note 4 Android Development (Snapdragon)] wonderwout:
Daily driver for me, only small issue is mobile network connection is acting weird. It is workable but it takes way to long to detect network after boot, already unlocked the phone before PIN code is triggered. Also it defaults to 3G and has a hard time selecting 4G. It should select 4G immediately at boot, as that behaviour is forced by the network. I know that because my job is configuring this network.

Maybe this network behaviour also impacts battery? I am on latest blobs and 11/09 L gapps.
[Galaxy Note 4 Android Development (Snapdragon)] mmui90:
Don't take me for a moron please. I've followed Gek's instructions to flash his build.

[MENTION=3296134]gekkehenkie11[/MENTION] - Here are screenshots of my battery life overnight over a period of about 10 hours or so. I lose 2% per hour idle, wifi off, low (to terrible) LTE signal, everything on as normal.
[Galaxy Note 4 Android Development (Snapdragon)] dlads:
I'm not taking you for a moron at all.

But I find it odd that everyone elses audio is ok and yet yours isn't?

But hey if you're going to be presumptuous then I'll leave this conversation right here, I was trying to help.

---------- Post added at 08:55 PM ---------- Previous post was at 08:40 PM ----------

Sure no problem (Would you believe I actually wrote all this out once before and I closed my browser :( classic )

ROM

-------

CM12 Unofficial build 10,1,15 with blobs.

Micro G-Apps from PA

Philz recovery

Set CPU

-----------

MAX - 2265 - MIN - 422, Governor - Interactive / ROW, no profiles, no app profiles.

The reason I went for 422 instead of 300 is because it will scale straight to 1.7GHz instead of 1.2GHz which is what it scales to when set to 422MHz.

AutoStarts

--------------

Turn off all widgets instead of the ones that you need

Turn off any apps from starting up unless you need them (I wrote out the whole list earlier but it'll take about an hour to do it again)

A lot of the apps in autostarts can be completely disabled.

Switches and sliders

--------------------------

Data - I have data on all the time and rarely use wifi unless i'm downloading something massive.

Location - off unless i need it for driving

Wifi - always off (see data)

BT - rarely use it.

NFC - off (haven't removed the app)

Brightness - Auto brightness off

Brightness - roughly 25%

Ambient display off

Double tap to sleep - off

Wake on plug - off

Buttons - on-screen nav bar - on

Everything else off

Battery saver - off

System profiles - Default

Input - Swift key.

Performance - Balanced

Enable per-app profiles - on

My app list obviously won't be the same but i tend to avoid free apps, especially those with adverts, I've recently removed facebook and just use a bookmark, this app has a massive footprint and it hits the battery so hard, plus their terms and conditions are a joke.

Google plus is another one which hogs the battery.

My home screen has 1 digital clock two apps, next page i have five folders with apps segregated, power amp in 3 x 5, next i have business calendar, 3 x 5 with five folders, then on the last page I have a 5 x 5 business calendar.

I'm using launcher 3 with the stock transition with no scrolling wallpaper, no google now, no "Ok Google" detection, history off, annonymous usage off.

I've recently added greenify which is hibernating Amazon, Bus checker, Business calender pro, faceniff, Fotmob, Here Beta, My EE, Power AMP, Whats app, XDA premium 4 and Zedge.

I don't always use the proper charger, I never charge overnight and I never let my battery get too low.

I don't use battery savers, no battery stats unless I have to, no clean up utilities and I always perform a full wipe and SD clean up prior to flashing a ROM.
[Galaxy Note 4 Android Development (Snapdragon)] Planet X:
May be the solution for better battery life will be a lollipop radio and a new RIL which belongs to each other. Samsung roms has always been depending on RIL and radio combination for good battery life in the past. Right now we use a lollipop rom with a KitKat modem.
[Galaxy Note 4 Android Development (Snapdragon)] dlads:
That's very true, I remember the s3 days, there was one kernel which was rapid, great battery, but had the emmc chip bug. Can never have everything :)

It'd definitely help having an optimised radio.
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
So just to be sure, you're using this app: http://www.setcpu.com/ ?

Cause I see there are more with that name. THanks.

*EDIT* yeah I just bought the app, this seems to be the one you were talking about. Going to try it, only thing I've changed in my setup is adding this tool with the setting you said, going to see if this changes my overnight usage cause if it does, it's a huge hint into the direction we should look for a solution (currently i'm thinking it's because of some hardware we are not putting to sleep (correctly) but if that were true, this cpu settings wouldnt even matter).
[Galaxy Note 4 Android Development (Snapdragon)] dlads:
That's the one, been using this since the hero. I'm not saying that this is the do all and end all of all our battery troubles I'm still trying to see what I could do to try to eliminate drain myself, this is just what I've found up until now. Setcpu is an old one, but it's light and still is of the best
[Galaxy Note 4 Android Development (Snapdragon)] dlads:
One thing I can't work out.

I got rid of Google plus by uninstall it via titanium, but Google play thinks it's still installed? So does the system? It's not in the list in titanium but is in the play store as installed.

This app was causing my phone to drain before on a previous build, can't seem to shift it, disable it yes but not remove
[Galaxy Note 4 Android Development (Snapdragon)] AMDPOWERFIST:
Manually search for the APK file in the system folders, and delete it there?

You'll need something like Root Explorer or some file system app with root access to do so.
[Galaxy Note 4 Android Development (Snapdragon)] LOU7illest:
Is there a way to fix the issue when you pause music and then go to replay the track that it won't work.
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
Eh ? That issue has been solved already in blobs7.

Anyway ,did another test, CPU set with the settings speciified, exact same drain, 12%. Which to me makes a lot of sense, since it's 'unaccounted' and phone is at sleep it would be really weird if CPU speed would matter at all...
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
testest
[Galaxy Note 4 Android Development (Snapdragon)] DaanJordaan:
Just a heads up, there are some Nexus 5 users that also experience bad battery life on lollipop.

Thread here

Might just be lollipop?
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
Yeah I realize that's a possibility too... Hoping Samsung will release Lollipop soon, so we can compare (and also use their binaries like the NFC binary)
[Galaxy Note 4 Android Development (Snapdragon)] dlads:
Cheers mate.

I've already deleted it from system / app but it's stayed, any other location where it might be?
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
Hey mate, did you run some more tests last night ? Like, I believe you but then again, 3% overnight drain on current build, it seems so unlikely ! That cpu set tool didnt make any difference neither ...
[Galaxy Note 4 Android Development (Snapdragon)] albireox:
I don't think setting the CPU limits makes any difference. In fact the min/max frequencies are used even if no CPU control software is installed (at least PerfMon shows they are used). Strange thing is that the kernel (governor?) tends to use maximum frequency too often for my liking and thus, it consumes a lot of power.
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
yeah that whole tool doesnt seem to do anything. I have a simple test: use UC browser, look for a website with long text and scroll up down up down etc and see how long it takes for the battery to drain a percent. On stock this is 2.5 minutes, on CM12 I keep getting 1.5 minute, regardless of how I set the cpu set tool.

---------- Post added at 05:15 PM ---------- Previous post was at 05:02 PM ----------

I see that I had account syncing still on, I just turned that off. I also turned of 'stats collection' in privacy. I doubt all this makes a difference though ... I do think thought that the gapps version could matter...
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
WHAT .. THE... F*CK ... :)

I just ran my little browser battery test like I described above, now with those new settings and all of a sudden it's 2.5 minutes on CM12 too !?!??! Going to test some more ...

*EDIT* Hmmm false alarm, now it's 1:30 again ... maybe it's some temp related scaling though
[Galaxy Note 4 Android Development (Snapdragon)] :
my input from the tmo thread: (in general what I was saying there that there are a lot of wakelocks right now which are draining the battery..for example the nfc service that didn't let my device go into deep sleep at all. but there is more then that, bc now I got to the point where I have almost no wakelocks and the battery is still bad compared to touchwiz.) -

''I tried to figure out the root of the cause for it but so far with no success. I got to the point where I have almost no wakelocks and the phone is in constant deep sleep, however when the phone is in actual use, and the screen is turned on - its like its consuming more power then on touchwiz. tried lowering with fauxclock the frequencys to min 300 and max 1.7 instead of 2.6(helped with the warming as well) and still only get 2.5-3SOT max..

second point is that i'm not sure if its only when the screen is actually on or when the device is out of deep sleep- bc when I was using 8 tracks with my headphones and the phone was in my pocket playing music and it still lost too much battery % compared to touchwiz.''
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
Yeah I solved all of my wakelocks issue's too, I dont have (significant) wakelocks. However battery use both in deep sleep as in usage are significant higher on CM12 than stock.
[Galaxy Note 4 Android Development (Snapdragon)] :
another thing that worth looking into is mpdecision, and if its integraded in CM and if it was done well. its the part which controls the cores themselfs(turning them on, or off). in touchwiz mpdecision is the default that comes with the device. with CM12..I have no idea(might be intelliplug, but I don't think so after looking how the cores/frequencies work).

I -think- there is an issue with this part bc if you look at the cores work..no matter what the load is 2 are active.always. in touch wiz you can see sometimes 1 core active if the phone is really idle and sometimes even

3-4

cores if the workload is heavy.

another thing that is definetly not working properly is the governors: interactive was jumping to max frequency fast(thought to myself it might be the actual gov settings) but then I tried conservative which should be battery friendly and without great performance. well it didn't, act battery friendly as well and even the conservative gov behaves like on demand. on touchwiz(I can go back on my nandroid backup and take a screen recording if it helps) conservative usually stays on the min 300Ghz mark and jump verrry slowely. when there is workload here its jumping almost instatly to 2.6Ghz. so gov prob needs optimizations as well.

thats all the things I've noticed so far.
[Galaxy Note 4 Android Development (Snapdragon)] dlads:
Tbh I did, but didnt even get close to 3% was more like 9 or 10 this time, funny because I haven't changed anything.. I did a bit in autostarts but that's it. Sorry mate it sounds like I'm making porkies now.

Do you ever find that your battery sticks on a percentage for quite some time? I'm thinking that's what it might have been, when you asked me just that morning I'd just tested how much had drained overnight. For whatever reason I now can't do it, going to check again tonight.

---------- Post added at 08:43 PM ---------- Previous post was at 08:40 PM ----------

I don't think it's the CPU limits at all, I think it's how the CPU is scaled, if we can control what apps do with the CPU then that would greatly help with our batteries, easier said than done I know, I'm going to have a go at profiles tomorrow after work, it shouldn't be rocketing up to 1.7GHz just by touching the screen, or maxing out just because you decided to browse the web.. For me the scaling is what needs to be looked at, up threshold is a good place to start.
[Galaxy Note 4 Android Development (Snapdragon)] knuckles1978:
[MENTION=2880355]dladz[/MENTION]

What's needed is a custom kernel. I've got a custom kernel (alucard) on s4 lollipop, it uses a kernel control app called stweaks which lets you select which frequency the CPU jumps to when you touch the screen, and for how long, as well as about a hundred other settings.

Are there any custom kernels for note 4 with options like this?
[Galaxy Note 4 Android Development (Snapdragon)] dlads:
Yea I've used stweaks can't remember the Dev name, had the same one on the s3. That actually would a lot with scaling too though so same track.. I completely agree, just need a kernel Dev now for the note 4. Not too sure if the ones I've seen will work on cm12

---------- Post added at 09:17 PM ---------- Previous post was at 09:16 PM ----------

Siyah kernel it was, I used a different one myself, and lol can't remember that one either haha.

---------- Post added at 09:28 PM ---------- Previous post was at 09:17 PM ----------

Galaxsih the creator of that kernel was, superb piece of coding, performance was stunning.

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

If he could make one we'd be sorted.
[Galaxy Note 4 Android Development (Snapdragon)] Styl1sh:
Dual sim with this rom?

Guys, is it possible to flash this rom on a N9100 (dual sim)?

It uses the same snapdragon... Or there will be a problem caused by different modem?

Thanks for every info!
[Galaxy Note 4 Android Development (Snapdragon)] gekkehenkie11:
So I just did an experiment, put my phone in airplane mode and just let it rest for 3.5 hours. Battery dropped 5%, which corresponds to my 12% overnight usage for 8 hours. In other words, airplane mode or not, doesnt even matter ! So it's not RIL/network related it seems ... Needless to say I again didnt have any wakelocks, phone was really asleep ...
[Galaxy Note 4 Android Development (Snapdragon)] knuckles1978:
The plot thickens ;)

Time to start killing stuff until the problem is found?...
[Galaxy Note 4 Android Development (Snapdragon)] mkozlowski:
Root

Do you know how i can bring the root back?

i have version from 10th of January and i had root before i flashed CM and now it seems to not working at all.
[Galaxy Note 4 Android Development (Snapdragon)] Planet X:
Just check out this instruction: https://www.klingt.net/posts/root-access-in-cyanogenmod-12/

---------- Post added at 12:52 PM ---------- Previous post was at 12:47 PM ----------

Interesting. Does [MENTION=2457777]slayher[/MENTION] experience the same issue/drain on the TMO build? May be we need help from an experienced kernel dev like [MENTION=3332811]faux123[/MENTION].

Edit: But it does not seem so bad at all. See my screenshot. I did a format /system and flashed again with Blobs7 and with L-Gapps from Banks. You find them on Euroskank. Link: http://fitsnugly.euroskank.com/?rom=banks&device=gapps i use Lux app for screen brightness. It's much to bright without.
[Galaxy Note 4 Android Development (Snapdragon)] prfraczek:
where i can get this version?
[Galaxy Note 4 Android Development (Snapdragon)] Planet X:
Everything is there: http://xdaforums.com/showpost.php?p=58071905&postcount=306

Wipe to " Install new Rom" in Philz recovery and than flash Rom, Blobs7 and Gapps. Enjoy. Give thanks to [MENTION=3296134]gekkehenkie11[/MENTION]
[Galaxy Note 4 Android Development (Snapdragon)] mkozlowski:
DPI

hi there is any possibility to change DPI to 640x ? (default for Note 4 on TW )
[Galaxy Note 4 Android Development (Snapdragon)] albireox:
Playstore->textdroider
[Galaxy Note 4 Android Development (Snapdragon)] Planet X:
Or build.prop. Density is set to 560. Change it there to 640. I like 640 more than 560 too. I'm not a young guy anymore :).
[Galaxy Note 4 Android Development (Snapdragon)] albireox:
Yeah, good thing that all the programs look good no matter what the DPI - at least on AOSP/CM/X-Note :D.

le : my useless post of the day :)
[Galaxy Note 4 Android Development (Snapdragon)] mkozlowski:
battery drain

it is normal that my battery after set it up going low so quickly? 5 minutes chat on facebook and 10% left or i Should disable something?

---------- Post added at 02:24 PM ---------- Previous post was at 02:20 PM ----------

I love Samsung camera app (HDR etc.) there is any app you know, it can be like almost the same like samsung's apps? especially with HDR feature
[Galaxy Note 4 Android Development (Snapdragon)] albireox:
Please take some time and read the last couple of pages or so, you'll find all the answers. It's not that much.

Battery is a problem on cm12 at this time, it will drop pretty quickly at first until the synchronization is done.

Also, you should try to disable NFC which drains battery.