yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9500 Android Development] krasCGQ:
This build should boot properly now.

In this build I also implement AnyKernel2 functionality so it could be flashed across any ROMs with any (stock!) kernels. You might want to go back to stock kernel (pure!; find it on my AFH Stock Kernel folder -for LP-) first before flashing to prevent issues.
[Galaxy S 4 i9500 Android Development] MD500:
Still Frezzes When you make Whatsapp Voicenote and you must remove the battery.
[Galaxy S 4 i9500 Android Development] MD500:
Any news???
[Galaxy S 4 i9500 Android Development] krasCGQ:
Will try to polish build before releasing EOL version.
[Galaxy S 4 i9500 Android Development] krasCGQ:
v5.0 would be EOL version for i9500. After v5.0 is released and stable enough, I'll end my development on i9500 unless state is changed.

What's being fixed?

1. Once-per-day reboot during idle on random occasions.

2. Hm...
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
and we ussers wanna fast charge ,can you do to your kernel fast charge option ? or that already on kernel
[Galaxy S 4 i9500 Android Development] krasCGQ:
Unfortunately, I have to discontinue my kernel development on i9500 from now.

My development (also main) notebook was stolen more than a week ago, leave me forced to use my old, slower netbook. Also, it's useless for me to keep developing on i9500 as if I do it, it would relatively same as others.

I now have a Xiaomi Redmi 3 Pro as my backup and development device, which I'm about to develop a CM-based kernel on it (if my netbook could compile arm64 kernel and if I get permission from the maintainer :p ).

See you in Redmi 3, and probably, other device's development. ;)

EDIT:

As the final stuff, I modified some parts of OP as per v5.0_b2 condition and KA.
[Galaxy S 4 i9500 Android Development] eminem4ever:
What app do i use to tweak this kernel?
[Galaxy S 4 i9500 Android Development] Aakash Kaushal:
Kernel adiutor..
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
thenks ,the best kernel for now
[Galaxy S 4 i9500 Android Development] eminem4ever:
I've used voltage kernel a few days back it was all fine until it shows some security issue popups where i have to restart and the error remains constant,does it have any such issues? I'm going to flash it now so i just want to make sure it's all fine.

So i've just flashed the kernel as i couldn't wait anylonger and its doomed again,the same error popup's and says Unauthorized actions has been detected,restart to fix it"anyway i could fix that?
[Galaxy S 4 i9500 Android Development] zozoz13:
I guess you're on Stock ROM? That just Samsung KNOX security warning. And actually, VoLTaqe kernel has a feature to disable it in Synapse. Here:

Spoiler content hidden.

Also I have a script to remove all things related to KNOX. If you want it, I will attach it here.

Sent from my Galaxy S4
[Galaxy S 4 i9500 Android Development] eminem4ever:
please do this knox is bugging me bad,yeah i was on stock rom
[Galaxy S 4 i9500 Android Development] zozoz13:
This script is about a year ago, so maybe some of KNOX related files is still there because newer Stock ROMs always add KNOX related files. But probably will remove that warning.

Do a nandroid backup first. Flash it with your recovery:

http://cloud.tapatalk.com/s/57565ca000459/Knox_Debloater.zip

Sent from my Galaxy S4
[Galaxy S 4 i9500 Android Development] Yuna:
Will this kernel work for MIUI by gtbluesky?
[Galaxy S 4 i9500 Android Development] krasCGQ:
No. Only TW Lollipop.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
that rom is Kitkat thats why this kernel not working on MIUI ,is only for Lollipop
[Galaxy S 4 i9500 Android Development] kongacute:
[MENTION=6589753]krasCGQ[/MENTION] i always get freeze and soft reboot when use ur kernel with ale95 v5.1. Will u continues this kernel project?

Gửi từ SM-A710F của tôi bằng cách sử dụng Tapatalk
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
Today i use viber to call someone,viber block my phone and im trying another kernel (aurora and norma) tested viber call and everything is ok ,after that i use to test again this kernel but same problem on viber i got blocked phone
[Galaxy S 4 i9500 Android Development] krasCGQ:
Hopefully will continue.

Since I'm new on kernel development, some minor issues might exist on certain ROMs. I tested this kernel on Octanote Ver.Y and Khan N5 Port v1.1 and I had no issues.

Will look and tweak Memory Management (especially LMK)...

And...

About Viber:

I don't use any VoIP apps so I couldn't test and fix it by myself. If anyone could provide a fix I would implement it on my kernel.
[Galaxy S 4 i9500 Android Development] killerBRs:
Sugestion:

Can be Added HotPlugging?

Thank You.
[Galaxy S 4 i9500 Android Development] irvinehooi:
Hi [MENTION=6589753]krasCGQ[/MENTION] If possible try to add more I/O Scheduler in your kernel such as "sio" , "fiops" and "row".

I personally like to use the one I mentioned I/O Scheduler other than the default available I/O.

Thanks in advance.
[Galaxy S 4 i9500 Android Development] TheSG:
Is this kernel working on ale note 5 v5.1 rom?
[Galaxy S 4 i9500 Android Development] mash20:
Can you more I/O Schedulers and more cpu governors Like "alucard"

and add cpu undervolt and open low frequnceis

Thanks in advance, Its a good kernel
[Galaxy S 4 i9500 Android Development] irvinehooi:
Yes, all Lollipop TouchWiz rom can use.
[Galaxy S 4 i9500 Android Development] krasCGQ:
Hi everyone...

I've read all suggestions and here's the currently workmap for the next version:

Note: It would be potential for me to jump over to v2.0 due to upcoming major changes I've done.

Implemented UKSM v0.1.2.3

Unlocked all A7 frequencies

Set A7 frequency limit between 250-1200 MHz and A15 frequency limit between 1300-1600 MHz.

Porting Samsung codes to fully support GCC 6.0 (WIP; approx. 40% done); also need to tweak Makefile so it would skip some warnings because nothing could be done...

It's all done on my very own PC now. It would be signed with a new RSA 4096 bit key and will available only on a .zip file based on download counts.

And yet, I need to take a rest. It's late night here.

Oyasumi~~

If you need a spoiler about what word is this:

Oyasumi is a Japanese word that means good night.

A bit off-topic, is it?
[Galaxy S 4 i9500 Android Development] kongacute:
Does new kernel support synaspe

Gửi từ SM-A9000 của tôi bằng cách sử dụng Tapatalk
[Galaxy S 4 i9500 Android Development] krasCGQ:
Probably no. Porting code first.
[Galaxy S 4 i9500 Android Development] bhuvan9111:
Will be looking forward in flashing your kernel.
[Galaxy S 4 i9500 Android Development] kongacute:
Does it stable than previous ver? Hope it dont make my phone freeze and soft reboot everytime.
[Galaxy S 4 i9500 Android Development] krasCGQ:
Current status (June 19th, 2016 at 15:01 UTC+8):

Kernel port is 95% done. Needs final test before moving further.

Undoing frequency limit, causes CPU to lock itself at 1600 MHz when screen is on.

Switch UKSM profile to quiet, as the default UKSM configuration locks max CPU usage to 95%, rendering phone to nearly unusable state...

With these changes, I would jump into v2.0 together with other changes that I would announce after the kernel release.

EDIT: Still figuring out what is causing 1600 MHz CPU bump...

EDIT #2:

Undoing 3 latest changes and the bug is fixed. Now tweaking UKSM...

EDIT #3:

Still unable to config UKSM, leave unconfigured...

Alucard and intelliactive added.
[Galaxy S 4 i9500 Android Development] CraZy RaMpAgE:
Can make this kernel fix the touch keys ? :confused:
[Galaxy S 4 i9500 Android Development] krasCGQ:
Here is the final update log for KudKernel v2.0:

Unlocked all lower A7 frequencies

Added UKSM support (using version 0.1.2.3)

Added alucard and intelliactive CPU governors

Added fiops, sio, and zen I/O schedulers

The download link should be available within an hour or less via XDA DevDB section.

If you experience lags, it's due to UKSM settings that very aggresive and I couldn't handle it. Change Max CPU Usage settings in KA from 95% to between 5-20% as if you like.

[MENTION=6053686]CraZy RaMpAgE[/MENTION]: Could you explain it?
[Galaxy S 4 i9500 Android Development] kongacute:
Which app for control kernel? Hope u make synaspe support on next ver.[emoji2]
[Galaxy S 4 i9500 Android Development] krasCGQ:
KA for this moment.

Will update Post 3 & 4 tomorrow. It's late night here.
[Galaxy S 4 i9500 Android Development] CraZy RaMpAgE:
Sorry I think you are heared about this problem (touch keys) :D

If you want know more ????????

http://xdaforums.com/galaxy-s4/help/problems-official-update-signal-soft-t3250132

---------- Post added at 05:07 PM ---------- Previous post was at 05:05 PM ----------
[Galaxy S 4 i9500 Android Development] krasCGQ:
KudKernel v2.0 is now available at XDA DevDB downloads section!

Enjoy!

[MENTION=6053686]CraZy RaMpAgE[/MENTION]: Will look into it.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
and thats happen to my phone ,i will test this 2.0
[Galaxy S 4 i9500 Android Development] white-energy:
Can you make the UKSM paging somehow by default at the perfect level?
[Galaxy S 4 i9500 Android Development] krasCGQ:
When I merged the UKSM support, whatever I edit certain value on uksm.c (the UKSM driver) the device is simply not booting and stuck repeatedly on Samsung splash screen, so I leave it default (full) for now.
[Galaxy S 4 i9500 Android Development] kongacute:
[MENTION=6589753]krasCGQ[/MENTION] will try ur kernel soon?. And hope u add synaspe support, audio control, voltage control and charge control in next ver.
[Galaxy S 4 i9500 Android Development] krasCGQ:
Updated post #3 to help people (especially noobs) in tuning the kernel.

EDIT: I'm moving to j2lte development now!
[Galaxy S 4 i9500 Android Development] asad007:
You can use the sh file to tweak it.
[Galaxy S 4 i9500 Android Development] kongacute:
Do u continue this kernel?
[Galaxy S 4 i9500 Android Development] krasCGQ:
I keep continue developing, but I move to j2lte kernel now, it's more than a month now without updates. No working build for j2lte since r5 -_-
[Galaxy S 4 i9500 Android Development] killerBRs:
Err, Can be Added Minimum Freq to 200 Mhz (Like Other Kernels?, Battery Reasons)

Thank You.
[Galaxy S 4 i9500 Android Development] krasCGQ:
I already enabled lower frequencies for A7 core from 100 MHz.
[Galaxy S 4 i9500 Android Development] bhuvan9111:
I tried all the versions of your kernel and the phone boots normally but after i unlock the screen and enter the home screen the phone freezes and i should manually boot it in to recovery to flash a different kernel any one having same problem?
[Galaxy S 4 i9500 Android Development] bhuvan9111:
" Unstable ported rom.....??? " i am running N5 port V5.1 which is far more stable than just saying it and as far as fc and lag goes i didnt get one till now. I have a tad more than 800mb free ram and get a 3 and half hr+ sot all the time. I dont think it is to do with the rom. May be the dev could figure the what is wrong. Thanks for the reply bro. But using that old s4 touchwiz is boring when compared to this.
[Galaxy S 4 i9500 Android Development] krasCGQ:
Will try to investigate kernel issues on Ale95 N5 Port after I recharge my 24hrs internet quota.

But, I want to tell you all that I run this kernel on Octanote Ver.Y and Khan N5 Port v1.1, where both of them are from the same base (Ale95 N5 Port) and it's working as expected.

However, when I trying my own kernel on fully stock firmware, it booted successfully but went into bootloops after a reboot. Probably, due to Knox.
[Galaxy S 4 i9500 Android Development] bhuvan9111:
Was expecting something like this from you since you started this kernel. Good to see good developers like you still developing for both your primary device as well as our s4. Keep the hell up. Will be with you.

---------- Post added at 05:36 PM ---------- Previous post was at 05:29 PM ----------

No offence, the devs have struggled more than enough to port the rom than to build this from scratch since there is no source for 6.0.1 for s4. So expecting little bugs in the begining of the port is normal. But it is pretty stable like stock and as far as the free ram goes i like to keep my device aggressive manner because few apps dont need to run in background eating my ram as well as battery for that matter. Free ram = smooth animations and good overall experience ( i dont need my apps to open faster if at all the ui isnt fast. That doesnt make any sense if the app opens fast but you are unable to get to the app ) free ram dosnt mean waste . Did you experience your s4 having 100mb free ram?? [emoji12] [emoji106]

( No one are mad at anyone )
[Galaxy S 4 i9500 Android Development] krasCGQ:
Well, I don't develop anything for my primary device (ZenFone 2). :silly:

Since I love what development progress on that device, which makes me forget everything about the stock ZenUI. CM13.0, RR, DU, even Temasek and OctOS, and fully-featured kernels are available.

I'm thinking of abandoning my kernel for j2lte; I hate what have Samsung done nowadays on their smartphones. None of my current release (and test builds) boot perfect on that device, either stucking on Samsung splash screen or bootloops.
[Galaxy S 4 i9500 Android Development] bhuvan9111:
You created this kernel from scratch and i know that because i have been following your work since the begining. That first time when you said you will be considering implementing uber new tool chain in our device which even voltaqe had not done i was like damn i got to try this kernel( the post from ale95's thread) the next day you said you will be releasing the kernel in a new thread and i was happy. This is the only kernel which is for tw. Thanks for the work.
[Galaxy S 4 i9500 Android Development] krasCGQ:
Actually, Uber 6.0 toolchain is still experimental. Identified by this:

Linux version 3.4.112.KudKernel-v2.0-g6a1009d (krascgq@VenYuu) (gcc version 6.0.0 20160401 (experimental) (UBERTC-6.0.0) ) #1 SMP PREEMPT Sun Jun 19 23:46:14 WITA 2016

The latest stable version is 5.3.

And no, I wrote that on MBKernel's thread lol
[Galaxy S 4 i9500 Android Development] bhuvan9111:
Ho i was randomly looking all those threads all the time and was a bit confused. [emoji12]
[Galaxy S 4 i9500 Android Development] krasCGQ:
No worries haha...

http://xdaforums.com/galaxy-s4/i9500-develop/kernel-mbkernel-t3384015/post67116069
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
this kernel is for testers only ?

confirm unstable hehehehehehe
[Galaxy S 4 i9500 Android Development] krasCGQ:
It's unstable for now on some ROMs, but all N5 debloated ROMs (Octanote & Khan) are working fine on my side.

Will made a workaround version (without latest kernel patch) for every affected users, while I'm trying to fix this issue (probably due to ext4 driver).

EDIT: And yet, pushing test builds (I shouldn't change between so many stock-based ROMs because my brother would get mad at me! He's using my phone to play Clash of Clans and as a mobile hotspot).

EDIT #2:

If on ported ROM is freeze, on stock-based, it boots perfectly then bootloop as indirectly reported by [MENTION=4718743]ficeball[/MENTION] on [MENTION=4517967]crizalid8[/MENTION]'s EthanROM thread.

Seems like two unique issues on different base...
[Galaxy S 4 i9500 Android Development] crizalid8:
it's true I have the same issue like [MENTION=4718743]ficeball[/MENTION]
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
No ,im on n5 port khan ,got freeze and default ristart
[Galaxy S 4 i9500 Android Development] krasCGQ:
Compiling a new (test) build codenamed v2.0_r2 (not synced to GitHub). It should contains everything I've done on all versions except kernel patch (stock 3.4.5) and UKSM. UKSM isn't included for now.

Compiling on my system:

Btrfs file system = 29-35 minutes

Btrfs file system + lzo compression = ??

Btrfs file system + lzo compression + ccache = ???

Wanna to test where's the fastest lol
[Galaxy S 4 i9500 Android Development] krasCGQ:
KudKernel v2.0_r2 is up!

Please test and report, folks!
[Galaxy S 4 i9500 Android Development] bhuvan9111:
Can i try this on n5 port rom and tell you?
[Galaxy S 4 i9500 Android Development] bhuvan9111:
This is amazing. Feels like stock and is very much stable now. No freeze so far. 1st person to download.

Hope you add support to work on snyaps or even few more setting like voltaqe in future versions.

I will test the battery life today and post the results here. *FINGERS CROSS*

first time booted this kernel.
[Galaxy S 4 i9500 Android Development] krasCGQ:
Ah... Glad to know that.

Next, is to identifying what part of my kernel patch that caused problems. I'll be pushing some test builds via Dropbox with some slow patches to identify it...

EDIT:

Yep, you're the only one for this moment who downloaded this version. Maybe, because I didn't and won't announce it via DevDB because I consider this build as a workaround build, with no kernel patches and UKSM.
[Galaxy S 4 i9500 Android Development] krasCGQ:
19 downloads on v2.0_r2 but only one review? How pity.
[Galaxy S 4 i9500 Android Development] kongacute:
Sorry. I downloaded it but it dont have some feature i want(realy need those feature) so i reflash volt 15.

Ps: ill use ur kernel if it have audio settings, charge settings and voltage control.[emoji1]

Edit 1: ur kernel is very smooth(better than volt 15). Battery charge time is fine. But because dont have audio settings, speaker and earpiece isnt loud (i need this:o). Ill test battery usage time with this kernel (focus on play music and play game time).:svetius:
[Galaxy S 4 i9500 Android Development] bhuvan9111:
The rom feels even better with your kernel. After 1st boot it took 2-3 min to get stable and run smooth. Even the battery life is same as stock or even better in some cases. Too good to run such kernel.( i gave my s4 again for replacing my screen since the blacks were turning in to green some times )

I will get it in 2 days and post the ss of the sot as well as my settings.

The intellect governor gave me good performance while multitasking and changed the i/o to flops and read ahead to 512kbps ( didnt change the external sd read ahead speed ).

Waiting for my s4 to come back.[emoji7] [emoji7] [emoji7]
[Galaxy S 4 i9500 Android Development] hansonchen:
Sometimes it needs few days to test & comment. So far your kernel since v1.1 is very stable for my usage. Couldn't find any issue at all. My battery is not performing up to its original potential coz it's about 2 years old or probably not an original battery since i bought this as a used unit. So can't accurately comment on the battery life but i can feel it gives me more juice than v2. Idling time v2 seems better or it could be due to some background apps draining, need to test longer to get a more stable reading.

Ram management is better & phone is running smoother in v2_r2. My settings cpu 1100/100, alucard, zen/zen 128/512, stock lmk, Westwood. All-in-all, a fabulous minimalist stable kernel
[Galaxy S 4 i9500 Android Development] kongacute:
Edit 2: after i use 2 battery for play game, my phone is overheating to bad(81-90c) and battery drain to fast(i think because ur kernel dont have voltage control). On volt 15, my phone never reach to 82c and battery use better(while play game). Game i play is WoT with wifi connect.

Edit 3: after i use this kernel in 12h, i think ill use volt 15 for better battery life and fix overheating problem. [MENTION=6589753]krasCGQ[/MENTION] im waiting for voltage control, audio settings, charge control and synapse support in next ver.:)
[Galaxy S 4 i9500 Android Development] krasCGQ:
Some minor changes over v2.0_r2, I codenamed it v2.1m; m here means that some features are unavailable at the time kernel is released.

Kernel compiled using Hyper Toolchain 6.1.x, SaberMod with Uber dependencies

Enforce the permissive SELinux (unchangeable anymore!)

Removed -fgraphite flag (it's useless I think)

v2.1m should up in an hour. Next would be test builds to fix kernel patches.
[Galaxy S 4 i9500 Android Development] bhuvan9111:
Good to see, i will have my phone today and will be looking forward in testing the kernel.
[Galaxy S 4 i9500 Android Development] krasCGQ:
v2.1m is up now. OP is slightly updated too.

Next, pushing test builds!
[Galaxy S 4 i9500 Android Development] krasCGQ:
The first test build is up. I think at this point there's shouldn't have any bugs regarding to patches.

Version: 3.4.6.KudKernel-v2.1m :fingers-crossed:
[Galaxy S 4 i9500 Android Development] kongacute:
Does new ver support voltage control?

Gửi từ SM-G935F của tôi bằng cách sử dụng Tapatalk
[Galaxy S 4 i9500 Android Development] krasCGQ:
Like I said before, for now I'm fixing patch bugs, so in a few days there will be some test builds to find out bugs.

If bugs aren't exist anymore, I'll merge it to my main branch and new features will be added, then.

EDIT: Just realized, that I forgot to enable stock KSM support on v2.0_r2 and v2.1m :silly:
[Galaxy S 4 i9500 Android Development] bhuvan9111:
V2.0 r2 is stable as well as makes device too hot. Now trying the V2.1m.

Edit :V2.1m better than the V2.0 r2.

Will post a review soon.
[Galaxy S 4 i9500 Android Development] krasCGQ:
I've made another test build based on my main sources + several commits and a potential fix on ext4. Please test it, and if the issue is still persist, report me back. Thanks.

Filename: KudKernel-test1-i9500.zip
[Galaxy S 4 i9500 Android Development] bhuvan9111:
Kernel V2.1M sot is not bad since the overall control of kernel is not in our hands. Performance wise this is by far the best . I am looking forward in testing the test kernel. And review soon. Thanks
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
im installing this kernel (v2.1) and no more problems workin good ...only one thing can make battery to charge more faster ? thenks
[Galaxy S 4 i9500 Android Development] kongacute:
Waiting for support undervoltage cpu feature.

Gửi từ SM-G935F của tôi bằng cách sử dụng Tapatalk
[Galaxy S 4 i9500 Android Development] yabguhan:
Can u make stock version ? :)
[Galaxy S 4 i9500 Android Development] krasCGQ:
v2.1m is the stock version, without UKSM too.

--Everyone--

Any feedback on the latest test build (test1)?
[Galaxy S 4 i9500 Android Development] yabguhan:
u give permission for using ur kernel on my rom?
[Galaxy S 4 i9500 Android Development] bhuvan9111:
Test 1 is not able to boot ale95's rom.

Bootloop. [MENTION=6589753]krasCGQ[/MENTION]
[Galaxy S 4 i9500 Android Development] white-energy:
Can u make a version without UKSM? it's terrible.
[Galaxy S 4 i9500 Android Development] krasCGQ:
How about the another version one? (v2.1m based)

Yep, with credits ;)

It's removed on v2.1m. (but I didn't mention it in the changelog)
[Galaxy S 4 i9500 Android Development] kongacute:
[MENTION=6589753]krasCGQ[/MENTION] test 1 work on yabgu v2. Waiting for voltage control support ver.

Gửi từ SM-G935F của tôi bằng cách sử dụng Tapatalk
[Galaxy S 4 i9500 Android Development] bhuvan9111:
I presently have boot loop by tweaking other kernel. So once the rom boots i will inform about the other test version.
[Galaxy S 4 i9500 Android Development] zozoz13:
Testing test1 version. So far so good. Performance is far better than Stock kernel. I can't say on battery life yet, but it seems good. Been ruuning on my phone for about 12 hours and no random reboot or any major issues yet. Just a little issue, the device heats up quickly, but I think it solved now by tuning the CPU governor (I use ondemand). Waiting for Synapse support and its common features comes very soon to this kernel [emoji106]

Note: I use Vovad's PB3 ROM.

Sent from my Galaxy S4
[Galaxy S 4 i9500 Android Development] olegas94:
Think need update kernel source and ramdisk to latest I9500XXUHPF1
[Galaxy S 4 i9500 Android Development] zozoz13:
I see PF1 firmware changelist number is the same as PB3 which is lower than PB2. I don't know if the kernel source is more updated than PB2 or not...

Sent from my Galaxy S4