yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Praise God, new kernel is up!

Hey guys, just wanted to let you know that the OP is updated with the new kernel, including intelliplug, an alternative to mpdecision for hotplugging. This controls how many cores are used at once. You have to use Kernel Adiutor or some similar app to control it. Intelliplug has several options that show up in the Kernel Adiutor as well. Let me know what you think!
[T-Mobile Samsung Galaxy S 4] Dario9781:
hi there is a procedure to install this kernel on RR ( like wipe cache), because i tried an get a bootloop
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Sorry to hear that you are having trouble.

Just to be sure, you are flashing on RR 5.8.0 that I made? Not the 5.7.4, right?

I tested it and it flashes for me just fine. That was with the ROM already installed, though, already past first boot. Then I went back to recovery, made a backup just in case and installed the kernel. No need for wipes of any kind. Worked first try for me. However, I did not have gapps installed.

Tomorrow I will download my upload to make sure it is good.
[T-Mobile Samsung Galaxy S 4] masterlo3:
Please keep up the good work. s4 needed a custom kernel for cm and aosp that's flashable. i really like the overclocked gpu and cpu, i haven't tested it but i sure will when i also test RR rom. btw i9505 here. :)
[T-Mobile Samsung Galaxy S 4] Dario9781:
Yes the last one (release 6) i did like you, but i wiped cache, maybe i should not. i will try again and lett you know

EDIT: i tried again without wiping anything,maybe the problem is the gapps, or i dont know is the red logg massage during installation is normal

EDIT 2: i find the problem: in not using your ROM, in using this one http://xdaforums.com/galaxy-s4/i9505-develop/rom-resurrection-remix-v5-8-0-t3507378

I thought there is just one RR but after a bit of search i find your, so it was my error.

Sorry for reporting errors that not exist :/
[T-Mobile Samsung Galaxy S 4] elv1503:
Tried to flash this on RR nougat 7.1.1 but an getting file is corrupt in twrp 3.0.2.0. Any ideas please?
[T-Mobile Samsung Galaxy S 4] Buff99:
Remove the boot.img from the zip and use 'install image' in twrp. Do not wipe after install.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Thanks, I hope you enjoy it!

No worries!

I think you should redownload it, I just now downloaded and flashed it without issue.

Great idea, but I think he should redownload it, I just now downloaded and flashed it without issue.

Merry Christmas everybody!
[T-Mobile Samsung Galaxy S 4] elv1503:
Ok. I'll try that. Had tried two downloads.

---------- Post added at 04:35 PM ---------- Previous post was at 03:57 PM ----------

Tried four downloads. I can't open zip to remove boot.img as suggested by Buff99. "May be corrupted or have invalid file format" Twrp says all four files are corrupted. Do you have an md5 for this?
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Hmmm.....

Well, sorry that it is giving you trouble, but it downloads and flashes great here.

If you cannot unzip it then the file definitely got corrupted on download.

Perhaps you should try a different download method. E.g., if you are using your phone, try it on a computer, or vice versa. I have seen ES File Explorer have download issues, so it may be the app you are using on your phone if you are doing it there.

Hope that helps!
[T-Mobile Samsung Galaxy S 4] MaxFire913:
hi there

im looking for jdc team alucard kernel

i want to flash it on RR

is it the one in the description ?!
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Nope.

Merry Christmas!
[T-Mobile Samsung Galaxy S 4] Xplorer4x4:
Alucard kernel is not available on its own. Besides jdcteam's version would not work on Rr anyways. Not without modification at least.
[T-Mobile Samsung Galaxy S 4] esmail1313:
Hi

What The best kernel for ROM RR v5.8 ?

For battery or performance or......

Thanks
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
4x4 is right, but I do have high respect for alucard's kernels.

Well, great question. If you mean for the RR 5.8.0 in my thread, then the kernel in this thread is the best one for it. However, I think you can get other great kernels from other people's builds for their kernels.

Merry Christmas!
[T-Mobile Samsung Galaxy S 4] Dario9781:
hi, and merry christmas, there is any chance of having this kernel on official RR?
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
It is possible, but then it can be difficult to upkeep, every time they update the official ROM, I would need to update or test the kernel I made. Since I don't control the official ROM, that can become quite time consuming.

Essentially, one could download the official ROM, break down the boot image, swap out the official kernel with mine, and make it back into a boot image again. I wrote a guide on how to do that in a post on xda. I will grab the link if any are brave or desperate enough.

An easier option is just to use my RR ;)

Edit: here is the link. Go to post #7 to learn exactly how to do that....

http://xdaforums.com/note-edge/general/guide-build-aosp-roms-kernels-note-edge-t3488840/page1
[T-Mobile Samsung Galaxy S 4] smartt699:
[MENTION=7026648]AlaskaLinuxUser[/MENTION] thanks your involvement. Can it be possible to make a kernel for linageOs base ROMs, their is a few jfltexx ROM with it like crdroid.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
I literally just built one an hour ago. Would you care to test it? I have no idea if it works on crdroid....
[T-Mobile Samsung Galaxy S 4] smartt699:
Yeah no prob! I'll download the linageOs ROM too.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Give me about 30 minutes to zip and upload.... Slow internet in Alaska....
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Here you go! I had to rebuild it because I forgot to set selinux to permissive.

https://www.mediafire.com/download/l4wmdpd8uwut45u

Thanks for testing it out, please let me know how it goes!
[T-Mobile Samsung Galaxy S 4] smartt699:
Downloaded I'm gonna try it out and give you some news
[T-Mobile Samsung Galaxy S 4] smartt699:
Is it normal that in kernel auditor I don't see all the governors? Should I wipe cache?

[IMG="crdroid"]https://xdaforums.com/attachment.php?attachmentid=3991949&stc=1&d=1483648062[/IMG]
[T-Mobile Samsung Galaxy S 4] AlexOnay:
[MENTION=7026648]AlaskaLinuxUser[/MENTION], I installed the RR Kernel on your RR 5.8.0, I have several questions.

1 - It's performing slower than the original kernel, specifically on games (for example Talking Tom Gold Run and Best Fiends Forever). Is it normal? I mean, should I wait (like I've read on other kernel threads) one day or two for the Kernel to accommodate on the ROM until it performs as expected?

2 - The GPU is overclocked to 487MHz, I know stock value is 450Mhz and with Kernel Adiutor it's possible to put maximum frequency back to stock 450Mhz, but when I try to do it, the next value under 487Mhz is 400Mhz. How can I revert it to stock 450Mhz?

3 - This is about Kernel Adiutor (I'm using it for the first time now): When I change values with it, if I restart the phone the changes are lost. I've had used Stweaks in the past, and with it, the changes you do remains even if you restart the phone, but it's not the case with Kernel Adiutor, if you reset the phone, the changes are lost after reboot. Is it normal? I mean, do I have to activate the option "Apply on Boot" in every section of Kernel Adiutor for the changes to be made everytime the phone boots up.

As usual, thank you for your excellent work and patience.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Great questions:

1. No, there is no "warm up time". I would recommend setting the governor to Lionheart to play games, does that help?

2. Unfortunately, 450 MHz is not an option on my custom kernel.

3. On KA, there should be an "apply on boot" button. You need to select it for each "screen", then it will stay.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Great questions:

1. No, there is no "warm up time". I would recommend setting the governor to Lionheart to play games, does that help?

2. Unfortunately, 450 MHz is not an option on my custom kernel.

3. On KA, there should be an "apply on boot" button. You need to select it for each "screen", then it will stay.

Generally speaking, my kernels are more balanced toward battery saving.

Hope that helps!
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Which govs do you see? There should be Wheatley, Smart Max, Lionheart, and the defaults.

It is good to see that it flashed! ;)
[T-Mobile Samsung Galaxy S 4] smartt699:
It flash on both cdDroid and LineageOs jfltexx... and I saw the same issue on both roms only the basic governers are in the list.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Hmm... Maybe I used the wrong source. Like I mentioned before, I have only begun work on LineageOS, so I have not tested that kernel yet. Perhaps I can review it tomorrow.

Does it have intelliplug under the CPU hotplug options?
[T-Mobile Samsung Galaxy S 4] smartt699:
negative MPDecision only
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Yep, wrong source. I will take a look tomorrow. That must be the source for lineagOS, not my kernel source. I may have overwritten it with the breakfast command (it syncs the repository).
[T-Mobile Samsung Galaxy S 4] smartt699:
No pressure any news? Can't wait for that new kernel
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
smartt699,

Give this one a try:

http://www.mediafire.com/file/tvg6rb5qcfqdo8t/AKLU-LineageOS-N-JFLTE-intelliplug-20170111.zip

Be sure to give me some feedback! :D
[T-Mobile Samsung Galaxy S 4] smartt699:
stiil no governers :(
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Can you send me a link to the LineageOS you are using? Something here is not making sense to me.....
[T-Mobile Samsung Galaxy S 4] smartt699:
https://www.androidfilehost.com/?fid=385035244224409712
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Fixed!

http://www.mediafire.com/file/305w1rnap7qj2he/AKLU-LINEAGEOS-N-JFLTE-intelliplug-20160112.zip

And some screenshots to prove it! :D

Let me know what you think!
[T-Mobile Samsung Galaxy S 4] smartt699:
Lol I don't need the screenshots, I trust you. It works on crdroid too, I'm using it right now.

Which governors and i\o do you use daily ?
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
That is somewhat a loaded question. :D

I am flashing/reflashing and swapping through the phones I work on every few days, so it doesn't always stay the same. For instance, yesterday I switched to the Note Edge to do some testing, so I am running that right now, but I spent 5-6 days using the S4 with AOKP7 just before that.

However, in general, regardless of which phone I use I tend to follow one of two paths:

Performance:

CPU gov: Lionheart

I/O scheduler: ROW

Hotplug: Mpdecision

Why:

Well, just my opinion, and everyone has one, but MPD seems to be a more responsive hotplug, tending to keep cores on more, bring them up sooner, etc.

ROW stands for ReadOverWrite, and typically, on your phone you don't write much data, so priority is given to reading data, and it makes for a better experience. ROW was also specifically designed with cell phones in mind.

Lionheart is my favorite kernel. It is a conservative kernel, which confuses people into thinking that it is a battery saver, but that is not so. Conservative kernels don't change as quickly, and then they make "conservative" changes, or small changes at a time. Lionheart may lag a little when "ramping up" to a new load, but once it is up where the load needs to be, it tends to stay there. So, if you want to play a game, it will jump up and stay up with the load.

Battery Saving:

CPU gov: SmartMax (or Darkness on my other phones)

I/O scheduler: Noop

Hotplug: IntelliPlug

Why:

Again, just my opinion, but Intelliplug is great for saving power, cores turn off faster and seems to wait a bit longer to bring up new cores if needed, which can save battery.

Noop is one of the oldest, most stable I/O's that was designed specifically for flash drives due to no seek penalty. It uses the fewest CPU "cycles" which in theory would save power.

SmartMax is generally tuned for an ideal frequency that is set low for power saving. It has a built in feature to boost the CPU when you touch the screen. The idea is that if you are not using the phone, you wont touch the screen, and the CPU will stay closer to idle. If you are doing something, you are touching the screen and thus the CPU will be boosted. An obvious shortcoming to this is watching a movie, which can start to stutter.

Probably more than you wanted to know, but there it is. Everyone has their own take on it, and you should experiment to find what works best for you and your daily routine. Also, with Kernel Adiutor, you can save settings into profiles, and load them for different uses, which is pretty handy.
[T-Mobile Samsung Galaxy S 4] smartt699:
No this is exactly what I want to know. the why :):highfive:
[T-Mobile Samsung Galaxy S 4] dtriguero:
What's different between lineageos kernel and cm14. will either of them run on other roms or are they rom specific.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Great question!

Technically, lineageOS is CM14.1, so right now they are more or less interchangeable. However, as time progresses, they may change lineageOS, but as of now cm14.1 is done changing.

So, it is more or less the same, but I plan to continue updating lineageOS for current changes, while I do not plan to change that kernel for CM 14.1.

Similarly, looking back at my old kernels for PAC and aokp, they were both interchangeable, however, they were not the same size, so there was a slight difference in the build, even though both functioned on each others ROM. I think at present, this is true of lineageOS and CM, they are both interchangeable right now, but they do have a different size, so there are some minor differences.

I hope that makes sense, and great question!
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
A kernel update for RR 5.8.0!

After church today, I had a little free time and updated the RR kernel, since it is now based on LineageOS. Initial testing looks good, be sure to try it out if you are running the new 5.8.0 in my RR thread.

-Edit-

The new AOKP kernel is up as well!
[T-Mobile Samsung Galaxy S 4] TFutoMaki:
First time flashing this kernel. Works very well so far on my GT-I9505! Thanks OP :fingers-crossed:
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Thanks for the feedback!
[T-Mobile Samsung Galaxy S 4] dtriguero:
I see jdcteam has switched to lineageOS based on the cm14.1 thread title change. So I guess ur cm kernel for them will no longer work but will ur lineageOS one. I may have to try it out and see unfortunately cause of how slow my internet is it maybe a little bit before I can get back with any news
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Great point!

The lineageOS kernel *should* work on their ROM, but a confirmed test would be nice. I have limited internet myself, so I hear you there.

I think I will leave the cm14.1 kernel up, in case there are any scragglers still using it, no harm no foul.

Perhaps after things settle down once the baby is born I can get back to kernel modding.... I can start training him early ;)
[T-Mobile Samsung Galaxy S 4] TFutoMaki:
Now I have been using this kernel for a bit and updated to the latest. I honestly can't notice major performance improvements, provided that I did not compare with benchmark scores. For battery, my usage is very inconsistent, so I cannot tell if it's better or not.

Interestingly, the kernel seems to not have the custom cpu voltages option. Is there is a reason why it is not enabled for this kernel? Most android custom kernels include it. And yes I know, it does not change a lot in terms of battery if undervolting and could potentially result a poorer performance caused by unstability. Also maybe gpu voltages too? I saw that you made an app for that but it does not work :(

Something great I've notice from this update is that it seems that the update made the visual artifacts gone which is great (was noticing a lot in Google Chrome)! As I can see, the lower cpu frequencies ("Underclocking") are gone which might have resolved the issue :).

I keep using this kernel because of the slight cpu and gpu overclock together and hoped for a little subtle improvement in terms of performance such as loading apps faster without causing instabilities. Reminds me of my kt-kernel setup way back when my S4 was new.

Anyways thank you very much for making this kernel! I appreciate the effort you make and the time you spend to create plus improve the kernel. I don't plan selling this phone even if I have my other one, so if you continue developing this kernel I'll very probably test/use it. :fingers-crossed:
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
TFutoMaki,

Thank you for the kind words.

The GPU voltage app I made is only compatible with the lollipop and marshmallow kernels, not the nougat kernel, at least not at this time. The problem is that my usual "hack" for adding those controls is now blocked during build because it is not iso90 compliant. So during the build it bails because I am breaking the rules as set down by the standards.

My programming skills are a bit weak, so I have not found a good workaround at this time, but I love learning new things, so I am slowly working on it.

Hope that helps clear some things up. ;)
[T-Mobile Samsung Galaxy S 4] smartt699:
RR oms issues

[MENTION=7026648]AlaskaLinuxUser[/MENTION] tried many of your kernels/roms already. I can confirm that your lineage kernel works well with crdroid. I tried your slim rom except for that home button issue its all good.

RR have recently incorporate OMS in their builds, so I've switched.... I tried your kernel and it works well, only thing that I've notice after the flash is that substratum was in legacy mode after and didn't work well. I dirty flash the rom to force the old kernel and bam back to regular substratum. The issue is notice on the last 2 release of RR on jfltexx official.

Thanks for your help and support.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Yes, my rr kernel was built without oms support, because, at that time, they requested that all RR builds, official and unofficial not include it in their builds.

Perhaps when I start building again I can build it with oms.
[T-Mobile Samsung Galaxy S 4] smartt699:
[MENTION=7026648]AlaskaLinuxUser[/MENTION] any news of the RR kernel with oms? No stress :)
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Not yet, pretty busy with the new little one....

Next on the agenda is slimroms camera issues.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
At the present time, the AKLU nougat kernel will continue to be built for the AOKP roms. Since AOKP is based on LineageOS, it may work on several LineageOS based roms, such as (but not guaranteed) LineageOS, AOKP, PAC, RR, etc.

Perhaps in the future I can get back to maintaining the AKLU kernel for multiple roms. I apologize for the inconvenience, but I only have so much time and only so much bandwidth. I want to focus on quality rather than quantity, and I hope you all understand.

Thank you,

-AlaskaLinuxUser
[T-Mobile Samsung Galaxy S 4] Yooshaw:
Noob question - do I flash this kernel before or after flashing a new ROM? Do I have to do any wipes when flashing a kernel?
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
No problem, we were all new at this once!

You should always flash the rom first, then later flash the kernel.

Typically, you do not perform any wipe prior to flashing a kernel.

If you are using SuperSU zips on your rom, you may need to reflash SuperSU after flashing the kernel. E.G., my SlimRoms requires you to flash the kernel, then the SuperSU.

Hope that helps!
[T-Mobile Samsung Galaxy S 4] Yooshaw:
Thanks for the fast reply, and all your work! One last question, any problem flashing this kernel long after installing the ROM? i.e. dirty flash the kernel?
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Kernels are usually dirty flashed and can be flashed months or even years after the ROM, as long as it is the right kernel for that ROM. This is nice, because you can try out the original kernel, then later try another kernel or go back, etc.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Kernel Update:

Just letting you know, if you are on the new AOKP 7.1.2, the kernel has been updated in the OP to match.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Praise God! GPU and CPU voltage control is BACK!!!

Praise God! GPU and CPU voltage control is BACK!!!

That's right, check the OP, because the new AOKP 7 Nougat kernel is out with voltage control built back in! You will need Kernel Adiutor for CPU voltage control, and my app for GPU control.

My app for GPU control:

https://xdaforums.com/galaxy-s4-tmo...gpu-voltage-control-app-aklu-kernels-t3506985

REMEMBER: VOLTAGE CONTROL IS DANGEROUS. VALUES YOU SET COULD MAKE OR BAKE YOUR PHONE! BE CAREFUL!
[T-Mobile Samsung Galaxy S 4] Tarique435:
Can you plz add back fast charging and the loud sound mod in future updates.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
I will see what I can do!
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Great suggestion! Praise God, it works, too!

The OP has been updated with a new kernel for AOKP 7.1.2 featuring Fast Charge and FauxSound! (Thanks to [MENTION=3332811]faux123[/MENTION] )

Remember, you need busybox installed for FauxSound to work. The FauxSound controller app can be found on the Play Store.
[T-Mobile Samsung Galaxy S 4] 21-Savage:
Hey it's been a while since I've been able to use my S4 but does the kernel for RR (Nougat) help fix issues?
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Great question!

Yes, the AKLU kernel for RR adds several features and fixes the WiFi hotspot issue.
[T-Mobile Samsung Galaxy S 4] 21-Savage:
It's amazing. Battery life has significantly improved. My S4 has a decaying battery so this was great. I'm loving the ROM also. I only wish my S5 (daily driver) could experience your great work.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Thank you for the kind words.

I do have an AOKP nougat build for the s5, as well as the AKLU kernel. It was built for Verizon, but it has all the bands you need in it if you use t mobile. A slight edit of the meta data updater script and it should flash just fine. I am pretty positive it would work on your s5, as long as you don't have a sprint s5....

I could edit the script, or you could, following my instructions, if you did not know how to do so. It is a very simple procedure. If you were brave enough to test it?
[T-Mobile Samsung Galaxy S 4] 21-Savage:
It's actually for the locked bootloader Verizon S5 (Toshiba 11) nobody has been able to crack it.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Bummer! Sorry my friend, I cannot help you.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Here is where I wanted to post this update. If you use the AKLU kernels with GPU voltage control, be sure to grab the latest version of the app!

See below! New GPU voltage control app is posted and in the play store! Now you can over/under by -40/+50 mV!

https://xdaforums.com/galaxy-s4-tmo...gpu-voltage-control-app-aklu-kernels-t3506985
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
New kernel in OP for download. No real changes, just updating with the newer AOKP7, so if you downloaded the 20170901 or newer AOKP7, you need this newer kernel.
[T-Mobile Samsung Galaxy S 4] Krappa420:
Hello friend. I am using this https://xdaforums.com/galaxy-s4-tmobile/development/lineageos-jfltexx-14-1-nougat-nightlies-t3702319 ROM for my Tmobile S4. and have twrp 3.1 installed.

What I want to know is, Which kernel do I flash for this rom? and is it safe to do so and is it compatible with this rom. I am mainly looking for battery life.
[T-Mobile Samsung Galaxy S 4] AlaskaLinuxUser:
Great questions.

You most likely want the AOKP kernel, or the lineage os kernel. I do not know if there will be any issues with using them on that rom. I'd recommend making a backup before flashing them.

How that helps!
[T-Mobile Samsung Galaxy S 4] marco978:
hello friend

just wondering if i could use ur kernel for rr 5.8.5 from [MENTION=1711160]Buff99[/MENTION]

my device is m919 btw.