yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] Tzfardaya:
Or use a Pam to reduce the max CPU freq. I know it sounds counterintuitive, but there is usually a sweet spot that is above the throttled speed but keeps the temp low enough to avoid throttling.
[Nexus 5 Original Android Development] Wenzo2:
there is something related with thermal throttle in the last boot.img?
[Nexus 5 Original Android Development] omvir:
Yes. Thermal throttle threshold has been increased.
[Nexus 5 Original Android Development] bobby_sucker:
What's the temp limit now??
[Nexus 5 Original Android Development] omvir:
70. You should flash the test boot.IMG anyways.
[Nexus 5 Original Android Development] ConMcCRay:
[/COLOR]
[Nexus 5 Original Android Development] Tzfardaya:
weird how?
[Nexus 5 Original Android Development] ConMcCRay:
It stops for a second or two then starts again. Its not doing it right now but it was doing it before. It might of been my Bluetooth speaker. :confused:
[Nexus 5 Original Android Development] armando_rod:
Just tested the latest boot.img and USB OTG is working again for me (didn't worked since r40) thanks!
[Nexus 5 Original Android Development] patriotaus:
My lag is not associated with the thermal throttle. It lags straight away in games. I had to turn graphics down to low in Asphalt and it still lags throughout the whole race. When i flick back to stock i can easily play on high graphics without lag. 47 has been the worse so far for this use-case.
[Nexus 5 Original Android Development] Tzfardaya:
Use a system monitor to track CPU freq speeds for your games on both stock and Franco. (are you underclocking the gpu any?)
[Nexus 5 Original Android Development] patriotaus:
I originally was underclocking and undervolting both my cpu and gpu (which had been fine for many versions). But yeah i reset everything back to stock franco before eventually jumping ship (pretty much just waiting till version 48 to see if things are different). I hadn't tried monitoring it as I knew it was lagging but I wasn't going to be able to work out what was happening.

I was just supporting the issue the other guy had which was dismissed as thermal throttling. It definitely happens only 1 second into a game and was significantly worse in 47.
[Nexus 5 Original Android Development] Tzfardaya:
Because 99.999% of the time, in game lag on this device is due to thermal throttling...

So In order to be certain that your lag is not caused by tt, you need to go through the same steps that resolve tt to be certain...

So, once again... Use a system monitor to track what CPU frequencies are in use when you're lagging, then test again with the stock kernel to see what frequencies it uses when you're not lagging...

(need to rule out the common problems to find the uncommon ones)
[Nexus 5 Original Android Development] patriotaus:
Yeah the other guy can if he wants. If the kernel 'throttles' 1 second into a game and stock doesn't, I'm happy sticking with stock. Again, was just supporting the other person's problem.
[Nexus 5 Original Android Development] Tzfardaya:
So, rather than help fix a problem you encounter, you just wash your hands and be done with it? Why bother even voicing support then?
[Nexus 5 Original Android Development] patriotaus:
I solved the issue quite quickly and easily. By going back to stock. Thanks for your help.
[Nexus 5 Original Android Development] Tzfardaya:
except that's not a fix, it's an avoidance... but whatever, enjoy stock.
[Nexus 5 Original Android Development] franciscofranco:
Enjoy stock :)
[Nexus 5 Original Android Development] mau1960:
That's great Franco, it works again! [MENTION=4860519]Tzfardaya[/MENTION], as you can see it was an issue related to kernel and Franco was able to fix.

Thanks Franco :D

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Original Android Development] Tzfardaya:
So I see, though I've never claimed to be infallible... :p
[Nexus 5 Original Android Development] big_bum:
What is better for battery life? All time all 4 cores online, or all time 2 cores online and hotplug-ing core 3 and 4?
[Nexus 5 Original Android Development] Tzfardaya:
the jury is still out on that one. TGM and Vomer both have played with 2 core and 4 core setups, but neither has come back and reported that "this is better for battery life" one test will give 4 cores a 10-20 minute advantage, and the next shows 2 cores the same advantage.

Like many other kernel tweaks and adjustments, there are too many variables at play to state yea or nay with certainty...

So, try both and reach your own decision, and come back to let us know what you've found (preferably with supporting tests)
[Nexus 5 Original Android Development] phantom55tr:
which rom do you recommed to use with this kernel?
[Nexus 5 Original Android Development] Tzfardaya:
any non-cf rom should work. :p I use stock, others use cataclysm, PA and omni are also common choices, along with numerous others, I believe carbon was listed as working...

check out the learners lounge linked in the op and read up on this kernel there. :p
[Nexus 5 Original Android Development] RobbieL811:
I too am having this problem with Asphalt skipping. I'm also pretty certain that it's not thermal throttling. If there's anything I can do to help, let me know.

Sent from my Nexus 5
[Nexus 5 Original Android Development] Ryrynz:
Could this be the same issue I had with opera playing videos? The interactive governor does a bad job of scaling up the frequencies. It really seems to like sitting on, 300mhz. Franco should we only have the three options here? Performance, interactive and ondemand? Those are the only ones I can choose in no frills CPU control. Is interactive broken? Because apparently from what I read it should scale better than ondemand.
[Nexus 5 Original Android Development] RobbieL811:
I had a PAM set at a couple of different frequencies when I was testing some stuff & while I was playing the game, it was definitely going to whatever the max frequency that I had set at the time.

Sent from my Nexus 5
[Nexus 5 Original Android Development] Tzfardaya:
it's interesting that in the post you ask what you can do to try and help solve the issue, you quote mine... in which I suggest installing an app ( a system monitor) to watch the cpu usage for the game running on franco and stock so you can compare how each kernel scales and runs in that game....
[Nexus 5 Original Android Development] occtec:
Any ideas as to what could be the cause of my wakelocks? Please see attached, only started since upgrade to r47 coming from stock kernel.
[Nexus 5 Original Android Development] shinesthru:
Did you try a reboot? Could just be a rogue app acting out. A simple reboot usually fixes that.
[Nexus 5 Original Android Development] RobbieL811:
I was talking about maybe logs. I have already done the things that you said. On another note, it seems to be working better on the new 48 test. I just played for 20 minutes with PAM set at 1267 & it ran great. Other users having same problem may wanna try new boot.

Sent from my Nexus 5
[Nexus 5 Original Android Development] Tzfardaya:
logs generally don't show anything for lag...

lag is usually caused when the device thermal throttles to a cpu freq too low to run the game smoothly (and no errors will show in the logs, since nothing is going wrong) and since franco's kernel and the stock kernel handlw thermal throttle differently, they both end up at different frequencies...

two ways to counter it with franco... either raise the thermal threshold, or use a pam that limits the cpu enough to prevent throttling but still runs the cpu at frequencies higher than the throttled freq's
[Nexus 5 Original Android Development] RobbieL811:
Well, I've been using PAMs at anywhere from 1.0 to 1.5. I couldn't get it to work right last night on the test 48 that I was running. As a said last post, it seems to be working pretty good on the latest. Seems like that game would pull from more than 2 cores too. It's been using mostly 2 cores. Probably about 90% of the time. I guess that's a good thing though as long as the game is playing as intended.

Sent from my Nexus 5
[Nexus 5 Original Android Development] Tzfardaya:
depending on where you've set the hotplug load_threshold (if you've changed it) it may or may not pull more cores... set at default, the cpu load would need to be over 70 in order to trigger additional cores, scaling and hotplug both base off load, increasing cpu processing power when the load is heavy, and reducing it under lighter loads...
[Nexus 5 Original Android Development] occtec:
Yeah, have done multiple reboots going in and out of recovery??
[Nexus 5 Original Android Development] franciscofranco:
Is that JuiceDefender on your notification?
[Nexus 5 Original Android Development] occtec:
Nah, icon looks almost the same though. It's lookout security ;)

Any ideas Franco, what could be the cause of this android wakelock??

All seems normal here from what I can see? Not sure about AudioIn though, is that just my google search bar awaiting for audio input commands?
[Nexus 5 Original Android Development] franciscofranco:
Get rid of that app.
[Nexus 5 Original Android Development] occtec:
If you are referring to lookout security, what's wrong with it? Do you believe that is the cause?
[Nexus 5 Original Android Development] shinesthru:
Worth a shot.
[Nexus 5 Original Android Development] franciscofranco:
I don't know, but I don't trust those so-called security apps on this platform, who knows whats it doing in the background.
[Nexus 5 Original Android Development] Tzfardaya:
It's another one of those apps that likes to keep your phone from sleeping....
[Nexus 5 Original Android Development] occtec:
Thanks guys, will give it a shot. I was always wondering what I was doing different to everyone else that was getting 6.5hrs+ SOT and yet I was only getting around 3hrs+max. Will give it a shot, cheers [emoji106]
[Nexus 5 Original Android Development] Tzfardaya:
Heh, my times are about the same.. 3.5hrs if I'm very lucky... But I also abuse my phone... Bluetooth devices constantly connecting and disconnecting, poor mobile data connections, gel listening for my commands, heavy apps that like to drain batteries...
[Nexus 5 Original Android Development] occtec:
Yeah, so looks like I'm not the only one. Although I must admit my battery didn't seem to drain quite as fast using stock kernel but I do love Franco kernel and will stick with it, absolutely love the added features of this kernel [emoji106] Here are a few battery saving tips that you may already know about but it's worth a shot, I have just followed through with some of them so will be interesting to see if there is any improvement. Here's the link http://nexus5.wonderhowto.com/how-t...-nexus-5-without-installing-any-apps-0154648/ cheers [emoji6]
[Nexus 5 Original Android Development] Tzfardaya:
Franco's kernel has nearly doubled the sot for me from stock... I'd be lucky to get 1.5-2 hrs of sot with stock....

even more useful battery saving ideas here... (be careful with the undervolting though... It takes a long time to get them right)
[Nexus 5 Original Android Development] blueren:
Im just curious. Can u check what your max freq is set as and report back - when this happens again?

chk max freq --> run game till it lags --> quit --> check max freq --> wait till temp < thermal temp --> check max freq.
[Nexus 5 Original Android Development] occtec:
Thanks for the link, but I was getting approx 3.5-4hrs on stock [emoji6]
[Nexus 5 Original Android Development] Tzfardaya:
Like I said.. I abuse my phone's battery.. ;)
[Nexus 5 Original Android Development] blueren:
Continuing on the weird freq behaviour that my phone has, I'd like to manually implement something.

Some sort of tasker / init.d script that runs ones in 5 mins. Checks if pam is off(this is optional) Then:

while (true) {

if ( cpu_temp < thermal_thresh)

if(cpu_max != 2.2GHz)

set cpu_max = 2.2GHz

sleep sometime

}

cat /sys/class/thermal/thermal_zone*/temp --> what do these map on to?

can someone give me pointers?
[Nexus 5 Original Android Development] iPsychoGeek:
Alot of SoD's on latest May 3 beta.

Nexus 5 with Tapatalk Pro
[Nexus 5 Original Android Development] hello00:
yea dont install any of those anti virus or security apps..as long as u dont use ur phone to watch porn then u r good to go
[Nexus 5 Original Android Development] PainfulLover:
What does one thing have to do with the other?!

The right antivirus app will have minimal affect on the battery and performance.

Edit: porno is good for you, watch it.
[Nexus 5 Original Android Development] EPayne123:
The best Signature Avatar OF ALL TIME!
[Nexus 5 Original Android Development] hello00:
avg antivirus is a battery drainer if it is on auto scan daily
[Nexus 5 Original Android Development] Technecium:
Antivirus is user space. If it is draining your battery talk to the developer of the app.
[Nexus 5 Original Android Development] Jwizzled:
Anti-Virus is hardly needed on a Android device. I never use anti virus on any device I own anymore.
[Nexus 5 Original Android Development] aimcr7:
No SoD here, been on it for more than 7hours, attach the last_kmsg here if it happens again, if you don't know how to pull it, google it.

You help nothing with this kind of post. :)
[Nexus 5 Original Android Development] whytechapel_x:
Does USB otg work with this kernel? I've seen some people say that it does but it never has for me, even on the latest test build.
[Nexus 5 Original Android Development] TR2N:
I have the same problem. When I play Asphalt or Dead Rising 2 the game performance is heavily hit. On stock kernel the games are running smooth. So what is the difference? I'm running latest franco r48 test with Ondemand.
[Nexus 5 Original Android Development] occtec:
Yes I also get game lag, on subway surfers r47 didn't have the issue with stock kernel. [MENTION=3292224]franciscofranco[/MENTION] just reporting not complaining! Love your work [emoji6]

---------- Post added at 07:17 PM ---------- Previous post was at 06:59 PM ----------

Does anyone have a recommended speaker gain setting using fku in kernel settings to improve the overall stock experience, your recommendations would be appreciated. Thanks in advance [emoji106]
[Nexus 5 Original Android Development] 7ewis:
Any idea what caused these two reboots? The 2nd occurred within a minute of the first. I haven't changed any of the default settings.

Also, as I'm typing this... I've noticed the vibration sounds different, almost loose!?

Anyway, here's the log file:

https://www.dropbox.com/s/1ixwlxwtggems69/last_kmsg﻿
[Nexus 5 Original Android Development] mau1960:
It worked for me till r39, but starting with r40 my otg card reader was not recognized though my USB own was recognized. With the latest test build everything is ok. I use stockmount to mount otg devices.

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Original Android Development] Mihnea1996:
Same here. But CSR Classics is very smooth. The lag is present in Smash Hit as well. I don't know if it's a game problem or is from kernel.

If I want to switch between Custom kernels, can I only flash the zips? Or I Should flash again the factory image and then the kernel?

Sent from my Nexus 5
[Nexus 5 Original Android Development] aimcr7:
Try latest boot.img inside the test folder, someone reported it fixed the issue related to otg

---------- Post added at 06:44 PM ---------- Previous post was at 06:41 PM ----------

Dirty flash your rom is recommended if you want to switch kernels or restore your backup but only the system.
[Nexus 5 Original Android Development] harshalkatakia:
Color profiles don't stay on boot. Restores the profile back to stock. I tried clearing the FKU Data and re-installing the app, but none worked. I'm on the latest beta kernel, and facing this problem since a couple of days.

I even wait for the phone to completely load up and let SU give the required permissions to the FKU App, but it doesn't seem to work. And yes, "Set colors on boot" is ticked.
[Nexus 5 Original Android Development] mau1960:
As I said the latest boot.img cured the issue [emoji6]

Inviato da mio iPad utilizzando Tapatalk

---------- Post added at 01:56 PM ---------- Previous post was at 01:54 PM ----------

This is very weird. Did you turn off and on the screen with the power button?

Inviato da mio iPad utilizzando Tapatalk
[Nexus 5 Original Android Development] harshalkatakia:
Yes, using the phone since 30m and have turned the screen on and off multiple times, but still doesn't change color profiles.
[Nexus 5 Original Android Development] occtec:
I had the same issue on stock ROM but have fixed it, not sure if it was coincidence or not. Also had set on boot but wasn't sticking after reboot so I went back into color profiles turned off set on boot then turned it back on, power of power on then reboot now all is well. Also make sure to use SuperSU as when I was using superuser integrated in custom ROM this was also an issue but after flashing chainfires SuperSU all was fixed. Hope this helps.
[Nexus 5 Original Android Development] fatspirit:
What about Juice Defender, btw?
[Nexus 5 Original Android Development] yorici:
Do you have multiple color apps installed? If you have, review the set-on-boot settings on all of them. Only one of them should be turned on otherwise they are all going to apply a profile.
[Nexus 5 Original Android Development] harshalkatakia:
Yes, I'm on Chainfire's Super User app. I flashed stock kernel and then franco's and it seems to work now, but in case it doesn't, I'll try your method. All I basically have to do is,

Untick set on boot --> Tick set on boot --> shut down phone --> Start phone --> Reboot

Please correct me if I'm wrong :)

---------- Post added at 05:47 PM ---------- Previous post was at 05:46 PM ----------

Nope, I did try it, but didn't work. I flashed stock kernel and then franco's. It seems to all be fine now :)
[Nexus 5 Original Android Development] occtec:
Yes, I'm on Chainfire's Super User app. I flashed stock kernel and then franco's and it seems to work now, but in case it doesn't, I'll try your method. All I basically have to do is,

Untick set on boot --> Tick set on boot --> shut down phone --> Start phone --> Reboot

Please correct me if I'm wrong :)

Yes in that order [emoji6]

---------- Post added at 10:13 PM ---------- Previous post was at 09:51 PM ----------

EDIT: Sorry my mistake, not shutdown phone but use power button to sleep device then wake device then reboot ;)
[Nexus 5 Original Android Development] Enddo:
out of the four screenshots you posted, none of them show the 'kernel wakelocks' and 'partial wakelocks'.

so no, i doubt anyone can help you find out what is causing your wakelocks

---------- Post added at 08:25 AM ---------- Previous post was at 08:23 AM ----------

these are much better screenshots.

there's nothing wrong with these wakelocks. it looks like you have poor cell signal, so I bet that's the cause of your supposed battery drain

---------- Post added at 08:26 AM ---------- Previous post was at 08:25 AM ----------

it will typically cause more battery drain than it helps
[Nexus 5 Original Android Development] occtec:
Cheers, poor cell signal I definitely agree with and that's only because where I reside I do not have 4G access yet my mobile is set at 4G Recommended.. I've now switched it over to 3G so hopefully this will resolve my battery drain, [emoji106] thanks for the heads up...
[Nexus 5 Original Android Development] Tzfardaya:
And it appears some need to be spoon fed again...

The difference is still in how the two kernels scale frequencies and handle thermal throttling....

you're not using stock kernel anymore, Francis kernel handles frequency scaling and thermal throttle differently...

In game lag, as has been said before numerous times... Is caused by thermal throttling..

This is one of the main purpose of the per app mode subsystem in the Franco kernel updater app (or the stand alone per apps mode)

To limit the max CPU frequency for specific applications that don't need all that power, yet ramp the CPU up much higher than is needed, creating excess heat, cause g the thermal throttling system in the kernel to reduce CPU freq to allow the Device to cool. In games that you are experiencing lag in, the TV system reduced the frequency below what is needed for that game to run smoothly...

So, build a Pam for that game, that uses a lesser CPU freq for max (usually between 1ghz and 1.4ghz) to allow the game to use a high enough freq for smooth game play, while not creating enough heat to trigger thermal throttling...

If you would have bothered to run a search in this thread (or wandered over to the learner lounge linked in the op) you would have already known this... As it has been answered innumerable times by franciscofranco, vomer, the gingerbread man, myself, and others.... As recently as YESTERDAY...
[Nexus 5 Original Android Development] occtec:
My impression was that Franco kernel was set by default for battery and performance I have NOT played around with any kernel settings, but didn't expect any lag. BTW i was only sharing my experience and not complaining, fellas and have a good night.
[Nexus 5 Original Android Development] Tzfardaya:
In the general, Yes his kernel is tuned for a balance between performance and battery. BUT, there are times when apps (for whatever reason) need to be reigned in a little more...

franco's kernel deals with thermal throttling differently than the stock one does. Franco's kernel will run at higher freqs, generate more heat, then throttle more aggressively, resulting in a lower max cpu freq available. the per app modes is designed to let us counter this by saying "for this app, make these kernel changes, either to prolong battery, or improve performance.

go here and do some reading
[Nexus 5 Original Android Development] occtec:
I couldn't be bothered really, don't spend enough time playing games or tinkering with kernel settings, just like it the way it is as long as there is improvement in battery and performance I'm happy ;) and love the ability to change color profiles. [emoji106]
[Nexus 5 Original Android Development] Tzfardaya:
So, let me get this straight... You come in complaining about lag in a game, but when the fix is explained to you, you can't be arsed to spend 2 minutes implementing it and would rather live with the ingame lag? then don't waste our time complaining about something you have no desire to fix.
[Nexus 5 Original Android Development] occtec:
As mentioned above I was not complaining but contributing ;) Goodnight!
[Nexus 5 Original Android Development] letdatbassknock:
I noticed that every time I flash any franco kernel, My camera won't save any videos I record. I've tested it and know for sure it's the kernel, any suggestions as how to fix this because I like the kernel for its battery improvements for my N5??
[Nexus 5 Original Android Development] Tzfardaya:
what tests have you done to ensure it is the kernel? You're the only one who's reported the issue so far. What kernel version did this sproblem start? Have you done a complete clean reflash of your rom? (and not used backups to restore everything, but redownloaded all your apps again fresh from the play store)

What, if any, additional mods, tweaks, tunes do you use on your device, rom and kernel changes?
[Nexus 5 Original Android Development] Flyview:
Man chill out, people don't generally want to spend time tinkering with settings to get the performance they want/expect.

What you explain, if true doesn't really make sense. Why would Franco set the CPUs to scale up so hard and fast that they generate "excess heat" and then get bottlenecked by its own heat shortly after causing lag? I have a feeling this will be fixed soon by higher thermal limits in the upcoming r48.

I believe another problem other than the throttling is the interactive governor Franco's chosen to use. From what I've seen and read, it tends to not ramp up quickly enough, which is fine for me cause that's better for the battery.

I am on r47 and I've personally set my max CPU frequencies to 1.72GHz to prevent thermal throttling in the first place and save additional battery. I also don't play any games.