yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] philowneus:
I just went through your drive. There is a lot of great stuff in there.
[Nexus 4 Original Android Development] defconoi:
my voltage table is different, If you get crashes at high freq's like 1.94, i wont be debugging that, lower your freq.
[Nexus 4 Original Android Development] sidnoit22:
People need to understand not every device can be on highest frequency and the lowest. So don't complain first check the frequency it should be around 1.5
[Nexus 4 Original Android Development] vampire36:
stratosk's dyn_hotplug and blue active...looks a perfect combo for smooth buttery performance with amazing battery :)

also s2w with stratosk's touchdriver works a treat :)
[Nexus 4 Original Android Development] bart.found:
73u was full of issues for me... Never a problem with previous versions but I had a SoD in 73u, clean flashed ROM and kernel and I got an instable system.. It rebooted all the time.. Flashed again.. Same.. Reverted to 72u
[Nexus 4 Original Android Development] defconoi:
I think I may have fixed some of these issues in a new release, intelli_thermal was throttling too much, updated it to a newer version with some stability fixes. If you can pull a dmesg/cat /proc/last_kmsg and logcat in the future I can make sure these issues are fixed.
[Nexus 4 Original Android Development] defconoi:
Kernel Update

75u:

ion-storm - Update version to 75u
ion-storm - lower temps a bit
ion-storm - enable intelli_thermal_stats
ion-storm - msm: thermal: Limit maximum cpu frequency instantly.
dorimanx - Default Intelli Thermal (merged with original) fixed derps + work delay.
ion-storm - Intelli Thermal driver: switch to local CPUFREQ Limit control.
dorimanx - INTELLI THERMAL: allow to read psm_temp + vdd_rstr from dtc config.
dorimanx - INTELLI THERMAL: Restore Default delayed_work + other stock code.
dorimanx - Intelli Thermal Control: Tuning and corrections to TEMP and controls.
dorimanx - Intelli Thermal: fixed my error, poll_ms must be init! and best 250ms
dorimanx - Intelli Thermal: Updates by Alucard24
ion-storm - intelli_thermal_stats and some optimizations.
dorimanx - Intelli Thermal: (intergated to msm_thermal) added new parameters and more.
ion-storm - Merged Intelli thermal Driver by @faux123 to MSM Thermal! + all my changes.
ion-storm - CPU-BOOST: Enable wakeup_boost by default.
Pranav Vashi - intelli_plug: Initiate suspend defer time with default value
engstk - autosmp: suspend/resume and work fixes and improvements
engstk - autosmp: hammerhead fixes, lcd hooks

https://www.mediafire.com/folder/0fwf3vfw9ww1d1x,73827x57n32yedj/shared

If flashing from before 70u on android L you need to reinstall your rom, there is old ramdisk settings that will cause instability, flash the Anykernel version.

Wipe system, reinstall your rom, no need to wipe data, flash UKM/Supersu/Kernel in order. Once fully booted set kernel settings and reboot. Let me know of any crashes, leave UV/OC alone. Send me logcat/last_kmsg.

I need to fix these bugs, the only way I can do that is if you guys provide logs.

I have 2 nexus 4's one running on L one running on CM11 as we speak, I have not had any instability whatsoever.
[Nexus 4 Original Android Development] 0.0:
I must have the worst of luck. Every time I get a chance to flash an update to your kernel, you put out another one lol. I'm loving it though!

sent from Nexus 4
[Nexus 4 Original Android Development] manueltts:
It's not bad or good luck, it's physics: every time you go to the toilette, [MENTION=1316336]defconoi[/MENTION] releases a new kernel version.

Sent from Nexus 7.2 Flo using Tapatalk.
[Nexus 4 Original Android Development] montbazon:
Interesting... same voltage same freq except voltage table. But it doesn't give same result...

Your table must be similar with faux's, right?

With faux, i have a same trouble. With ak doesn't though.
[Nexus 4 Original Android Development] deedeeceleb:
Is zram supposed to be at 0 mb as default value? If yes, what value would you suggest to make zram work?

Thank you very much for your hard work
[Nexus 4 Original Android Development] montbazon:
Faux recommend 1024mb
[Nexus 4 Original Android Development] txuki2005:
Working well last build..... thanks!!

My N4 configuration... see my signature :P
[Nexus 4 Original Android Development] defconoi:
just checked my code, I have the exact cpufreq table and voltage table as AK's
[Nexus 4 Original Android Development] gorilla p:
[emoji92] Update to bit.ly/makostuff[emoji92]

Added Unleashed 75u Kernel[emoji106]

Added Synapse Battery Profiles

Unleashed 75u Battery[emoji367]

Unleashed 75u Balanced[emoji353]

Unleashed 75u Performance[emoji298]

---------- Post added at 10:59 AM ---------- Previous post was at 10:57 AM ----------

From what I understand, ZRAM uses a portion of RAM as swap space for improved swap performance?
[Nexus 4 Original Android Development] defconoi:
That's correct, it uses a lz4 compressed portion of ram as swap in this kernel.
[Nexus 4 Original Android Development] montbazon:
Then I can't figure out why my n4 can't reach 1.83ghz, 1.94ghz with defcon's and which one makes these trouble[emoji13] .
[Nexus 4 Original Android Development] defconoi:
Open up Synapse and look at Speed binning, some devices are just not capable over 1.5ghz, the option is available for those who can, besides I dont even overclock and my kernel runs faster than most kernels running at 1.7ghz+ with my optimizations, there is simply no need imho. I actually have a speed bin 0 which says I can't overclock past 1.5ghz, but I can overclock to 1.94 no problem, but I dont do that because then thermal throttling always kicks in to prevent my n4 from melting especially during dexopting. So in general I recommend not overclocking if you are unsure how it works. You can manipulate the voltages higher/lower to overclock more/less. I prefer underclocking, undervolting for better battery life. You could also use fauxclock to use per-app cpu settings if you like, I set to performance gov and overclock while using the camera for crisp shots.
[Nexus 4 Original Android Development] defconoi:
I don't know if you guys saw, but in the latest intelli_plug release by me I added wakeup boost as default, so your phone should wakeup and be responsive now even faster.
[Nexus 4 Original Android Development] philowneus:
I don't see the 75u profiles

Nvm didn't update properly. I see them now.
[Nexus 4 Original Android Development] shadeMe:
Had a watchdog reboot while trying to wake up my device. Latest build, 75u on Paranoid Android 4.5 Beta 2. Updated from 72u which had no problems whatsoever.
[Nexus 4 Original Android Development] maradroid:
Hey there, guess what! It's hitting me again with 75u. It's funny how almost every second release of your kernel don't play nice with my phone, I'm starting to believe that you do that on purpose just to make me flash your kernel over and over again! :laugh:

Just kidding!

So same problem hit me, just like on 73u, no sound, freeze for 10s and then suddenly some app just keep crashing. But this time, unlike on 73u, when I restart my phone, problem was gone!

That seemed strange to me and got me thinking. After some time I concluded that problem was ZRAM.

Why? Here is why:

Last time I said that 72u worked perfectly for me. If I recall it right, zram didn't work on 72u.

73u came out and zram was on out off box. Had a lot problems with that one and reboots didn't help.

On 74u everything worked perfectly, but in that version you said that swap didn't work and you push out 74u-r2 with fix for that.

74u-r2 didn't flash, but 75u I did. On that kernel version zram isn't on out off box, but I did turn him on in trickster.

When I restarted my phone, everything was ok because zram was off.

To be shore that zram is a problem, I turned him on and this time, I had sound but some app crashed down.

So I'm not 100% sure that zram makes all that problems for me, but I'm 99% sure :D

Anyway, sorry for long long post. I hope it's helpful. cheers!!
[Nexus 4 Original Android Development] defconoi:
im going to revert some changes introduced after 72u to try and isolate the issue ;)
[Nexus 4 Original Android Development] defconoi:
Kernel Update (BETA RELEASE)

ok guys, doing some crazy things with this kernel, more bleeding edge code here, reverted some changes from 72u to 75u, those that had crashes I need you to install this version and do a clean rom install beforehand:

76u-B1:

ion-storm - Revert "s2w: Fix right->left trigger detection"
ion-storm - Revert "s2w: Restore sweep2wake code, hook suspend/resume to lge_touch_core's dt2w driver"
ion-storm - Revert "touch_wake: Fix always-awake with sweep2wake/sweep2sleep enabled"
ion-storm - Update version to 76u-Beta 1
ion-storm - cpufreq: Get rid of common function
Yi-wei Zhao - staging: android: lowmemorykiller: select a new task to kill
Pranav Vashi - staging: android: lmk: Kill protected apps if size exceeds than 100 MB
ion-storm - cleanup lmk
ion-storm - android:staging:lowmemorkiler: Tune and remove unused parameter
Pranav Vashi - android: staging: lowmemorykiller: Add entry to avoidtokill
ion-storm - staging: android: LMK: Skip killing core apps
ion-storm - mm, oom: change type of oom_score_adj to short
ion-storm - BlueActive, Wheatley & others removed until its updated for io_is_busy
ion-storm - Implemented io_is_busy

https://www.mediafire.com/folder/i0c066tz3n691ez,852sqy44znp9mkm/shared
[Nexus 4 Original Android Development] defconoi:
Also sweep2wake has been removed for now and probably caused dt2w stability issues.
[Nexus 4 Original Android Development] txuki2005:
Tomorrow i will check it.

Thanks!

All go fine for me on 75 version.
[Nexus 4 Original Android Development] defconoi:
I got some new bleeding edge io_is_busy CPU scheduler code impelented and new lowmemorykiller code in 76u, also much more responsive.
[Nexus 4 Original Android Development] txuki2005:
ok. Installed and boot fine :good:

For me intellidemand is the best for my SLOW bin:D

I have to go to bed. Tomorrow I have to go to work early. Thank you for your dedication.

:)

P.D: What a hell!!! Impressive.... so smoother.... Thanks!!! So Amazing!!!
[Nexus 4 Original Android Development] philowneus:
But I already pooped today.
[Nexus 4 Original Android Development] montbazon:
My n4 is binned 4. Next week, i try to searching. I'm satisfied with 1.7 also. But i have curious about that[emoji1] .
[Nexus 4 Original Android Development] :
Tried flashing the defconoi 72u Unleashed L Preview kernel through CWM on Mako L Beta 5, I got a Status 7 error.

So I (sigh) flashed TWRP and it successfully flashed, I rebooted and installed Busybox 1.22.1 Stericson to /system/xbin.

Synapse is STILL giving me "No UCI support detected".

What am I doing wrong?
[Nexus 4 Original Android Development] gorilla p:
Well congrats you finally got a current recovery image in TWRP (CWM hasn't been right since 4.4)

When you flash a kernel (72u isn't the latest version and has some bugs. Flash latest.) Flash UKM after and synapse should work fine.

If not, go to apps, kill process for synapse, clear data and reopen.
[Nexus 4 Original Android Development] defconoi:
Kernel Update (BETA)

76u-BETA2

Complete Changlog for today:

ion-storm - Update version to 76u-b2
ion-storm - Add entry to avoid_to_kill
ion-storm - add extra lowmem_adj
ion-storm - enable CONFIG_ANDROID_LMK_ADJ_RBTREE
Yuanyuan Zhong - staging: android: lmk: check TIF directly
Yuanyuan Zhong - staging: android: lmk: skip if killed by lmk
ion-storm - staging: android: lowmemorykiller: implement task's adj rbtree
ion-storm - Revert "s2w: Fix right->left trigger detection"
ion-storm - Revert "s2w: Restore sweep2wake code, hook suspend/resume to lge_touch_core's dt2w driver"
ion-storm - Revert "touch_wake: Fix always-awake with sweep2wake/sweep2sleep enabled"
ion-storm - Update version to 76u-Beta 1
ion-storm - cpufreq: Get rid of common function
Yi-wei Zhao - staging: android: lowmemorykiller: select a new task to kill
Pranav Vashi - staging: android: lmk: Kill protected apps if size exceeds than 100 MB
ion-storm - cleanup lmk
ion-storm - android:staging:lowmemorkiler: Tune and remove unused parameter
Pranav Vashi - android: staging: lowmemorykiller: Add entry to avoidtokill
ion-storm - staging: android: LMK: Skip killing core apps
ion-storm - mm, oom: change type of oom_score_adj to short
ion-storm - Update version to 75u
ion-storm - lower temps a bit
ion-storm - enable intelli_thermal_stats
ion-storm - msm: thermal: Limit maximum cpu frequency instantly.
dorimanx - Default Intelli Thermal (merged with original) fixed derps + work delay.
ion-storm - Intelli Thermal driver: switch to local CPUFREQ Limit control.
dorimanx - INTELLI THERMAL: allow to read psm_temp + vdd_rstr from dtc config.
dorimanx - INTELLI THERMAL: Restore Default delayed_work + other stock code.
dorimanx - Intelli Thermal Control: Tuning and corrections to TEMP and controls.
dorimanx - Intelli Thermal: fixed my error, poll_ms must be init! and best 250ms
dorimanx - Intelli Thermal: Updates by Alucard24
ion-storm - intelli_thermal_stats and some optimizations.
dorimanx - Intelli Thermal: (intergated to msm_thermal) added new parameters and more.
ion-storm - Merged Intelli thermal Driver by @faux123 to MSM Thermal! + all my changes.
ion-storm - CPU-BOOST: Enable wakeup_boost by default.
Pranav Vashi - intelli_plug: Initiate suspend defer time with default value
engstk - autosmp: suspend/resume and work fixes and improvements
engstk - autosmp: hammerhead fixes, lcd hooks
ion-storm - update version to 74u-r1 to fix zram
ion-storm - enable ZRAM, CMA, compaction, and memory cgroups
Olav Haugan - mm: swap: Rate limit swap write errors
Olav Haugan - mm: vmscan: Move pages that fail swapout to LRU active list

This has some upstream cpufreq/idle/io_is_busy changes & I imported some new upstream cpu governors, some things may have hammerhead freq's in the governor options so you dont need to report them, right now HYPER is fine as well as a few others, this is beta and no mako kernel has this code yet, so we are in dangerous new waters :)

Download:

https://www.mediafire.com/folder/3nu5br448scx8ff,2q4kr9pd9k2ff6b/shared
[Nexus 4 Original Android Development] ΦDroid:
This is brilliant. It does indeed make the camera much faster so it is also easier to take steady shots. I also set the input boost frequency to 1350Mhz so the CPU is boosted right away when the shutter button is pressed.
[Nexus 4 Original Android Development] :
Is there any good equalizer app out there that is compatible with this kernel? So far,flashing Tomvs16's KitKat DSP Manager and installing Viper4Android both break it.
[Nexus 4 Original Android Development] ΦDroid:
Did you try the zip I posted on the last page of the Tomvs16 thread as well? Im really not sure how different our zips are but it may be worth a try. Mine is based off of a more recent CM11 ROM.
[Nexus 4 Original Android Development] :
I'll give it a shot, I'll update this post in a few

Edit: It works! We now have a functional audio equalizer for this kernel :) well, at least 75u anykernel
[Nexus 4 Original Android Development] a g bell:
Umm viper is working fine here
[Nexus 4 Original Android Development] y3mita:
Can someone upload latest beta to another server? Media fire doesn't like my phone I guess I always get partial downloads..

Trying 75u now. It is dope. Me likes it a lot.

Thanks for my new daily driver kernel.
[Nexus 4 Original Android Development] The Tox:
Open the link in private tab in chrome and download should be ok

sent from my Nexus 4
[Nexus 4 Original Android Development] nedooo:
How dare you, making best kernel :)
[Nexus 4 Original Android Development] y3mita:
Awesome tip. It works doing it that way. Thanks man.
[Nexus 4 Original Android Development] kroizo:
.. or hold finger on download button and then tap "save link as.." ;)
[Nexus 4 Original Android Development] defconoi:
hey guys, I need some input/testing done with 76u-Beta 2 before I move on to next release, let me know now of any stability issues before I pull in more updates ;)
[Nexus 4 Original Android Development] txuki2005:
I installed 76 beta 2 this morning... so after seven hours all go fine without problems.

Remember my BIN is SLOW.

:good:

P.D: Now charging my N4
[Nexus 4 Original Android Development] nedooo:
Hit it! :)
[Nexus 4 Original Android Development] zellleonhart:
I've been experiencing this issue, where my phone is almost always awake when connected to Wifi. When it is not, it deep sleeps like normal.

Anyone knows what could be causing this? Wakelock detector and BBS show nothing suspicious :S
[Nexus 4 Original Android Development] txuki2005:
Also, i see, than when i charging the phone, always frequency go to max screnn off, in this case on 702. The phone not go to sleep mode with minor frequency.....
[Nexus 4 Original Android Development] manulemaboul:
Only "stability" issue was my GPU undervolting, sorted out with 30mv more, everything works perfectly fine since.

It runs so cold now with the GPU undervolted my fingers couldn't tell it's not deep sleeping :p
[Nexus 4 Original Android Development] sykopompos:
I think that is a setting somewhere
[Nexus 4 Original Android Development] zellleonhart:
Is it "Keep Wifi On during sleep"? I have been leaving it on since ages ago but didn't see wakelock for this before. Wouldn't this disconnect wifi when it goes to sleep?

Do you guys keep it on or off?
[Nexus 4 Original Android Development] sykopompos:
I actually have that on. I'm not sure causing it, that just came to mind. Then again I have been up all night and extremely groggy so I might be a little bit retarded right now :screwy:
[Nexus 4 Original Android Development] shadeMe:
Just flashed 76u-b2 - Notice that the smartmax CPU governer is no longer available. Here's hoping it's reimplemented with the relevant tweaks in the next release.
[Nexus 4 Original Android Development] defconoi:
I'll add this back when its updated for the new io_is_busy cpu scheduling system that is in place, this is bleeding edge and each cpufreq needs to be modified, the ones currently available are the latest, I will re-add it when its ready, just may not be in the next few releases. Also if you used it for battery savings, there is allot of new changes and optimizations that will supplement for now :)
[Nexus 4 Original Android Development] defconoi:
I'm trying to get as much bleeding edge code from Hammerhead & other newer devices ported down to mako, then I'll be moving on to the Nexus 7 2013. My tablet is sitting on the table feeling neglected, been giving the N4 too much love lol
[Nexus 4 Original Android Development] shadeMe:
Ah, good to know. Which governor would you recommend that's closest to smartmax in terms of battery/peformance?
[Nexus 4 Original Android Development] defconoi:
Try HYPER, its what I use, then Intellidemand if you need even more savings, or Intelliactive.
[Nexus 4 Original Android Development] shadeMe:
Gotcha. HYPER is active by default, so I'll leave it be.
[Nexus 4 Original Android Development] defconoi:
Greenify any social networking sites, they sync like crazy, mine sleeps like normal

This is expected, Google Now keeps the device awake during screen off on charge and so do some other apps, deep sleep is unneeded on charger.
[Nexus 4 Original Android Development] defconoi:
Kernel Update

Now that the main bugs have been fixed, we move out of BETA to official 76u:

From 75u-76u Changelog:

Project name: defcon kernel

ion-storm - remove beta tag for official release of 76u
ion-storm - cleanup & tweak cpufreqs
ion-storm - sched: add stub for sched_set_io_is_busy
ion-storm - Update version to 76u-b2
ion-storm - Add entry to avoid_to_kill
ion-storm - add extra lowmem_adj
ion-storm - enable CONFIG_ANDROID_LMK_ADJ_RBTREE
Yuanyuan Zhong - staging: android: lmk: check TIF directly
Yuanyuan Zhong - staging: android: lmk: skip if killed by lmk
ion-storm - staging: android: lowmemorykiller: implement task's adj rbtree
ion-storm - Revert "s2w: Fix right->left trigger detection"
ion-storm - Revert "s2w: Restore sweep2wake code, hook suspend/resume to lge_touch_core's dt2w driver"
ion-storm - Revert "touch_wake: Fix always-awake with sweep2wake/sweep2sleep enabled"
ion-storm - Update version to 76u-Beta 1
ion-storm - cpufreq: Get rid of common function
Yi-wei Zhao - staging: android: lowmemorykiller: select a new task to kill
Pranav Vashi - staging: android: lmk: Kill protected apps if size exceeds than 100 MB
ion-storm - cleanup lmk
ion-storm - android:staging:lowmemorkiler: Tune and remove unused parameter
Pranav Vashi - android: staging: lowmemorykiller: Add entry to avoidtokill
ion-storm - staging: android: LMK: Skip killing core apps
ion-storm - mm, oom: change type of oom_score_adj to short

Download 76u:

https://www.mediafire.com/folder/euvdjbip7lh5e9k,gu8eme1fum98y86/shared
[Nexus 4 Original Android Development] HTC_HDD:
Im using Android L. Can i use 76u AnyKernel? Do i have to stay at 72?

TIA
[Nexus 4 Original Android Development] manulemaboul:
Use anykernel, I'm using it on L.
[Nexus 4 Original Android Development] buru898:
For the few people on F2FS, this kernel isn't compatible. Just thought I'd save you the trouble.
[Nexus 4 Original Android Development] p2pjack:
You can use the anykennel on L ?
[Nexus 4 Original Android Development] Marq94:
Not working with N5 experience:/ rom :/ When boot up , it is only black screen and system.ui still crashing .
[Nexus 4 Original Android Development] defconoi:
Did u flash the right one?

Edit: I'm about to flash that ROM and see if there is issues, so far cm11 and L work for me
[Nexus 4 Original Android Development] sykopompos:
Wth is nexus 5 experience??
[Nexus 4 Original Android Development] defconoi:
not sure, some weird rom, it could have some ramdisk modifications messing with my kernel, doubt it but its possible

The developer has a custom kernel himself and probably has some init scripts or something in place that messes it up, i'll have to add this to my cleaner script, im about to flash/extract ramdisk to find out

wow, this rom still uses supersu 1.91...

so much for debugging:

[defcon@ion-pc ~]$ adb logcat
error: device unauthorized. Please check the confirmation dialog on your device.
[Nexus 4 Original Android Development] txuki2005:
hope to see someday elementalx governor in our nexus. We'll wait for io_busy update nor?
[Nexus 4 Original Android Development] defconoi:
i'll take a look and let you know, after I work on this n5 experience rom issue
[Nexus 4 Original Android Development] defconoi:
wow seriously... **** this rom, should have read op, it installed old bootloaders and modem, and is still back at Kitkat 4.4.2, dont use this rom with my kernel.
[Nexus 4 Original Android Development] Marq94:
Ok , Sorry ; )
[Nexus 4 Original Android Development] kalpik:
Really. Not sure why people use that. Tried it once. Ran away from it like the plague!

Btw, the latest version of your kernel seems to be running fine now on my device finally! Guess it was the sweep2wake code causing issues.

Thanks a lot for your work and dedication. I really appreciate it :)
[Nexus 4 Original Android Development] defconoi:
ya, do yourself a favor, upgrade your rom to something recent, I blindly flashed it without looking at zip lol, my kernel is way incompatible with that old rom, and a quick look, the code is a mess.
[Nexus 4 Original Android Development] sykopompos:
Apparently I don't wanna have that nexus 5 experience :p
[Nexus 4 Original Android Development] defconoi:
ya screw that, totally wasted my time today and caused me to reflash my bootloader/modem, no n5 experience for me, if you want a true n5 experience, flash L and my kernel or CM11 and my kernel.
[Nexus 4 Original Android Development] defconoi:
I miss [MENTION=275009]ramjet73[/MENTION] mirroring my kernels, gonna have to find some fast hosting.
[Nexus 4 Original Android Development] Marq94:
Which rom is the most fastest in your opinion ?