yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

No, I do not. I'm also having issues with GPS. It has been very cloudy here, but I've never had issues on n4 before. Basically it acquires signal fast but seems to freeze on a location when navigating, before saying that signal was lost. Usually have to force turn it off and on to get it working.
[Nexus 4 Original Android Development] iPwn_:
Are you planning on adding the CAF GPU updates that Franco and Harsh have added to their kernels? They're supposed to increase performance and reduce power consumption.
[Nexus 4 Original Android Development] gianton:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Today was a cloudy and rainy day, I tested GPS navigation for a couple of hours and everything was bug less. Very fast location lock and accurate position, no freezes or slow downs. B39 is a great kernel for sure.
[Nexus 4 Original Android Development] Orion575:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

I've had a couple data drops with a b39, but it is not a big deal for me
[Nexus 4 Original Android Development] xcstacy:
There isn't much difference of battery life for both B38 and B39 for me.

3G on all the time and maximum screen time is around 4 hours. No signal drops or any major problems.

:laugh::laugh:
[Nexus 4 Original Android Development] zagzag99:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Xylon new builds since 22/2 are no longer friends with this kernel.

On attempt of an app to reach the GPS the device hot reboots.

Had to switch to Franco r90.
[Nexus 4 Original Android Development] thunderger:
With B39 I noticed that I didn't receive incoming messages/notifications if I use WLAN and display is off. After turning on display all messages are coming in. With GSM/UMTS connection notifications are working with screen off - LED is flashing :) But no hsic wakelocks at the moment and nice battery life. :)
[Nexus 4 Original Android Development] gianton:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

No such problem here, I get notifications instantly with screen off and WiFi enabled.
[Nexus 4 Original Android Development] thracemerin:
It's not a kernel issue, its a ROM issue, the problem happens when you try to download new agps data (this doesn't happen every time you turn on an app needing gps, but you can reproduce it every time with GPS status & toolbox and forcing agps data download) it crashes with permission errors and causes a kernel panic. The fact it didn't happen on franco is random in this case because I've had it happen on franco and motley with Xylon and I've also had it not happen with both.

http://xdaforums.com/showthread.php?t=2072930
[Nexus 4 Original Android Development] zagzag99:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

If you say so.

I'm on xylon nightly 23.

I get this crash every time with this kernel.

Even without downloading gaps, at least GPS status doesn't report doing so. And my gaps is already 0 days old.

On Franco's kernel I didn't reproduce it even once.

Problem is logcats holds nothing apart from showing a restart.
[Nexus 4 Original Android Development] thracemerin:
If it were a kernel issue, every ROM would have this problem with this kernel. I've been messing around today a bit and have had RootBox, Xylon, Carbon and CM10.1 on my N4, none of them have this problem except Xylon, all the others have no issues, so it may be something that Xylon did to make it not work on this kernel, but it's definitely on the ROM end.
[Nexus 4 Original Android Development] xcstacy:
I have no issue at all using xylon nightly 23 and motley's. I'm assuming you did not do a clean install of the ROM, right?
[Nexus 4 Original Android Development] _motley:
Build 40 posted

Build 40 posted, see OP for details. Thanks for all the feedback on b39!

Thx, I'll take a look at the CAF patches.

I don't think this is a kernel issue. Nothing has changed from the stock kernel as far as GPS is concerned.
[Nexus 4 Original Android Development] farhanito:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

hsic wakelock is indeed less on b39. But now I have pretty high "radio_interface" kernel wakelock. :confused:
[Nexus 4 Original Android Development] z3r0_x:
Franco already reverted some of those GPU patches:

http://minooch.com/franciscofranco/Nexus4/4.2.2/appfiles/nightly-changelog

So it might be not too useful to merge them right now until further testing has been done...
[Nexus 4 Original Android Development] Franklin Bernard:
Been waiting for this. Thanks a lot.
[Nexus 4 Original Android Development] nextelbuddy:
How can we change the gamma and colors in this kernel? do we have to run the script running around or is there an app that gives access to these adjustments since its exposed in the kernel now?

Coming from one of the stock kernels that had color adjustment tweaks called "pa_mako-Kernel422_CalibratedHalfbreed" and loved the saturation in that kernel and was hoping to get something similar with this kernel.
[Nexus 4 Original Android Development] gianton:
Thanks! Flashing now.
[Nexus 4 Original Android Development] IAmAN00bie:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Read the second post.
[Nexus 4 Original Android Development] :
Hi,

You can use Trickster MOD, there is a Beta from today with Gamma control interface and other cool features ;)

:)
[Nexus 4 Original Android Development] Remoteconcern:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Thanks for the announcement, now using it and it is a great update. I still get confused with all the various gamma adjusting options there are. Too many. But at least it gives you more control :)
[Nexus 4 Original Android Development] thracemerin:
The difference is this 'radio_interface' is held when data is being transmitted and for a little bit (5s i believe) after to ensure that transmission is complete and to send the appropriate acknowledgments, this is normal. 'msm_hsic_host' is held when the USB bus isn't suspended. The problem that originally existed on stock is that when the USB bus controller woke up to control the 3G modem, it wouldn't go back into suspend mode when the modem was done with it, resulting in significant msm_hsic_host wakelock. With the fixes in place the USB bus goes to sleep as soon as the 3G data transmission is done, so the radio_interface wakelock shows a more true representation of how much the radio keeps the phone awake.

In order to fix the radio_interface wakelock you would have to look at what apps and services are using 3G for sync, etc...
[Nexus 4 Original Android Development] swaggerwocky:
@_motley:

Would it be possible to incorporate this fix into your kernel?
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Hmm, been getting connection drops all day today, literally all signal bars disapear for good 30 seconds. The only thing that's changed was me updating to r40.
[Nexus 4 Original Android Development] thracemerin:
I don't seem to have this problem, I wonder if your provider is doing something to mess with the towers in your area.
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Hmm, I'm going to be driving down to Virginia in a little bit, service there is very solid. I guess we will see how it works there.
[Nexus 4 Original Android Development] thracemerin:
Yeah, keep an eye on it, there are so many factors that could contribute to a signal drop that it becomes very difficult at some point to isolate the kernel as the cause, especially if it's something you can't reproduce whenever you want like the data hangs that plagued the initial hsic fix implementations.
[Nexus 4 Original Android Development] :
are there any other ways i can keep updated with the release of new version other than checking back this thread? maybe some sort like a OTA?
[Nexus 4 Original Android Development] keda:
if motley can put it on goomanager, that'll be great.
[Nexus 4 Original Android Development] :
do hope he consider this :D
[Nexus 4 Original Android Development] Zainiak:
+1 for the ota idea
[Nexus 4 Original Android Development] xdaShex:
Can anyone quote the currently default gamma/color settings in motleys kernel ?
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

LG preset afaik, check Veyka.co.uk/other for tons of colour preset init scripts :)

Credit is in each file, i just chucked them together and uploaded.
[Nexus 4 Original Android Development] xdaShex:
Oh ok, I thought we had tweaked settings :confused:

thanks for the reply.
[Nexus 4 Original Android Development] thracemerin:
No, he removed the altered preset after B35 since we have the ability to change them as we see fit.
[Nexus 4 Original Android Development] whittikins:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Motley, what kind of rules does the kernel use during a phone call? I mean # of cores, frequency, etc. It seems to use 12 to 15% per hour during a call, and I think faux was about 9 to 12%. Can the CPU be restricted to give more battery during calls?

I didn't do extensive testing or anything, but I just took note of this after a few 20 to 30 minute calls. Maybe it's just typical variance, but I figured I'd ask. Other than that it's getting great battery life!
[Nexus 4 Original Android Development] yyz71:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

B40 running smooth with Carbon ROM 1.4 nice job motley :thumbup:

Sent from my Nexus 4 using Xparent BlueTapatalk 2
[Nexus 4 Original Android Development] _motley:
Thanks for the feedback and great job to those assisting to answer all the Q's:)

I have never looked into this before, so I don't know how difficult it is or what I would need to do. If anyone has experience with this, PM me. I will look into on my own when I have time.

Nice work, Thx! I was hoping we would eventually have a library like this.

Not sure about this whittikins, but I would think it would have to do with the signal strength etc. Kernel shouldn't be doing much at this time, but honestly I haven't studied it much. If anyone has any insight, let me know.
[Nexus 4 Original Android Development] thracemerin:
Just need to go over to goo.im and fill out their developer sign up form: http://goo.im/dev_signup

I think you meet the requirements:

You create android applications, roms, themes, etc that people download
You are established on RootzWiki, xda-developers, or any other reputable source as a recognized developer
You own the rights to all of the content you plan on distributing

Once you do that, anything you upload to your dev folders on goo.im should appear in goomanager as well.

Edit: I didn't realize you were a Senior Member instead of Recognized Developer on XDA, but that's probably fixable by speaking to the appropriate mods here given you develop kernels for multiple platforms.
[Nexus 4 Original Android Development] chrone:
hello veyka,

could you please share with us what is your battery drain on 3g network while using it idly/moderately/heavily?

just asking if it improved 3G battery life much better than other, i might consider jumping to motley kernel.

my stats so far as i recall:

stock kernel: idle 5-6% drain/hour, moderate 8-10% drain/hour, heavy 16-18% drain/hour.

thracemerin kernel: idle 1.3-3% drain/hour, moderate 5-6% drain/hour, heavy 8-11% drain/hour.

faux kernel with all its setting to improve battery life: idle 2-3% drain/hour, moderate 5-6% drain/hour, heavy 10-11% drain/hour.

kudos to _motley who shares this wonderful masterpiece with great documentation and lots of good tweaking options while still leaving fsync on option on his kernel. motley kernel is way too advanced for me now, but am a quick learner.
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Hey,

I don't have any exact numbers, but i get 5h 30mins screen on time normally.

Almost all of my screen on time will be used reading RSS feeds, sites, xda (via the app), etc, all on data (pretty strong H+ here).

I only have to charge the phone over night, not in the day, so this kernel plus cm lasts long enough for me :)

Also @motley, i need to look into converting the scripts to your interface, do you have any pointers about how I would go about that?

Also if you need a ref re goo I'd be happy to give you one ;) (the mod tag has its perks hehe)
[Nexus 4 Original Android Development] chrone:
whoa, 5+h is huge! i assume this is coming from 100% to below 20%, right? awesome! :good:

i can only have 3 hours screen on time. :/
[Nexus 4 Original Android Development] thracemerin:
Not having mpdecision (mpdecision seems to be short for Makes Poor Decisions) which stock uses to control the CPU makes a huge difference in terms of battery life, also motley gives you tons of other things you can tune to help with your battery life.
[Nexus 4 Original Android Development] swaggerwocky:
Sorry to bother you again with this request but I'm not sure if you missed it or not. Could you look into incorporating

this fix

into the kernel? Basically, the conntrack module is not letting TCP packets through that are over a certain size on port 5060 which is resulting in missed incoming calls for SIP clients. The last post in the link provides better information as well as a link to AOSP's own kernel configuration comment regarding the conntrack module.
[Nexus 4 Original Android Development] chrone:
totally agree.

any recommended setting for motley kernel in order to improve battery life?

my current settings on trickster mod latest beta are:

max active core to 2 cores

ondemand governor

mpdecision off

fsync on

dynfsycn off

cpu profile 304-1350

using b40 build, both interactive and ondemand is super silky smooth. love it so much. let's see about the battery life today. yay! :)
[Nexus 4 Original Android Development] sahussa9:
I'm using the pacman rom v20.0 I wanted to flash this kernal but I'm confused I know I need to flash B37 first in order to flash b40 but which one should I flash the asop or cm10.1 based? I'm not lazy I have searched and didn't find a clear answer sorry if I missed something. Thanks
[Nexus 4 Original Android Development] :
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Hi,

The aosp one if I'm not wrong.

Wait for confirmation just in case ;)
[Nexus 4 Original Android Development] sahussa9:
Thanks for the response will wait for confirmation :)
[Nexus 4 Original Android Development] _motley:
Sorry, I forgot to reply on this one. I read it over again for good measure. Interesting, so yes, perhaps I should just disable it in the kernel config like Android's following web page suggests. I currently have it turned on (CONFIG_NF_CONNTRACK_SIP=y) just like in the stock kernel, but they recommend it to be off due to changes from mainline. It seems they don't follow their own advice just like the last post also points out:laugh:

http://source.android.com/tech/datausage/kernel-changes.html

Just not sure there is anything at the ROM level that would be affected. I suppose I can try and see what happens, but I don't want to break apps that might currently be working, or somewhat working. Is there a problem you are having with an app, perhaps voice or video calls that you are trying to fix? Or are you just seeing errors in the kernel log?

http://cateee.net/lkddb/web-lkddb/NF_CONNTRACK_SIP.html

Thx

Welcome! Let us know how it works for you. Those settings look like a good place to start if you like fsync on all the time. Just make sure you tune your sync settings and turn off apps you aren't using as well (Currents, News etc.).

Not sure on this ROM since I haven't had any experience with it, but it looks like system_core is forked from CM (where the root fs, init etc. comes from). Not sure what they changed, but it s best to ask the ROM dev to be sure what is most compatible. Or maybe search the thread for ASOP, CM etc to see if someone else posts what they use.
[Nexus 4 Original Android Development] xdaShex:
Could anyone quickly lead me in the right direction on how to apply scripts for RGB/gamma/saturation! any advice would be appreciated !
[Nexus 4 Original Android Development] mundixx:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

How about the second post? Perhaps you can read from there and then post your questions.. That would be more productive :D

Sent from my AOSPA Nexus 4
[Nexus 4 Original Android Development] swaggerwocky:
Thanks for checking it out! I'm having issues with CSipSimple and not being able to receive incoming calls when using 3G. I went to their Google usergroup to try to sort the problem out and was made aware of the problem which is covered more

in depth here

. Thank you again for considering this issue. :good:

To add: It's pointed out in that thread that switching to UDP solves the issue, however utilizing TCP transport is much more battery-friendly when on 3G so it's not really the optimal solution. Switching the remote server listening port is also pointed out as a workaround but as mentioned in the previous AOSP link it's not a viable solution when utilizing commercial SIP services.
[Nexus 4 Original Android Development] nessonic:
I continue to receive an invalid argument error while trying to mount in cifsmanager or Mount Manager.

I am, however, able to mount the folder on my TF101- albeit an empty folder- with the exact same settings I've got on my N4.
[Nexus 4 Original Android Development] chrone:
Thanks, dude! :)

Should I flash inert powerHAL since I use OnDemand governor all the time or just leave b40 as it is?

The inert powerHAL is there to disable the boostpulse, right? Hence saves battery but decreases UI performance along the way.
[Nexus 4 Original Android Development] farhanito:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Did you put the unc=\\\\server\\share option?

It works for me.

Not on N7 motley, tho..

[N⁴][Motley][CarbonRom]
[Nexus 4 Original Android Development] vineet381:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Hi all, I am using trickster app, can anyone help me with what is the best combo under the color settings for RGB gamma etc.

Also, what is a good setting for battery saving while i understand every phone is different.

Thanks
[Nexus 4 Original Android Development] nessonic:
Sorry, not sure I'm following, where do I input this option? I do not see UNC from the default option list in Mount Manager.
[Nexus 4 Original Android Development] farhanito:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Explained in the first post, under Build 35.

Use cifsmanager.

[N⁴][Motley][CarbonRom]
[Nexus 4 Original Android Development] nessonic:
This allowed me to finally mount it, and now I've got an empty folder.

I took it to mean unc=\\\\ <IP address of server \\ <subfolder name>

i.e. unc=\\\\192.168.1.1\\media
[Nexus 4 Original Android Development] xdaShex:
Second post only mentions the basic RGB's :confused:
[Nexus 4 Original Android Development] thracemerin:
It tells you how to modify all the gamma values, and gives you which value is which based on molesarecoming's settings, it also has example scripts, I'm not sure where you're going wrong.
[Nexus 4 Original Android Development] farhanito:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Yes.

Where's your mount points?

Try mounting it under /mnt

[N⁴][Motley][CarbonRom]
[Nexus 4 Original Android Development] nessonic:
The mount point is /mnt/cifs
[Nexus 4 Original Android Development] JmPTaz09:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Just chiming in to say that b40 is running great :thumbup:
[Nexus 4 Original Android Development] gianton:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Here is mine http://db.tt/5uv0c7kV

Place it to the init.d folder and change permissions as in screenie below.
[Nexus 4 Original Android Development] Crisisx1:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

If this is my first time flashing motely ROM...I first have to flash 37 then I can flash 40?
[Nexus 4 Original Android Development] gianton:
Re: [KERNEL][Feb 25][b40] _motley kernel for the N4 (smp patches back for 4.2.2)

Yes that's correct. Be sure to flash the right b37 build based on which ROM you're running AOSP/Stock or CM based.
[Nexus 4 Original Android Development] chrone:
molesarecoming's presets + _motley's kernel + trickster mod app

here are molesarecoming's PA brighter, contrasty, and halfbreed presets translated from trickster mod beta app on stock rom 4.2.2 running _motley's kernel with jazzboyrules' init.d scripts.

[B]PA Brighter[/B]

Color calibration:
rgb: 245 244 240

Gamma calibration:
Amp0: 31 31 31
Amp1: 9 9 9

Gamma grey tunning:
Grey Scale levels:
Grey 8~15: 1 1 1
Grey 16~23: 3 3 3
Grey 24~31: 5 5 5
Grey 32~39: 1 1 1
Grey 40~47: 6 6 6
Grey 48~55: 7 7 7

Gamma gradient tunning:
Gradient Scale levels:
Upper: 0 0 0
Lower: 0 0 0
Top Half1: 0 0 0
Top Half2: 4 4 4
Mid Point: 2 2 2
Bottom Half1: 0 0 0
Bottom Half2: 3 3 3

[B]PA Contrasty[/B]

Color calibration:
rgb: 245 244 240

Gamma calibration:
Amp0: 26 26 26
Amp1: 0 0 0

Gamma grey tunning:
Grey Scale levels:
Grey 8~15: 0 0 0
Grey 16~23: 4 4 4
Grey 24~31: 4 4 4
Grey 32~39: 4 4 4
Grey 40~47: 6 6 6
Grey 48~55: 7 7 7

Gamma gradient tunning:
Gradient Scale levels:
Upper: 0 0 0
Lower: 0 0 0
Top Half1: 0 0 0
Top Half2: 4 4 4
Mid Point: 2 2 2
Bottom Half1: 0 0 0
Bottom Half2: 3 3 3

[B]PA Halfbreed[/B]

Color calibration:
rgb: 255 255 255

Gamma calibration:
Amp0: 25 25 25
Amp1: 4 4 4

Gamma grey tunning:
Grey Scale levels:
Grey 8~15: 0 0 0
Grey 16~23: 4 4 4
Grey 24~31: 4 4 4
Grey 32~39: 4 4 4
Grey 40~47: 6 6 6
Grey 48~55: 7 7 7

Gamma gradient tunning:
Gradient Scale levels:
Upper: 0 0 0
Lower: 0 0 0
Top Half1: 2 2 2
Top Half2: 4 4 4
Mid Point: 1 1 1
Bottom Half1: 0 0 0
Bottom Half2: 2 2 2

credits:

molesarecoming for the great presets

_motley for the great kernel

jazzboyrules for the great init.d scripts

bigeyes0x0 & thuanle for the great trickster mod app
[Nexus 4 Original Android Development] yonpa:
Yep
[Nexus 4 Original Android Development] _motley:
Did you come from another kernel?
[Nexus 4 Original Android Development] _motley:
Well, as you see in the OP, my goal is to reduce battery and maintain good performance. I wanted a simple way to downclock to 1.4 and not have it spiking above 1.4. Unless I unhooked mpdecision completely (not sure I want to do this), some of the cores will still scale above the max freq. I am probably going to add 1.5 back in though now that I have some ideas on how I probably can keep it tamed. However, at 1.4, I can further UV than at 1.5 and I am still clocking Antutu scores well over 17k...not too bad. Hopefully it will get added back in, but honestly I am not sure why it is needed unless you are doing something very intensive, or want bragging rights on benchmarks. I would rather have a cool, yet powerful device, that will last awhile on battery.
[Nexus 4 Original Android Development] yonpa:
Yes trinity
[Nexus 4 Original Android Development] DroidRC1:
Not having any issues! Running smooth like butter... Solid kernel so far!