yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] ptesmoke:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

jealous.....think I could flash a 2012 hemi? what did you use for flashing? I've looked into programmers but $700 is pretty steep for small gains..

pm me if its more appropriate :)
[Nexus 4 Original Android Development] oblivionstalker:
Hi, need some help here. Am new to init.d script, may i know how to write init.d script? Do i use apps like root explorer or do I do it on my comp and transfer to the phone? Thanks
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

So b22 has same weird data issues for me. Look at the screenshot. Top two tests were done using matrix 6.0 kernel, two below were done on b22. Same location, pretty much same time.
[Nexus 4 Original Android Development] j3di:
Been using b28 the last 24 hours and no problems with data or anything else, thanks dev! The UV spreadsheet was a big help as I previously didn't appreciate the voltage jump at 1.134Ghz. I now have the voltage bottomed out up to there and have tweaked the higher levels. Stress tested without any reboots so I'll add my data to the spreadsheet. Oh, did I say THANKS? !!
[Nexus 4 Original Android Development] _motley:
Hi, check this link out and see if it helps.

http://www.blogtechnika.com/android-tweaking-demystified-part-ii-init-d-scripts/

There is a ton of stuff out there already that should help so we don't have to get into all the nitty gritty details here, unless we start discussing a setting related specifically to this kernel (see post 2). The settings used in their examples probably won't be any that you want, but it should help you understand how to create the scripts for Android and Linux in general. Personally, I like to create the script files on my PC and then copy them to the device. But, it is just a simple text file you are creating so it doesn't really matter how you get the script into the /system/etc/init.d/ folder as long as it is correctly written and the script files have the correct permissions (exec).

Do me a favor and try a different TCP Congestion Control algo and see if this help you. You appear to have a good connection. I would try "reno" first, then "veno" and "vegas". This can be done in Trickster MOD and some other apps, or you can do it from a script as such.

Here are the examples for all 4, obviously you would only use one of them in init.d if you decided on a default.

echo "reno" > /proc/sys/net/ipv4/tcp_congestion_control

echo "veno" > /proc/sys/net/ipv4/tcp_congestion_control

echo "vegas" > /proc/sys/net/ipv4/tcp_congestion_control

echo "westwood" > /proc/sys/net/ipv4/tcp_congestion_control
[Nexus 4 Original Android Development] _motley:
Yeah, I agree. For that car, not much in gains with just the off the shelf canned tune (Diablo Predator or Superchips etc.). On the HEMI, you really have to replace the cam for some serious gains. Pick a nice profile cam that still idles well and then get a custom tune using the Diablo :). Not sure about the newer cars or the RAM trucks though, it is has been about 5 years. Sorry for the off topic...we can PM if you want to talk more about it.
[Nexus 4 Original Android Development] Remoteconcern:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

Motley, congratulations on the great kernel and great thread.

My hsic wake locks are extremely small now. I had 2 minutes or so over 8 hours on 3g. Admittedly there wasn't much traffic but still, its vastly improved.

Thanks.
[Nexus 4 Original Android Development] ceroglu:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

Noob question, how did you adjust the voltage table for each frequency separately? I am on b29 with faux123 app and I can only UV globally.
[Nexus 4 Original Android Development] lazer155:
System Tuner and Trickster Mod apps will allow you to change individual frequency voltages.
[Nexus 4 Original Android Development] Underworld79:
b29a, ondemand, row...

Best kernel ever! I love how much control you have given users to manipulate the kernel speed, amount of online cores, sampling rate, battery life, etc... via scripts to meet anyone objectives.
[Nexus 4 Original Android Development] drdrewdown:
anyone using build 29 having problems setting color parameters? Pretty sure they used to work on build 25

I'm using franco color app & it doesn't appear to work anymore
[Nexus 4 Original Android Development] ctfrommn:
Work fine for me.....using Faux's app though.

---------- Post added at 05:02 PM ---------- Previous post was at 05:00 PM ----------

I concur....975mv and 17k+. Very nice! I need to use it for a while to see about battery life, but it runs sooooo cool uv'd this much so I expect excellent results.
[Nexus 4 Original Android Development] gbroon:
Go to boot settings and enable reapply CPU settings.

---------- Post added at 01:23 AM ---------- Previous post was at 01:02 AM ----------

Same 975mv, also taken the 1.02ghz down to 850mv and 486mhz down to 700mv so far.

Not seeing my phone use deep sleep but giving it some time and checking its not an app causing that before accusing your much appreciated kernel.
[Nexus 4 Original Android Development] gbroon:
Using system tuner took all down by 12.5 till 1.4ghz went to 975mv so far further reduced 2 others as my post above.
[Nexus 4 Original Android Development] darkamikaze:
that's a lot of UV.. O_o.. I'm surprised you guys are stable. Anyone know the stock voltages?
[Nexus 4 Original Android Development] Logi_Ca1:
I also have my 1.4ghz at 975mv, but my 1104mhz is working at 700mv for me O.o
[Nexus 4 Original Android Development] IAmAN00bie:
Are you sure? Have you run the Scaling Stability Test to make sure it actually runs? Maybe your CPU never clocked to 1104MHz?
[Nexus 4 Original Android Development] ptesmoke:
Is the consensus system tuner pro works best for UV and CPU control?

Edit: nvm, using faux's app...seems to work fine
[Nexus 4 Original Android Development] golfinggino:
I just installed system tuner and doing some small under volts I guess I should delete the set CPU app as I don't think I need it anymore if I use system tuner ?
[Nexus 4 Original Android Development] joshnichols189:
Yes, you do not want them to be conflicting with each other.
[Nexus 4 Original Android Development] ctfrommn:
To everyone uviing to 975mv, try taking a picture and see if it fc's or freezes. mine did till I brought it up to 1000mv. Still a nice uv though. :)
[Nexus 4 Original Android Development] Locksmith81:
Works fine... In even lower
[Nexus 4 Original Android Development] guapinoy:
Did you upgrade to 1.3? Works for me.

No problem here. Able to take pics and video.
[Nexus 4 Original Android Development] keda:
Camera Works for me to in 975.
[Nexus 4 Original Android Development] Serious_Beans:
What is this?

What to do about it?
[Nexus 4 Original Android Development] ragiut1:
Is there really a significant battery life gain from undervolting?

I always thought UVing to be overrated, and not worth the stability issues
[Nexus 4 Original Android Development] Locksmith81:
Runs cooler to the touch and fully stable UV over -175mV for some of the clock speeds
[Nexus 4 Original Android Development] Cyb3rGlitch:
Is it just me, or does the latest update run a tad warmer?
[Nexus 4 Original Android Development] Razer(x):
How did you set the volts for a single clock? Faux app has only global voltages setting
[Nexus 4 Original Android Development] PoisonWolf:
Motley....I just switched to your b22 kernel...the stable experimental build. With FSync On....I'm at 3 hours and 42 minutes of screen on time with 1.5 hours of Temple Run 2 and I'm still at 27%.

Holy freaking cow, the battery life is amazing! And CPUSpy indicates that it's mostly on Deep Sleep, 304 mhz or 1.5 ghz! No more 1ghz locks due to mpdecision!

Thanks again!
[Nexus 4 Original Android Development] _motley:
Damn dude, very nice score @1620! Another user just PM'ed and said he scored 21000 and was happy:)

Curious if you can achieve the same score on b28 where I built with Google's 4.7 toolchain?

Thanks for sharing
[Nexus 4 Original Android Development] j3di:
With like for like settings, immediate feeling is b29 feels slicker than b28. Only been running b29 a short while though so can't comment on the rest...
[Nexus 4 Original Android Development] Underworld79:
After several runs, the highest I can score was a couple hundred points less on b28a compared to b29a kernel. I freshly installed the ROM and kernels before attempting to compare just to insure accuracy.
[Nexus 4 Original Android Development] Hrithan2020:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

A little bit off topic, but has anyone tried touch control (pgm for n4) with b28a?

Developer has updated his app to support it, but for some reason I am having reboot when trying to enable slide to lock.loading the module and slide to wake is working though.

Sent from my Nexus 4
[Nexus 4 Original Android Development] testnumero:
which rom are you using ?

thanks
[Nexus 4 Original Android Development] Underworld79:
RasbeanJelly_Bionic r3
[Nexus 4 Original Android Development] Underworld79:
Just in case anyone is curious, this is the script I made from using the parameters range that Motley mentioned in OP.

WARNING:

I am not responsible for damaging your device or voiding your warranty

#!/system/bin/sh

#Preset Color Controls

echo "245 230 255" > /sys/devices/platform/kcal_ctrl.0/kcal

echo 1 > /sys/devices/platform/kcal_ctrl.0/kcal_ctrl

#Thermal Throttle

echo 8 > /sys/module/msm_thermal/parameters/min_freq_index

#Disable Fsync

echo 0 > /sys/class/misc/fsynccontrol/fsync_enabled

#Disable Fast Charge

echo 0 > /sys/kernel/fast_charge/force_fast_charge

#MSM Thermal

echo 74 > /sys/module/msm_thermal/parameters/throttle_temp

#Eliminate unnecessary debug

echo 0 > /sys/module/lge_touch_core/parameters/debug_mask

#Disable Load Threshold

echo 80 > /sys/module/auto_hotplug/parameters/disable_load_threshold

#Enable Load Threshold

echo 150 > /sys/module/auto_hotplug/parameters/enable_load_threshold

#Load All CPU's

echo 400 > /sys/module/auto_hotplug/parameters/enable_all_load_threshold

#Sampling Periods

echo 10 > /sys/module/auto_hotplug/parameters/sampling_periods

#High Speed Frequency

echo 20 > /sys/module/auto_hotplug/parameters/min_sampling_rate

#Minimum CPU's Online

echo 1 > /sys/module/auto_hotplug/parameters/min_online_cpus
[Nexus 4 Original Android Development] JmPTaz09:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

Just wanted to say that I've been testing kernels and for my use, B29 and Matr1x 6.0 (gpuOC) outperformed all other kernels in speed, smoothness and battery life. I've liked mathkid since my nexus s days and now I have another kernel Dev who I'll likely follow for quite awhile. Nice work Motley! :beer:
[Nexus 4 Original Android Development] Underworld79:
b29a, ondemand, row...

acpuclk-8064 acpuclk-8064: ACPU PVS: Fast

CPU Voltages: (Lowest ~ 304MHz = 650mV) (Highest ~ 1674MHz = 1075mV)

RasbeanJelly_Bionic r6

:cool:
[Nexus 4 Original Android Development] the1onewolf:
I just wanted to make sure and sorry if has been asked before.

Are there any issues between switching back and forth from the mainline to experimental kernel without resetting back to stock kernel (ie if you directly flash the experimental kernel over the mainline kernel or vice versa)?
[Nexus 4 Original Android Development] _motley:
Killin' it! I downloaded this ROM this morning to try it out. Just getting back around to finish up the setup and restore of apps etc. So far, so good. I was getting tired of stock and wanted to try something different. Performance potential looked great with the Linaro patches baked in, so I jumped on it.

You will want to just pretend like you are coming from another kernel when you go back and forth between exp and mainline. For stock you can flash the stock restore zip in the OP. For other ROMs besides stock, just dirty flash your ROM zip. I will try to remember to put this in the OP.
[Nexus 4 Original Android Development] _motley:
Cool, glad to hear it is out now. I'll have to give it a try. I would report these issues in his thread or his website since I don' t have control over it.
[Nexus 4 Original Android Development] Underworld79:
~Motley (Quote)

"Killin' it! I downloaded this ROM this morning to try it out. Just getting back around to finish up the setup and restore of apps etc. So far, so good. I was getting tired of stock and wanted to try something different. Performance potential looked great with the Linaro patches baked in, so I jumped on it."

-----------------------------------------------------------------------------

Thanks.Can you let us know what you score in your benchmarking journey? Also, if I wanted to squeeze out a little more performance with my script in the OP, is there anything you recommend that I change?

Based off my observations, I think I am the opposite from the majority on this forum, but I could be wrong. I really don't care or aim to prolong the battery life of my phone; my main objective is to achieve the highest performance that I can without my phone exploding, lol...
[Nexus 4 Original Android Development] Hrithan2020:
Yes have already posted it there. bponury is sleeping now, so will take some time to get response from him and it seems there are no motley users in that thread, so I am not sure whether it is just me or is a problem with all motley users.. That's why I posted. Thought I might get some response from fellow users..
[Nexus 4 Original Android Development] ethoss:
R: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

Same to me. I already posted on app topic... Just to inform, app force rebooting my nexus with a kernel panic.

Last kmsg added :)

http://db.tt/tz717618

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Original Android Development] _motley:
Good news. Touch Control v1.3 has been verified to work on b28 (Google toolchain) and b29 (Linaro toolchain). This means that I don't have to ditch Linaro if I don't want to:D

Great work and thanks to the dev bponury who delievered for us!

ROM is working great, love the optimizations. Won't be going back to stock! To be honest, I don't concentrate on benchmarks as much as some devs do, but I do try to concentrate on performance....if that makes sense:silly: I use benchmarks to test stability and to make sure scores are going in the right direction (or staying the same) after I change something.

Your scores are very good. Here are a couple that I ripped off for the hell of it to test stability. I used Interactive/SIO with a couple tweaks to the gov from my default. This is on a new build, but still on the Google toolchain. I will likely head back to Linaro after running some tests. We'll see if it does better after that.

You can play with raising the throttle temp, forcing more cores online, lowering the auto plug sampling_periods, and playing with the min_sampling_rate. After you lower the enable_all_load_threshold like you did, min_online_cpus probably doesn't need to set, however I haven't tried all the combinations to see what really does work best. So many controls to chose from!

One note: once in awhile, when I change sampling_periods on the fly (usually lower), I get a reboot. I will look into this. I seem to get this on the new ROM for some reason as I never noticed on stock, or maybe I didn't lower enough to catch it. I fixed permissions recovery and that seemed to help with (since the ROM dev suggests it). I think if you set it on boot using init.d, it likely won't be a problem. Maybe try 8 periods to make it even more aggressive.
[Nexus 4 Original Android Development] _motley:
A bit more good news as well. I pretty much have a generic gamma control completed (thanks to faux for the original code of course). The next version, if success continues, will allow you to use his app or you can just set gamma from a shell script.

A bit of warning though...this isn't something I will recommend to all users when it first releases. As a community, the more advanced users will need to start creating some scripts and then others will be able to try them out. I have kept, but simplified, his checksum routine and made it more human friendly. This way, we can have the checksum calculated in a spreadsheet as we lay out different combinations of values. We need to make sure that user's can't pump in anything they want as I don't know the full repercussions of doing so. The checksum and additional sysfs set checks, should keep people from doing silly things without thinking about it.
[Nexus 4 Original Android Development] Underworld79:
Re: [KERNEL][Jan-24][Linaro]Exp:b22/b28a/Main:b57 _motley kernel for the N4

Thank you for the detailed response. I didn't know that I could go above 74 for the threshold...
[Nexus 4 Original Android Development] _motley:
Experiment build 31 posted

Hi everyone, experimental build 31 has released. We now have generic gamma control that can be set using scripts. See post 2 for details.

See the OP for other changes in b31. Looking forward to your feedback.

Thanks!
[Nexus 4 Original Android Development] sophan:
Great! thanks to you :good:
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Jan-28][Linaro]Exp:b31/Main:b57 _motley kernel for the N4

Thanks for the update! I love your kernels. Specially since you always try and answer all of the questions and offer help :).
[Nexus 4 Original Android Development] drewtang:
Re: [KERNEL][Jan-28][Linaro]Exp:b31/Main:b57 _motley kernel for the N4

Downloading now, and the newest xylon nightly(find it's a great combination as they are using linaro optimizations as well) will report back :cool:
[Nexus 4 Original Android Development] whittikins:
Re: [KERNEL][Jan-28][Linaro]Exp:b31/Main:b57 _motley kernel for the N4

I made a script with the provided recommended settings, but it doesn't seem to apply. I put it in system/etc/init.d and set the proper permissions, but after booting up and checking color settings in an app, they haven't been changed. Any suggestions?

Also, what's the command to execute a script file on demand in terminal?
[Nexus 4 Original Android Development] thunderger:
@motley_

B29 is fine. Your OC is stable. Next I'll try B31 with lower voltages for OC. I noticed some 'lags' while waking my device from 'sleep'. It takes around one up to threee seconds before it notices that i swiped upwards to unlock my device. But this could be related to my screen off profile set in setcpu with govenor powersave and locking cpu clock between 304 MHz and 594 MHz.

Will you support new CM settings feature, e.g. set screen RGB values or display brightness values? I saw some commits yesterday and today called 'MakoParts' that'll implement these features.
[Nexus 4 Original Android Development] barome:
Show your script file...
[Nexus 4 Original Android Development] whittikins:
Re: [KERNEL][Jan-28][Linaro]Exp:b31/Main:b57 _motley kernel for the N4

It's simply what he recommended in post 2.

#!/system/bin/sh

# Set data color pro presets from shared Google spreadsheet (thanks user acer73!)

# Use LG presents as your starting values and then adjust columns 6 & 7 from the spreadsheet

echo "397 114 21 118 0 10 4 80 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_red

echo "394 114 21 118 0 7 4 80 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_green

echo "389 114 21 118 0 5 1 80 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_blue

#Set the complimentary RGB values for this calibration

echo "248 248 248" > /sys/devices/platform/kcal_ctrl.0/kcal

echo 1 > /sys/devices/platform/kcal_ctrl.0/kcal_ctrl
[Nexus 4 Original Android Development] yurilebbie:
Re: [KERNEL][Jan-28][Linaro]Exp:b31/Main:b57 _motley kernel for the N4

I have to sadly say that I am getting more and more data drops. While writing this I even got one.

Changing the TCP congestion algorithm has not really made much of a change to the problem.
[Nexus 4 Original Android Development] mhanis:
Re: [KERNEL][Jan-28][Linaro]Exp:b31/Main:b57 _motley kernel for the N4

Anyone care to share their text file script for color and gamma settings?
[Nexus 4 Original Android Development] bamsbamx:
Thanks motley for the update!!!!!

I want super colorful screen, so I made this script (run successfully from term. Emulator):

Do you think this makes strong colors??? I dont appreciate it well :)
[Nexus 4 Original Android Development] jhericurls:
Got SOD last night with 29a

https://dl.dropbox.com/u/7812701/last_kmsg
[Nexus 4 Original Android Development] DynamicRam:
Gamma control works as it should

i attached my script for vibrant colors and clear white & deepest black possible

Edit : Flash in CWM
[Nexus 4 Original Android Development] _motley:
Just a friendly reminder to make sure you flash b17 if coming from another kernel. I will create full installs for the next release.

Any luck? You can run the script in System Tuner if you like. Make sure you check dmesg output after you run the script or boot up to see if it tells you anything. If the script is running, you will see some messages about setting the new gamma values.

Thanks. Give it a try without the screen off profile...that is probably it since I don't see these problems. I actually put in a little hotplug trick in b28/29 that pre-preemptively puts more cores online for a bit when waking up.

If the CM MakoParts using the stock RGB sysfs, this kernel will work fine as-is. Maybe they will pick up gamma control now:) I'll check out the commits when I get a chance.

Sorry to hear this. Did you start seeing this after a particular version? hsic fixes? I'll start looking into it.

Thanks, looking forward to trying some of these later. What do you think about the example in post #2, does it look good to everyone?

Looks like a suspend/resume loop with a recurring error: QSEECOM: qseecom_receive_req: Interrupted: exiting wait_rcv_req loop.

Do you UV? Also do you have apps that affect sleep (touch control, screen off power profiles etc.)? I still have never had an SOD on this kernel or the stock kernel. This was discussed a couple pages back and some thought it was likely too much UV causing the issues.
[Nexus 4 Original Android Development] jhericurls:
I've undervolted, I'll dial it back a bit. I have also just started using Touchcontrol, so maybe it could be that.
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Jan-28][Linaro]Exp:b31/Main:b57 _motley kernel for the N4

I have yet to have issues on b31 with data drops, but I also moved to DC recently. As I was mentioning earlier, back in Denver, I'd get data timeouts for literally a minute when my device would try to acquire hspa signal, from umts.

Here in DC, it stays connected to hspa pretty much always, haven't had much issues at all with it dropping out completely. What was happening though, are small data timeouts. Lasting a few seconds, just enough to notice. For example, every time I feel like it is happening, I'd run a speed test, and result is usually much lower than average, simply because you can literally see a straight line during which data times out during the test.

I first started seeing this around b17 I believe? B31 hasn't been out long enough yet, but so far seems solid as far as data goes, maybe that congestion control change helped?!
[Nexus 4 Original Android Development] z3r0_x:
So you're kernel is 100% compatible with the Gamma control in Faux app? So I can use the gamma values in the famous GDocs spreadsheat?
[Nexus 4 Original Android Development] jazzboyrules:
Re: [KERNEL][Jan-28][Linaro]Exp:b31/Main:b57 _motley kernel for the N4

Have you set a custom APN?
[Nexus 4 Original Android Development] ethoss:
R: [KERNEL][Jan-28][Linaro]Exp:b31/Main:b57 _motley kernel for the N4

Yessssss :)

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Original Android Development] PoisonWolf:
Motley,

What if I used the stock reset kernel, then moved straight to b22?

I was originally on your mainline. Then I wipe cache/dalvik, installed stock reset kernel, allowed it to boot, then wipe cache/dalvik, the installed B22.

Would I need to have actually installed B17 first?

Just curious.