yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] defconoi:
will update within 10 minutes, im really looking forward to you guys testing this out thoroughly, this will bring allot of customization, ie: overclock CPU 1, underclock 2-3 hyper on 2-3 and intelliactive on 1, let me know what u guys come up with ;)
[Nexus 4 Original Android Development] defconoi:
Kernel Update

This is some killer stuff, highly expirimental, and allows tons of experimentation. You can now control min/max cpu per core, as well as governors per core. This release adds a 5th Hotplugging system called Alucard Hotplug with the new alucard cpufreq, not all features are added to Synapse yet:

Thanks all who have donated, it gave me the inspiration to get some more good stuff added ;)

Changelog:

ion-storm - finish import of new msm_thermal
ion-storm - add some stuff to tsens
ion-storm - update version to 92u-a3
ion-storm - Revert "MULTI POLICY LIMIT: do not export CPU0 controls. read more."
Dorimanx - MULTI POLICY LIMIT: do not export CPU0 controls. read more.
ion-storm - enable io is busy on alucard
ion-storm - add policy min/max to cpufreq
ion-storm - Revert "msm: cpufreq: Avoid NULL clock pointer references"
Patrick Daly - msm: cpufreq: Avoid NULL clock pointer references
ion-storm - cpufreq_stats: sync with dorimanx
ion-storm - Enabled Async CPU CORE. + Config Interface thanks to @Alucard24
ion-storm - Implemented config MULTI_CPU_POLICY_LIMIT to apply policy limits on all cpus
ion-storm - ALUCARD_HOTPLUG: Implemented use msm rq stats...
ion-storm - UNI_CPU_POLICY_LIMIT: cpufreq_cpu_put cpu0_policy.
ion-storm - enable @alucard24's hotplug
ion-storm - autosmp: power_suspend fixes
ion-storm - Merged Latest Version of Alucard HotPlug & Alucard CPU Governor by @Alucard24
ion-storm - arm: autosmp: minor corrections and optimizations
Arianna Avanzini - block: Switch from BFQ-v7r5 for 3.4.0 to BFQ-v7r6 for 3.4.0
ion-storm - init.d: Set interactive as default GPU governor

Download:

AOSP/L

CM11
[Nexus 4 Original Android Development] defconoi:
gonna release a quick update to this so we can set cpu0 max freq normally and it doesn't effect other cores, I mistakenly reverted it, this delinks cpu0 from auto setting max freq to other cores so cpu0 is separate
[Nexus 4 Original Android Development] defconoi:
Just an FYI, alucard hotplug & cpufreq are optimized for this, dont use the regular cpu slider, use the cpufreq controls to set each core's max freq/governor/min freq

AOSP/L:

https://www.androidfilehost.com/?fid=95784891001605401

CM11:

https://www.androidfilehost.com/?fid=95784891001605400
[Nexus 4 Original Android Development] defconoi:
initialy use the cpu slider to set max freq/governor for cpu0 then customize other cores below individually
[Nexus 4 Original Android Development] defconoi:
ok im going to bed now, 3am here, let me know what you guys come up with, should be able to make some kick ass profiles with this ;)

This is another first for the Nexus 4 ! :)
[Nexus 4 Original Android Development] sykopompos:
Such a slacker, man

Sent from my LG-D851
[Nexus 4 Original Android Development] keyra74:
/me grabs
[Nexus 4 Original Android Development] kskevinstewart7:
[MENTION=3301438]geko95gek[/MENTION] check this out ;)
[Nexus 4 Original Android Development] CamoGeko:
Ah the possibilities! :D

Sent from my N⁴ running Android L
[Nexus 4 Original Android Development] Aaron_Knowles:
Any mirror for 92 3.1 aosp? AFH isn't loading properly.
[Nexus 4 Original Android Development] Targaeryan:
If you're using Chrome/chrome beta, once you click the link and site starts to load, click stop and it'll fully load..
[Nexus 4 Original Android Development] Aaron_Knowles:
Thank you, this worked. Will keep this in mind if it happens again.
[Nexus 4 Original Android Development] manueltts:
Here is my current setting. So far so good. I'll let you know how it goes on the long run. cpu0 set at 384-1512.
[Nexus 4 Original Android Development] defconoi:
it looks like afh is back up, let me know I can mirror it on Mega/Drive
[Nexus 4 Original Android Development] Targaeryan:
Afh is fine.. Something about it just not loading properly on chrome/chrome beta (I only use these so I noticed) on mobile.. You gotta hit the stop button in menu once hitting the link then it fully loads up..
[Nexus 4 Original Android Development] CalicoJeb:
Bleeding Edge for Real :cowboy:
[Nexus 4 Original Android Development] defconoi:
Kernel Update

92u-A4:

Intelliplug Updated to 5.2 for better performance & compatibility with Asynchronous CPU Cores

MSM Hotplug Upgraded to latest version, tweaked For performance & compatibility with Asynchronous CPU Cores

RQ_Stats updated to support new Intelliplug

AOSP/L:

https://www.androidfilehost.com/?fid=95784891001605628

CM11:

https://www.androidfilehost.com/?fid=95784891001605629
[Nexus 4 Original Android Development] defconoi:
added a hot plug poll, please vote, thanks :)
[Nexus 4 Original Android Development] akaHardison:
I can't load afh in China except using VPN.Maybe is my ISP problem:)
[Nexus 4 Original Android Development] SpaceCeph:
Do I need to setup all settings or is this good to flash and thats it...?
[Nexus 4 Original Android Development] defconoi:
its good to flash, but there really is no fun in setting it and forgetting it, it's recommended to tweak it for your usage, then set it/forget it
[Nexus 4 Original Android Development] Vinnom:
I would vote the poll, but I need to test alucard hotplug. I'm using autosmpfor now... very smooth.

BTW, [MENTION=1316336]defconoi[/MENTION], I tried use lz4, but isn't working.

I'm using this:

echo "lz4" > /sys/block/zram0/comp_algorithm

PS: I tried without the quotes too.
[Nexus 4 Original Android Development] youlun.zhai12:
I'm able to download them without VPN.
[Nexus 4 Original Android Development] akaHardison:
Maybe the ISP problem.Using CHN-UNICOM LTE right now.I will try it later
[Nexus 4 Original Android Development] kdb424:
Deep sleep fixed on this kernel for me. YAY! Best kernel ever. I intend to donate on payday. Well worth the money seeing the new life brought to my older hardware. The Nexus phones are only ever as good as the devs, and dang, do you guys make them amazing.
[Nexus 4 Original Android Development] defconoi:
lz4 needs to be enabled before all other parameters
[Nexus 4 Original Android Development] Vinnom:
Here is what is my 99defcon:

# ZRAM tweak
echo 1 > /sys/block/zram0/reset
echo "lz4" > /sys/block/zram0/comp_algorithm
echo 41943040 > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0
echo "90" > /proc/sys/vm/swappiness

Even before reset? Is "echo 1 > /sys/block/zram0/reset" necessary or useful?

EDIT:

I just tried use it before other params, put it before reset line, then removed reset line. I still get lzo when I do

cat /sys/block/zram0/comp_algorithm

EDIT2: I've tried cat all the thing I listed above, neither of them is correct. Nothing is changing.
[Nexus 4 Original Android Development] defconoi:
I'll have to check when I'm back at PC tomorrow, synapse enables it correctly after setting lz4 first, if you like uncompress ukm and see which cmds synapse usesin the memory Json file
[Nexus 4 Original Android Development] Vinnom:
Ok, here is the UKM cmd for lz4:

`if [ -f "/sys/block/zram0/comp_algorithm" ]; then
CA=\`$BB echo $($UKM/actions/bracket-option /sys/block/zram0/comp_algorithm)\`;
$BB echo '{ SOptionList:{
title:"Compression Algorithm",
description:"Applying a different option will reset Z-RAM. LZ4 algorithm tends to have a faster decompression. More info: <a href='https://code.google.com/p/lz4/'>HERE</a>.",
default:'$CA',
action:"bracket-option /sys/block/zram0/comp_algorithm",
values:['
for COMPALG in \`$BB cat /sys/block/zram0/comp_algorithm | $BB sed -e "s/\]//;s/\[//"\`; do
echo "\"$COMPALG\",";
done;
$BB echo '],
notify:[
{
on:APPLY,
do:[ RESET, REFRESH, APPLY ],
to:"zram /sys/devices/virtual/block/zram0/disksize"
}
]
}},'

I don't know why isn't working =/

I don't have any clue, why the script doesn't apply just zram lines that I posted before. Everything else is getting applied pretty well.

I was trying to apply the disksize to the wrong directory, but already fixed it without results. But, If I manually apply the values, I have no problems. Only lz4 that doesn't get applied, even manually.
[Nexus 4 Original Android Development] defconoi:
this is all u need, this works for me watch:

root@mako:/ # echo lz4 > /sys/devices/virtual/block/zram0/comp_algorithm
root@mako:/ # echo 536870912 > /sys/devices/virtual/block/zram0/disksize
root@mako:/ # mkswap /dev/block/zram0
root@mako:/ # cat /sys/devices/virtual/block/zram0/comp_algorithm
lzo [lz4]
root@mako:/ # swapon /dev/block/zram0
root@mako:/ # free -m
total used free shared buffers
Mem: 1845 1428 416 0 25
-/+ buffers: 1402 442
Swap: 511 0 511
root@mako:/ # cat /sys/devices/virtual/block/zram0/comp_algorithm
lzo [lz4]

SO just add those 4 commands to 99defcon, not the ones with cat *

In the future just do find /sys | grep -i zram and look through all the sysfs files you can configure for zram, replace zram with whatever else you want to add to 99defcon
[Nexus 4 Original Android Development] Vinnom:
Added it to 99defcon -> Keep not working.

Then did it manually -> Worked like you posted.

Don't know why, it isn't being set at boot.
[Nexus 4 Original Android Development] defconoi:
Don't know, works for me, perhaps something is interfering or your script is not getting fully executed, put those cmds I typed at the end of your file. Then echo to dmesg to check if it ran.
[Nexus 4 Original Android Development] quack75:
Hi Defconoi, for me last working release is 91a2, i dont know what happened I have tried every new version with a clean flash in Stock 4.4.4 but no one boot, I understood that kk is not the future... Any help is appreciated

Inviato dal mio Nexus 4 con Tapatalk
[Nexus 4 Original Android Development] Aaron_Knowles:
It has been mentioned several times that 91a2 was the last officially supported kernel for KK. Some of the newer ones work on certain ROMs, but no guarantee. The new ones are pretty much L tests.
[Nexus 4 Original Android Development] blackg3cko:
For me , 92a4 works without any problems with Android L (B19S)
[Nexus 4 Original Android Development] Vinnom:
Zram lines are only above from those of fs writeback, that strangely, are executed.

I think I'll do this to solve the problem:

Create a script that only run the lines for zram, then cat them for me, then I'll be able to see if are working or not. They will not load on boot, but there is no problem, your kernel has awesome features that make me happy to use it ^^

Soon I get an internation credit card, surely will donate to you and all the syko, at least.

EDIT:

Just installed 92u-A5 and tried add them to 99defcon and now works fine ^^ thanks
[Nexus 4 Original Android Development] jolinnard:
I have this commands in my personal init.d settings and it always worked fine:

# Zram
echo "1" > /sys/block/zram0/reset
echo "lz4" > /sys/block/zram0/comp_algorithm
echo "268435456" > /sys/devices/virtual/block/zram0/disksize
echo "1" > /sys/block/zram0/max_comp_streams
$bb mkswap /dev/block/zram0
$bb swapon /dev/block/zram0

mkswap and swapon are executed from busybox, maybe last time you just forget it...
[Nexus 4 Original Android Development] ivanich:
3 sleep of death in with A5 kernel.
[Nexus 4 Original Android Development] CamoGeko:
Logcat?

Sent from my N⁴ running Android L
[Nexus 4 Original Android Development] defconoi:
yea do me a favor do adb shell start logd, run a logcat or grab a last_kmsg, synapse will do it for u.
[Nexus 4 Original Android Development] Vinnom:
Oh, I surely forgot the busybox =/

Just add it, thanks
[Nexus 4 Original Android Development] ivanich:
I'd like to but after 20sec power reboot there is:

root@mako:/ # ls /proc/last_kmsg
/proc/last_kmsg: No such file or directory
[Nexus 4 Original Android Development] defconoi:
what rom?
[Nexus 4 Original Android Development] ivanich:
CM11 last nigthly
[Nexus 4 Original Android Development] defconoi:
a last_ksmg will persist until next boot, grab that for me and I'll be able to fix the issue

ah missed what u said, sometimes it doesnt, maybe next time
[Nexus 4 Original Android Development] blankit:
So I took a two hour nap and woke up with 30% less battery. ?. Only two apps updated while It was in sleep mode.
[Nexus 4 Original Android Development] defconoi:
is this on 92u-A5? did you experience any drain in previous releases?
[Nexus 4 Original Android Development] dude6595:
A5 great for me but only been a few hours
[Nexus 4 Original Android Development] VinciusG:
Hi guys, can someone share a synapse profile to achieve about 4h SOT? I'm using CM11, and I've got a fast binned CPU, thanks!
[Nexus 4 Original Android Development] Rohit02:
Try this,

Use smartmax with row and uv a bit -50

dont use d2w or any

This is wat I do and I easily get 4+SOT on L port that too all on data
[Nexus 4 Original Android Development] gorilla p:
I found that the setting for "scaling governor all CPUs" can get stuck. If it sticks and is different from the set governor, Synapse won't display the setting options correctly. It will flip back and forth between the setting options for those two governors.

Sent from my Nexus 4

---------- Post added at 10:53 PM ---------- Previous post was at 10:41 PM ----------

Added 92uA5 Bat-Bal beta synapse profile.

It seems to be working really smoothly so far.

Sent from my Nexus 4
[Nexus 4 Original Android Development] defconoi:
Year dt2w kills battery, UV further if u can, also any governor can be tweaked for battery, I'd suggest researching different CPU freq settings. I also disable radio on WiFi and gain an extra half hour to hour, the other day at 4hr 45 min sot
[Nexus 4 Original Android Development] defconoi:
I've noticed this too, maybe [MENTION=5658634]apb_axel[/MENTION] can get synapse working well with it, sometimes u gotta restart synapse twice after setting settings for the multi core CPU freqs, BTW terminal settings stick immediately.
[Nexus 4 Original Android Development] defconoi:
Kernel Update

92u-A6

ion-storm - update version to 92u-a6
ion-storm - Replace mod_delayed_work_on with queue_delayed_work_on
alucard24 - Revert "Replaced queue_delayed_work_on with mod_delayed_work_on for"
ion-storm - Revert "Use mod_delayed_work_on for"
alucard24 - Revert "workqueue: mod_delayed_work_on() shouldn't queue timer on 0 delay"
ion-storm - Revert "workqueue: implement mod_delayed_work[_on]()"
Archana Sathyakumar - msm:rq_stats: Register for Cpufreq policy notification
ion-storm - Revert "misc fixes of mmu.c and mm.h"
ion-storm - Revert "mm: make is_vmalloc_addr lockless"
ion-storm - misc fixes of mmu.c and mm.h
Abhijit Pawar - mm/kmemleak.c: remove obsolete simple_strtoul
Michel Lespinasse - kmemleak: use rbtree instead of prio tree
Michael Wang - kmemleak: Replace list_for_each_continue_rcu with new interface
ion-storm - mm: make is_vmalloc_addr lockless
Arnd Bergmann - mm/slob: use min_t() to compare ARCH_SLAB_MINALIGN
Ezequiel Garcia - mm/slob: Use free_page instead of put_page for page-size kmalloc allocations
Christoph Lameter - slab: Use the new create_boot_cache function to simplify bootstrap
Christoph Lameter - slab: Simplify bootstrap
Randy Dunlap - mm: fix slab.c kernel-doc warnings
Ezequiel Garcia - mm/sl[aou]b: Move common kmem_cache_size() to slab.h
ion-storm - mm/slob: Use object_size field in kmem_cache_size()
Ezequiel Garcia - mm/slob: Drop usage of page->private for storing page-sized allocations
David Rientjes - mm, slob: fix build breakage in __kmalloc_node_track_caller
Ezequiel Garcia - mm, slob: Add support for kmalloc_track_caller()
Ezequiel Garcia - mm, slob: Use NUMA_NO_NODE instead of -1
Christoph Lameter - slub: Take node lock during object free checks
Arnd Bergmann - ARM: compressed/head.S: work around new binutils warning
Joe Perches - jiffies conversions: Use compile time constants when possible
Ming Lei - ARM: 7746/1: mm: lazy cache flushing on non-mapped pages
Patrick Daly - msm: cpufreq: Update frequency index
ion-storm - msm: cpufreq: Add support for CPU clocks and msm-cpufreq device

This is a update that optimizes memory a little bit more, as well as switched workqueue system from mod_delayed_work to queue_delayed_work for a bit better performance.

Download:

AOSP/L

CM11
[Nexus 4 Original Android Development] eduardozeassesme:
Thanks man, your kernel is the best
[Nexus 4 Original Android Development] blankit:
91u. This is the one version I've tried.

---------- Post added at 01:21 AM ---------- Previous post was at 12:43 AM ----------

Anyone have a mirror? Afh isn't working
[Nexus 4 Original Android Development] johnb380:
Here I posted this in the L thread too my Dropbox mirror!

CLICK
[Nexus 4 Original Android Development] Rohit02:
Absolutely agree on that. .:good:

Your new update is just smooth.. Just like a wine that gets better as it gets older.. ;)
[Nexus 4 Original Android Development] seilogeo:
I am on 92u-A5 on Mahdi rom .

I cannot set the intelliactive governor it always changes to hyper governor.

I use intelliplug . Anyone has any similar issue

edit:

All good after a couple of reboots now it sticks
[Nexus 4 Original Android Development] prithvic:
Any suggestions on tuning this kernel(CPU Governors, Safe UV, I/O Schedulers) for a better SOT (I'm new to tuning kernels). I hardly get 3 hours without using mobile data. Using Lollipop B17 port. Please help :)
[Nexus 4 Original Android Development] iskandar1023:
for me disabling location will help reduces the consumption (yes i hate play services wakelock)

and for kernel settings i only change hotplug to autosmp and use HYPER gov or smartmax when i want more juice saved
[Nexus 4 Original Android Development] prithvic:
My location is 24/7 off still the battery sucks, i use Intellidemand governor (1.2Ghz) , UV it to 100mV, even tried turning off 2 CPUs yet no benifit
[Nexus 4 Original Android Development] iskandar1023:
are you using any chatting app?

chat app like whatsapp, bbm line, its suck the battery the most

facebook too, i recommend to use greenify
[Nexus 4 Original Android Development] prithvic:
I do use greenify too ( greenified all apps, FB & all kinds of Messenger, all games, except whatsapp ),

and another point - even a 15 minute music playback drains up to 3%
[Nexus 4 Original Android Development] d9ny:
I got this error on synapse, anyone can help...
[Nexus 4 Original Android Development] Targaeryan:
Those settings aren't available yet. Wait for new version of UKM..
[Nexus 4 Original Android Development] defconoi:
thanks, yea I already notified [MENTION=5658634]apb_axel[/MENTION], he should add them to Synapse/UKM soon, its probably already fixed
[Nexus 4 Original Android Development] Targaeryan:
Np. I saw in his thread that he's using the new version of your kernel and testing it out.. He must've added loads of stuff in the new version of UKM by now!
[Nexus 4 Original Android Development] nicknc:
I have similar problems with sot, and I'm even using a new battery.

B19 made a big difference for me from b16/17. I've been running stock kernel on b19 and have much better battery life.

Try b19.
[Nexus 4 Original Android Development] prithvic:
Oh. Alright. Will give it a try, or better i wait for proper AOSP build by syko which gains a stable tag , maybe battery life improves in that compared to B19.
[Nexus 4 Original Android Development] nicknc:
B17 sucks. If you're having audio problems, then that is fixed in b19 as well.

I'm trying the latest kernel here on b19 now, and am curious to see if I can improve on stock.
[Nexus 4 Original Android Development] prithvic:
No audio problems yet on B17, just in call speaker is a bit noisy on loud volumes. So then ill try B19 for sure. Thanks for the kind advice :)
[Nexus 4 Original Android Development] nicknc:
No problem. I hope you get it fixed.
[Nexus 4 Original Android Development] a g bell:
[MENTION=1316336]defconoi[/MENTION] is unleashed coming to nexus 5??
[Nexus 4 Original Android Development] defconoi:
yes, some random guy/gal on here sent me a new Nexus 5 ;)
[Nexus 4 Original Android Development] CamoGeko:
Omg you're so lucky! :D

My new Mi4 64GB is coming tomorrow.

Sent from my N⁴ running Android L
[Nexus 4 Original Android Development] a g bell:
I know thanks? [quote name="a g bell" post=56527607]@<a href="http://xdaforums.com/member.php?u=1316336" target="_blank">defconoi</a> is unleashed coming to nexus 5??[/QUOTE]<br />

<br />

yes, some random guy/gal on here sent me a new Nexus 5 ;)<br/>
[Nexus 4 Original Android Development] gorilla p:
Yeah I mentioned I was looking at that as well as the MX4, but the MX4 is Mediatek based, which I'm skeptical about.

Sent from my Nexus 4
[Nexus 4 Original Android Development] defconoi:
Just an FYI: I'll be updating the kernel soon with a fix for the random SOD in AOSP L. It took me 50+ kernel compiles and tests to find it yay. Next update with be a stability and performance update.
[Nexus 4 Original Android Development] jeromechrome1:
can 92 a6 be used with AOSP B22?
[Nexus 4 Original Android Development] kdb424:
Yes
[Nexus 4 Original Android Development] sykopompos:
I want it now!!!!!!!

sent from frank 2.0
[Nexus 4 Original Android Development] manueltts:
NOW
[Nexus 4 Original Android Development] defconoi:
cleanup

im removing LED thermal & Dynhotplug by stratosk, I will also be removing other features that are used by a small minority that adds weight to the kernel to optimize performance even further. Does anyone use Battery Life extender(BLX)? I got it as a feature but I never used it, also let me know what else I can cut down. Also if you know of any linux/vm tweaks & patches let me know, im always open ears for suggestions. I'll however be keeping Intellithermal, intelliplug, msm_hotplug, autosmp hotplug and alucard. Most of the cpufreq's I also will be keeping. Right now im in an optimization phase with Unleashed before I take a break and work on the N5
[Nexus 4 Original Android Development] iskandar1023:
I don't know what is the profit of BLX,

So i won't bothered with your decision

Its your baby [emoji16]

sent by frank 2.0
[Nexus 4 Original Android Development] vampire36:
Can you possibly also look at dt2w...now that you optimizing stuff....:)
[Nexus 4 Original Android Development] johnb380:
Led thermal is nice but o well and Battery life extender is also something I use but I can live without both for better performance and optimizations... But I believe having 5 or 6 hotplugs is a lil much. But it is up to you what u do.

I'm just here for the show!

Thank you for always trying to improve upon an already perfect, IMHO, kernel!

Keep up the good work friend!
[Nexus 4 Original Android Development] defconoi:
Kernel Update

Unleashed 92u-A7:

ion-storm - disable in kernel logcat, no longer needed since L has logcat binary
ion-storm - stop killing logd, can now be controlled in dev options
ion-storm - disable touch wake, I plan on removing this, dt2w is good enough, besides 4% idle drain per hour is rediculous just for a feature
ion-storm - cleanup time #1, Remove LED-Thermal @ Dyn-Hotplug by stratosk, nobody uses it in my kernel, hasnt been updated in months
ion-storm - update version to 92u-a7
ion-storm - Revert "build: Use hard-float abi"
ion-storm - Revert "sched: Remove get_online_cpus() usage"
ion-storm - add removal of power.msm8960.so to remove dmesg logspam & fix random reboot/SOD on L
ion-storm - pm8xxx: fix SOD/RR and improve deep sleep
Erik Kline - net: ipv6: Add a sysctl to make optimistic addresses useful candidates
ion-storm - update cpufreqs
ion-storm - sched: Remove get_online_cpus() usage
ion-storm - msm: cpufreq: Move the enabling of the CPU/L2 clocks to CPU_STARTING
Patrick Daly - msm: cpufreq: Correct synchronous cpu logic
Patrick Daly - msm: cpufreq: Avoid NULL clock pointer references

This is mainly a bugfix/optimization release, this works even better on L now, also works good on AOSP/L

Also all cpufreq's have been updated to the very latest versions. Some cpufreq options have changed, so feel free to tweak them to your preferences, bacon/HYPER/interactive/intelliactive are now tuned more for performance, battery life is greatly improved from new sleep patches, so idle/sleep drain should be at a minimum

AOSP/L

CM11