yashsingh1/xdaforums huggingface dataset:
[Xperia SP Android Development] Tomoms:
If you search back in the thread, you will find a post where I explain how to change zram's size with the help of a zip file. Follow those instructions, you basically need to set zram's size to 0.

EDIT: here you go: https://xdaforums.com/showpost.php?p=69618238&postcount=1147
[Xperia SP Android Development] finnal123:
Thank you. next update will u add bricked hotplug?
[Xperia SP Android Development] Tomoms:
Yes, it will be the last hotplug I add: on a dual core device all the others are pretty useless. So we're going to have AutoSMP, which, from what I have observed, is more "conservative" (it tends to bring online the 2nd core less frequently), bricked, which is more aggressive and configurable, and mpdecision, which I guess very few users will use :D
[Xperia SP Android Development] :
Sorry off-topics

Mind what type of nillkin case you are using??
[Xperia SP Android Development] UmarMughal:
HELP

I am extremely naive and noob and belong to a remote area of Pakistan.

I just wanted to ask and I am feeling ashamed to ask but can you please tell me methods to flash this kernel to Xperia SP custom ROM 7.1.2 OMS OFFICIAL Huashan Resurrection Remix Nougat v5.8.3 01/08/2017

Please???
[Xperia SP Android Development] Tomoms:
There is only one method, the same that applies to 99% of the installable zips available on XDA: flash it with TWRP.
[Xperia SP Android Development] UmarMughal:
I flashed it with TWRP and it reboot again and again to TWRP.

I don't know what i am doing wrong.
[Xperia SP Android Development] Tomoms:
You are flashing TWRP in the boot partition.

Download the TWRP zip from here: https://mega.nz/#F!O51UBCxK!0NYOUEXl4SL_o1Qy3Ownjw (not the MultiROM version).

Now, boot in TWRP, re-flash your ROM, flash the TWRP zip, flash Helium kernel and reboot. After doing this, whenever you need TWRP you just have to press the Vol+ button when you turn on the phone.
[Xperia SP Android Development] UmarMughal:
Thanks!! In about phone it is showing Helium. But forgive me for asking this I am really really sorry for being such a noob, how can i configure settings like enable CPU overclock? CPU Hotplug??
[Xperia SP Android Development] Tomoms:
Download the app called Kernel Adiutor. It will let you manage all the kernel settings and parameters.
[Xperia SP Android Development] UmarMughal:
Thank you so much man for helping out a noob. Thank you so much
[Xperia SP Android Development] TargaryenSnow:
Can someone suggest me good Kernel Adiutor settings for my Sony Xperia SP having custrom rom LineageOS 14.1 for Xperia SP
[Xperia SP Android Development] Tomoms:
I've released a new minor update. Any comment about performance improvements or any kind of issue is welcome. Unfortunately the SONY logo bug is still not fixed but it happens extremely rarely to me. I know what to do to find the cause of this problem and I'll work on it starting from tomorrow.
[Xperia SP Android Development] :
Don't be sorry, your question were fine.
[Xperia SP Android Development] TargaryenSnow:
Does kernel adiutor damages hardware

I was using rom LineageOS 14.1 for Xperia SP from past 1 week with Helium kernel and uninstalled kernel adiutor after 2 days of downloading it. My phone was working fine until last night when i was going to sleep my battery was 45% i plugged it in a charger and went to sleep. Now my phone doesn't show anything at all plugging in or out a charger don't work at all neither it is turning on. I wonder has it bricked my android device?

---------- Post added at 06:16 AM ---------- Previous post was at 06:13 AM ----------

I wanted to remind that my phone worked fine with Helium kernel for SEVEN DAYS what happened now?
[Xperia SP Android Development] Tomoms:
New major release!

There are two important things about it. First one: the booting bug (phone stuck on SONY logo) seems to be fixed; second one: the kernel seems to be even smoother than v46 for me! I'd like to hear from you on both aspects, so please tell me if that nasty bug is really gone and/or if your SP seems to work even better than before.

BTW, if anyone is interested, the cause of the booting problem were the workqueue updates backported from Linux 3.6 and 3.7. They've been excluded from v47 so now there shouldn't be any issue anymore.
[Xperia SP Android Development] finnal123:
oh man, it's disater. After flash v47 on RR rom, my phone freeze and reboot everytime it got into bootscreen. I decided to reflash rom, and twrp freeze while flashing :(
[Xperia SP Android Development] Tomoms:
Well, that's really weird. I've been using v47 for one whole day before releasing it, and I've faced no issues. In a few minutes I'll upload a new build that might fix the problem.

[MENTION=4705621]finnal123[/MENTION] Try this: https://drive.google.com/open?id=0B-msDWtyu1JrUzlMUnJKZW5ubWs
[Xperia SP Android Development] finnal123:
when my buddy comes alive, i'll test this!
[Xperia SP Android Development] RaptorCode:
same problem here with ressurection remix, back to stock kernel, with v46 i didn't face any issue except sony logo stuck, in v47 that issue seems already been fixed (sony stuck)
[Xperia SP Android Development] rafigh89:
hi [MENTION=5727088]Tomoms[/MENTION]

is it possible to add a feature to disable mobile charging through usb while mobile connected to pc or laptop?
[Xperia SP Android Development] Tomoms:
I've never seen such feature, so I'd say it's not possible.
[Xperia SP Android Development] finnal123:
Ah, dont work! Freeze and reboot at bootscreen. Even in twrp, when flashing or sometimes wiping, it s freeze
[Xperia SP Android Development] :
Deleted
[Xperia SP Android Development] Andreus94:
For me v47 test is perfect atm ;)

With 23-08 lineage I'm satisfied, my phone is fast and stable. The only little thing is that the phone is often a bit hot even without overlooking...

We will see if there will be problems in the next few days ;)
[Xperia SP Android Development] :
I have screen freeze for 2 seconds to even 2 minutes

rom: AOSP-CAF [7.1]

Version 47
[Xperia SP Android Development] Tomoms:
Hello! Please post your full kernel configuration (CPU governor, hotplug, i/o scheduler...).

Also, download a Terminal emulator app on your phone, and next time you get a screen freeze, wait until the phone starts working again, then open the Terminal app and run

su -c 'dmesg > /sdcard/kernel.log'

Then send me the file called kernel.log you'll find in your internal storage.

BTW, Helium v48 will be available within the weekend!
[Xperia SP Android Development] Lubakabra:
How about O support ? ??
[Xperia SP Android Development] darjwx:
A bit soon for this question no? Let O madurate :P
[Xperia SP Android Development] Lubakabra:
Oh with all due respect, i think it is not?
[Xperia SP Android Development] Tomoms:
It will come quite soon but it's not my main concern as of now. As soon as I release v48 I'll start working on an Oreo-compatible build.
[Xperia SP Android Development] X7SHaDe:
[MENTION=5727088]Tomoms[/MENTION], after testing things out, I figured out that using GCC 6 & 7 (and all variants of them) causes hangs on the device, moving down to GCC 5or 4 fixes the problems about the hang.
[Xperia SP Android Development] akimester:
Then it would be nice to have a gcc4/5 compiled HK48 ! :)

All versions of HK lags for me !
[Xperia SP Android Development] X7SHaDe:
Hahahahaha I was always wondering why it was lagging even though the commits where alright... so I compiled it myself, even AdrianDC's kernel just to further confirm it, and they all lagged when compiled with GCC 6 & 7
[Xperia SP Android Development] Tomoms:
What you point out is very very interesting. When I release v48, I'll build it with GCC 4.9 and 7.1 and release it. The users will be the judges, and I'll try both versions too, to feel the difference in first person. [MENTION=5803742]akimester[/MENTION]
[Xperia SP Android Development] Onawt:
Hmm...those are indeed some really interesting discoveries. Didn't know the GCC version could make such a difference. I've always noticed some lags/stutters with HK, but never as bad as you guys describe it. Especially since Tomoms started his kernel from scratch the amount of stutters/lags I've had is second to none.

[MENTION=5727088]Tomoms[/MENTION]: Do you happen to know which version Adrian uses with his kernels?

EDIT: Would using an older GCC version have any adverse effects? Any security issues or something?
[Xperia SP Android Development] Tomoms:
Adrian uses 4.9 or 4.8, however there's no difference between point releases I guess. Using an older GCC version doesn't cause any issue, usually newer versions should produce better programs but if this isn't the case I'll be glad to go back to an older one.
[Xperia SP Android Development] Tomoms:
After almost one month, there's an update: Helium v48 focuses on stability, in order to provide a good balance between extreme tweaking and stable CPU frequency tables for each different Xperia SP variant available. A new CPU boosting driver by Sultanxda should provide some more smoothness while still being battery-friendly, and the random number generator driver has been backported from Linux 3.16!

The new CPU boosting driver is not configurable by the user in Kernel Adiutor; I've coded some default values that should be good for all of you, and the driver itself is smart and auto-calculates other parameters to provide the best possible experience. Note that this new boosting driver makes it impossible to change the CPU minimum frequency.

In the download page on AndroidFileHost you'll see two different kernels marked as "v48": one is build with GCC 7, the other with GCC 5. Everyone is invited to flash the GCC 7 version, test it for a while (at least a couple of days), and then switch to the GCC 5 version, and test it for some time. Then report here if you felt any difference (hint: the GCC 5 version might be smoother).

As usual, I'm here, ready to give answers to any question or concern.
[Xperia SP Android Development] akimester:
[MENTION=5727088]Tomoms[/MENTION] :

The helium_v48_MN_gcc5.zip works fine !

No lags ,no freezes ,etc.

All other versions before this -including V47- lags and freezes for me !

Thank you very much !

And thank you too, [MENTION=8143568]X7SHaDe[/MENTION]!
[Xperia SP Android Development] Tomoms:
Great!

I hereby declare GCC 5 the default compiler for Helium kernel from now on.

And I'd also like to express my gratitude towards some people who helped me in the process of making this kernel fast & stable as it is now, and namely [MENTION=7560671]Onawt[/MENTION] for testing dozens of builds over the last two months, and giving detailed reports about the behavior of each build; [MENTION=5662807]Andreus94[/MENTION] and [MENTION=4705621]finnal123[/MENTION] for testing several kernels, in the process of eliminating the causes of kernel panics and sleeps of death; [MENTION=8143568]X7SHaDe[/MENTION] for the information regarding the tests he made with different cross compilers, and [MENTION=5803742]akimester[/MENTION] for confirming that v48_gcc5 is actually better than v48_gcc7.

Now I'll focus on the next build, which will also support Android O :)
[Xperia SP Android Development] polo_joe:
v48 Gcc5 works good for me so far - no lags.

Thank you!
[Xperia SP Android Development] RaptorCode:
Reporting after a day of usage, gcc5 no lag, random freeze so far, gcc7 still have random freeze when playing games or watching videos. Look like gcc5 fixed freeze issue from it predecessor, thanks a lot btw
[Xperia SP Android Development] Jadimo:
As stated by other users, I'm experiencing random freezes on Helium 48_gcc7. After switching to Helium 48_gcc5 so far these freezes are gone. Phone is fast and responsive.

I'm using it with Lineage_14.1-2017.09.05, no OC and zen scheduler. Thanks for supporting this phone :)
[Xperia SP Android Development] akimester:
[MENTION=5727088]Tomoms[/MENTION] :

Today i had some sleep of deaths !

Only hard-reset helped.

LOS 0905/0913 ,helium_v48_MN_gcc5.zip

CPU min/max : 137 (?) Mhz/14xx MHz

GPU : 128 Mhz

Governor : conservative

AUTO-SMP on.

No other tweaks.

Helium log attached ,i hope it helps !

View attachment 4271276
[Xperia SP Android Development] Tomoms:
A new kernel is available. SoDs should be fixed now. [MENTION=5662807]Andreus94[/MENTION] [MENTION=7560671]Onawt[/MENTION]
[Xperia SP Android Development] akimester:
[MENTION=5727088]Tomoms[/MENTION] :

Today i had a new SoD with v48.1 gcc5.

After a hardreset ,reboot,entered PIN code and some seconds later an instant reboot !

No logs ATM. Sorry. :(
[Xperia SP Android Development] Tomoms:
There's v49 available, please try it and let me know!

By the way, even though when I released v48 I had said the following kernel would have supported Oreo, I didn't expect to release v49 today, so Oreo compatibility is delayed to the next release.
[Xperia SP Android Development] akimester:
V49 :

3 days in standby ,some phone calls ,1 day of intense usage (browsing ,viber) : seems stable and absolutely free of lags/freezes !

Thank you very much !
[Xperia SP Android Development] Tomoms:
Please everybody update to v50 as soon as possible! It fixes a critical f2fs stability bug.
[Xperia SP Android Development] Cyrus.xda:
When its Ready For Oreo 8.0
[Xperia SP Android Development] Tomoms:
You'll have to wait for the next release. I didn't expect to release v49 and v50 so soon, but there were more important things to do before working on Oreo compatibility.
[Xperia SP Android Development] DahakePL:
Great kernel, lacks a few features such as governors but it really sped up my phone :)
[Xperia SP Android Development] DahakePL:
Sudden death on latest RR, stock clock.
[Xperia SP Android Development] akimester:
Yes,i had a SoD ,too. Latest (and previous) LOS.
[Xperia SP Android Development] chickenla:
Bricked by device after flashing kernel. I have a locked bootloader and custom recovery

Flashed from XperiaSP Locked Bootloader (LBL) Slimkat rom. I thought it would be safe since i was a post here that it worked with a locked bootloader... but oh well.

Holding down power buttons gives me no response at all, no vibrations or anything.

When I plug in my phone, it has a green led but that's all i can do right now. I try fastboot and it can't find the device.

What can I do at this point?
[Xperia SP Android Development] akimester:
This kernel is only for UBL !

Do a hardreset. Under the cover ,there is a little yellow button,hold it for several seconds. The phone will vibrate 3 times.

After that use flashtool and flash a stock rom....

Be aware,your data will be lost !
[Xperia SP Android Development] chickenla:
Thanks.

I can only do that while it is plug in and theres a green LED. Otherwise, if its unplugged, it won't vibrate no matter how long i press the off button.

i try "adb devices", but does not find any devices. What should i do now?

If your talking about the emma tool, im not sure what i can do. Emma can see it but won't let me do anything with blocked bootloader. as for sony companion tool, i'm trying to software repair but its not working either.
[Xperia SP Android Development] Tomoms:
If it's unplugged the phone is off, so it's obvious that it won't vibrate when forcing a shutdown, as it's already off.
[Xperia SP Android Development] chickenla:
Alright dug around some more and used the sony flash tool and flashed my kernel back to stock.
[Xperia SP Android Development] akimester:
[MENTION=5727088]Tomoms[/MENTION] :

Any news about a new version ?

V50 still has some SoD issue. :(

Ok,,ok... Take your time... Im just curious...
[Xperia SP Android Development] Tomoms:
I'll take advantage of your question to write some news: today I'll release v51, however, to address the stability issues (SoDs) and to support Oreo ROMs, it'll be a kernel built from scratch on top of Adrian's Oreo kernel source. Don't worry, it'll still be compatible with Nougat ROMs, and maybe even with Marshmallow ones. So expect - finally! - a stable kernel to be released in the next hours, and don't worry if it'll be lacking some features, optimizations or performance improvements: they will all come in the upcoming releases, be patient and wait. Thank you.
[Xperia SP Android Development] Tomoms:
v51 is the first Oreo-compatible kernel

Hello!

I'm proud to publish a new Helium kernel release,

now compatible with Android Oreo

!

This release does not include all the features present on v50 and previous versions, as it has been built from scratch to fix all the possible instabilities of the past kernels. Gradually, I'll start re-introducing all the changes, giving you time to test each release and report any problem. Upgrade to this release as soon as possible!

Compatibility with Marshmallow ROMs is not guaranteed, but the kernel should work fine.

The full changelog is available in the first post of the thread, the kernel can be downloaded from here: Helium v51

I'm here to answer any question and I'll be really happy to read your comments/reports on the kernel. Happy flashing :)
[Xperia SP Android Development] laim_name:
Wow, new release works really fast! Im surprised... Nice work, tomoms!
[Xperia SP Android Development] DahakePL:
Sleep of death still present?
[Xperia SP Android Development] Tomoms:
No. This kernel should be 100% stable, because it doesn't include (yet) all the changes that might have brought instabilities.
[Xperia SP Android Development] akimester:
After ~24 hrs usage :

1.5 hrs before : soft reboot during browsing.. (Lightning browser)

As the OS loaded (LOS 20170926),started browsing again...

Later turned off the screen.... SoD. :(

What log should i send u next time ? (If i have time for this..)

Helium V51.
[Xperia SP Android Development] Tomoms:
After a soft reboot (that is not caused by the kernel), lots of strange things can happen, and I'm telling you this from my experience: random lags, random overheating... So it's better to always do a manual, full reboot after a soft reboot. I don't want to reject your bug report, but in this case, I would prefer to wait for another occurrence of a SoD without a preceding soft reboot, to confirm the problem lies in the kernel. In the meantime, I'll keep my fingers crossed and wait to hear the experience of other users too ;)
[Xperia SP Android Development] Lubakabra:
In my opinion, it's better than stock, but the SoDs are ruining it ? if you find some way how to fix it (even if it's not caused by Helium) it would be great

Thanks
[Xperia SP Android Development] akimester:
IMHO its stable now !

No SoD,etc.
[Xperia SP Android Development] Tomoms:
Could you share a list of all the kernel settings you modified after flashing Helium? Thank you in advance
[Xperia SP Android Development] akimester:
[MENTION=5727088]Tomoms[/MENTION] :

Forget it. I had another sod after a few days. ->

My pretty-old/crappy sp goes to the trash...

Thanks for your hard work ,Tomoms !

Best regards to you and all sp owner ! :)

Bye !
[Xperia SP Android Development] Tomoms:
Other two users have reported SoDs as well, and I've already prepared some new kernels to test, actually I was about to publish them here. There's nothing wrong in your device! The fault is in my kernel, and I am almost sure I've found the culprit of the issue (it's either the cpu boosting driver or Autosmp).
[Xperia SP Android Development] Tomoms:
Here I am, with a new Helium kernel version, aimed, once again, at fixing the long-lasting and nasty sleeps of death. In this release, you'll find more or less all the features of v51, except for AutoSMP and cpu_input_boost, because extensive testing revealed that either the former or the latter are the cause of the instabilities. So after flashing v52 you'll find yourself with the standard CPU boosting driver and with no hotplug at all, just as on Adrian's kernel. You're all invited to flash this release as soon as possible, and then give me some feedback. I'll wait for at least two weeks before providing a new update, it'll be more than enough to confirm everything is working properly.
[Xperia SP Android Development] MadMaxPN:
Is this kernel compatible with Resurrection Remix Nougat v5.8.5 and what are the benefits over the stock?
[Xperia SP Android Development] Tomoms:
Yes, it is. The benefits are written in the first post.
[Xperia SP Android Development] varioventus:
FauxSound integrated?
[Xperia SP Android Development] Tomoms:
Not yet. Previously I'd kept forgetting about it, currently it's more important to focus on stability and know that what is implemented works well. It'll come in due time.
[Xperia SP Android Development] Tomoms:
I've prepared a new build, it's a very important update so I advise you to flash it immediately, unless you're using the Oreo build dated November 6th.

I have no idea what's wrong with Helium + that build, but if you flash Helium on it, it simply won't boot. I promise I'll try to fix this as soon as possible, in the meanwhile the kernel works

perfectly

on Nougat and Oreo from October 20th.

Apart from hundreds of backports from newer Linux kernel versions, v53 brings a new hotplug (bricked), because it was AutoSMP that caused the SoDs, CPU input boost (for smarter CPU boosting), UKSM (to save RAM with minimal battery drain - in fact it has been observed that battery life using v53 is slightly better than before), a few f2fs updates, some security fixes implemented by Adrian, a lower idling GPU frequency for enhanced power saving and maple is now the default I/O scheduler.
[Xperia SP Android Development] Tossox:
Thank you for work! After flash v53 my device got a kick in performance (I'm on RR 5.8.5 right now).
[Xperia SP Android Development] paracetamol183:
Hello friends. I'm using Helium v53, how can I use other hotplugs since I only see MPdecision in Kernel Aduitor? Thank you for your work OP. Have a nice day.
[Xperia SP Android Development] Tomoms:
How come you can't see bricked hotplug? Can you open KA, go in the Device tab, scroll to the bottom and post a screenshot of what you see?
[Xperia SP Android Development] paracetamol183:
Screenshot attached
[Xperia SP Android Development] Tomoms:
The hotplug called mpdecision in KA is actually bricked hotplug. The dev of this hotplug in fact called it msm_mpdecision, bricked hotplug is another name used to avoid confusion with Qualcomm's official hotplug.
[Xperia SP Android Development] paracetamol183:
Got it. Thanks for your time:good:
[Xperia SP Android Development] MadMaxPN:
i softbricked my XP with this kernel , i flash zip file trough the twrp, i cant turn on device, wont charge, on restart button hold just vibrates several times and nothing happens, can anybody help please ;-(
[Xperia SP Android Development] Tomoms:
On top of what ROM did you flash my kernel? BTW, just extract the boot.img from the ROM's zip and flash it with fastboot, then the phone will be recovered.
[Xperia SP Android Development] MadMaxPN:
Ressurection Remix, latest version...I cannot enter fastboot, or power up phone
[Xperia SP Android Development] Tomoms:
Remove the back cover of the phone and press the OFF button until the device vibrates three times. Then you'll be able to enter fastboot by plugging the phone to a computer while holding the Volume+ button.
[Xperia SP Android Development] MadMaxPN:
I already tried that... I cannot enter fastboot or power up phone
[Xperia SP Android Development] polo_joe:
V53 works good to me for more than a week, no lags no sods. Thank you!
[Xperia SP Android Development] Tomoms:
Helium v54

I've uploaded a new version of my kernel!

There is a relevant number of under-the-hood changes & optimizations that will improve performance and probably help to save a little battery as well. The most important ones are the use of the -O3 GCC optimization set, together with some other compiler flags (as pointed out by the Linaro team). From now on, the kernel will be provided with a new installer that is basically a combination of Adrian's BootBridge and osm0sis's AnyKernel2. Thus now Helium can be flashed without problems on all the latest Oreo builds.

Thanks to [MENTION=8143568]X7SHaDe[/MENTION] for sharing his idea about the combination of BootBridge with a universal kernel installer, and to [MENTION=7560671]Onawt[/MENTION] for thoroughly testing all the different changes I've implemented in the kernel.
[Xperia SP Android Development] eric.ger.01:
V54 is working fine