yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] wathefak:
It has already been fixed if you're coming from franco's. But I suggest dirty flash ROM before flashing motley's
[Nexus 4 Original Android Development] :
Hi,

All you need is in the OP ;)

Try without reflash your current ROM, if you have some weird issues then reflash your ROM as explained above.

Don't forget this before to flash the last version (b49):

:)
[Nexus 4 Original Android Development] ashishv:
What weird issues?Bootloop ?Oh it booted.:cool:

Edit looped :(
[Nexus 4 Original Android Development] IAmAN00bie:
I've been using these settings for weeks now and everything is running nice and smooth.

http://imgur.com/a/iyboO#0

Just wanted to share with you all. Note that I'm not actually using Trickstermod, but rather setting everything through init.d I actually have a few more things being done through my scripts but since those can't be controlled through any apps I left them out of these screenshots.
[Nexus 4 Original Android Development] :
I've had some success building the kernel with my modified PA rom.

The only things missing are the inert powerhal and ramdisk, any idea what should be done to include them in the ROM?

(one option is to switch the modified powerhal before packaging the rom but there must be a better way, no idea about the ramdisk)
[Nexus 4 Original Android Development] kszaq:
Everything you need is in device/lge/mako folder. There are the files that are put to ramdisk.

I think (but I'm not sure) that you can add prebuilt inert powerhal to proprietary-blobs.txt to include it in your ROM.
[Nexus 4 Original Android Development] :
Hi,

Thanks for sharing your settings ;)

I've never played with the hotplug settings, maybe I'll test :)

About the tweaks for Deadline I/O scheduler, it's about performance or? Because with a little search about some tweaks for "performance" about Deadline I've found different values... Mainly for "fifo_batch" and "writes_starved".

I don't realy know, thanks in advance ;)

EDIT:

Source: http://collaboration.cmc.ec.gc.ca/science/rpn/biblio/ddj/Website/articles/SA/v16/i07/a2.htm

Too hard for me :eek::p:D, why I don't find this in French :confused:

But in any case it helps me a little to understand your settings... So now testing! :D
[Nexus 4 Original Android Development] karanrajpal14:
Guys, does anyone have a script that controls everything about the kernel? I did find one many posts ago that controlled gamma, sound, vibrator strength, etc but I seem to have lost it. Can someone link me to it? Also, can someone tell me what I need to add to the script in order to set interactive governor as default? Sorry for the inconvenience if any.
[Nexus 4 Original Android Development] jazzboyrules:
Hey Karan, it's in my signature. I can add those options later today.
[Nexus 4 Original Android Development] Remoteconcern:
Interactive governor should be default already. If not, you probably don't have the right ram disk, so flash stock kernel from first post, then b37 then b49.
[Nexus 4 Original Android Development] :
Re,

Playing with these settings :D:

About Deadline I/O scheduler, I can't go below 130 for read_expire in Trickster Mod and it's the same thing by editing the value directly with Root Explorer: I set 125 then save but the value remains to 130 :eek:

I test, I test... :p. Not too bad in general UI (even better than...???) and after multiple benchs: some scores are increased as before...

But with all my tests for Interactive governor I do not know which keep :D. I stop for today, a few hours that I test to try some others optimal settings (new settings / testing general UI / browsing / benchmarking / charging the phone / new settings / etc, etc...:p

And my wife "you have not finished playing with your phone?, you'll leave it in peace!" :silly::D

:)
[Nexus 4 Original Android Development] ctfrommn:
Thats 30 second boost duration? :eek:
[Nexus 4 Original Android Development] :
Nope, 3 seconds :)

Heu... :confused::eek:

Micro or milli seconds... :confused:

EDIT: I need this: http://www.unitconversion.org/unit_converter/time.html :D:D:D

It's fine, 3 seconds.
[Nexus 4 Original Android Development] ctfrommn:
My bad, I could have sworn 200,000 was 2 seconds.
[Nexus 4 Original Android Development] :
Like me before, even recently: http://xdaforums.com/showpost.php?p=39251712&postcount=2657 :D

:)
[Nexus 4 Original Android Development] Remoteconcern:
Yes, I asked this before and we were all confused haha. Its definitely 0.2 seconds. Stock kernel is 2.

By the way, I haven't seen motley around in a while. We don't need an update, but I hope he's OK.
[Nexus 4 Original Android Development] :
Re,

March 13, 2013:

Yes, I hope he's fine...

We need an update with GPU overclock possibility via init.d script or via Trickster Mod... :laugh::D:D:D
[Nexus 4 Original Android Development] :
I've been getting 2h of SOT and little to no use with stock / other kernels, the snapshot was taken after 4h of SOT, 1h of talking, 40 minutes of gaming.

I use PA rom, inert powerhal, 600mv on 304-1026mhz and the rest is in the attached settings.

Also disabled syncing of Google Currents and News & Weather per motley's suggestion, everything else is on.
[Nexus 4 Original Android Development] jazzboyrules:
Hi everyone, I have uploaded v2 version of the 91motleytweaks (all tweaks in one script) in the original post. I have tested out the script on PA 3/18 and b49 of motley. I am open to suggestions: what else would you guys like to have added to it? What would be some good ondemand tweaks that I can add to it?
[Nexus 4 Original Android Development] IAmAN00bie:
Two things you can add: GPU clock control in /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk and IO Scheduler Control in /sys/block/mmcblk0/queue/iosched/ (this one obviously has different parameters depending on what IO scheduler you have).
[Nexus 4 Original Android Development] kindred7:
So I've been wondering this for quite a while, this is nothing specific to motley but how come most if not all kernels for nexus 4 don't have pegasus or many of the other governors? Anyone know?
[Nexus 4 Original Android Development] :
Hi,

If I'm not wrong PegasusQ is a Samsung governor optimized for Exynos CPU (proprietary?).

As for other governors... Is what we really need?

Maybe the Conservative governor... Too many governors kills the governor :D

We have the two principal governors: Ondemand and Interactive which are highly configurable for performance / battery. If we have 10 governors like in some kernel for other devices, the users will not know what governor to choose...

:)
[Nexus 4 Original Android Development] jiovaxrs:
Super true :thumbup:
[Nexus 4 Original Android Development] pro.aggro:
The wifi fix version is running great! The only one which really works (for me)!!
[Nexus 4 Original Android Development] jazzboyrules:
Cool! I'll do a little research on those and add them. About the IO Scheduler control, I will have to do some reading to understand what values should and should not be changed.
[Nexus 4 Original Android Development] syamilsatanick:
Wifi fix somehow work for me. No more delay. Airdroid works when screen off.
[Nexus 4 Original Android Development] IAmAN00bie:
I wrote up a n00b guide on /r/nexus4 on how to write init.d scripts: http://www.reddit.com/r/nexus4/comments/1atthk/kernel_tweaking_for_free_a_dummys_guide_to_initd/

Hope somebody finds it useful.
[Nexus 4 Original Android Development] :
Hi,

Well done and useful :thumbup: ;)
[Nexus 4 Original Android Development] jazzboyrules:
Nice! You gave me a ton of modules (from your script repository) that can be added to the 1 Script. Thanks for giving me credit too. You did an awesome job collecting all the exposed kernel hooks.
[Nexus 4 Original Android Development] chrone:
Whoa never touch 7h screen on time, awesome result! I only managed to get 6h using 2 cores on wifi+3g combination. Perhaps I should go all WiFi. haha :D

My results yesterday with _motley's default kernel settings:

CyanogenMod 10.1 M2 with _motley kernel b49 on WiFi+3G network.

Uptime 22 hours and 5 minutes.

Screen on time 4 hours and 45 minutes.
[Nexus 4 Original Android Development] mundixx:
Thanks, mate. One request though.. Can you include a guide to include an addon.d script so that the init.d script can survive a rom flash?

On a side note, this has to be the best thread in the Nexus 4 forums hands down!!

Tapatalked from my AOSPA Nexus 4
[Nexus 4 Original Android Development] jazzboyrules:
You can simply put your script(s) in /data/local/userinit.d

If the userinit.d folder does not exist, create it.

I use this method to retain my script after each ROM update.
[Nexus 4 Original Android Development] IAmAN00bie:
I wasn't sure if you could just create that folder if it didn't already exist to make it work, can you confirm that? I'll update my guide because I didn't know if that was possible.
[Nexus 4 Original Android Development] jazzboyrules:
I had created that folder for motley kernel. The important thing is that the kernel should support it.

If you look at the default 90userinit script in init.d, it uses the "if [ -d /data/local/userinit.d ];" condition. That means that it checks if the userinit.d directory exists. If it does then it executes the scripts from that directory too. If it doesn't then also it's not a problem. So the userinit.d folder is optional.

PS: Just for kicks, remove that 90userinit script from init.d temporarily. Then the userinit.d will be useless :)
[Nexus 4 Original Android Development] brainbeatuk:
@crone wasn't just WiFi :) had 3g on during work I'm sure. The 70 to 40% range

On that note I have a question does going 2g/e rather than 3g save battery as much as other phones. With the CPU not having modem built in so I've read it uses usb otg in laymen's terms to power modem chip? Surely the mboard could of this is where I get confused :)
[Nexus 4 Original Android Development] alxdadev:
AW: [KERNEL][Mar 10][b49] _motley kernel for the N4 (add faux sound control)

Today I have tried to use GPS with kernel 49

It was not possible. Is this a kernel issue or a ROM issue?

I use orca ROM 20130314.
[Nexus 4 Original Android Development] el_liberator:
Hi

GPS Works fine for me , I use Carbon ROM nightly 23.03 and Motley b49
[Nexus 4 Original Android Development] funcrusher:
I had a problem earlier with it being stuck on searching for GPS satellites, but was fine after toggling airplane mode.
[Nexus 4 Original Android Development] chrone:
forgot to ask you, what is your cpu bin? is it faster? or fast?

very steep undervolting you have there, dude. uv to 600mv and still rock stable? awesome! :good:
[Nexus 4 Original Android Development] IAmAN00bie:
I'm not the person you are asking, but mine is Nominal and my 3XX-9XX steps are all undervolted to 600mV.
[Nexus 4 Original Android Development] chrone:
thanks dude! i guess it's stable enough to go 600mv all the way up to 9xx steps. i got fast bin. hehe :D
[Nexus 4 Original Android Development] brainbeatuk:
Fast binned. Just realised running four core at 702x only needs a little bit of juice to run all cores so say -200ma on two core at 302x compared to 240ma. Using the battery app on android tuner reads the sensor on click

Oh and I can't do what he can there's still variation
[Nexus 4 Original Android Development] alxdadev:
AW: [KERNEL][Mar 10][b49] _motley kernel for the N4 (add faux sound control)

Thanks, after changed to carbon the GPS works again.
[Nexus 4 Original Android Development] chrone:
After struggling with micro stuttering on stock launcher, trying different kernels, roms, tweaks, and so on with no satisfying solutions.

AOSPA has this disable hw overlays checked by default and it's micro stuttering free, but i'm no AOSP fan. Right now i am using CyanogenMod 10.1 M2 and trebuchet launcher still gave me the micro stuttering on transition animation.

So i think i finally found that auto brightness is the culprit. If auto brightness is enabled and the ambient lightning often changing, the transition animation micro stuttering appears more often.

I tried nova launcher this noon and it helped reduce the micro stuttering like a lot even on auto brightness enabled and after several reboots and prolong use. The stuttering totally disappears if you set the animation to fast or fast as lightning presets, and enabled aggressive desktop in nova launcher.

So in order to get rid of the transition animation micro stuttering, use no auto brightness, or use other launcher such as nova launcher, or activate the disable hw overlays options in developer options settings.

And yes, i found no relation regarding micro stuttering and _motley/stock/thracemerin/faux123's kernels. _motley's kernel on either stock rom or CyanogenMod rom is the perfect dynamic duo. Great WiFi battery life, fast performer, and cooler temperature. Love them all! :thumbup:

Hope this helps for others who experience the transition animation micro stuttering.

Sent from my Nexus 4
[Nexus 4 Original Android Development] mundixx:
Hey chrone, i am using Velis auto brightness from the market.. Maybe that would help you keep the brightness levels and remove the micro stuttering..

Tapatalked from my AOSPA Nexus 4
[Nexus 4 Original Android Development] chrone:
Thanks dude. Will give it a try once the micro stuttering starts to appear on nova launcher. :)

Sent from my Nexus 4
[Nexus 4 Original Android Development] :
Hi!

For those who have micro stutters, to avoid them, with Nova launcher use the ICS animations :D

Just kidding ;)

Your micro stuters are with Interactive or Ondemand governor? What governor settings?

Still no news from _motley :confused: (I mean about his health). _motley if you go here, just give us a hello and tell us that you're OK ;)

:)
[Nexus 4 Original Android Development] karanrajpal14:
Interactive. Settings from jazzboyrules v2 script.
[Nexus 4 Original Android Development] chrone:
Any governor produces micro stuttering.

Running well so far with nova. :)

I uv the 304-912mhz to 600mv, 1026mhz to 850mv, leave the rest with motley's default volatage. Set the high speed freq to 304mhz, boost pulse duration to 50000, temp limit freq to 810mhz, force gpu rendering, and leave all motley's default settings untouched. Still going strong so far, smoother with nova launcher, and best of all better battery life. Happy camper here! :)

Yeah, where's motley, hope he is alright..

Sent from my Nexus 4
[Nexus 4 Original Android Development] mundixx:
Hi speed frequency at 304 mhz? Wouldn't that slow things down? :D

Anyway, what's your chip? I'm tempted to try your settings with my fast binned.

Tapatalked from my AOSPA Nexus 4
[Nexus 4 Original Android Development] rlaw:
Is there anyone else here along with me who has no idea what these "micro stutters" or "micro lags" are?

I'm fairly certain I haven't experienced any.

Is there a video detailing this? Maybe I'm missing it. I've seen many people with similar complaints but I have no idea what I'm s'posed to be looking out for.
[Nexus 4 Original Android Development] :
Re,

Ok thanks, did you notice at what CPU freq the micro stutters occur?

I did a rest of my Interactive governor settings and notice that I have in fact some micro stutters when my CPU freq is at 304 / 486 / 592 Mhz and maybe around these CPU freqs (I've just test quickly). You can use PerfMon from Chainfire, System Tuner Pro or System Monitor from Christian Göllner (all on the Play Store), etc... to see in "real time" your CPU freq. At 1.026 Ghz no micro stutters...

He he, maybe Qualcomm made a good thing with Mpdecision :D. I should test with the stock kernel to see...

With Interactive governor, Boost set to 1 and hispeed_freq to 1.026 Ghz there is no micro stutters but the CPU is always at 1.026 as its min freq...

Also, for example with some apps or in settings, if you press back then return in settings -> micro stutters, if you press Home instead Back inside settings and come back into settings -> no micro stutters. It's the same thing with opening Root Explorer too. However the app or settings are still in memory...

Maybe also something in the Framework-res.apk (related to animations) or something like that inside the Android system itself or how the system manage its animations in certain circumstances :confused:. Because with animations set to 1 in developper settings no micro stutters regardless the CPU settings thus the CPU freq.

No real explanation, I've just tested quickly. Maybe I'm wrong. It's a combination of different factors maybe?

:)

EDIT: you make me do some tests on a Sunday, my wife is already starting to yell :D:D:D... Hey, it's for the _motley kernel's community! :laugh:
[Nexus 4 Original Android Development] yurilebbie:
I take it from your smiley face that this is a common occurrence, but thank you anyway :P
[Nexus 4 Original Android Development] efan3719:
Wow. This thread is officially way over my head. Haha.
[Nexus 4 Original Android Development] chrone:
Yeah me too. I haven't touched the touch accuracy filter and sound tweak yet. No games on phone and poweramp is already taking care the dynamic range with its direct volume control. Hehe

Sent from my Nexus 4
[Nexus 4 Original Android Development] jazzboyrules:
+1
[Nexus 4 Original Android Development] :
On the subject of stuttering, I was experiencing stuttering with Nova too but they fixed it a while ago, I've read that the stuttering began when google introduced the 4-layer composition (and broke everything) and my guess is that the update was to support the new composition.

PA avoids the stuttering by using Disable HW Overlays by default, which avoids the problem completely.

In any case, I don't think it has anything to do with the kernel and it only affects the animations. (you can get stuttering by using extreme battery oriented settings but it's not as easy as you may think, my settings are posted a few pages back and I don't get any kind of stuttering)
[Nexus 4 Original Android Development] ptesmoke:
guys, those who have messed with faux sound....can it adjust earpiece volume?
[Nexus 4 Original Android Development] brainbeatuk:
@ptesmoke

Faux has two sound apps one exclusive to phone and the other for headphones :)

@crone. I found going two core or less worse for battery. takes longer to race to idle. Maybe because hot plug settings are so power save friendly. I'm sure its fine for phone usage but testing via benchmarks took so much longer to complete lol

I've tweaked battery script a little just made max cores like this

C1 918

C2 918

C3. 1242

C4 1242

I've then changed GPU to 325. Testing now but using geekbench and perfmon and battery widget pro/android tuner it never went over 20 % battery usage.

Is five hours of benchmark same as a 3d game if so winning lol
[Nexus 4 Original Android Development] Michealtbh:
To those experiencing stuttering, be aware that boostpulse_duration is set to 0.2 seconds by default. If you add another 0 (from 200000 to 2000000) it'll change to 2 seconds which should get rid of most lag or stuttering possibly at the expense of battery life.

I personally have it set at 1200000 (1.2 seconds) which is a good balance of performance and battery life.
[Nexus 4 Original Android Development] ptesmoke:
thanks bud :)

edit: it almost looks like neither of fauxs sound apps control the earpiece volume/gain?
[Nexus 4 Original Android Development] :
Hi,

If I remember right and if I'm not wrong it was about screen flickering instead of stuttering ;)

For those who have these micro stutters can you wipe Dalvik cache and cache in recovery and see...? The Dalvik cache is rebuilt...Maybe it's just a coincidence?

Just found that this night in my bed (:D:p), without my agressive Interactive governor settings the micro stutters are gone :confused:

:)

EDIT:

Oh LOL, yes you're right :D, if she reads that :eek: :D
[Nexus 4 Original Android Development] iamhacked:
I'd just like to say thank you for this great kernel. It's amazing how smooth and buttery this is over the stock kernel. I just don't know how to modify the kernel settings and do all these init.d scripts :p
[Nexus 4 Original Android Development] :
Hi,

For what settings?

All is in the OP (almost all :D ), also take a look here for init.d scripts guide: kernel tweaking guide and here for a Script-to-Tweak-Them-All (thanks to jazzboyrules and IAmAN00bie ).

You can also use Trickster Mod for the basics features like CPU settings, colors...

For the sounds settings you can use the init.d scripts, but personally I use the Faux apps: FauxSound Audio/Sound Control and Speaker Loudness & Amp Control.

But in any case all is tweaking by init.d scripts, see above. Apps are more convenient (for me).

And welcome to the _motley kernel thread :good::cool:

:)
[Nexus 4 Original Android Development] :
Re,

My last settings, all is smooth and fast not a single lag or stutters (honestly):

But take a look at my CPU stats (I've just boot my phone), the CPU freqs used and the time spend at these freqs :D:

And currently testing this:

Kernel tweaks seen on XDA (I do not remember where, I just copy / paste these values a time ago in my notepad test file :D) and Googled to see (I've seen others tweaks about the kernel, will test also and see, feedback if something is worth)...

But I like how my phone runs :cool:

And I like test and play with some settings, but damn! It takes time :D

Always with AOKP PUB rom, no undervolt.

And battery life with these settings... Hummm... perfect for my needs and my use :laugh::D It's MY settings that suits my needs (maybe not the best), maybe not YOUR settings for your needs ;)

:)
[Nexus 4 Original Android Development] bamsbamx:
Hey motley!!! I only wanted you to know that i am developing an app for tweaking kernel settings, OC, UV, etc etc. And it will have support for your kernel :D

It still does nothing , but it shows the current,max,and min frequencies, and also the voltage for each one :)
[Nexus 4 Original Android Development] mko000:
In regular intervals I try other kernels to see if I'm missing anything. I always come back to yours however - it's got the best performance AND best battery life for me. Amazing! It's also got the main features I want (UV, TC support). I can't thank you enough - so thanks again.

I hope you and your loved ones are alright as you haven't been around...all the best!
[Nexus 4 Original Android Development] oblivionstalker:
Hi, need some help. I read from this thread that someone posted the Voltage tweak table for the init.d, but now i could not find it, can the writer post it again? thanks
[Nexus 4 Original Android Development] raimondomartire:
Can you add gamma color modify as faux? Here nexus display configuration test

https://docs.google.com/spreadsheet/ccc?key=0AoDp2qRui0u0dHhQamRhaU1RSVVtMjczeDlQbnJyUkE#gid=0
[Nexus 4 Original Android Development] d.brown:
Endless bootloop to on aokp using your reset kernel and after full boot flashing the latest build... Any idea why?

Sent from my Nexus 4
[Nexus 4 Original Android Development] _motley:
Script looks good. To check, use a root capable file explorer like ES and drill down to /sys/class/misc/fsynccontrol/fsync_enabled and look at fsync_enabled in a file editor. It should say "1" and not "0" if the script ran properly from whatever context you are using (init.d, script manager app etc.).

If not, make sure your script file permissions is tagged with "exec" so the OS can run it.

My reset kernel is for stock roms only. For AOKP, I suggest that you do the following:

1) Dirty flash the AOKP nightly you are on (and gapps) - meaning no wipe so you don't lose any data.

2) Flash my anykernel zip without any wipes.

This will give you the AOKP ramdisk with my kernel zImage.

If anyone else is running AOKP, please report back your status.

Thanks for sharing. I do want to look at gamma as well. My goal would be to have default setting that most would agree is better than stock (fix washed out look a tad if possible), and then have sysfs control if users want to tweak it. Somebody told me that faux mentioned that it wouldn't be as easy to set gamma via sysfs and it may require an app to do, so I will have to look into it further. I'll have to look at his commits to see what is up.
[Nexus 4 Original Android Development] boykioy:
Why cant you intergrade voodoo colors?