yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] ctfrommn:
UV has little to no affect on battery life, heat is another issue. Reduce the amount of apps syncing and use WiFi as much as possible. Ondemand or Interactive are about the same as long as you dont get to aggressive with the up threshold or sampling rates. I would use Franco out of the box as is.
[Nexus 4 Original Android Development] Ƶero:
ah, ok didn't knew that it has only little affect on battery life, and i use it out of the box only with those settings, the rest stays as it is, and using WiFi isn't possible for me... cause of LAN network at home... kinda bad but i don't use my Nexus 4 that often so its fine..
[Nexus 4 Original Android Development] ctfrommn:
I never use WiFi either, but it does make a huge difference in screen time.
[Nexus 4 Original Android Development] drawde40599:
Getting better battery with interactive also , but I'm using stock setup, just gov change
[Nexus 4 Original Android Development] Marreboy:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

@franco Do you have any thoughts or reservations on using the new superuser from Koush? Instead of SuperSU with your kernel and app I mean.

I can see a number of ROM:s have it built in. (PA and CM 10.1 for example)

I am running new superuser with your kernel and app on PA on my Nexus 7 and it seems to work well. But would anyway be interesting to read your thoughts on the matter.
[Nexus 4 Original Android Development] franciscofranco:
Zygote was complaining that it couldn't find some classes for example:

W/Zygote ( 2211): Class not found for preloading: android.server.BluetoothA2dpService

W/Zygote ( 2211): Class not found for preloading: android.server.BluetoothEventLoop

W/Zygote ( 2211): Class not found for preloading: android.server.BluetoothService

Something is really ****ed in your setup.

Build.prop device name is changed... Change it to Nexus 4.

So yesterday I took a deeper look into the Sound Driver I'll just post my findings here before someone calls me a kanger on some other threads.

As far as I could tell (I can be wrong, the driver is not easy to read) to get some headphone extra volume we just need to read this two registers:

- TABLA_A_RX_HPH_L_GAIN

- TABLA_A_RX_HPH_R_GAIN

Get their values and then write a new value to the registers (not really writing a new val to the register but thats how I can explain myself). There are helpers to read and write the new values so that shouldn't be too much trouble to build a small sysfs file to do that. I was researching this yesterday around 2am so couldn't write any code, now I'm working, after work I'll work this code.
[Nexus 4 Original Android Development] jarjar124:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Awesome! Can't wait!
[Nexus 4 Original Android Development] franciscofranco:
I can be wrong too, the driver is a bit hard to decipher - lets hope not :)
[Nexus 4 Original Android Development] Bluewall:
And I guess

- TABLA_A_RX_HPH_L_GAIN => For the right audio canal

- TABLA_A_RX_HPH_R_GAIN => For the left audio canal

Just thinking ?

Btw, if it's like that, we should apply the same changed value to both :p
[Nexus 4 Original Android Development] billclay1988:
I found r96 and r97 to be battery drainers. I flashed back to r95 and every thing's good again.
[Nexus 4 Original Android Development] franciscofranco:
TABLA_A_RX_HPH_L_GAIN -> Left, thus the L

TABLA_A_RX_HPH_R_GAIN -> Right, thus the R

Yes of course, same value.
[Nexus 4 Original Android Development] Scottyfer:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

That's just going to pump up the gain (overdrive/distortion). Just a tiny bit too much of it will start to distort the audio, way too much will make everything sound like white noise.
[Nexus 4 Original Android Development] Bluewall:
lmao, sorry, i mixed both (I need a coffee I guess :p )
[Nexus 4 Original Android Development] Pete_79:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Hey guys,

Very nice work on r97. Im at 2 days and 13 hours with 6% left. 1 hour voice calls and 2 hours screen time, on wifi, guess i can call it moderate use. But i read that people are getting nice results with interaktiva gov, i tried to change it, but it does not stick, after a reboot its back on conservative, it might have been answered allredy, Sorry If it has, but could anyone tell me how to get it to stick?

/Pete
[Nexus 4 Original Android Development] franciscofranco:
The constant might be called gain but I believe its for the volume. If you read the device tree for Mako in Android in the audio file you can read this:

'HPHL Volume':1:50

'HPHR Volume':1:50

Then in the kernel driver you have this:

SOC_SINGLE_TLV("HPHL Volume", TABLA_A_RX_HPH_L_GAIN, 0, 12, 1,

line_gain),

SOC_SINGLE_TLV("HPHR Volume", TABLA_A_RX_HPH_R_GAIN, 0, 12, 1,

line_gain),

I think the distortion/overdrive you're talking about comes from the line_gain and those constants are the actual volume itself or tied to it.
[Nexus 4 Original Android Development] gotjazz:
Cheers - did just that :)
[Nexus 4 Original Android Development] Net.silb:
Great battery with r97!! Only on 3G, no WiFi. Loving the balance between smoothness (thanks Franco for bringing mpdecision back!) and battery life!!

CPU - Fast

ROM - CM10.1 20130304 M2

KERNEL - Franco.kernel r97
[Nexus 4 Original Android Development] Scottyfer:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Gain is amplification. Volume can be maxed out and low levels of gain can then used to boost it, or volume can be set low and high levels of gain can be used to distort the audio and raise it's volume.

If those are the actual volume controls, at least one of them more than likely controls some kind of gain. I definitely see what you're saying, I'm just wondering if volume is fixed and gain is used to boost it to an acceptable level.
[Nexus 4 Original Android Development] franciscofranco:
Might be that the volume is fixed and gain is used to boost it. I'm gonna build the code and test it after I'm done with work, which is in 6/7 hours :)
[Nexus 4 Original Android Development] Scottyfer:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

If it is, too much is likely to blow 99% of speakers, so don't use any expensive headphones to test it. :p
[Nexus 4 Original Android Development] franciscofranco:
Good idea :)
[Nexus 4 Original Android Development] k1lonbo:
I cant connect to my university eduroam wifi network...

Anyone else have that problem?

Iam on franco r92 ...
[Nexus 4 Original Android Development] franciscofranco:
No, thats probably Google's PowerHAL... damn them.
[Nexus 4 Original Android Development] yokken:
So is it actually setting the CPU minimum to 1026, or just displaying it? I hope it's actually setting it, because then I can hope for battery life to get better if we can override it :D
[Nexus 4 Original Android Development] leets4uc3:
So you can see that it will stick for a little but goes back to min of 1026.
[Nexus 4 Original Android Development] franciscofranco:
Yep. Thats stock behaviour, I'll have to fix it when I get the N4.
[Nexus 4 Original Android Development] Martin_Ro:
For me it goes down To 384

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Original Android Development] Locksmith81:
Lasted over 36 hours on test 3
[Nexus 4 Original Android Development] sarni84:
just got this on build 2 ;) good scores when the phone is not hot or should I say when thermal throttling kicks inafter that it goes to hell
[Nexus 4 Original Android Development] kchino:
Franco you are an excellent kernel dev, and welcome to the US! I've bought your app and used your kernels on the GNex, HOX, SGSIII so it's great to see you working here.

I ran version #2 all day yesterday and have been running #3 for about 5 hours. #3 feels a bit snappier but it's hard to tell this device hasn't lagged at all even on the stock kernel. It also is scaling down to 384 and deep sleep with no problems. Can't report on battery without a few cycles.

I did notice on #3 that cpu spy wasn't showing that it was scaling properly until I force closed the app. Even now it's showing that the 1458, 1350 steps are unused. Not sure if you removed those or not but could be why some are reporting that it's not scaling.
[Nexus 4 Original Android Development] b4ifuru18:
I am NOWHERE near these scores.
[Nexus 4 Original Android Development] kcls:
So improved speed and better battery life? Why would anyone not use this? Flashing when I get home... Thanks!
[Nexus 4 Original Android Development] Prod1702:
Linpack is all over from 80 to 160. This on boot3. I have also had random reboots while clicking a links in chrome as well. Not sure if that is kernel or app. I have not been able to make it happen every time. It is all random.
[Nexus 4 Original Android Development] joshndroid:
Nice Franco rocking your kernel on my galaxy nexus good to see your here for the n4 now..good job
[Nexus 4 Original Android Development] Stretlow:
Also getting random reboots.

Once in browser and another time in maps
[Nexus 4 Original Android Development] PMentior:
Add another with a random reboot with test 3. Happened just now while reading this thread in tapatalk coincidentally. Only happened the once though so I'll keep an eye out for it.
[Nexus 4 Original Android Development] barondebxl:
Nice!
[Nexus 4 Original Android Development] benjamin.j.goodwin:
This is my stats. Seems to be working on 384
[Nexus 4 Original Android Development] franciscofranco:
Random reboots crew can I get last_kmgs please?
[Nexus 4 Original Android Development] PMentior:
Here you go.
[Nexus 4 Original Android Development] nguyen47:
I got some random reboot too
[Nexus 4 Original Android Development] Prod1702:
How do you get a last_kmgs
[Nexus 4 Original Android Development] colobos:
What color settings are you guys using ?
[Nexus 4 Original Android Development] jasonwc:
You can also try using the ondemand scheduler for better performance.
[Nexus 4 Original Android Development] TL24:
I'm using the following:

238

228

240

---------- Post added at 07:15 AM ---------- Previous post was at 07:13 AM ----------

What IO Scheduler are you guys using for best performance and battery?
[Nexus 4 Original Android Development] Dr Zoidberg:
Hello, has anyone checked their catlogs when running Franco kernel? Each time I touch the screen, I get flooded with dozens of messages as follows:

PowerHAL(531): touch_boost: failed to send: No such file or directory

Over the course of an hour, there are about 10,000 such messages in the log.

I'm running CM10.1 and I checked the logs running stock CM kernel, and the messages appear only on Franco. I tested r13, r14 and r15 and the issues is present with all 3 builds.

Is this anything of concern?
[Nexus 4 Original Android Development] solrac.dc:
I'm assuming with color control now being implemented into Kernel updater, there is no need for Nexus 4 Display Control app?? ;)
[Nexus 4 Original Android Development] danielvc:
If I say this correctly, Franco disabled the touchboost with a hotplugging method that doesn't ramp up the CPU as quickly. That's why the messages appears, no need to worry.
[Nexus 4 Original Android Development] zephiK:
That's correct. Was happy to see this when I wake up :D maybe we could get a spreadsheet of colors. We had one up for the Galaxy Nexus.
[Nexus 4 Original Android Development] solrac.dc:
There is a gent who posted one up in the themes and apps under "Nexus Display Control" the most successful settings that was on the spreadsheet which folks are posting here as well is 238,228,240.

Here you go just in case you wanted to see the spreadsheet for yourself ;)

http://xdaforums.com/showthread.php?t=2039607
[Nexus 4 Original Android Development] Martin_Ro:
To address the "Red Light" Problem:

Have you used Fsync on or off. Because I have some slight feeling that it was off (for performance) and in the End your Batterystat got corrupted and that's why the phone thought it was empty but wasn't (otherwise it wouldn't make any sense that it was recharged that fast).
[Nexus 4 Original Android Development] a5ehren:
I got this with R14, but I think I had messed something up with the higher bitrate video mod. I had to do a full wipe to fix it, but I'm not seeing the issue on R15, stock rooted 4.2.1.
[Nexus 4 Original Android Development] Fidelio_o:
Franco love your Roms man going back to the nexus S, keep it up. Anyway we can get support for faux kernel clock app? Just want to mess with my colors a bit more
[Nexus 4 Original Android Development] jroid:
I would have to add that I'm getting the same exact behavior with my camera and it not focusing no matter what I did and it was quite frustrating. I know it has nothing to do with the kernel, but at least I know I'm not the only one. Camera results seem to vary for me. There are sometimes where I get superior picture quality and sharpness outside but has to be very high sunlight. Indoors, with incandescent lighting it performs subpar with graininess

Sent from my Nexus 4.
[Nexus 4 Original Android Development] lnfound:
Franco has his own color app, and will at some point have it implemented into his kernel app.
[Nexus 4 Original Android Development] zephiK:
its already implemented, update on the play store ;)
[Nexus 4 Original Android Development] ssauger:
kernel updater

Latest kernel updater allways asked for su permissions when i unlock the phone. is this normal?
[Nexus 4 Original Android Development] SleemLDJ:
Are you running CM10.1?

If yes then its a problem with today's nightly. A fix has been merged and should be ok from tomorrow.
[Nexus 4 Original Android Development] ssauger:
Yes CM, i know the superuser problem, but i use superSU. On kernel updater 8.2.2 it did not ask for su by unlock, only with 8.2.3

I don't have to allow it again, i only see the request for su.
[Nexus 4 Original Android Development] zephiK:
As a workaround download SuperSU zip and flash it in recovery. Use SuperSU until then.

not normal. try uninstalling the app and restarting it or clearing permissions in supersu and then restart the app and grant it. make sure "ask me everytime is unchecked" (obvious but wanted to point it out anyway just incase it was checked for some reason).
[Nexus 4 Original Android Development] jeff5891:
What color settings do you guys recommend?
[Nexus 4 Original Android Development] ceejay83:
255 247 255

It's all subjective though, not everyone has the same screen
[Nexus 4 Original Android Development] strikelight:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

From playing with alsamixer on our device, the RX digital 1 and digital 2 properties for left and right earphone, it says the default max level is 84db.. Can go up as high as 124db, but from my tinkering, if you can, you should probably cap it around 97 max.
[Nexus 4 Original Android Development] Hanny:
mate how could that be a kernel problem..........................................................

you need to try other routers with the same device and get the same fail result + try other devices with the same router and get some success results

before you judge its only your device! --> and even if its only your device, that isnt mean its the kernel, it may be your settings

for your situation...

is EAP method PEAP?

has phase 2 authentication been set to MSCHAPV2?

are identity and password correct?

there are too many factors before you can even think about its a kernel problem :)

and look at this http://xdaforums.com/showthread.php?t=1083034 , issues may lie on somewhere else than your own

eduroam is good for me in hong kong
[Nexus 4 Original Android Development] franciscofranco:
Eduroam is bull**** in most universities. I know the eduroam maintainer in Portugal and I was always complaining to him and he knew how ****ed it was.

Earphone is headphones? I can never understand those terms. It could be that as well as from the device tree in AOSP:

'RX1 Digital Volume':1:68

'RX2 Digital Volume':1:68

In the kernel driver they are maxed at 84db indeed:

SOC_SINGLE_S8_TLV("RX1 Digital Volume", TABLA_A_CDC_RX1_VOL_CTL_B2_CTL,

-84, 40, digital_gain),

SOC_SINGLE_S8_TLV("RX2 Digital Volume", TABLA_A_CDC_RX2_VOL_CTL_B2_CTL,

-84, 40, digital_gain),

I can increase that no problem. Do you know the alsa mixer commands for that or do I need to install the app for that?
[Nexus 4 Original Android Development] gpvecchi:
Guys, Franco's app doesn't set choosen governor @ boot even if options are flagged...

I had to ask for a refund... Do you know why? I'd like to make it fully work...
[Nexus 4 Original Android Development] k1lonbo:
I don´t know what is the problem....

I had a Samsung Galaxy S and no problems connecting to the same edurom network and the same routers... My friends have no issues to...

I already try CM10.1, slim, stock, AOKP, paranoid.... and always the same problem, when i connect the first time, after reflashing, its ok, and i can use for the time i want... until i disconnect wifi, after that iam never able to connect again!!

And other wifi networks its ok!!

My eduroam is like that

method PEAP

phase 2 authentication MSCHAPV2
[Nexus 4 Original Android Development] Testraindrop:
With their respective Kernels? If so, Google issue, make a bugreport on android.

If Franco only, get a log where it is successful & one where it fails, so that Franco has a baseline.
[Nexus 4 Original Android Development] strikelight:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

You may need to download the alsamixer to have it install alsa drivers and command line tools but after that, the commands from terminal would be:

alsa_amixer cset numid=27 93

alsa_amixer cset numid=28 93

To set L and R to 93 for example..

They reset when audio stream changes though.

Edit: oh, and as a side note, numid=29 is the phone speaker.
[Nexus 4 Original Android Development] andyli1985:
Can't tell if trolling or not.
[Nexus 4 Original Android Development] Hanny:
r97 + 8.8.5

confirming...

interactive set on boot... confirmed not set (back to conservative)

ondemand set on boot... confirmed not set (back to conservative)

min max frequencies set on boot... confirmed working

yup, so its governor.
[Nexus 4 Original Android Development] franciscofranco:
Great, it works. Nice to have a headphone volume boost. Thanks for sharing, I know what I'm gonna do when I'm out of work eheh.
[Nexus 4 Original Android Development] chrisjcks:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Just bought Franco's app purely to donate :)

(Since getting the N4 months ago, I've been more of a lurker than a poster on xda - as the phone is blazing fast even on stock ROM and kernel)

Quick question though, what is considered the best governor for our N4?

I know many people have different opinions, but we all want the same thing - fast & no slowdowns with best battery - so that would be.....

:)
[Nexus 4 Original Android Development] franciscofranco:
Thank you!

It really depends, theres no straight answer :/ Some users been complaining that Conservative is wasting more than interactive, so I'm testing up_threshold at 90 and freq_step 25.
[Nexus 4 Original Android Development] chrisjcks:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Interactive it is then :) lol
[Nexus 4 Original Android Development] gpvecchi:
That's what I meant... r97 with 8.8.5...
[Nexus 4 Original Android Development] franciscofranco:
I wasn't aware of that until you posted, thanks.
[Nexus 4 Original Android Development] Hanny:
r95 (default interactive) + 8.8.5

ondemand set on boot... confirmed working

conservative set on boot... confirmed working

yup so its the kernel not the app. probably some **** when you make conservative the default since r96

sorry, no app refund for you :p
[Nexus 4 Original Android Development] i860:
Nice, i have this mod all ready flash and is quite loud on my n4. Not sure if will be any help

http://xdaforums.com/showthread.php?t=2025486
[Nexus 4 Original Android Development] strikelight:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Tried that mod a few times, with the recommended settings, and another mod as well.. I had my hd2 nearby and compared volumes.. They never really increased volumes for me, just modified sound waves.
[Nexus 4 Original Android Development] sasho36:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

For me also interactive is more battery friendly than conservative and also the device is colder when playing Real Racing 3.

As the kernel app doesn't apply interactive governor at boot I tried with an init.d script but it didn't work. I checked the permissions of

"/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" and they were set to 777.

So I tried with this init.d script and it worked :

#!/system/bin/sh

echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Send from my Nexus 4 with Taptalk
[Nexus 4 Original Android Development] Utini:
r97 on stock rom... i left whatsapp open (so i didnt push the back button until i was back at the homescreen) and then turned of the screen. at some point i felt my phone burning in my jeans and batter dropped to like 30% from 90% in 1 hour.
[Nexus 4 Original Android Development] PhoenixTank:
I imagine you'll probably want the chmod first, no?
[Nexus 4 Original Android Development] sasho36:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Nop, the permissions are set to 777 at first so no problem to modify, after the modification I set them to 644 in order to prevent changes...

Send from my Nexus 4 with Taptalk
[Nexus 4 Original Android Development] santeana:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Hey franco, have you ever toyed with the "badass" governor? I just switched my girlfriends s2 to that one. Apparently it caps the frequency at like 900something until more horsepower is truly needed and then it unlocks those frequencies as needed. I found the idea intriguing and so far she says her battery life has improved dramatically. Would love your take on it!
[Nexus 4 Original Android Development] imkentoy:
USB OTG

Master.. is it possible to add the Manual USB OTG... adding the capability for the phone to read flash drives or any usb devices. :confused: hope it is possible... because i want to use your kernel.. thank you in advance :)
[Nexus 4 Original Android Development] Euler MD:
I've been withholding this post for awhile, but I must make it known. This kernel has astounding battery life. AMAZING.

I left my phone on overnight at 100%, it was still 100% after 7 hours in deep sleep. That's amazing.

Thanks so much franco. I bought your full app, so I hope it helps.
[Nexus 4 Original Android Development] scream4cheese:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

And once you start using it for like 5-10 minutes it'll drop considerably to about 96 or 95 percent.

---------- Post added at 05:00 PM ---------- Previous post was at 04:59 PM ----------

No.
[Nexus 4 Original Android Development] richardddd:
This kernel is amazing! Although I got kinda tired of having to boot into recovery and browse my sd card for 100 different versions of kernel and rom files so I created a small app to make it much easier to flash recovery zips based on file name rules and last modfied date :)

Check out the thread if you want :) Free to download on google play:

http://xdaforums.com/showthread.php?t=2178540
[Nexus 4 Original Android Development] ACastanza:
Prefacing this by saying I don't know if this is the fault of Trickster mod or PA or the Kernel, but governor settings don't appear to be sticking for me.

For example, I can change from conservative to interactive but I'll close and reopen TM and it will be back to conservative. Also Governor control never shows anything other than the Conservative settings. And finally, under conservative control, down_threshold settings won't stick. All the other settings work just fine, those just seem to be buggy.

I apologize if this is already known.
[Nexus 4 Original Android Development] ergalle2:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Franco, The WiFi fix for the problem with screen off is not working for me, even with the system file modified...

Any other fix to be included in the next version of the kernel?
[Nexus 4 Original Android Development] Puzzlegirl:
Re: [KERNEL][GPL][N4] franco.Kernel - r97

Doesn't work for me either on r97 as I posted earlier today but everything is fine on r96 with McastBcastFilter set to 0.