yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] PhoenixAG:
I use FKU to control it as earlier I was on Franco kernel, till the insane battery of Elemental 32 won me over.

I guess this is it. I am going to post a screenshot of my wakelocks screen, which has 10 or so wakelocks I have never before seen in my life. I also upgrade to the latest Slimkat weekly so it could be something wrong in the new version (3.8). However, most of the wakelocks were kernel related so I decided to post here. To be honest, I am getting even worse battery life with Franco r36. .32 was the best for me, .34 is really bad but I also upgraded at the time to Slim 3.8. So maybe related?

I am probably going to start afresh, but use Titanium to restore apps.

I do reinstall the rom and the kernel if I change kernels, in fact, I did it even before installing .32 over .34.

Using Slimkat 3.8, as mentioned above. I have used Franco kernel since my Galaxy Nexus days and have always had decent battery. Was using it till r33 when I came over to Elemental and fell in love. Elemental has been a dream on my phone but for some reason, my battery is not holding up.

As an example, I regularly get 5 SOT while Google Now is on and with normal use.

From 100% it usually used to take about an hour of browsing to reach 90%. Now it happens in maybe 15 mins.

---------- Post added at 09:07 AM ---------- Previous post was at 09:01 AM ----------

Just an update with the screen shot attached.
[Nexus 5 Original Android Development] Blaze420916:
I need help my proximity sensor always stays on what can I do to fix in not sure if it's kernel related

Nexus 5 always a different rom but elemental x kernel
[Nexus 5 Original Android Development] gamerman123x:
I know I can use a kernel app like trickstermod and I am but I'm just wondering if I put

##### Max GPU Frequncies #####

# 1=200MHz

# 2=320MHz

# 3=389MHz

# 4=450MHz

GPU0=2

In the elementalX config file at the bottom or something will it work and set the GPU to that ? Just wondering .
[Nexus 5 Original Android Development] notbrodie:
no. the config file is read by the script 99elementalx in /etc/init.d. since there is no corresponding line in the init.d script, the GPU line you added would just get skipped over
[Nexus 5 Original Android Development] gamerman123x:
Ya ok so I should add the lines to the 99elementalx for it to work
[Nexus 5 Original Android Development] notbrodie:
every time you flash the kernel, those file are overwritten. you'd be better served creating your own script. assuming you know the proper sysfs interface for the GPU freqs, I don't see any reason you couldn't do it
[Nexus 5 Original Android Development] gamerman123x:
Alright because I was just thinking that using the scripts is a better way to tweak the kernel than a app any ways I think I disabled the 4th core by going into elementalx.conf and put cpu3=0 and I think it worked if I'm right if thats how you do it
[Nexus 5 Original Android Development] jumparound246:
Proximity wakelock is active while calling...how long is your speak time? :rolleyes:

Or maybe an app which is using it...but my best guess is your call time
[Nexus 5 Original Android Development] peecs121:
Mine occasionally does that too. When I'm on a call after I hang up I have to press the unlock button to get the screen to turn back on. It's usually after a call that's 2min or more. Any ideas?

Carbon/ElementalX powered Nexus 5
[Nexus 5 Original Android Development] notbrodie:
i don't think that setting it zero has any effect. and anyways, that part of the file only executes if you reflash the express version of the kernel. if you haven't reflashed the express kernel since setting that, it definitely is doing absolutely nothing
[Nexus 5 Original Android Development] Leviatano:
Guys i have a problemi..yesterday i flash 0.34 and it seems very smooth andò with great battery life better maybe than 0.26. The only problem that i saw is that whrn i play games forma 2-3 minuts che CPU goes immediately to 60 degrees AMD the phone is very hot..in on purity rom and i set cooler option for thermal throottling...how is it possibile?
[Nexus 5 Original Android Development] nmlssit:
"default" option on the Aroma installer is what you need for termal throttling.

And lol, I suggest you to try SwiftKey in order to avoid those Italian autocorrections while typing in another language.

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Original Android Development] pcphobic:
[MENTION=323444]PhoenixAG[/MENTION]

Try this experiment. Flash ElementalX ver.0.26 (it gave me the best battery life so far) and see if it makes any difference.

http://www.androidfilehost.com/?fid=23321874045862389
[Nexus 5 Original Android Development] PhoenixAG:
Thanks guys for all the replies! This thread is extremely friendly and helpful and for that, I am very grateful!

Ok, so it seems there might be something wrong with the latest SlimKat weekly (3.8).

I just flashed their experimental build and battery life seems much better. I am first testing Slim's own kernel, then will flash 0.32 and then 0.34.

I don't think going to 26 will make a difference as I have had excellent battery on 32.

Also, I deleted all files in init.d folder before flashing the new rom and stuff and uninstalled FKU.

Keeping an eye on the wakelocks too.
[Nexus 5 Original Android Development] nmlssit:
[MENTION=4684315]flar2[/MENTION] are you basing your work on the kernel Google is about to release? I've been told 3.14 is actually on release candidate

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Original Android Development] pcphobic:
Is Pocket Mode Enabled?

Is Active Display enabled?

---------- Post added at 07:09 PM ---------- Previous post was at 07:07 PM ----------

Is Pocket Mode enabled?

Is Active Display enabled?

Try disabling them.
[Nexus 5 Original Android Development] PhoenixAG:
Um I don't know where or how to enable them as they are not in the rom settings.

So I guess they are not enabled, as I haven't enabled them.

I'm now on 0.32 and things seem ok. Idle battery life seems good. Although my last flash I saw a wakelock for the proximity sensor which another user had mentioned too.

Again, not sure if problem is with rom or kernel.
[Nexus 5 Original Android Development] flar2:
I doubt we will see 3.14 on the Nexus 5. Most likely that is for some future device. Bleeding edge CAF stuff isn't even based on 3.14. Linux 3.14 isn't even at stable release yet.
[Nexus 5 Original Android Development] notbrodie:
do you supposed that it could be based on 3.8 or even possibly 3.10?
[Nexus 5 Original Android Development] flar2:
It's been on 3.4 for a long time, so I'm guessing 3.4.
[Nexus 5 Original Android Development] hottix:
Hi, i'm using elementalX express 0.26 and reading the post but i can't find anything about it: with a trickster i see that gpu with ondemand governor is almost always at 200MHz.

I have read that this is not related to gboost, someone can 'explain the behavior of the gpu? Thank :)
[Nexus 5 Original Android Development] Luigi_2:
How do we customize the touch boost freq?

elementalX gov seems pretty similar to faux's intellidemand, am i right?
[Nexus 5 Original Android Development] D@nge1:
DisplayControl supported by the kernel?

Отправлено с моего Nexus 5 через Tapatalk
[Nexus 5 Original Android Development] AndrasLOHF:
The ElementalX governor is amazing. I have tried several different kernels with several different governors even tweaking some governor parameters myself. The ElementalX governor is the ONLY one I've seen that will not constantly ramp the cpu high when listening to music over bluetooth and using Viper4Android. I don't believe I've ever seen this phone run at 300 mhz for the majority of music listening over bluetooth. This has easily cut my battery usage if half or more while at the gym. Best part is somehow it can do this but then also be smooth as butter through normal phone usage.

I loved Flar's kernels on the Evo LTE and if I remember correctly he was blind dev'ing for that phone using the Droid DNA to port from. I can't believe I've waited so long to try this one out.:good:
[Nexus 5 Original Android Development] drawde40599:
Yep
[Nexus 5 Original Android Development] flar2:
I'm not sure actually, I haven't looked at intellidemand. ElementalX governor is based on a mix of a of HTC's multiphase ondemand and two-phase ondemand, plus gboost and input boosting.

You can customize the input boosting in a few ways. Note that Trickstermod doesn't work properly with ElementalX governor.

input_event_min_freq: takes four values separated by comma. These are the input boost frequencies for cores 0, 1, 2, and 3 (default 1728000, 1267200, 1267200, 1267200)

input_event_timeout: this is the length of time in milliseconds that the input boost will be active (default 500). Setting this to 0 disables input boosting.

ui_sampling_rate: when you touch the screen, the sampling rate changes temporarily to whatever you set here (default 15000)

two_phase_frequency: this sets the max frequency for moderate loads. Accepts four frequency values separated by comma, for cores 0, 1, 2, and 3. (default 1728000, 1728000, 1728000, 1728000)

If you want to experiment, delete /system/lib/hw/power.msm8974.so and set the input_event_timeout to about 1000. But I recommend leaving it alone for optimal smoothness.
[Nexus 5 Original Android Development] Luigi_2:
so after 500ms the sampling rate turns back to value of sampling_rate, will 10000 make it more aggressive?
[Nexus 5 Original Android Development] flar2:
Yes, lower is more aggressive.
[Nexus 5 Original Android Development] danmaman:
Hi

I've tested a little bit with this script....

and it's good for me/great battery

in aroma -750V and row/512 backlight dimmer on.....rest default

#!/system/bin/sh

#TCP Congestion Control

echo cubic > /proc/sys/net/ipv4/tcp_congestion_control

#scheduler

echo 0 > /sys/block/mmcblk0/queue/add_random

#governor

echo "1574400,1267200,1267200,1267200" > /sys/devices/system/cpu/cpufreq/elementalx/input_event_min_freq

#echo "1500" > /sys/devices/system/cpu/cpufreq/elementalx/input_event_timeout

echo "1574400,1574400,1574400,1574400" > /sys/devices/system/cpu/cpufreq/elementalx/two_phase_freq

#multicore power savings

echo 2 > /sys/devices/system/cpu/sched_mc_power_savings

#undervolt-50

echo '300000 700000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '422400 725000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '652800 745000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '729600 755000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '883200 775000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '960000 785000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '1036800 795000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '1190400 815000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '1267200 825000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '1497600 860000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '1574400 875000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '1728000 905000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '1958400 945000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '2265600 1000000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '2342400 1015000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '2419200 1030000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo '2496000 1045000' > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

/input_event_timeout i comment out

if im testing with it,i rename it to /system/lib/hw/power.msm8974.so.bak

and i enable event timeout again....

but at the moment (500ms) i run very great with this script...:good::good::good::good::good::fingers-crossed:

PS:thanx notbrodie for the help:D

and of course thanx to you Flar for this awesome KERNEL
[Nexus 5 Original Android Development] Gorduy_Pti4ka:
I go to 0.34 from 0.30. Now i have better radio signal but with UV to 725 i get reboot (0.30 was 700 uv without any problem)

Отправлено с моего Nexus 5 через Tapatalk
[Nexus 5 Original Android Development] danmaman:
then try 750

i had it also

don't UV too much

cheers
[Nexus 5 Original Android Development] dakore:
I was on 700 with 0.26. Latest 0.32 and 0.33 doesn't boot at 700mV. Just leave it at 750 and set UV by Trickstermod or any other app. My phone with 0.33 normaly works with UV settings same as on 0.26 - voltage seems to be problem just when booting so leave it at higher value in aroma installer.
[Nexus 5 Original Android Development] kamilmirza:
thank you flar for this great kernel, I've been using ElementalX from HTC One ;)

can anybody share it's best battery configs?

I'm only getting 4.5 hours (max) screen-on time with light usage (Facebook, whatsapp with light browsing) :(

my setup: elemental governor, 700uv, 320gpu, 1728 freq , v34

I have seen people with 5-6+ hours

thanks again :angel:
[Nexus 5 Original Android Development] Gorduy_Pti4ka:
I was leave it on 750 in aroma then try uv 725 with trickstermod and got reboot

Отправлено с моего Nexus 5 через Tapatalk
[Nexus 5 Original Android Development] hooliganx:
don't use trickster.

set up what you want in system /etc /elemetnalx.conf

search button is your friend ;)

N5*SlimKat.b3.6*Elementalx.033*ART*TWRP.2.7*0.23
[Nexus 5 Original Android Development] Gorduy_Pti4ka:
I use kernel tweaker now

Отправлено с моего Nexus 5 через Tapatalk
[Nexus 5 Original Android Development] danarama:
Faux clock seems the best to me
[Nexus 5 Original Android Development] gpvecchi:
I'd like too, but how can I set TCP/IP anti-congestion algorythm without Trickster?
[Nexus 5 Original Android Development] Gorduy_Pti4ka:
"Leatest 0.32+ doesn't boot at UV 700"

Отправлено с моего Nexus 5 через Tapatalk
[Nexus 5 Original Android Development] deadpedal:
The command to do so is:

echo westwood > /proc/sys/net/ipv4/tcp_congestion_control

Just throw it in an init.d script. Replace westwood with the tcp congestion control you want to use.
[Nexus 5 Original Android Development] hooliganx:
really?. for me it's ok since .32.

N5*SlimKat.b3.6*Elementalx.033*ART*TWRP.2.7*0.23
[Nexus 5 Original Android Development] FuMMoD:
That's not a bug. Undervolting and underclock is at the user's own risk. If you don't run default settings then you'll run into problems eventually. If you're having issues undervolting then revert to a previous version or just don't undervolt.
[Nexus 5 Original Android Development] safendi:
Soc limiter temperature it's right to set off?
[Nexus 5 Original Android Development] gamerman123x:
Ya you can I'm going to make a script of my settings just testing it

Edit: just saw someone answer but I'll still give some battery settings later
[Nexus 5 Original Android Development] drawde40599:
So raise it , then change after boot ( still may not work but that's how u do it ) , but flar2 said not everyone will be able to UV as much with new builds , its normal ..
[Nexus 5 Original Android Development] anthonyly:
How much battery do you even save undervoling?
[Nexus 5 Original Android Development] FuMMoD:
You don't, it's more to prevent the phone from heating up. I uv by 25 and use the cooler temperature option to keep my phone from heating up too easily.
[Nexus 5 Original Android Development] UgoBoss:
My battery life seems to be worst when the max CPU frequency is 1497, than 2200 Mhz, is that possible or it's just placebo effect ?

Thank's ! :)
[Nexus 5 Original Android Development] danarama:
Its possible yes. 1Hz is one clock cycle. The more Hz you have, the more clock cycles are running simultaneously.

If a known task takes x cycles to complete, its possible that with fewer clock cycles, the task takes twice as long to run.

This potentially means

1) cpu running "Max" for longer

2) deep sleep further delayed
[Nexus 5 Original Android Development] UgoBoss:
Okay thank's for explanation ! :good:

So, in theory, it will be better to leave at 2.2 Ghz ?
[Nexus 5 Original Android Development] danarama:
Its debatable. Not every task will take more cycles to complete than your Max. Really depends on many factors. Personally I don't underclock. Only max screen off when I feel device should be sleeping but you can even imagine drawbacks there too.

To each their own. You ask if it's possible, the answer us yes. But whether its actually happening, that's hard to say.
[Nexus 5 Original Android Development] tomdot:
Since 0.33/0.34 my phone has been having issues with battery drain

Android OS shows >3 hours

Betterbattery Stats shows it's msm_dwc3 (Qualcomm USB controller) as a wake lock.

reverting to 0.32 doesn't give this problem. Any one else?
[Nexus 5 Original Android Development] Batfink33:
Does this kernel have Temperature Throttle off by default? I noticed its off in Trickster.

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

Very, very little if any at all.
[Nexus 5 Original Android Development] eug89:
What app are you using to monitor the cpu temp? With other kernels I would use trickster but with this I don't want to screw the settings I choose during installation by using it. And what temperatures do you consider acceptable and safe? As of know I'm using all the deault settings, so stock voltage and elementalx thermal throttling.
[Nexus 5 Original Android Development] waallen:
I noticed this too but I didn't know how to actually reproduce it or get note information. I am not sure if relevant but in better battery stats the migration process is by far the one using most of the CPU time and from what I learn it should be the one that takes care of distributing the workload between the CPU cores.
[Nexus 5 Original Android Development] danarama:
Potentially you can. I personally find I notice a minute difference, however....

...it would be pretty unquantifiable.
[Nexus 5 Original Android Development] Beremus:
A great thanks to [MENTION=4684315]flar2[/MENTION] .

Again this kernel is amazingly fast and have a great battery life. I followed you when I had my HTC One (I hope you will go on the new One, even I think you said you won't opt in non-nexus devices anymore). Here's my review, for guys who, like me, are wondering what are the best kernel out there.

From my personal experience, I tried Faux123's kernel, Franco's kernel and yours. When I had my N4, I was on Franco's, it was blazing fast. When I bought my N5, I immediately flashed franco's kernel without asking any questions. But I found a little loss on speed on the UI and apps, etc. The battery was really good thought. Then, I saw you were developing for the N5. I admit I waited a bit to make sure the kernel was stable before flashing it. But when I did, wow. Yours is much faster, have an awesome battery life. I do love AROMA. I don't like messing too much with my configurations. Now my nexus is back on track with perfs equals to the stock kernel. I have no more animations lags (trust me, it's not a placebo). The nexus now flies.

That said, to anyone wondering what the best kernel is, in my opinion, flar2's one is the best out there. But again and again, it's my personal opinion and testing with my personal usage.

Well, keep doin' your awesome work.

Cheers.
[Nexus 5 Original Android Development] howard bamber:
Love your kernel cannot get your PayPal button to work.. If we all gave what we could for your hard work you'd be rich, LMBO ;)

Sent by mobile telephone.
[Nexus 5 Original Android Development] UgoBoss:
Do you guys think that's a good idea to scale max GPU frequency at 320 Mhz ? Mainly for saving battery :rolleyes:
[Nexus 5 Original Android Development] FuMMoD:
I scaled it to 200mhz and I don't lag at all with the only game I play, which is smash it.
[Nexus 5 Original Android Development] danarama:
Is it better than bop it?

;)
[Nexus 5 Original Android Development] UgoBoss:
Thanks ! Did you done this with an app or with a script ?

Thank's for the game, it's awesome ! :D
[Nexus 5 Original Android Development] Savant:
Depends if you ask the wife ;)
[Nexus 5 Original Android Development] bobby janow:
Uh.. Yeah.
[Nexus 5 Original Android Development] FuMMoD:
I used the app "kernel tweaker". It's free on the market and doesn't mess with the kernel as much as trickster mod.
[Nexus 5 Original Android Development] UgoBoss:
Thank's ! Just installed it, but a last thing, why I can see two options for '200 Mhz' and same for 320 Mhz for example ?
[Nexus 5 Original Android Development] FuMMoD:
I have no idea why it shows two but I always pick the bottom one.
[Nexus 5 Original Android Development] drawde40599:
WiFi

Anyone know If everything WiFi related is Google stock ? Driver's .... ( build 34 ) . I don't remember seeing anything in change logs and I get lost on git.
[Nexus 5 Original Android Development] zchuxz3x:
me 320mhz and all is OK :)
[Nexus 5 Original Android Development] FuMMoD:
You can bring it down as much as you want. 320 will save battery and still run games really smooth.
[Nexus 5 Original Android Development] natzakaria:
How do I set the MIN GPU frequency to 320 and MAX to 450?

Using what app?
[Nexus 5 Original Android Development] gamerman123x:
I believe you need a script to do that I don't know any app to do that
[Nexus 5 Original Android Development] zchuxz3x:
take a look...
[Nexus 5 Original Android Development] alb3rtt:
Do you even read? It's on the previous page but I'll tell you now, its called kernel tweaker.
[Nexus 5 Original Android Development] gamerman123x:
Ya ik that I think he is asking how to set the min to 320 and max to 450 just like the clock speeds for CPU that is just the GPU clock max

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

Look at my post on what I think he is talking about kernel tweaker just sets the GPU clock for max freq only not both
[Nexus 5 Original Android Development] FuMMoD:
Lol I just finished mentioning how to adjust the gpu freq
[Nexus 5 Original Android Development] gamerman123x:
Here is a script to change it anyway but you can't change the min gpu freq only the max freq 200mhz is always gonna be min.

#!/system/bin/sh

# GPU

echo 320000000 > /sys/devices/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/max_gpuclk
[Nexus 5 Original Android Development] natzakaria:
Changing max frequency was not an issue and was not my question. I can do that easily with faux etc. Read properly its the min frequency that I was asking for
[Nexus 5 Original Android Development] FuMMoD:
There is no such thing as minimum and max gpu freqs. Only the max gpu speed. He answered your question.
[Nexus 5 Original Android Development] gamerman123x:
You read proper I answered that you can't change the min
[Nexus 5 Original Android Development] giorat23:
4.5hs on screen its a VERY good battery life... Much better than others flagships phones. Don't complain..
[Nexus 5 Original Android Development] Syk69:
Actually if I'm not mistaken according to flar, in this post this is how to set min GPU frequency.

http://xdaforums.com/showpost.php?p=49969728&postcount=3573
[Nexus 5 Original Android Development] ali262883:
+1..

I get 5hrs onscreen time atleast with the latest elemental x.. Its better than almost many phones.. Some phones with a higher battery capacity also can't achieve such battery..
[Nexus 5 Original Android Development] FuMMoD:
Great find! I wasn't aware that this was possible.
[Nexus 5 Original Android Development] gamerman123x:
Ya I knew it was possible but It wasn't possible in the place that I was looking at of where to scale the max freq with a script and I didn't know where to find it
[Nexus 5 Original Android Development] nealkoy:
With the performance you are getting with this kernel , 4hrs+ SOT is already amazing. [emoji106]
[Nexus 5 Original Android Development] LOVE ME PLEASE:
Do this kernel change boot animation from stock animation? Thanks!
[Nexus 5 Original Android Development] Starsream88:
Boot animation is ROM side, so NO !

Envoyé de mon Nexus 5 en utilisant Tapatalk
[Nexus 5 Original Android Development] LOVE ME PLEASE:
Great! Thanks. I'm ready to flash this baby.