yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] szucsgf:
My advanced WiFi settings are default. Here's the screenshot.

Since you've taken care of wakelocks, have you played my "modem game"? Download each modem for our device; there are 6:

http://xdaforums.com/google-nexus-5/development/modem-nexus-5-flashable-modems-efs-t2514095

Flash 1 different modem per night, keeping same ROM same Kernel same settings etc. Note the overnight battery drain with each modem. Finding my best modem in this way improved my battery life greatly. The difference between best and worst modems was surprisingly big: worst = 10% overnight drain, best = 4% overnight drain. I kept the modem that had the best overnight drain and had better overall battery life since.
[Nexus 5 Original Android Development] flar2:
You need a fully working installation of busybox for the init.d script to work.

I thought all of XDA was obsessed with battery life, lol. I haven't been reading other threads lately.

When I first started building kernels, I think the main emphasis was on features and performance, now battery life dominates.

Anyways, your battery stats sound excessive. Perhaps a clean install is in order? When I clean installed 4.4.3, I immediately tested idle drain and it was 0.3% per hour for stock and elementalx. Another popular kernel was 0.4% per hour. That's completely idle, with s2w disabled. Each tested for 8+ hours.
[Nexus 5 Original Android Development] bobby janow:
That is too funny. I'm on the latest modem for 4.4.3 as of now. Being on wifi all night, would that matter in idle drain? I do know on LTE when roaming town there is not a huge hit at all. I can see that when I'm really really bored this might be something to do. Only thing being that flashing modems always scares me a bit. Maybe because it takes a long time and that's the thing that can totally eff up a phone. Thanks for the screen shot, that's exactly my setting now although I did have the scanning always available turned off.

---------- Post added at 12:39 PM ---------- Previous post was at 12:35 PM ----------

Yeah, the 4.4.3 thread is all about battery these days. For some reason they ask the same questions over and over. Hmm... But I was getting the same 0.3 - 0.5 / hour up until last night. I'm going to reboot and see what happens tonight. I've been avoiding the clean install like the plague and I knew you'd suggest that. Of course it makes total sense and if I can't get it under control I'll do it this weekend. Thanks.
[Nexus 5 Original Android Development] BabboDemonio:
Thanks now it works! I didn't know busybox was required!
[Nexus 5 Original Android Development] bobby janow:
Great news. And for others reading, as per Flar2 the proper version is required too. Earlier versions gave me some issues. Below is from the "Notes" section of the OP. (Don't fret I don't always read the OP in it's entirety.. but I didn't say that)

If settings are not sticking:[*]Make sure you have busybox installed correctly and updated to the latest version[*]Make sure the file permissions for /etc/init.d/99elementalx are set to execute.[*]Check to see if any /etc/init.d scripts or apps (such as Kernel Tuner or TricksterMod) are interfering with your settings.
[Nexus 5 Original Android Development] szucsgf:
The modem game doesn't take any time. They're flashable zips and you don't wipe anything. The process:

1. Boot into recovery

2. Don't wipe anything

3. Flash modem

That's it. Takes 1 minute. Add another minute to write down the modem number and the associated overnight drain and you have 2 minutes of work per day.

I've done this on the last 3 Nexuses and there has always been a measurable difference between modems.

In any case good luck on your battery improvement quest!
[Nexus 5 Original Android Development] floepie:
So, which have settled upon, and could report your findings? Or have you posted them already in the modem thread?
[Nexus 5 Original Android Development] letmedanz:
That's probably cos Google decided to give us a phone with performance comparable to Goliath and a battery comparable to David's weeny
[Nexus 5 Original Android Development] szucsgf:
When I originally tested I found modem .12 to have the best idle drain for me with 4% overnight. Modem .23 (default 4.4.2 modem) was the worst with 10% overnight. The others were in between. I'm now using the default 4.4.3 modem because it is at least as good as .12 for me, perhaps slightly better.

I haven't posted my specific findings much, though I've posted the testing procedure once or twice. I don't know all the variables involved but I know different people have different results on the same modem. For some people the 4.4.3 modem is worse than earlier ones. Some possible variables are signal reception, carrier, type of network. A bunch of things I'm sure. I don't think it's very useful to just flash a modem that works well for someone else; you may not have the same result.
[Nexus 5 Original Android Development] Native89:
Went to sleep last night and I think I ended up sleeping on my phone. Woke up to a low battery warning and the best SoT I've ever had. Showing this as more of a joke as the phone was probably not doing anything other than being awake.

Running CM11 6/6 Nightly and EleX .43.
[Nexus 5 Original Android Development] netinetinet:
flar, you are king developer
[Nexus 5 Original Android Development] jfim88:
10 hours? Is not possible!

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 Original Android Development] Laggalot:
i can believe that .... on minimum brightness.... with very good connections on both wifi and data

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 5 Original Android Development] drawde40599:
Consider Bbox one of those apps that u just automatically install with every new phone , like root or TB .if your going use stock ROM , custom Roms come with it .
[Nexus 5 Original Android Development] BabboDemonio:
I'll do it.. The reason why I didn't install it before is that it messed up my old phone when I tried to uninstall it..
[Nexus 5 Original Android Development] montbazon:
Is it dirty flashing hard to you?

It's even more weird than ex[emoji13]

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 5 Original Android Development] RollTribe:
https://docs.google.com/file/d/0B91Rpj3Fr-o1ZHNqZzVacnAwRUU/edit?usp=docslist_api got a reboot on Mahdi ROM today. Clean flash literally about 2 hours ago.
[Nexus 5 Original Android Development] szucsgf:
You probably want to change permissions so flar or others don't have to request access?

Oh and standard question: no overclock or undervolt?
[Nexus 5 Original Android Development] RollTribe:
No OC, but I was UV tho it hasn't caused problems in the past. I changed it to stock voltage and I'll see if I get the same problem. Also, permissions changed too.
[Nexus 5 Original Android Development] flar2:
It's the same as before, the watchdog caused a reboot. There were no errors in the kernel, I don't know what's causing it.

Definitely use stock voltage, this is the kind of thing that can happen with undervolting.
[Nexus 5 Original Android Development] RollTribe:
Alright, well thanks for taking a look. I've had weird problems with this phone since I've got it. This is one of the only kernels that actually sticks with the frequency I set it to, no one else seems to have had that problem.
[Nexus 5 Original Android Development] flar2:
I also found in my testing the last couple days that the wake timeout isn't reducing drain as much as it should be. I'm getting just over 1% per hour idle drain with wake_timeout in effect, it should be same as with wake functions disabled, which is more like 0.3%. I hope I can fix it without having to blink the screen on and off. I never liked that, but it worked.
[Nexus 5 Original Android Development] bobby janow:
Blink it. Who cares about a little blink? Ocd is their problem.
[Nexus 5 Original Android Development] szucsgf:
[MENTION=4684315]flar2[/MENTION], in trying to save battery ? have you considered trying a lower min CPU frequency? If it can run stable and not cause CPU to jump above min CPU more frequently this should have a noticeable impact. By my calculations (which could very well be wrong ?), using 192MHz min CPU at 25mV lower voltage ⚡ than 300MHz should use 38% less power while at min CPU. I usually see about 15% of time spent at min CPU, which might mean about 5-6% power savings overall. This should not impact performance since we have MPD boosting CPU. The effect would just be lower power consumption while idling, again if it can run stable and settle nicely at min CPU without jumping around more.

Any thoughts ??
[Nexus 5 Original Android Development] GR0S:
It would be cool if kernel developer adds faux's fast charge. My charger can output 1500mA. It's useful because it allows to charge phone at same speed while using it compared to turned off phone

PS: does it boot omni with f2fs /data?
[Nexus 5 Original Android Development] kyleco:
I'm loving this kernel so far, but I'm experiencing a strange issue. I'm running Carbon ROM converted for f2fs-all with your kernel, and my max CPU value cannot go above 2265 in any app I look at(performance control I'm settings/faux/Franco). This is confirmed with CPU spy topping out at 2265 as well. I have the configuration set to max(2.9ghz), but never get to see this run. Clearly something is interfering because I do see the elemental log under /data/local/tmp/, so I want to make clear I'm not blaming the kernel(really appreciate your hard work!)

I'm hoping someone has experienced this and fixed it, or if someone has any ideas, it would be greatly appreciated. Happens on clean flash BTW.

Thx!
[Nexus 5 Original Android Development] drawde40599:
But This fastcharge is safe , y would u want take the chance ... I don't

---------- Post added at 08:23 PM ---------- Previous post was at 08:21 PM ----------

Install prefmon or system monitor app and watch in real time . are results the same ?

---------- Post added at 08:24 PM ---------- Previous post was at 08:23 PM ----------

New Swiftkey? ;P
[Nexus 5 Original Android Development] GR0S:
Faux fast charge is safe. It decreases current if village drops
[Nexus 5 Original Android Development] kyleco:
I checked System Monitor app and the results were the same. I ran Antutu to push the CPU and all 4 cores maxed at 2.3ghz.
[Nexus 5 Original Android Development] drawde40599:
I've read different things , from different people on the subject .

---------- Post added at 09:06 PM ---------- Previous post was at 09:01 PM ----------

I No some apps give faulse reading so that's y I mention watching in real time , but if system monitor is showing same then ya its legit , not sure what's going on tho , I can tell u OC works perfect on stock ROM , not exactly what your looking for I no ...
[Nexus 5 Original Android Development] gpvecchi:
I don't want my village drops...:fingers-crossed:
[Nexus 5 Original Android Development] phiral:
Outstanding battery life with .44, thanks!
[Nexus 5 Original Android Development] Mako0:
I'm running CM snapshot M7 with ElementalX 0.38 (default settings + display dimmer) and I've noticed that stock CM "Colour calibration" settings is "broken"..

With stock CM kernel, the colours change immediately, without reboot or close/open display..

This issue is fixed (or will be) in newer 4.4.3 versions (0.4x)?? or is there any way to fix this with "something" in my old 4.4.2 config??
[Nexus 5 Original Android Development] GR0S:
Kernel developer, can you please create zip with fstab file?

Отправлено с моего Nexus 5 через Tapatalk
[Nexus 5 Original Android Development] olivierg13:
Indeed I have an amazing battery life with .44 too.

15% in 8 hours with 20% screen.

Cheers,

Olivier G
[Nexus 5 Original Android Development] expiredd:
You guys using Dalvik or ART?
[Nexus 5 Original Android Development] italia0101:
I'm having issues getting the wake gesture Xposed module to work ?? i only get the last two options " double tap" to show, the others are greyed out, any ideas?

EDIT- Solved... /sys/android_touch/sweep2wake

---------- Post added at 12:17 PM ---------- Previous post was at 11:39 AM ----------

One thing i can't seem to change is the vibration ? it says its set to 0 which should be off for gesture, but i'm still getting a vibration
[Nexus 5 Original Android Development] szucsgf:
Yep! Lots of fun ?

http://xdaforums.com/showthread.php?p=53333250
[Nexus 5 Original Android Development] olivierg13:
Dalvik for me, unfortunately I use some apps that doesn't run on ART :(
[Nexus 5 Original Android Development] floepie:
I once read that the screen consumes power at its average brightness roughly at a the same rate consumed by the CPU at one of its lower speeds/voltages. So, you would have to probably at least half your estimated power savings right off the bat, as presumably, the screen is also on for a majority of the time spent at the lowest frequency by the CPU. Once the CPU goes into one of its higher power states, the CPU starts to consume way more power than the display, even at its highest brightness levels.
[Nexus 5 Original Android Development] szucsgf:
Very good point. Yes of course when I say power consumption I mean only power consumed by CPU not all power consumption. But that at average brightness ? screen takes about as much power as CPU at low frequency is useful to know. Thank you.
[Nexus 5 Original Android Development] aswinrulez:
how does elementalx's CAF stand against chaos kernel?can someone good with kernels let me know in a technical way.Not like its faster smoother and all.Thank you :)
[Nexus 5 Original Android Development] montbazon:
elementalx already merge lots of caf's.

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 5 Original Android Development] aswinrulez:
More than what neobuddy89 has done with chaos?
[Nexus 5 Original Android Development] topgeardave:
Chaos is more bleeding edge, it contains all the patches from CAF and a few things from mainline 3.15 kernel. However this is more in line with CM's and google's implementation. I'd say flash both and see what you like best. I keep flashing between the two kernels to get my flashing fix.

Oh and don't ask about comparisons, it'll derail the thread and cause everything to go off topic.
[Nexus 5 Original Android Development] montbazon:
Nope. Neobuddy brings most of caf thing into kernel but flar2 cherrypicks some of.

Gesendet von meinem Galaxy Nexus mit Tapatalk
[Nexus 5 Original Android Development] flar2:
I only add a few CAF patches here and there. I updated a ton of subsystems back in January and I don't think there was much gain from it. That stuff is under active development and often causes more problems than it solves. I check myfluxi's repo from time to time. He's the top kernel dev working on hammerhead.
[Nexus 5 Original Android Development] flar2:
I generally don't add the lower cpu frequencies. I haven't tested it on this device, but in the past I have not found any significant gains from it, and there was increased risk of instability. Even now, a lot of people have instability undervolting the lowest frequency and I don't think the lower frequencies will give more headroom for undervolting.
[Nexus 5 Original Android Development] szucsgf:
Cool. Most of the potential battery savings would be from the lower frequency so even if 192 ran at the same voltage as 300 there would still be a theoretical benefit. And I'm not surprised that previous testing didn't show significant gains. The gains would be on the order of a few percent so not too noticeable (though they would exist nonetheless). But I agree that any instability wouldn't be worth the potential benefits of a lower min frequency. Thanks for your response.
[Nexus 5 Original Android Development] flar2:
I still might experiment with it. It's interesting that showp does it, he's mostly very conservative about adding things to the kernel and values stability above all else.
[Nexus 5 Original Android Development] PetritH:
If i want the 1200 freq on touch to be lower what should i edit guys? thank you
[Nexus 5 Original Android Development] flar2:
Delete or rename /system/lib/hw/power.msm8974.so
[Nexus 5 Original Android Development] PetritH:
I wanted it to go to 960 instead of 1200 just to try out.. but im not finding it out lol, thanks anyways mate
[Nexus 5 Original Android Development] flar2:
rename that file and in governor settings, change

input_event_min_freq to 960000, 960000, 960000, 960000

and

input_event_timeout to 1000
[Nexus 5 Original Android Development] PetritH:
Thanks a bunch man
[Nexus 5 Original Android Development] Globespy:
If I'm using Fauxclock and have the fastcharge settings turned on in Fauxclock, are they actually doing anything, or is it only set to what the kernel is setup for? If I switch of Fauxclock fastcharge settings, will elementalx still fastcharge?
[Nexus 5 Original Android Development] drawde40599:
That I don't no . I would wipe the app reboot then go install kernel with fastchage and never mess with faux setting for it . that's just Me
[Nexus 5 Original Android Development] drawde40599:
[MENTION=4684315]flar2[/MENTION] if u don't already have one http://www.androidpolice.com/2014/0...et-20-google-play-credit-purchase-chromecast/
[Nexus 5 Original Android Development] d_phekt:
Loving the battery life on .44

Fresh flash on stock/rooted. First battery cycle I got 23 hours with 3 hours 53 minutes SOT with 9% battery still left. Nice!
[Nexus 5 Original Android Development] bobby_sucker:
Do you notice some scrolling lags in Tapatalk? I know ElementalX kernel is supersmooth and i always get back to it :) just wondering as it happens on any custom kernel i have tried..

Отправлено с моего Nexus 5 через Tapatalk
[Nexus 5 Original Android Development] jumparound246:
Happens on every custom kernel and even on stock. It's gone on stock and elementalx using art...at least for me. Unfortunately i can't leave xposed...right now i'm on stock kernel to test the 4.4.3 version...but with flar2s temperature settings. Didn't install rom dirty and that's the reason why the temperature settings are still there. Rest looks like stock kernel behaviour and it's working nice for the first few hours...[emoji51]
[Nexus 5 Original Android Development] lolcopter:
Pretty sure Tapatalk is just a garbage app. It often won't even load the selected subforum and always reverts to the "latest" tab

(have never noticed any scrolling lag fwiw, it will just take forever to load the main subforum view)
[Nexus 5 Original Android Development] RobbieL811:
I am running Slim & trying out latest .44 & I notice that my phone will not idle at 300 MHz. It keeps ramping up then back down. Up to 1.2, 1.5, or 2.0 then right back down to 300 MHz. Is this normal behavior for this kernel? I wouldn't think that it should be doing that. Does anyone else see this behavior with their CPU running .44?

Sent from my Nexus 5
[Nexus 5 Original Android Development] drawde40599:
I'm on stock ROM and with no apps running in the backgroud, an idling on home screen ,yes it idles at 300 with very little movement from there .
[Nexus 5 Original Android Development] Grondinm:
I am running latest slimkat and my phone idles at 300 just fine....watching the from trickster goes down to 300 and stays as long as I don't touch the screen. Where you on stock kernel before flashing elemental?
[Nexus 5 Original Android Development] RobbieL811:
Yes. Flashed EX .44 on top of a clean flash. don't use Trickster. Use system monitor. It updates more frequently. Set the flying monitor to update every 3 seconds, then set on home page & watch the frequency & see if it stays at 300 MHz.

Sent from my Nexus 5
[Nexus 5 Original Android Development] JB910:
.44 on Mahdi Rom, :thumbup:
[Nexus 5 Original Android Development] DrErect:
I'm also running. 44 and is idling at 730MHz wouldn't have checked if not for you mentioning it. Quite odd.
[Nexus 5 Original Android Development] RobbieL811:
Mine will go down to 300, it just bounces up & down. It won't idle on 300 when nothing is going on.

Sent from my Nexus 5
[Nexus 5 Original Android Development] letmedanz:
Idles at 300 any time there is no activity or the screen is touched for me too..

would suggest removing any kernel tweaking apps & see if this persists..

also, you flashed the aroma edition and not the express right?

not sure if that would matter, but flar did note to do a aroma installation as there were some changed settings
[Nexus 5 Original Android Development] drawde40599:
What if u clear out your resents then go to home screen and try . what's it do ? Or is that what u guys did ?
[Nexus 5 Original Android Development] RobbieL811:
I don't generally clear my recent apps.

Sent from my Nexus 5
[Nexus 5 Original Android Development] drawde40599:
Me either , I never do , but what's it do when u do ? Dose it go to 300 and pretty much sit there ?
[Nexus 5 Original Android Development] DrErect:
closed all running apps except system monitor. Which I doubt it's the reason is not idling at 300MHz. I previously had Tapatalk in the recents tab and again it idled at 730MHz.
[Nexus 5 Original Android Development] drawde40599:
Cool , I no I've had apps in background in the past that wouldn't let my phone idle , just wondering if maybe same for u . ya probably not that app , I use prefmon but I own that one I'll try here in a few for u and see if results are different between the two apps .

Edit: ya system monitor ( paid stand alone version) reports basically the same as prefmon no difference .
[Nexus 5 Original Android Development] flar2:
Update!

I reverted s2w/dt2w wake timeout to the old method that blinks the screen on and off. The way I was doing it was not stopping all the current leakage completely. Small price to pay for the functionality.

Download:

Stock/AOSP:

ElementalX-N5-0.45

ElementalX-N5-0.45-express

Cyanogenmod/CAF:

ElementalX-N5-0.45-cm

ElementalX-N5-0.45-cm-express

Changes:

-Wake_timeout: revert to old method

-Reduce flicker on screen on

-update installer
[Nexus 5 Original Android Development] yak84:
[MENTION=4684315]flar2[/MENTION] , is there any changes to WiFi in your kernel? I'm having notification delay on WiFi.

Also have noticed that the wlan_RX_wake is noticeably less with your kernel , may be it's the cause?
[Nexus 5 Original Android Development] gravedigger76:
How do I tell if the wake gestures settings are getting applied? I have all right left up etc.. Enabled. In xposed module they are turned on and configured. When I put the screen to sleep with swipe and not power I swipe and I feel the feedback but it does not turn screen on or launch app. Any suggestions?

What can I pull to see/show?
[Nexus 5 Original Android Development] drawde40599:
I don't no about the internals but he changes TCP from cubic to Westwood , ( so do most other kernels ) my phone doesn't like it I always change back to cubic . not saying this is cause of your problem, but its something u can change on the fly .

echo cubic > /proc/sys/net/ipv4/tcp_congestion_control
[Nexus 5 Original Android Development] sk3201:
How to say your phone doesn't like Westwood. Would you please explain? Thx

Gesendet von meinem Nexus 5 mit Tapatalk 2
[Nexus 5 Original Android Development] drawde40599:
WiFi/internet at my house likes to hang up and just seems slower on Westwood , it happens with any kernel that uses Westwood on this N5 . Cubic I never have issue so I just wrote a script to leave it there . its strange cause all my other devices I use Westwood without issue .
[Nexus 5 Original Android Development] ReMuSeR:
Isee no big update my phone is atm rock stable,smooth and battery friendly wo no point of flashing now anyways thanks for the kernel best combo with purity rom
[Nexus 5 Original Android Development] sk3201:
Thanks for the reply. Indeed strange. I read something about Westwood, its intended to better handle large bandwidth-delay product paths, with potential packet loss due to transmission or other errors (wiki).

Should be the other way for you, anyway, your solution works for your connection , that counts.

Gesendet von meinem Nexus 5 mit Tapatalk 2