yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] Theliels:
Google Play Service have always a noticeable battery Drain, and their contribution is always in relations with whats services from Google Play Service you use:

Location? (responsible for most GPS drain)

Backup?

Play Games?

...

6% on GPS is "normal" if you have enabled most of all Google Services
[Nexus 5 Original Android Development] keith.mcintyre26:
Does anyone know how this will impact CAF? http://ausdroid.net/2014/07/03/qualcomm-takedown-githubs/
[Nexus 5 Original Android Development] Fusionalex:
Yes but it never even appeared before..
[Nexus 5 Original Android Development] minnysota:
I agree this is much different than normal Play Services drain. We're talking zero sleep time.

Here's the latest code review from CM that's reporting problems:

http://review.cyanogenmod.org/#/c/66894/

And it's happening on other devices:

http://xdaforums.com/xperia-z/orig-development/kma-cm-11-101-sony-kernel-blobs-t2708325/page40
[Nexus 5 Original Android Development] marcusva79:
Mine seems good so far ?. 6/19 gapps from banks.
[Nexus 5 Original Android Development] Fusionalex:
I'm not sure if it's fixed now but it definitely got better after wiping data of the Play Services :) Still it's not as good as it was before the update :(

K never mind, I just rebooted and it's draining again...

Idk why this happens after almost every update of play services...
[Nexus 5 Original Android Development] kellybrf:
in a typical 13 hour day my play services will show a minute or two of CPU used and 5-7h of awake time. it's generally always second on the battery list to screen. I've posted about it before with no replies, but again this has been going on since Cm and the nexus 5
[Nexus 5 Original Android Development] topgeardave:
Just got the latest play services update! Damn my battery is draining fast! CM have already implemented a fix for tomorrow's nightly, so we just have to wait 24 hours :)
[Nexus 5 Original Android Development] Fusionalex:
That definitely isn't normal though :/

Yes same here :( But where did you find a fix? The only fix I know of was merged already some days ago but it doesn't work at all imo. If there is a fix I can make a build so we don't have to wait for tomorrow ;)
[Nexus 5 Original Android Development] topgeardave:
The link you posted earlier: http://review.cyanogenmod.org/#/c/66894/ fix has been merged. One of the comment states if it hasn't been fixed on a dirty flash, then clean wipe and start again. It should be fixed then
[Nexus 5 Original Android Development] Fusionalex:
That fix sadly was already merged some days ago :/ It just doesn't work like it should, and I doubt that a clean wipe fixes this problem. If it does, then this fix doesn't work like it should, since you can't expect people to wipe so their battery doesn't drain..
[Nexus 5 Original Android Development] topgeardave:
Just did a manual fix, uninstalled Google play services to go back to the system version. Went into titanium backup and I unlinked it from play store. Now things should return back to normal :)
[Nexus 5 Original Android Development] Migamix:
I'm hoping those complaining about G play services actually know what the app/service module is.. worst case is you can go in and prevent its ability to hold a wake lock , but don't blame me if you are unable to use some google apps, or receive timely updates. the idea of G.P.S. tying in all of googles apps core functions means it will show up as the core power/bandwidth hog for most of the Gapps you use... turn off synching in apps, turn off auto updates in playstore, do some per app management and you shouldn't see the heavier drain of G.P.S.

didn't anyone just watch IO and their grand description of GPS?

-typing like i think i know something on my N5-
[Nexus 5 Original Android Development] Fusionalex:
Well I could try that too, I didn't think of unlinking it from Play Store.Can this be reverted if I need to update it though? Thank you!! If this doesn't get fixed soon I will also try it like that :)

I already disabled all those things before the update and it definitely isn't normal that after an update something that I didn't even notice before now takes all my battery (especially in airplane mode..) and data..
[Nexus 5 Original Android Development] Theliels:
Any with a severe GPS drain, report any wakelocks stats with bbs for example, so we can view the problem, and search for a fix. Again, a 5-8% is "normal" and dont have any wakelocks issue.

I have about 5-6% since some months, about 3% if I disable Google Location services... please, use BBS and tell us where are exactly the wakelocks
[Nexus 5 Original Android Development] topgeardave:
Seeing as I'm still using gapps from 4.4.2 and I've just been dirty flashing all the way till now, Google play services was too old for apps like hangouts. So fix it, I found the last apk of play services without the wakelocks: https://www.dropbox.com/s/3vpw70635ut2hcp/Google Play Services 4.4.52 (1174655-070).apk I deleted play services from both my system and data partitions then installed this apk. After that I went back into titanium backup and unlinked the app. If you want to relink it, just press the update button on play services in play store and it'll fix the link again. I think the unlink button just doesn't allow play store to update the app by itself :)
[Nexus 5 Original Android Development] derPianist:
The drain you guys are experiencing is definitely not normal.

I have 4 google accounts on my device, everything syncing all the time and location set to high accuracy.

Google Play Services do not even show up on my battery statistics. Running pure AOSP though. So CM has to work on that somehow.

Just reporting that in since someone said it would be obvious that Play Services are draining battery with syncs on all time. Its not.
[Nexus 5 Original Android Development] hectorviov:
Hey, I'm new to this thread cause I just gout my Nexus 5...

With today's nightly, the settings on my phone doesn't work anymore... I don't have a lock screen and I can't access settings menu, I don't get notifications. Going back to yesterday's nightly doesn't solve it either... Did anyone has this problem? What could've happened?

Please help
[Nexus 5 Original Android Development] Puttermouth:
Here is what helped me with the battery drain: I uninstalled all the updates of play services, waiting for the first app to ask for an update (most likely hangouts), clicked ok for installing the update, et voila: drain is gone! But I have to admit that I don't know what happens when I reboot the phone.

Gesendet von meinem Nexus 7 mit Tapatalk
[Nexus 5 Original Android Development] Ulver:
Thanks for the info. I may go back to stock to see what happens.
[Nexus 5 Original Android Development] micr0g:
Hello

For anyone interested here are my builds for CM with Sabermod toolchain (4.8 for the ROM and 4.7 for the kernel)

and with JustArchi's optimizations http://xdaforums.com/showpost.php?p=52736153&postcount=1

I also have build with Google's toolchain and Linaro.but i think i'll keep The SaberMod as i found it more snappy.

(i'll make one for mako also for my bro,i'll upload later)

Hope you'll enjoy it!

https://www.mediafire.com/folder/hqwjbyg8x9bd5//CM_JustArchi_SaberMod
[Nexus 5 Original Android Development] Fusionalex:
Thank you! I already tried downgrading to that version before and stupid Play Services just updated themselves again over my mobile data.. Didn't have the idea to unlink them though! If until tomorrow I can't find a way to make the new ones work well then I will do that too :)

That's exactly what I'm trying to say all the time. They NEVER showed up in my battery statistics so it HAS to have something to do with the update. And if you say pure AOSP doesn't have the problem then I guess it's a problem of CM with the new Play Services... I don't know why some people cant accept that CM has bugs. I'm not saying it isn't good, but please accept that also cm can make mistakes...

For me sadly this didn't help, since this was the first thing I tried :( But thank you!
[Nexus 5 Original Android Development] topgeardave:
Are you on the latest v5.x or 4.x?
[Nexus 5 Original Android Development] derPianist:
Latest v5.xx
[Nexus 5 Original Android Development] topgeardave:
Thanks, so it must be a CM specific issue... Hmm
[Nexus 5 Original Android Development] The-Droidster:
Since when do we have search in settings ?

Hammered from my Hammerhead!
[Nexus 5 Original Android Development] om22:
If you have google now on like me there is no way they don´t show up in battery statistics. :rolleyes:

I´m not experiencing abnormal drain just like on stock caused by google now.
[Nexus 5 Original Android Development] derPianist:
I am literally using every Cloud based service Google provides, like Keep, G+, Photo Auto Backup, Now, Calendar, Docs & Sheets, Drive, etc...

Google Play Services do not show up in my battery statistics. Ever.
[Nexus 5 Original Android Development] om22:
Has anyone noticed the annoying microlags that are still there in cm? For example when playing hill climb racing it is very visible. :mad: Beside of that cm is my go to rom but caf has somewhat destroyed it on the n5. Why did they switch to caf base exactly? :)
[Nexus 5 Original Android Development] caliban2:
Well, these are my stats for Google Play Services after 12,5 hours on battery. Latest version, today's nightly. So there's something going on on your end that you guys with high drain have to figure out.

Edit:

It's a long shot, but I'm adding screenshots of what I'm synching with google. Location was on high precision (or whatever it's called in English) the whole day, location report and history are off. So is Google Now (so far it's useless in my country).

Maybe it's something of what I've disabled that makes the difference?
[Nexus 5 Original Android Development] Fusionalex:
Any news on a fix for the video recording crash bug?
[Nexus 5 Original Android Development] bray424:
I'm running an older nightly (6-28) with the same battery drain, and I fixed it by going into App Ops (settings>privacy>privacy guard>advanced), select Google Play Services, and setting "wake up" and "keep awake" to "denied". I'm sure this breaks some functionality of play services, but I can't imagine it breaks more than having a dead battery will.
[Nexus 5 Original Android Development] minnysota:
Correct me if I'm wrong, but the latest nightly should have fixed this issue. The original commit was updated early this morning at 2:00 a.m.

http://review.cyanogenmod.org/#/c/66894/
[Nexus 5 Original Android Development] caliban2:
Dunno, but I'm watching my stats since the reports started some days ago. Play services never caused high drain here.
[Nexus 5 Original Android Development] Fusionalex:
The update was just someone saying that the fix doesn't work :(
[Nexus 5 Original Android Development] drawde40599:
It was fixed a day or so ago ya , I had the issue and now I don't . so maybe didn't fix for everyone but mine went from 50% back down to 2%
[Nexus 5 Original Android Development] topgeardave:
Wooo! Completely forgot about app ops! Thanks for the reminder :)
[Nexus 5 Original Android Development] bland.life:
Anyone has Cyandelta crashing on starting download?

Mine have been crashing since upgrading to the 2/7 CM 11 build.
[Nexus 5 Original Android Development] topgeardave:
Can I dirty flash it? Or do I have to full wipe? I'm seriously considering flashing this to see if the ROM level O3 flags make a difference or not.

Edit: why don't you make a thread in general development? I think this kind of build would gather a lot of interest. You could just update the rom once in a while if it's bug free :)

Edit 2: took the risk and dirty flashed. HOLY F*CK! OMG mate you HAVE TO create your own thread! My phone is now flying and there's no more micro lags with chaos kernel! :o Anyone else reading this, you have to flash this unofficial build! It's so fast and smooth on Dalvik!
[Nexus 5 Original Android Development] keith.mcintyre26:
No offense but its a placebo. The CM team, a group of veteran software engineers, don't use this script kid silliness, so what's the benefit? I don't mean to be rude (its hard to convey tone through text) but is there any data (benchmarks and otherwise) that show a benefit?
[Nexus 5 Original Android Development] topgeardave:
Did you even read the link he posted? Android is still in the past using Os code which was designed for phones in 2010. Now with fast phones with loads of memory, you can utilise O3 flags upon compilation. CM don't use it simply because nobody knows the true extent of the risks with these flags eg corruption etc.

You could do a nandroid then dirty flash the rom and you'll understand what we mean in terms of it being more snappy and responsive. Just try it and see for yourself that it isn't a placebo :) This isn't a gimmick because these are low level platform optimisations.
[Nexus 5 Original Android Development] keith.mcintyre26:
It isn't just CM- anyone legitimate has avoided it. This team has influence on hardware (OPPO OnePlus), so why couldn't they test the pitfalls of the optimization? Because its fluff. The same reason Google doesn't use it. Is there any supporting data that suggests O3 flags are beneficial? I mean, its been out for almost 10 year +/-, so why isn't everyone using it? The optimization level may increase the speed of the resulting executable, but can also increase its size. Under some circumstances where these optimizations are not favorable, this option might actually make a program slower. So say, a mobile device with limitations might be impacted negatively. I want to believe but it sounds like a miracle weight loss drug- if its effective why aren't more people using it?
[Nexus 5 Original Android Development] raulg15:
Flashed the ROM. Definitely feels much smoother. Even think it feels smoother than the stock Kitkat rom. I kept going back to stock because other roms feels a bit laggy compared to stock, but this rom is as smooth if not smoother then the stock rom.
[Nexus 5 Original Android Development] AtEExll:
Good morning!

Some one have bug with heads up? For me not works...

For have this pop up notifications must install heads up module for xposed installer?

Thanks by advance.

Best regards.
[Nexus 5 Original Android Development] bray424:
By that logic, any optimizations Cyanogenmod adds is just a placebo because Google doesn't use it. And while the cm team is a large experienced team, they're still developing an operating system for a large number of devices, and even they don't have the time or resources to tweak their builds for each one.
[Nexus 5 Original Android Development] ssauger:
Same here on my girlfriends N4 and my N5 with play services (5.x) kept the phone awake 100%, then i flashed the nightly with the fix on both and all went normal. Phones are sleeping like they should. Some useage for play services is normal, depends on what location services you have enabled, or gnow etc.
[Nexus 5 Original Android Development] antypas:
Well, it isn't exactly like that.

1) For the kernel, it has been proven that there is absolutely no difference between toolchains, optimizations, etc.

2) For the ROM there can be noticeable performance difference.

CM take the conservative approach regarding toolchains and optimizations. Before CM11 they were using -for God's sake- GCC 4.6, whereas EVERYONE (even Google had mentioned that multiple times) knew that there existed much faster toolchains.

CM don't use any more optimizations than Google. Exactly the same toolchain, exactly the same building optimizations. It's not a coincidence that exactly when Google switched to GCC 4.7, CM did the same.

So that guy, KEith, is talking b****? Oua ha ha haa.

Nope, it definitely, absolutely ISN'T as smooth as the stock Kitkat. But I agree that it is a bit smoother than the original CM11 nightly
[Nexus 5 Original Android Development] slg60:
Dialer and CM Updater crashes on 04.07 nightly, anyone else?
[Nexus 5 Original Android Development] Donald Nice:
No problems here.. Dialer and updater working fine on 04.07. No fc.
[Nexus 5 Original Android Development] slg60:
For some reason my CWM Recovery was updated to x.x.x.49 within the last nightlys. I never allowed that into the developer settings. Still was using the 45 CWM Touch from the CWM page... what happened there?
[Nexus 5 Original Android Development] koelspy:
Flashed 2014-07-04 nightly, still crashing :(
[Nexus 5 Original Android Development] djsubtronic:
What APKs did you delete exactly?
[Nexus 5 Original Android Development] om22:
[MENTION=4152171]myfluxi[/MENTION] : do you know what could cause those lags/hangs? You can see it yourself by playing hill climb racing it's there from the beginning also after a reboot.
[Nexus 5 Original Android Development] dannyella:
Still can't disable arrow keys while typing on latest nightly.
[Nexus 5 Original Android Development] micr0g:
Hello,i think you have to try something before to talk rude about it,but no problem this is your opinion.

Also i think you haven't try some optimized ROM's like AOSPAL,AOKPK,Liquid smooth (so much bloated ROM and it's fast) also Gummy rom have some nice optimizations, and the big deal Velocity rom.

If you try the above rom's you'll see the big difference they have on speed from the stock ones,With stock i mean AOSPA and AOKP.

Now about CM yes it's a big veteran team as you said but i really can't understand what's in their mind with Hammerhead's kernel.

The rom isn't as smooth as stock because of the kernel,it really lags, if you try ElementalX then the rom is much smoother than stock.

The only kernel that is near the stock on smoothness is bricked kernel.

About the kernel, the flags and toolchains they have big impact.I mean test a stock AOSP kernel and then test Arkestone kernel that is stock with optimizations,the difference is big,opening apps faster and it's smoother.

Guys i'm not a dev but just a guy that he likes to learn about android stuff and general.

Sorry for my English also.

Cheers.
[Nexus 5 Original Android Development] topgeardave:
The original Google play services apk on my system partition when I flashed gapps, and the latest play services apk on my data partition. After that I just installed the old play services and unlinked it from play store using titanium backup.

However I found another way round it, after installing v5, I used app ops to disable the app waking up phone and holding wakelocks. I don't use many Google apps so if it breaks anything I doubt it'll affect me :)
[Nexus 5 Original Android Development] davorch:
Everything is fine for me.

---------- Post added at 04:18 PM ---------- Previous post was at 04:16 PM ----------

YEs, camera is still crashing

As I know the same with stock camera on nexus 4, samsung S3

Everything was fine on June nightlies
[Nexus 5 Original Android Development] Ulver:
My Google play services battery drain seems to be fixed. I just let it work itself out, if that makes sense. Just a couple reboots and the phone deep sleeps and google play services barely shows on my battery stats.
[Nexus 5 Original Android Development] bland.life:
I found my problem.

Its the icon pack I'm using - Minimal (Hera).

Changed back to Holo and Cyandelta is downloading fine again.

It could be the icon pack or the way CM Theme Manager applies the icon pack or it could be Cyandelta?

But one things for sure is that Cyandelta worked as always before the update to the 2/7 CM11 build.

Do you have an icon pack that changes the Cyandelta icon applied?
[Nexus 5 Original Android Development] davorch:
No, I haven't
[Nexus 5 Original Android Development] paychex:
delete
[Nexus 5 Original Android Development] antypas:
:eek::eek::eek:

You couldn't be more wrong here. About kernel compiling there has never been any study that shows any profits if compiled with sophisticated toolchains and/or optimization flags.

On the contrary there has been a comparison (old one, but the same surely stands for today) which shows that there is no difference:

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

Any custom kernel can be faster than the stock one for a million reasons. Toolchain and optimizations flags ARE NOT one (two :laugh: ) of them...
[Nexus 5 Original Android Development] topgeardave:
Why is it that the build with justarchis modifications are a bit more snappier than stock cm if there's meant to be no difference?

And here's the thread where the idea came from: http://xdaforums.com/showthread.php?t=

Maybe everyone who thinks it's a placebo can argue with the main dev on his thread.
[Nexus 5 Original Android Development] AtEExll:
Someone have bug with heads up?

For me not works.

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 Original Android Development] dannyella:
Is it normal that a few secs after reboot, the power button does not put the phone to sleep.

---------- Post added at 12:13 AM ---------- Previous post was at 12:11 AM ----------

Please can someone confirm if this is fixed in today's nightly before I completely wipe my phone.
[Nexus 5 Original Android Development] Bluewall:
No problem here :)
[Nexus 5 Original Android Development] raulg15:
I've noticed a bit of lag once I installed themes. Is this happening to anyone else?
[Nexus 5 Original Android Development] El Nino1977:
I have tried your build and without starting another argument, I really like it. It does feel faster, marginally but enough to notice the difference. Placebo or not I'm sure my eyes and senses do not deceive me.

I for one and a few others here appreciate the effort put in to build, maybe you should open a thread so it doesn't derail this thread.

Speed and performance is great but battery consumption is really good also, that might be luck idk. Keep it up [MENTION=5426648]micr0g[/MENTION]
[Nexus 5 Original Android Development] AtEExll:
How made?

Only enable heads up? Or must added some app in settings?

Thank you

Edit : in what build works fine heads up? I've yesterday build.

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 Original Android Development] derPianist:
I have today's build and no problems with Heads Up.

I enabled it in settings.

Try today's nightly, a reboot or a factory reset for instance.
[Nexus 5 Original Android Development] venkatkkesavan:
I just migrated to CM 11 M7 in nexus 5 using cyanogen installer...after a day of use the section of setting under setting>sounds>system stopped working, I'm unable to enable vibration or key press sound. Pleas help me
[Nexus 5 Original Android Development] AtEExll:
I try today build with factory reset.

Thanks.

Good weekend

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 Original Android Development] gpvecchi:
Link to the theme, please?
[Nexus 5 Original Android Development] antypas:
You didn't read what I wrote.

The ROM can be faster due to optimization flags and toolchains. The kernel cannot.
[Nexus 5 Original Android Development] topgeardave:
Oh I see, thanks for the clarification :) Are you using the sabermod version or normal cm?
[Nexus 5 Original Android Development] willybarca:
on the latest nightly and this is what I get
[Nexus 5 Original Android Development] topgeardave:
Go in Settings > privacy > privacy guard > hold on Google play services > change keep awake and wake up from allowed to denied > go back and tap Google play services > charge phone to 100% > Congratulations! You are now wakelock free :)
[Nexus 5 Original Android Development] myfluxi:
It's just in the interactive governor. I stopped looking at this because I had other priorities, maybe I'll have the time time to find out, what's wrong there. interactive is certainly understood by only a handful of people who appear to disagree ;)
[Nexus 5 Original Android Development] Bluewall:
But won't this create some trouble about notifications?
[Nexus 5 Original Android Development] Mako0:
No problem here with M7 from day-one.. try to reflash the ROM whitout wipe..
[Nexus 5 Original Android Development] paychex:
Quite a bit. No GCM apps will work right