yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] franciscofranco:
How would I know...?
[Nexus 4 Original Android Development] CMNein:
I figured you'd have a better idea than say...me.

Edit: I guess what I'm getting at is that it's a fairly widespread issue, and I haven't had any luck diagnosing hardware, or software bug.
[Nexus 4 Original Android Development] nagle3092:
Wow, I don't know what happened but with r14 I was getting maybe 3 hours of screen time. Now all of a sudden I'm at 66% and already have 2hrs and 50min of screen time.
[Nexus 4 Original Android Development] mko000:
Never mind.
[Nexus 4 Original Android Development] DynamicRam:
Anyone with the RED LED problem should try this, it worked for me
[Nexus 4 Original Android Development] xploder270:
Cool that's exactly what I've encountered!

Thanks.
[Nexus 4 Original Android Development] cyberkid2002:
Just to be clear I wasn't blaming the kernel and came in here to simply ask a question... Had I come on and started ranting "wtf... this kernelz borked my camera!!!" I think your response would have been valid, as it is I think it was a little harsh. I thought it was a valid question and knowing little about kernel development I was unsure if camera drivers were held within the kernel.

Being a keen photographer I certainly understand what is involved in getting a shot in focus and for some reason this morning no matter what I did (even outdoors in bright light) the camera was missing focus. Since rebooting the phone it is now behaving again.

Your kernel is great but if you think a question is below you or not worth responding to just don't, really is that simple.
[Nexus 4 Original Android Development] danielvc:
Just make a [Q] topic in the questions forum and move along.
[Nexus 4 Original Android Development] cchant:
WOooo color control!
[Nexus 4 Original Android Development] rxmxsh:
It currently is set at 384 min. I've literally changed nothing except flashing r97. I did clear FKU data when I flashed r97 and my drain was really high (6-8% /hr), relatively to r96 (2-4% /hr)
[Nexus 4 Original Android Development] starscream92:
Something else is messing with the CPU freq/scaling settings. Mine stays idle at 384 MHz and goes into deep-sleep with no problems.
[Nexus 4 Original Android Development] cyrus_e:
Anyone else getting the lockscreen glitch again with r97?

Sometimes my lockscreen is completely frozen, I can't unlock the phone. The Notification bar slides down by just a bit and stays there. Screen is completely unresponsive, and the "menu" button is missing. I have to power cycle the phone to get a responsive screen again. Pretty annoying.

Anyone else get this issue every now and then?
[Nexus 4 Original Android Development] tkalli:
I don't have a problem with the lock screen as I don't use one.

Have it set to none.

For me, I don't see a need for one, but I am sure there will be

disagreement about this.

Everyone has their own opinion.
[Nexus 4 Original Android Development] benrees21:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

My conspiracy stick is out and it points North. Damn those unicorn rainbow coloured trolls!!!

Sent from my Nexus4™
[Nexus 4 Original Android Development] starscream92:
I'm on r97 with the Conservative governor, have been for a full day and I haven't experienced any lockscreen issues. The notification bar thing has been happening, but I'm not sure if it's a kernel-related problem (changed a lot of variables, like ROMs, past few days).

Are you running with Interactive? Interactive was the problematic governor with r95.

PS: I found that pulling the notification shade further down (instead of just flicking like I usually did with my previous setup, older CM10.1 nightly + Motley's) doesn't yield the crazy-stuck annoying behavior.
[Nexus 4 Original Android Development] rxmxsh:
Not sure what's doing it. I just checked again w/PerfMon and it seems to have settled down quite a bit. Still spikes, but not as much now. I'll go through today before deciding if I want to jump back to r96.
[Nexus 4 Original Android Development] ctfrommn:
Keep your conspiracy stick covered....no one wants that :p.....congrats on your new addition my friend!
[Nexus 4 Original Android Development] Misledz:
Franco, just a quick question, is it possible to include the High Performance Audio/Headphone Booster in the N4 as you've added in the GNexus? Considering if it worked on the GNexus theres a high chance it might work on the N4 too.
[Nexus 4 Original Android Development] zephiK:
Deny root access to Perf Mon. ROMs have built in CPU adjustments.
[Nexus 4 Original Android Development] benrees21:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Ha, I didn't even think of that when I wrote it! Thanks.

Sent from my Nexus4™
[Nexus 4 Original Android Development] ctfrommn:
Perf monitor is just that, a monitor. It doesnt change anything it simply reports frequencies and loads on each core. Something else is causing the spikes, PM is just reporting them.
[Nexus 4 Original Android Development] DesertVelo:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Which governor are you currently using and did you modify the Wi-Fi setting in WCNSS_qcom_cfg.ini file? Thanks...

Sent from the singletrack...
[Nexus 4 Original Android Development] Stylez Ray.:
Could someone please kindly post the default values for the conservative governor?
[Nexus 4 Original Android Development] jlear3:
Re: [KERNEL][GPL][N4] franco.Kernel - r97
[Nexus 4 Original Android Development] scream4cheese:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

He said he doesn't know enough about the that topic. Hardware wise.
[Nexus 4 Original Android Development] zephiK:
Oh. I was confusing myself with Performance Control which is a built-in app with AOKP.

So... thats the widget that people are using for the box on the top right.

Some things I can say, just recheck your apps. Assure that you only have 1 app to change your CPU speeds etc.

If you're using a ROM, some ROMs include CPU adjustments so deny root access to those or uninstall them... if you can't assure that "Set on boot" is disabled on those built-in app within the ROM.
[Nexus 4 Original Android Development] starscream92:
OK, not completely related to the kernel (though it's possible).

Regarding the erratic notifications shade behavior, recently my SystemUI force closed for no reason. It was the first time this ever happened to my Nexus 4. No weird behaviors (so far) since the force close.
[Nexus 4 Original Android Development] jarjar124:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Seems like faux figured it out. Interesting. Let's see what happens next.
[Nexus 4 Original Android Development] scream4cheese:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

And I think Franco said he has no interest or plans to implement it. Someone correct me if I'm wrong.
[Nexus 4 Original Android Development] jarjar124:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

You're right. I was just pointing out it since it can help Franco where to look now since he said he wasn't sure where to look I believe. I might be wrong.
[Nexus 4 Original Android Development] franciscofranco:
I have no plans to add that Earpice/external speaker interface.
[Nexus 4 Original Android Development] cocchiararo:
i think that they were talking about something audio related, but that included headphones, and how no one knew how to do it on the N4 (it was known on the gnexus), but then someone mentioned that faux might have something on that front now/soon
[Nexus 4 Original Android Development] franciscofranco:
Oh he did? Kudos for him, this audio chipset drivers are not easy to figure out :good:
[Nexus 4 Original Android Development] Misledz:
That's what I thought, turns out it's a paid app which kinda turned me off about it. Id like to know its not another Volume+, atleast field test it for free at first so you know its a bang for your buck, I'm assuming its a modified tinyalsa.so

Then again, I'm not even quite sure whats the DAC on the N4. Me and Louis just enlisted it as unsupported at first in EIZO but it works weird enough. I can figure the other aspect of speaker, just miss the Headphone Volume Booster the Gnexus had. (Just incase were on the same page)
[Nexus 4 Original Android Development] rxmxsh:
Conservative (default) and no, I did not modify the .ini file.
[Nexus 4 Original Android Development] Chochiwpg:
He posted this via his Twitter account yesterday

https://twitter.com/faux123/status/309117526749622272

Someone asked earpiece, headphone and microphone?

He replied by saying:

still working on it... Qualcomm chipset is very complicated and secretive

volume control for headphones are working quite nicely.. almost blew out my headphones while testing it...
[Nexus 4 Original Android Development] leets4uc3:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Hmm can seem to get my phone to charge fully. Its been on the charger all night and now its dropping percentage while I'm typing this and its still on the charger! Any clue what's going on?
[Nexus 4 Original Android Development] ctfrommn:
Stock charger? Is it showing recharging USB or AC? I had many issues using the stock one, switched to my old N1 charger and all is well.
[Nexus 4 Original Android Development] jlear3:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Cpu used to use either 1359 or deep sleep primarily, now it seems to be utilizing more speeds :good: idk what happened but I'm glad it worked itself out!
[Nexus 4 Original Android Development] franciscofranco:
What? When the device is sleeping it doesn't use any frequency. It only uses frequency if the device is being woken up. Do we want a small kernel function for users to set a screen off max frequency? I can do that.
[Nexus 4 Original Android Development] Hanny:
Me:

AOKP Performance Control (Untouched, Not frozen, Not uninstalled)

Franco Kernel Updater (Of course touch this when I need to make something on the CPU)

In case anyone is confused, Perfmon does NOT require superuser permissions as far as I have experienced. It is simply a monitor.

r97 with protected mpdecision

all frequencies working fine, 384/1512 conservative

I even use performance control to check my cpu states :p

(just booted up and start listening to music, so no deep sleep)

So, to everyone who has their mpdecision protection broken and cpu does not go below 1026,

it would be either some apps (system tuner? I purposefully denied that app's su permission because it does TOO MUCH things... I just want to roughly check my CPU temp with that app)

or your ROM
[Nexus 4 Original Android Development] jlear3:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Sounds like a good idea, gives everyone a chance to customize their experience more. But I was talking about the cpu usage when screen was on. It used to stick to 1350 90% of the time, but now it stopped :good::D
[Nexus 4 Original Android Development] DesertVelo:
Thanks... I noticed that the CPU0 takes more time to settle down to 384Mhz that in interactive mode. As someone else mentioned, the CPU constantly fluctuates at 384Mhz - 702Mhz when just idling with the screen on. I have not quantified what is battery impact though...
[Nexus 4 Original Android Development] vomer:
That would reduce the effect of any unexpected events I guess for misbehaving apps. :good:
[Nexus 4 Original Android Development] Hanny:
No

although this makes more customization, you need to ready be for complains like laggy transfer speed on usb / airdroid etc

back in the Gnex time I simply set the screen off max freq to the max I have as I totally believe in racing to deep sleep is more efficient in battery saving and does not cause any extra **** about screen off :cool:

if the user trusts the frequency management during screen on and they would like the max be 1512, they should also trust the frequency management when screen off

when battery saving is crucially needed, the max freq even when screen on should also be capped.

Honestly I think app management depends on the user and if there is misbehaving apps it will still wake the cpu at 384mhz if you set it as the screen off max freq

so unexpected events are still there, having the option wouldnt be a solution
[Nexus 4 Original Android Development] Ensifolk:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

What are the values of halfbreed color setup by molesarecoming with francos app with the new gamma setting ? TY
[Nexus 4 Original Android Development] bmbanker:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

That would be awesome. However, I did tweak the up_threshold for conservative higher, and I will test to see if that has an effect on the CPU state my phone chooses to be in in the car. Everything's still smooth!
[Nexus 4 Original Android Development] TheByteSmasher:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Sorry all, I don't have time to search. It's there an issue with hotplug control? Clicking on it in the app brings up a blank screen. Since like r93 or so... thanks

Sent from my Nexus 4 or 7
[Nexus 4 Original Android Development] rxmxsh:
If you didn't have time to search, then you didn't have time to post.

Franco is 'testing something'. It's purposefully gone for the moment.
[Nexus 4 Original Android Development] fone_fanatic:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

I had a friend work for a major carrier here in the U.S. and he didn't know **** about phones. He hooked me up with an interview. At the end the manager told me something along the lines of "that's awesome you know so much about technology, but we're hiring salesman here". So keep that in mind anytime you go to a any retailer.
[Nexus 4 Original Android Development] rxmxsh:
This would be great. My only hope is that people would know what they are doing with this option. I would expect complaints from people who utilize their phone (airdroid, esfe, file exchange, etc) with the screen off.
[Nexus 4 Original Android Development] SleemLDJ:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

FranciscoFranco is a Baws!!!

Nuff Said!
[Nexus 4 Original Android Development] franciscofranco:
Yes, but I give 0 ****s about that. Its like offering a Ferrari to Mr. Derp, he crashes by himself and then Mr. Derp complaining to the guy that offered him the Ferrari out of his own dumbness.
[Nexus 4 Original Android Development] TheByteSmasher:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Thanks for the answer.

Sent from my Nexus 4 or 7
[Nexus 4 Original Android Development] franciscofranco:
Yeah I already informed Roman to add the protection on his Performance utility, he should be doing it soon ;)
[Nexus 4 Original Android Development] rxmxsh:
Absolutely agreed. The more I hang around here, the more I like you.

Hopefully that was sufficient. I hate people that ***** but then don't answer the question.
[Nexus 4 Original Android Development] yokuyuki:
Day 2 of using r97 and I can definitely tell that it's been using more battery than r92 which was the kernel I was on previously.
[Nexus 4 Original Android Development] leets4uc3:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Stock charger and it shows AC. I need to.find a need charger I guess. I shouldn't have gave away my nice Samsung one.
[Nexus 4 Original Android Development] Hanny:
in that case, and following your flash and forget theory, i vote for making the default as 1512 so to make sure its a ferrari when you give to Mr.Derp :cowboy:
[Nexus 4 Original Android Development] ctfrommn:
That being the case I would guess its NOT charger related. Mine was constantly dropping to USB charging and it wouldnt keep up with the drain. I would look into reflashing your Rom if on a custom one and try a different (or reflash) kernel. YOu can try wiping battery stats, although I doubt that has anything to do with it.
[Nexus 4 Original Android Development] starscream92:
Alright, flashed the latest nightly (and r97 immediately followed) and notification shade seems to be working completely fine. Something with M2 certainly caused this issue. What the hell, I thought M2 was supposed to be more stable than nightlies o.O?

Yup, once again not Franco's fault.
[Nexus 4 Original Android Development] franciscofranco:
I'll probably make it lower like 1GHz, between 1 and 1,5GHz theres not much of a difference to be honest.
[Nexus 4 Original Android Development] cobyman7035:
in the kernel settings, if i change max cpu to 15xx mhz, will it default back to 1026mhz on governor settings? or it will only use 1500 when necessary, havn't flashed since r72:crying:
[Nexus 4 Original Android Development] Hanny:
right... you're a balanced guy and i simply like to push your stuffs to the extreme :p
[Nexus 4 Original Android Development] Testraindrop:
M2 is as stable (or not) as the nightly the day M2 was build, its just another name for the cautious/lazy people who want to flash only once every month.

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

Don't know if I got your question, but the kernel will use your may freq. when needed, it will use everything in between your set min and max depending on load.
[Nexus 4 Original Android Development] starscream92:
Are you talking about the Interactive governor's hi_speed_freq tunable? That's different than the max scaling frequency.

Max scaling frequency is the absolute maximum frequency your CPU can go up to regardless of governor. hi_speed_freq is a frequency step (assuming you're on Interactive) that the CPU immediately scales to when its load reaches the value go_hispeed_load is set to.

Yeah thanks for clearing that up!
[Nexus 4 Original Android Development] AdamLange:
@franco,

Have you noticed PRIMA error when building kernel?

http://xdaforums.com/showthread.php?t=2179218&highlight=prima

Any clues how to fix it?

Adam
[Nexus 4 Original Android Development] franciscofranco:
Yeah, just ignore that:

https://github.com/franciscofranco/mako/commit/5a7da427e24fd8da8f4f9dd27702044e5b35e3d3

https://github.com/franciscofranco/mako/commit/faeac9ff5597238db35b3c30d85e8f03f2d8a8b3
[Nexus 4 Original Android Development] AdamLange:
ACK :) thanks
[Nexus 4 Original Android Development] VivaErBetis:
My impressions after testing r97 for two complete battery cycles.

- First cycle, interactive governor with light UV. Very smooth, no important lags. Battery life good, but not as good as r93 (last hotplug kernel?).

- Second cycle, conservative governor with light UV. Very smooth. I didn't notice any difference with interactive governor in performance terms, but battery life is worse... I.e., I was watching a movie (with VLC) and, while interactive governor alternates frequency from 384 to 1512, in conservative governor almost all the movie was played in 1512 frequency. So, less battery life...

My conclusion is that I prefer the good old hotplug than the newer one (mpdecision?).

Thanks Franco for this kernel :)
[Nexus 4 Original Android Development] Pheno.menon:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Franco, can you please remove the camera shutter sound? It's annoying and no one needs it.

Transmission sent from my badass Nexus 4
[Nexus 4 Original Android Development] jarjar124:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Isn't that a ROM thing and not a kernel??
[Nexus 4 Original Android Development] gpvecchi:
EDIT
[Nexus 4 Original Android Development] spaceman860:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Just go to system/media/audio/ui and delete it

Sent from my Nexus 4
[Nexus 4 Original Android Development] malukiz:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

I have the feeling that the wifi doesn't work very well. I can't listen music or watch video without lag/pause however on my pc portable I have no problem with the same connection.
[Nexus 4 Original Android Development] Prod1702:
Yes it is rom / app not Kernel
[Nexus 4 Original Android Development] calanizzle:
Yes we want! :laugh:
[Nexus 4 Original Android Development] starscream92:
I have no issues with WiFi. Try unchecking the "Wi-Fi optimization" option under Advanced WiFi options (mind you I have this setting checked, with no problems).
[Nexus 4 Original Android Development] ogilviea:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Well, well, well...

I compared r96 and r97 with McastBcastFilter and hostArpOffload both set to 0, and discovered that my wifi definitely broke with r97: going back to r96 fixes it. This is very sad, because r97 was looking so good, battery-wise :(
[Nexus 4 Original Android Development] B3rt0:
There is no need for that. If the phone needs higher freq when screen is off then is something going wrong completely in the setup. It is not using higher freqs anyway when syncing or receiving push notifications. so dont bother ;)

did you set the permissions? i had same problems but i forgot to set the proper permissions ;) rw-r--r--
[Nexus 4 Original Android Development] republicano:
before you flash a rom use winrar,xplore etc and delete the files you don't want.

what rom are you using, you tried charging while its off, the battery stats are erased after each charge. got back to stock rom and see if that helps.
[Nexus 4 Original Android Development] yokuyuki:
Not saying that it's the kernel's fault, but I've had some strange behavior on battery use since I've updated the kernel. Yesterday, it was losing battery rapidly for no reason and the SOT calculation was off as in it would decrease sometimes during the day. Today, my Android OS took over my battery use except I wasn't getting any wakelocks or losing any battery due to it. Before you say that I haven't been using my phone, that's 1.5 SOT there.
[Nexus 4 Original Android Development] ogilviea:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Yes, permissions are correct.
[Nexus 4 Original Android Development] ansysic:
tl;dr higher frequencies on newer kernels with same load indipendent of governor

I found out that the cpu needs/stays at higher frequencies to accomplish same tasks than on previous kernels (e.g. r92). This could be something mpdesicion related...

The following screenshot shows the used frequencies on different kernels after playing a 2 min scene from how I met your mother ;)

The thing is I don't need max cpu speed for watching video. This is a crazy battery drainer.
[Nexus 4 Original Android Development] franciscofranco:
Hmmm... Interesting. Thanks!
[Nexus 4 Original Android Development] B3rt0:
we were talking about offscreen and offscreen cpu freq limitation.
[Nexus 4 Original Android Development] ansysic:
Touché
[Nexus 4 Original Android Development] noonecanhide:
AW: [KERNEL][GPL][N4] franco.Kernel - r97

About wifi:

R97 with no config modification seems to work without delay on an openwrt router with broadcom chipset. Another openwrt router with atheros chipset causes delay.

Qualcomm seems to be a real pain in the *ss. Ironically, the meaning of the german word "Qual" is "agony" or "vexation" ;)
[Nexus 4 Original Android Development] benrees21:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Agony? Since I've been using the S4 Pro my wife left me, I've had to sell my house to pay off the mortgage, had to give up smoking and my hair is turning grey! I think agony is too weak of a word!

Sent from my Nexus4™
[Nexus 4 Original Android Development] noonecanhide:
AW: [KERNEL][GPL][N4] franco.Kernel - r97

Still better love story than exynos ;)
[Nexus 4 Original Android Development] undercover:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

What's exynos? Oh, that thing they put in them Universe phones?
[Nexus 4 Original Android Development] scream4cheese:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Exyno is the name of Samsung's mobile CPUs.
[Nexus 4 Original Android Development] Tito2007:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Random reboot.

https://www.dropbox.com/s/jzsuyhv0coubqce/last_kmsg.txt
[Nexus 4 Original Android Development] franciscofranco:
[ 7.886006] keyboard reset (delayed 1500ms)

[ 9.381931] keyreset: restarting system

[ 9.382328] Going down for restart now

No errors detected

Boot info:

Last boot reason: reboot
[Nexus 4 Original Android Development] Tito2007:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Weird ..I have phone charging had a flashing notification pressed power button and phone rebooted. Will report if it happens again. Thanks

Edit: had interactive set on boot , after the reboot conservative was selected.