yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] EeZeEpEe:
Yeah it's a partial factor. Sometimes with my AC vents pointed at it, it's still a 0 charge and other times it's going up at a reasonable speed.
[Nexus 5X General] sfhub:
Has the slow charging with screen on always been the case even with the original MDA89E release?

It is a possibility they adjusted the charging rate (with screen on) to address the funky touchscreen behavior when connected to defective (noisy) charger units that were shipped out. They made some touchscreen firmware changes to address the same issue. The touchscreen firmware changes happened in MHC19J.
[Nexus 5X General] asc366:
That's a good question to which I have no good answer as patches keep coming in. Sorry.
[Nexus 5X General] roofrider:
So do these thresholds apply only when the screen is on? Does someone know how and when exactly these limits come into play? Does thresholds_clr mean when the temps drop to 38, the charging speed will again pick up?

I can't see a direct connection between these and the charging rate (if the screen is off). When charging with the screen off, the temperature almost always stays above 36°C (unless the battery is > 85 or 90%) and even touches 46°C. The instant the screen turns on it seems to drop to 400/500 mA. I don't understand how increasing the threshold is going to degrade the battery much since it already crosses 45°C with the screen off. Yeah, maintaining it at 45°C is going to have adverse effects, but at least if the temperature were to stay below 40°C with screen on, the device should charge at a reasonable rate. Right now the negotiation seems to be like: OMG!! The screen on ! I don't care what the current temperature is, let stop charging the phone or it'll explode!!

That said, I'm currently doing a little test with Ampere open. I'll post my observations soon.

Yeah I think it has been a problem since before that update.
[Nexus 5X General] Razorless:
I also measured the amperage the phone draws while charging. When the screen is off, it charges with around 2-3A. With screen on and idling (sitting on the desktop and doing nothing) it also charges fast. As soon as I do anything, even just scrolling the homescreens, it drops to around 1A.

Then I increased the [battery_monitor] temps by 4°C each (form 36/34 ; 39/38 to 40/36 ; 43/42) and it actually made a difference. The phone charged at more than 2A even when in use. However, under heavy load it still dropped to around 1A. Afer cooling down a bit, it jumped between 1A-2A while in use.

So it seems charging rate depends on CPU load and battery temperature. For a 2+A charge with medium to heavy use, the temp would need to be raised even further, and that I would NOT recommend. In the end I would say it's best to leave the [battery_monitor] in the thermal-engine alone. Even a 4°C increase didn't make a big enough difference, and batteries are much more sensitive to heat than the rest of the components.
[Nexus 5X General] kareemgonna:
Does this mean that I shouldn't use the phone even lightly while charging?
[Nexus 5X General] EeZeEpEe:
No. Just means as the title of the thread says, slow to charge while the screen is on.
[Nexus 5X General] kareemgonna:
I get that but is there any damage to the battery because of using it while charging? I recently fried a LG Flex 2 battery because of running intensive games while charging which lead to overheating of the Snapdragon 810 and ultimately killing my battery.
[Nexus 5X General] pitt93:
when screen goes on usually the temperature of the battery goes up, and to save the battery the phone charge it slowly
[Nexus 5X General] roofrider:
If only the battery thresholds can be changed on the go. If the phone can reach 45/46°C while charging with screen off, there can't be much harm if the thresholds are 45 with the screen on. It can be up to the user to keep tabs on the temp. For light usage like browsing and texting, battery temp can be maintained at 44/45°C which will give a reasonable charging rate. But if the ambient temp is high or navigating, the thresholds will have to be low to avoid getting it too hot. I haven't actually done tests by increasing the threshold and using the phone normally, but then the charging rate also depends on how hard the CPU is working and not just the temperature I believe.

Are you sure it went down? Brief negative readings in Ampere doesn't actually mean the phone is discharging. I don't think It will do that so easily unless you are really stressing the CPU/GPU and its hot (like gaming and navigating).
[Nexus 5X General] roofrider:
Something seems off there. It says 'discharging' which won't be the case if it's plugged in. I've never noticed that happen with EXKM.

That said, I've increased the second set of thresholds from 39/38 to 42/41 and I'm happy with the results.

---------- Post added at 06:26 AM ---------- Previous post was at 06:17 AM ----------

How to enable that in EXKM? Does it warn if the battery temp goes high or the CPU temp?
[Nexus 5X General] roofrider:
You can change the values in /etc/thermal-engine-8992.conf with root explorer or a similar app. I increased the threshold by 3 degrees. From 39 (thresholds) and 38 (thresholds_clr) to 42 and 41 respectively. Since I couldn't find any documentation on how this works I don't know how the first set of thresholds (36 & 34) affect the charging. Thought I'd figure it out by trial and error. Oh yeah, you need to reboot once you edit and save the file.

[battery_monitor]
algo_type monitor
sensor xo_batt
sampling 10000
thresholds 36000 [COLOR="red"]39000[/COLOR]
thresholds_clr 34000 [COLOR="Red"]38000[/COLOR]
actions battery battery
action_info 0 3

A few screenshots attached. The temperature didn't touch 45 and the only time it came close was when the screen was off for a short while. Usage involved browsing, texting, and a bit of light gaming (Alto). Before I changed the thresholds, the rate of change was 0 while gaming and that is when the battery discharged. This didn't happen after the thermal-engine edit. The point is, with a moderate increase in thresholds the phone will actually charge without burning down the house (at 500 600 mA to 1 1.5 A consistently) while using it, instead of doing nothing (@ 0 to 50/100 mA) otherwise.

View attachment 3788022
[Nexus 5X General] andyrtr:
The first value pair in the conf file is when it starts to throttle the charging, second value pair the charging full cutoff.

Gesendet von meinem Xperia Z3 Tablet Compact Wifi mit Tapatalk
[Nexus 5X General] roofrider:
Any idea at what rate? Or how it goes about throttling it? Because, even if the temp is over 36 but below the cutoff value, the phone draws 2.6A if the battery level is below say 50%. I fail to see the throttling here. Even if it crosses the cutoff value, the charging doesn't always shut off, it just drops to something like 500 mA or less.
[Nexus 5X General] Razorless:
I do believe the battery temp is not the only variable determining the charging rate. Like I said earlier, with stock [battery_monitor] temps the phone charged at full speed with screen on (cold battery), but as soon as I did something (even scolling home scrren) the charge rate dropped.

The [battery_monitor] temp has a sampling rate of "10.000" (most likely milliseconds, so it would be every 10sec). This sampling rate could not be responsible for the sudden drops and raises of the current. It also doesn't explain why the phone can charge at full speed even with a hot battery while the screen is off.
[Nexus 5X General] andyrtr:
Is Google aware of this issue? I guess they know the details of the hardware and how to improve the user experience.

Gesendet von meinem Xperia Z3 Tablet Compact Wifi mit Tapatalk
[Nexus 5X General] Shaolin007:
Guys what is the idle time nexus 5x shud charge mine takes from 0 to 100% it takes 1hr 49mins and google claims it shud be done in 1hr 40mins.

After coming to 88% what i noticed i strted charging once again at 7:54 and den i noticed my charging at 8:05 thats 11mins it just went from 88 to 95% that only 7% in 11mins seriously i am too afraid why charging becomes too slow at this point after crossing 90%.

Need your help guys.......!!!!!!!!!!?

Plus i reside in india so i m using european charger (brought frm amazon.com frm USA) with INDIAN adapter with 10amps support connected to mains.

So does this affect the charging cycles
[Nexus 5X General] PeQuEsan:
Thank you all for pointing me in right direction...

I use to do long car trips, and I use my phone with Tomtom... After upgrading from Nexus 5 to Nexus 5X I found I wasn't able to charge it while driving using Tomtom (my car charger charges at max 2,6 A, so it's Ok)... Now I see my phone was throttling.

I know it's not that good to my battery life, but I need it, so I've raised my temp limits in that file. All good after that! Now I can charge at 1 A while driving. It's slow, but it's charging at least.

Thanks again.
[Nexus 5X General] EeZeEpEe:
That's the nature of fast charging tech. Typically, 0-80% a high charge is sent and after that is a lower charge.

https://youtu.be/eD53D9iOW0g

https://youtu.be/qkYw25s4pN8
[Nexus 5X General] Shaolin007:
So is it fine if (Nexus 5x) charges mine at

1hr 50mins to full charge whereas google claims 1hr 40mins for full charge?
[Nexus 5X General] EeZeEpEe:
Where did Google claim that? Reviews have claimed that but Google says 4 hours of use in 10 minutes of charge. Take that for what you want it to mean.
[Nexus 5X General] Shaolin007:
I mean to say my mistake everyone on YouTube test video of charging showed that it takes 100mins so why is mine taking 110mins?
[Nexus 5X General] roofrider:
True. I've noticed the same. But with the new temps, the ampere drop when scrolling isn't as drastic as it previously was. I need to test more, but in all the scrolling I did, the amps barely dropped. It was hovering at 1.5 A.

Yeah. So basically, increasing the thresholds slightly and charging with the screen on (I'm only kidding) is safer for the battery than letting rapid charging kick-in when the display is off, lol.

However, I'm not sure how the modded thernal-engine will impact the charging when using navigation in a car. Will be some time before I get to check this as I don't commute to work in a car. By the looks of what [MENTION=3179236]PeQuEsan[/MENTION] posted above it seems to be working. But we are not aware of the new cut-off value he used and the highest temperature his battery now hits.

---------- Post added at 08:12 PM ---------- Previous post was at 08:06 PM ----------

It's fine. Monitor the charging time over a few cycles and consider the average.
[Nexus 5X General] PeQuEsan:
Will test these days and report back, but it depends on nav app used, ambient temperature, etc... Now I've configured quite high temperatures (45 and 48), but just for testing purposes. Once I see max temps achieved, I'll configure lower values.

Desde el móvil...
[Nexus 5X General] Flyview:
I can also confirm that changing the thresholds at /system/etc/thermal-engine-8992.conf will get rid of the charge rate throttling. I haven't yet noticed it still throttle due to other factors like others have said, but I've only had ampere open for testing. Even so, much better to know your phone can charge at 1.7-2A rather than 0.4A just because your screen is on and the battery is at 39c. I upped mine to 44/47 (+8c).
[Nexus 5X General] Razorless:
I have increased the charging rate in my thermal-engine tweaks profiles heavy and above by 4°C. So the phone should charge under light usage, but not under heavy usage to keep the battery from getting to hot.
[Nexus 5X General] ymarkevich:
I can confirm that thermal tweaking with 4 degrees puts charging at an acceptable rate, averaging at 1.1 amps with stock charger and cable, while using the N5X.

Ambient temp around 25, browsing here, cahrging monitor app and a couple of other non-demanding apps running.

Phone doesnt feel ANY hotter than usual. It simply charges now, although at 1.1A. I can accept that, but not the 0.3A bs.

Will come back for more info if I have something to add.

Update: All good with a demanding 3D online game running as well.
[Nexus 5X General] djibril13:
You changed all the temperature settings or only the second pair?
[Nexus 5X General] ymarkevich:
Both pairs, all 4 values, +4 each, as follows:

thresholds 40000 43000

thresholds_clr 38000 42000

I dont actually know what im doing, honestly. But it works.
[Nexus 5X General] asc366:
So I'm mounting my N5x in the airvent in my car. With AC full on, the phone doesn't get warm. But still, it is not charging quickly. I'm not convinced that it's solely those temp. settings.
[Nexus 5X General] Flyview:
No it isn't just the temps. If the CPU is active, the charging is also reduced.
[Nexus 5X General] ymarkevich:
True.

Bottom line - you will see real fast charge only while screen is off AND phone is idling. That is, if cables and chargers are okay.

In any other circumstances you should not expect anything above 1.1-1.8A. But the 0.3-0.5A (virtually not charging) was totally unacceptable for me so I did the temp tweak.
[Nexus 5X General] EmiRus:
Yes, can confirm

Charging slow here while Screen on,too.
[Nexus 5X General] eatsleep:
Bump!

It looks like N (final build) has improved the charging while screen is on!

Hope!
[Nexus 5X General] EeZeEpEe:
Any screenshot proof? I haven't noticed any improvement while charging in the car and keeping the screen on.
[Nexus 5X General] ymarkevich:
Can you please send more info? Like stats, screenshots, eyewitness story? :)
[Nexus 5X General] eatsleep:
The average I got was above 500mAh. It got bumped above 1,000 or even 2,000 at times. I was using the phone normally, browsing, whatsapp and even a 8 ball pool match. The current wasn't stabilizing, I remember, last night i was getting faster charging while screen was on.

It took me 6 minutes for getting 3% charge (which is better than before).

For testing, stock charger with stock cable was used and the phone is also totally stock(for now :D), another user has also confirmed it!
[Nexus 5X General] ymarkevich:
Sweet. Im hoping this will work for me too, when update rolls out. Thanks for your info!
[Nexus 5X General] potcholo:
is this issue solved after the nougat update? Can anyone confirm this? I'm planning on buying this phone because its cheaper now. And this issue and the lagginess during charging (I dont know if the lagginess have been solved) holds me back.
[Nexus 5X General] milan187:
I don't have any lag on N. Every modern phone will charge slower when screen is on. The heat will be the main reason. I've never measured this but it's never been an issue for me.
[Nexus 5X General] EeZeEpEe:
Except for Dash Charging with the OnePlus 3 or VOOC Charging with Oppo phones.
[Nexus 5X General] milan187:
Never had one. The 5x charges at 3mah. Do they do that?
[Nexus 5X General] EeZeEpEe:
I've posted a video on VOOC Charging here. It's 5V and 4A giving 20 watts compared to the 5X with 5V and 3A giving 15 watts. The extra heat is dissipated through the bigger charging block so it can literally charge full speed whether the screen is off, on, or on with use.
[Nexus 5X General] flotron:
Recently installed N and its not working
[Nexus 5X General] EeZeEpEe:
Sometimes it charges well with the screen on sometimes it doesn't. I still point at least one of my AC vents at my phone to try and help.
[Nexus 5X General] :
Mine definitely charges slow when screen is on and im using it and plugged in. Like real real slow but I don't do that unless it's extremely important... Sometimes when I get home from work I'll plug in and turn off phone when I jump in the shower and by the time I'm out and all I'm from say 20-30% back to 85-95%...
[Nexus 5X General] EeZeEpEe:
Yeah that's the best habit I picked up. I shower after work too and the 45 minutes to 1 hour with that and eating dinner get it topped off just fine.
[Nexus 5X General] :
deleted by me.
[Nexus 5X General] JaredTamana:
I'm having the same issue - did anyone replace their battery and see improvement? I really do need fast charging.

Pure Nexus, ElementalX GlassFish/GhostPepper
[Nexus 5X General] bblzd:
The electronics that regulates charging speeds is not on the battery. It can be surpassed using tweaks that disable or increase the thermal limits, however that is not recommended as it could put the battery at risk.

Every phone with fast charging (excluding maybe OP3 dash charging) will have thermal limits in place though some might be more lenient than others. I like to think the limit was set for a reason by Google and LG, most likely to increase battery longevity and reduce the chance of a battery catastrophe ala Note 7.
[Nexus 5X General] bobby janow:
If you "really do" need it then you really need to get another device. Otherwise turn the screen off and charge it. Simple.
[Nexus 5X General] JaredTamana:
I've been able to achieve 2 hours to charge with screen on from zero in the past. After experimenting with a few different ROMs, that hasn't come back. My device has never had any thermal problems in either case.

---------- Post added at 04:03 PM ---------- Previous post was at 04:02 PM ----------

See above - I know it's possible.
[Nexus 5X General] bblzd:
It can charge at full speed with the screen on if you're not doing anything with it. Otherwise the internals of the phone begin to heat up and the stringent thermal controls kick in.

It has little to do with the screen being on or not, but simply a thermal limit with the battery temperature as set by Google and LG. You can use various apps to monitor your battery temp and see this in action. The screen being on just means the phone is more likely to be in use and warmer than it would be in idle.

For instance if I play games on my phone and the battery temperature goes up to 40c, if I plug it in it right away it will charge slowly with the screen off until the temperature regulates itself. Since charging generates heat on its own it will take a lot longer to cool down and charge time will be long.
[Nexus 5X General] Siljorfag:
For me charging speed is good. Sometimes reduces current to 1A-1,5A, but i think it's related to battery temperature (wich is good, safe charging) on screen off const. 3A.

NAOSP 7.0 + ElementalEX (latest)
[Nexus 5X General] EeZeEpEe:
I get it's a thermal limit but this was the first phone I had that many times gets zero charge or actually still discharges while plugged in and doing GPS and playing music.
[Nexus 5X General] MaxOptim:
It's intended
[Nexus 5X General] CremeDeLaCremex:
My 5X charges quickly for the first time while screen on. I hope they changed something.
[Nexus 5X General] Meandi51:
what Rom you use?
[Nexus 5X General] CremeDeLaCremex:
Stock.
[Nexus 5X General] EeZeEpEe:
Yeah I play YouTube videos while driving but it's not like I'm staring at the screen. It's more so to keep in the background.
[Nexus 5X General] dwang:
thanks, if you don't mind, can you try when battery is under 50%? at > 90%, a charger will slow down charging anyways.
[Nexus 5X General] mecasull:
Back on topic... Chrome seemed to be my biggest power suck. While screen is on and I'm in chrome, is when i notice flat lining or a big drop in charging rate.

I'm running chrome stable.

Something with chrome? Or are the remaining services finally efficient enough that chrome is the hog defacto?
[Nexus 5X General] dwang:
for me it has nothing do with the apps I'm running. As long as the screen is on, it will only charge at ~500mah.
[Nexus 5X General] ghettopops:
Dwang, I will get back to you on that one seeing as I am at 94% now.
[Nexus 5X General] ghettopops:
So ran phone down to 48%(2 hr 15 min SoT) and plugged in charger and started up Order and Chaos 2 and played for 10 mins and then quit and checked battery level.....47% so looks like at least with hard gaming it won't charge while using. Going to try Netflix and will check back. So far a negative aspect, need to see how it performs more to decide if I can live with or swap out for 6p.

So, 10 mins of Netflix(LTE) and it charged 2%.

It seems that my 1+2 Type C cable performs the same charging the phone while screens on as the supplied quick charge cable as I. They both don't quick charge while screen is on.
[Nexus 5X General] dwang:
So I did some investigation and basically there is a file in /etc/system/thermal-engine-8992.conf that controls the various thermal properties of the phone. From what I can see in the file, If the battery temperature goes above 36 degrees C, the kernel is going to throttle the battery charge rate. If it goes above 39 degrees C, the battery will not get charged.

So there doesn't seem to be anything wrong with the phone or the charger, thats just how google has configured it.

My guess is, rapid charging increases the battery temperature so much that google wants your screen to be off to charge it at that rate.

[battery_monitor]
algo_type monitor
sensor xo_batt
sampling 10000
thresholds 36000 39000
thresholds_clr 34000 38000
actions battery battery
action_info 0 3
[Nexus 5X General] ghettopops:
So we are basically gonna wait for AK or someone to create a custom kernel?
[Nexus 5X General] adrialk:
If that is the correct interpretation, those threshold seem very low. Implies that the phone won't charge just sitting outside (out of the sun) on a hot day.
[Nexus 5X General] zackhow:
Mine charged just fine with the screen on.Tested last night. Started at 26%, plugged in the cable and started watching twitch. After 15 minutes I gained 8%.
[Nexus 5X General] PaoloMix09:
I can tell you guys I had this exact same problem with my HTC One M9 when I FIRST got it. It would charge really slow and barely (if any) charge while screen on. It got better after a couple days and it would charge quickly, even with screen on. Idk if this is an issue with new phones or something, but yeah.
[Nexus 5X General] dwang:
It seems to depend on the temperature of your battery.

Use gsam battery monitor and see if the battery temp is greater than 37/38 degrees Celsius.

Once that happens you will starting seeing that the battery charge gets throttled.
[Nexus 5X General] dwang:
I bet htc put out an update to fix this.

Either Google sends out an update or a custom rom can tweak the thermal engine values. I'm not that worried anymore.
[Nexus 5X General] haloimplant:
Same experience here, plug in stock charger at 13% shortly after getting warning and after a couple hours of use it was still at the exact same level. Very weird considering how crazy fast it goes with the screen off, hopefully they can fix it in software.
[Nexus 5X General] nyjumpman:
I think there is definitely something to the temperature theory. Just tried it again myself in the car with the AC at full blast.

Went from 55 to 65% in 5 minutes with the screen on the whole time
[Nexus 5X General] ghettopops:
Soooo wrap the phone in ice pack and it will be fine :p
[Nexus 5X General] frigidazzi:
This is the reason I've been looking for a car mount with a built in fan. I don't want the ac on all the time lol. Sometimes I need the heater on, but phone is still hot :(. I had the same problem since the og nexus 5 and still do, but never found a solution. :(
[Nexus 5X General] bblzd:
Fast charging creates a lot of heat and heat kills your battery, so phones limit the charge speed based on the battery temperature.

It wasn't as noticeable on the N5 because it only charged up to 1500mA (1200mA with the stock charger). The 5x goes up to 3000mA with the stock charger.
[Nexus 5X General] frigidazzi:
It was noticeable on the nexus 5 if you were navigating and streaming music :)
[Nexus 5X General] adrialk:
It's definitely temperature throttling as others have mentioned. In the morning, screen on and 75deg battery it will charge at high current.

Gonna be brutal for those that live in hot environments like Texas, Arizona, etc...

On the plus side it should really help minimize battery degradation.
[Nexus 5X General] Azarin:
Using a USB A to C cable from the Google Play Store and a 2.4amp charger (no specific quick-charge technology) I seem to get a charge rate of 1.14amps at 5.15v.

This stays remarkably stable with the screen on or off - not something I have noticed with other phones. Maybe the thermal throttling only cuts in when charging at a faster rate?