yashsingh1/xdaforums huggingface dataset:
[Xperia SP Q&A, Help & Troubleshooting] Alvichone:
Testing helium in temasek, for now all working right and cpu freq. goes to 1728Mhz. Very similar to last stock cm kernel but with usb fast charging :good:

I have a question [MENTION=2854006]tommons[/MENTION] (or sombody): Why do you include KSM? In Tangerine kernel it made the device laggy, increasing the power consumption due to the continous work of cpu cores and soon many of us saw that this feature wasn't good to our Xperia Sp. I always leave it off and better overall performance is achieved.

In init.d options of Kernel adiutor we can see the entry 01tangerine. Delete this entry is the same that going to /system/etc/init.d? I suppose that is.

BTW, great work and thanks for your dev time.:cool:
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
KSM (in v2, UKSM) is there as an option. Nobody forces you to use it :) It uses more power but the result is a better RAM management.

Yes you can delete 01tangerine from Kernel Adiutor too.
[Xperia SP Q&A, Help & Troubleshooting] ParanoidNemo:
Trying v2 with carbon 5.1.1 seems everything OK..good work man ;D
[Xperia SP Q&A, Help & Troubleshooting] AbboodSY:
Waiting eagerly to have it fully working on CM13.. Please [MENTION=5727088]Tomoms[/MENTION] hurry up :silly:
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Wait more or less 70 hours and you'll have it :D
[Xperia SP Q&A, Help & Troubleshooting] pilger:
I have tangerine 9.1 and CM12.1 on my device. Which steps i need to follow in order to have Helium?
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
Overclocking?

Can you build a overclocking option from this Kernel, In Tangerine Kernel my Cellphone is stucked on 1444 MHz on all gorvenors, Can you do it? A Overclocking to 1.94 GHz or more ? :D
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Flash the stock boot.img of your CM build (if you have CM+Addons, it would be better if you flashed the boot.img of the Addons you have installed on your device), enter TWRP, install Helium.

Or, in an easier way, next time you update your CM nightly flash Helium instead of Tangerine!

Overclock needs some work and I'm very busy at the moment. Frequency fixes will come very very soon. In the mean time you can flash v2.1, which hasn't got any issues with frequencies.
[Xperia SP Q&A, Help & Troubleshooting] chaitanya.tanga:
[MENTION=5727088]Tomoms[/MENTION] I am not able to install v2.2 on cm 12.1 using twrp it says unpacking kernel and nothing happens I have to hard reboot.anyone know how to solve this?
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
Helium Kernel v3

On Helium Kernel v3 the frequency is stucked on 1458 MHz on both cores on all gorvenors and I/O Schedulers.. :crying: :crying:

Image Link: http://tinypic.com/r/vcv2ft/9
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Good! Well, actually that's bad, but I expected it. Will fix ASAP (that is, unfortunately for you, on Sunday/Monday).

Use v2.1, it doesn't have problems.

For the others: I remind you that this doesn't mean v3 is buggy. This bug appears only on certain devices (:confused:) and mine is one of the "lucky" ones. So the best thing to do is to try v3 and see if you're lucky or unlucky. Hopefully, the bug will be fixed with v3.1.
[Xperia SP Q&A, Help & Troubleshooting] OsGhaly:
Same here :(
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
It will be that the kernel comes out today ? I'm anxious :D :D :D
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
It's out :D
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
Helium Kernel v3.1

CPU frequency table finally fixed? Needs testing.

Test: Yes, All gorvernors and I/O Schedulers is working with 1944 MHz, Tested!

Thank you, Tomoms :D
[Xperia SP Q&A, Help & Troubleshooting] michuroztocz:
Is TRIM support planned? I think that it is essential for device with such slow flash memory.

As for now I'm using heavily customized Tangerine 9.2 + last Xenon HD which gives great performance, but has issues (inaccurate GPS, big lag after locking the screen, touchscreen not working couple times a week and a few more). Tested latest CM12.1 + Helium 3.1 for few hours and it looks promising, but feels slower than much more bloated Xenon HD + Tk9.2 (used since September) possibly due lack of TRIM support.
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
You can use the command line utility called fstrim or mount the partitions with the "discard" option. The latter way is more difficult because it requires unpacking the kernel, the ramdisk, and then repacking everything.
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
Swap crashing problem is resolved in v3.2?
[Xperia SP Q&A, Help & Troubleshooting] michuroztocz:
I think that it was my mistake - I cannot remember if I enabled root before issuing TRIM - shame on me :p

I am using Trimmer utility and running it resulted in instant execution without returning trimmed size in gigabytes pointing that either root was not enabled or TRIM was not supported. Judging by your reply I can assume that TRIM is supported so I think that I'll make second attempt to CM12.1 when touchscreen issue is fixed* or CM13 when camera will be working.

* I just read that [MENTION=2233641]Adrian DC[/MENTION] fixes has been merged in 3.2! I will check that kernel as soon as I can! :angel:
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
The phone automatically absorbs up to 1525 mAh. More mA's could fry the board, as this limit has been decided by Sony or Qualcomm or whoever. I use a 2200 mAh charger and the phone draws 1400-1500 mAh. When connected via USB with fast charging enabled, the phone draws as many mA's as possible, but you should remember that an USB 2.0 device can't draw more than 500 mA, which is also the limit of a standard USB 2.0 plug. So there's nothing more that can be done.
[Xperia SP Q&A, Help & Troubleshooting] xezrunner:
Hello! Which Android versions does this kernel support right now?

In case the latest doesn't support Lollipop, which one was the last one that did?

Thanks
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
For Lollipop the last version is v15.
[Xperia SP Q&A, Help & Troubleshooting] XSPuser:
Can I flash it on RR Nougat?
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Of course.
[Xperia SP Q&A, Help & Troubleshooting] XSPuser:
How can I remove it later if something goes wrong? Will dirty flashing help?
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Yes, you can either dirty-flash the ROM or extract the boot.img file from Resurrection Remix's zip file and flash it with fastboot, or, as a third option, you can extract the boot.img and place it in your internal storage (/sdcard) and then directly from your phone open a terminal app and run

su

then grant superuser permissions if required. Then run

dd if=/sdcard/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/Kernel

and reboot your device.
[Xperia SP Q&A, Help & Troubleshooting] steveglowplunk:
What's the optimal voltage for the cpu frequencies 1832mhz and 1944mhz? I'm on helium v5 (can't use any newer kernels as my rom is super old) and when I set the max frequency to 1944mhz and the cpu governor to ondemandplus, the phone sometimes doesn't turn on after locking and I have to force shutdown and reboot. I'm guessing it's the voltage being too low that caused the problem.
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
I have 1145 mV for 1836 MHz, 1170 for 1890 MHz, 1195 for 1944 MHz, 1220 for 1998 MHz. Try to add 30 mV to all these values I gave you.
[Xperia SP Q&A, Help & Troubleshooting] steveglowplunk:
But the voltage are you are suggesting are lower than the defalt ones even after adding 30mV to them... (the defalt is 1250mV for 1832mhz and 1300mV for 1944mhz)
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Sorry, I completely forgot that voltages are tied to the PVS of your CPU. PVS indicates the build quality of the CPU and its circuits. The higher the PVS, the higher the quality. High quality means that lower voltages suffice to make the CPU run at a certain frequency. PVS values range between 0 and 6. I'm very lucky and I have a PVS 6 CPU, so my voltages are lower than yours. Reboot your phone, and as soon as it has booted, open a terminal app and run

su
dmesg > /sdcard/helium.log

then send me the helium.log file. In that file I'll read your PVS. Then we'll see if there are some voltages than require some tuning.
[Xperia SP Q&A, Help & Troubleshooting] steveglowplunk:
Here it is.
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Ok, so you have a PVS 3 CPU (middle quality). Try to raise of 25 mV the voltages of all the frequencies greater than 1728 MHz and then check if your problem disappears.
[Xperia SP Q&A, Help & Troubleshooting] Raffhell:
Nope, always the nasty "unpacking kernel" while try to flash kernel (same with tangerine, builds ago).

Reflashed twrp and tried to reinstall. Same issue.

Could a dirty flash of rom/gapps help? (without wipes I should be safe; I've nandroid just in case)

Can I use another recovery (cm or cwm touch) to try install it or I'm going to brick phone?

Maybe a .img version of kernel will work.
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
You're trying to install v37.1, right?
[Xperia SP Q&A, Help & Troubleshooting] Raffhell:
Yup, latest version both of kernel and TWRP. I tried previous one also, 36, same error
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Try again and if it happens, wait for 2 or 3 minutes. I don't know why, but very rarely the installation process gets stuck on "unpacking kernel" for circa 2 minutes and then proceeds normally.
[Xperia SP Q&A, Help & Troubleshooting] steveglowplunk:
So I followed your instructions and raised the voltages, but the sleep of death occurred again. It's interesting this time because the notification led light kept on blinking but the display wouldn't turn on. I had to force reboot to solve the problem. This never happened before overclocking so maybe the voltages still aren't quite right. Anyway here's the last_kmsg if it does any help.
[Xperia SP Q&A, Help & Troubleshooting] steveglowplunk:
[MENTION=5727088]Tomoms[/MENTION] So no ideas?
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Hey, sorry for the late reply but I've been away from home for a week. Let me settle down on my kernel work again and I'll be able to help you in a few days. Thank you.
[Xperia SP Q&A, Help & Troubleshooting] steveglowplunk:
So... Do I need to raise to an even higher voltage?
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
For now, no. Please list your full kernel configuration - i. e. every single tweak or modification or setting you applied after flashing my kernel.
[Xperia SP Q&A, Help & Troubleshooting] steveglowplunk:
I'm using Helium v5 (extremely outdated but it's the only custom kernel I can use)

So here are the settings I modified:

CPU governor: ondemandplus (up_threshold set to 90)

CPU hotplug: intelliplug with nothing modified

Enabled usb fast charge

I/O scheduler for both internal and external storage: row, with read_ahead set to 1024kb

Turned off z-ram and used a swap file on external sd card instead

I use an older version of kernel adiutor (v0.9.9.4, because I don't like the new design of the app) to modify the settings, and everytime I apply a profile, the cpu voltage settings will drop 50mV for every frequencies, even I didn't set this in my profile. So I raise the voltage by 50mV for all frequencies everytime I reboot and apply the profile.

No sleep of death will happen without raising the max frequency to 1944mhz.

That's pretty much it, thank you for helping out:)
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Unfortunately I can't help you, then. Helium v5 is an extremely old kernel, my sources have evolved impressively since that release and I can't roll back to that state to potentially rebuild the kernel with the fix for your issue. Way too many things have changed, I don't even remember what my kernel was like in those days, and now for me it's impossible to both investigate and resolve your problem, I'm sorry.
[Xperia SP Q&A, Help & Troubleshooting] Sandboi:
Hey, I use LineageOS 14.1 with last version of this kernel, the only thing I've changed in KA is governor to impulse and I/o scheduler to sioplus. I have problem with playing music sometimes, my phone either stops playing music for a few seconds like it's not loaded yet and then continues or sometimes it completely freezes and I have to reboot my phone. I store my music in SD card and also listen to it via internet. Before I switched to this kernel everything worked stable with stock LOS kernel, but now I usually see a lot of crashes and wonder if there is any way to prevent them.
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
When the music stops playing, is it impossible to lock/unlock the screen, as though the device is completely frozen?
[Xperia SP Q&A, Help & Troubleshooting] Sandboi:
Yes, the device lagging, being not responsive to screen touches. Will try to make a kernel log when this happens next time
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Thank you. After it happens, run

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

in a terminal and you'll have a kernel log.
[Xperia SP Q&A, Help & Troubleshooting] Sandboi:
So, there is that huge log, you should scroll right to the bottom and see if there is something wrong. I was using darkness with zen this time. Also there is helium1 log where 2 bottom lines say some kind of transaction failed.
[Xperia SP Q&A, Help & Troubleshooting] Onawt:
Hey [MENTION=5727088]Tomoms[/MENTION],

I hope you can help me, because I must be doing something wrong. Let me explain:

I was running an old CM13 nightly back from August 2016 and your kernel (v36 or something old-ish). I was having frequent slowdowns, stutters and lag. Youtube videos at 720p 60fps would lag pretty hard after about 1min of watching. Audio would play fine, but the actual video would be lagging behind (sub 30fps playback). I would have to pause the video and rewind back a bit to get 60fps playback again. This was quite annoying when i wanted to watch a video of 20min.

Since I don't want to flash LOS 14.1 yet, I decided I would flash the latest snapshot of CM13.1 and your latest kernel (45.1 at time of writing) in the hope of solving those stutters and lags. I installed newest TWRP first and did a complete wipe of system, cache, internal and external storage. Now that my device is fully set up again I open Youtube and I still experience these lags. I also have frequent stutters just navigating my phone and I also got a freeze which I had to solve by resetting the thing completely using the button on the back.

What could be wrong? I flashed CM13.1 first, then Open Gapps and then your kernel, all without rebooting. I have Kernel Audiutor installed, but everything is stock, I haven't changed any setting.

Thanks in advance for you help.

Edit: I also often get the 'App not responding' message asking me to wait for it to respond or to close it. This happens with every app you can imagine. It's random and not the fault of any apps. Even system UI can stop responding. Just hitting 'wait for the app to respond' fixes the hick-up/freeze.
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Hello, thanks for providing feedback! Although I've have never experienced all the problems you mention in your post, I sometimes too face a short freeze or visual lag here and there. I am perfectly aware that my kernel is far from being perfect and currently not in its best conditions, due to some updates that have been added in a somewhat messy way.

For this reason, I plan to work on its code base inspecting each single Github commit, from Helium v1 to v45.2, and rebuilding the kernel as many times as necessary; my goal is to recreate Helium kernel from scratch inspecting each single feature or backport thoroughly to provide, for the first time in lots of months, an almost perfect kernel. With less backports, if needed; with less features, if needed, but at least stable and fast.

It won't be a short work, and I'll need some volunteers to test all my releases together with me and report any kind of issue they face. Later I'll post this message on the main thread too. If you want to be a tester, just send me a PM and I'll keep you informed. I'm going to start the work next week.

EDIT: basically you aren't doing nothing wrong. My kernel is the problem. Go back to Adrian's/the default one if the problems annoy you too much.
[Xperia SP Q&A, Help & Troubleshooting] :
[Q]AutoSMP configuration Helium 46[]

I never use AutoSMP hotplug before and after 46 update I wanted to use it. I have search the web for wiki or guide of some sort so that I can learn how to configure AutoSMP myself, does anyone know any guide for this hotplugging solution.

Thanks:good:
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
The default settings are, for most users, good. Just enable AutoSMP and disable Mpdecision and I'm pretty sure you'll be satisfied.
[Xperia SP Q&A, Help & Troubleshooting] Onawt:
Is it normal that system RAM usage is around 500MB and app RAM usage is super low (see attached screenshot)? Is this a result of the new task scheduler you implemented in v46? Is this any good?

High system RAM usage
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Maybe with the PELT scheduler the stats are screwed up, because there's no way Telegram, WhatsApp etc. use 0,00 bytes of RAM. Unfortunately I'm away from home without my SP and I can't check what happens on my device.
[Xperia SP Q&A, Help & Troubleshooting] Onawt:
Np. Just throwing it out there, so you know. It isn't device breaking bug anyway. v46 is smooth and stable.
[Xperia SP Q&A, Help & Troubleshooting] pilger:
Can anyone share the optimal settings for Helium on Kernel Adiutor? I've found my XSP to be very laggy with the latest nightlies and helium. Very laggy.

Also, I know it's unrelated, but why doesn't Kernel Adiutor save my settings!? Is there a better app to change the kernel settings or am I doing something wrong here!?

Thanks in advance!
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Default settings are not the best but they should be good. Try to uninstall Kernel Adiutor and reboot. Then reinstall it. This will probably fix the settings saving bug, and it may clean up things so that the phone is smooth again.
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
Helium Kernel v3.2

Hello Tomoms, I updated to v3.2 Helium and I see that the overclock is unstable, every time I do overclock to 1.8 GHz or 1.94 GHz the device with a screen just freezes with strange colors and restarts, more in Helium v3.1 version does not it occurs, On v3.1 occur screen bugs, when I overclock the screen after a time off does not turn on, or is unable to move the cursor :(
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Yeah, overlclock isn't working. I'll do some testing ans try to fix it.
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
Hello Tomoms, I was reading a few things here and thought maybe it could be placed in the Kernel

1. CPU Virtualization for Quad-Core

2. Memory Overclocking

3. Native MPDecision

4. Boost Frequency (1944 MHz to 2050 MHz without Overvoltage)

And also wanted to know what you edit the kernel, with which program do you use?, maybe I can help you resolve the error of swap and put more things and.. if I can get it, I give to you my edited version for you test

:laugh:
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Feature number 1: I don't think it's possible - how would you do that? CPUs are physical pieces of hardware, you can't emulate them.

Feature number 2: you can do that on PCs, on phones I don't think it's possible.

Feature number 3: it's already included.

Feature number 4: let's get a working overclock first.

The source code can be edited with a simple text editor like gedit/pluma on any GNU/Linux distro.
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
Ok. With Gedit/Pluma but How can I acess the Overclocking settings and the Swap settings? I studied any topics and forums this part is located on zImage, but I can't open. :confused:
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
The zImage cannot be edited. You have to download my source code from here: https://github.com/Tomoms/helium_kernel/

and then edit the features you want. This requires C programming skills. Then you need to build the kernel using make and gcc and a toolchain and then flash it.
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
Now here appears several letters symbols can say when editing with gedit .ko files and zImage

---------- Post added at 10:33 PM ---------- Previous post was at 10:31 PM ----------

Ok, Thanks, I did a C++,C#,Basic course.
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
Ok, Thanks, I did a C++,C#,Basic course.
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
For your information, I don't have overclocking problems on v3.2. No freezes/reboots/black screens. Well, actually when I set CPU max freq. to 1832 MHz for the first time the phone rebooted, but since then it's working well. Tomorrow I'll try to set the CPU to 1944 MHz.
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
I have news! Now I installed StryFlex ROM in my device and I tested Helium Kernel, and It's stable :), I reccomend to you test the kernel in this ROM :fingers-crossed:
[Xperia SP Q&A, Help & Troubleshooting] pilger:
Helium 3.2 here and I'm having random reboots while overclocking. With both 1832 MHz and 1944 MHz.
[Xperia SP Q&A, Help & Troubleshooting] RogueanX8:
Speculation

Hello everyone i'm new member here....

I just want to tell my speculation about swap issue...

I think linux 3.4.110 has a problem with swap.... Maybe you can try another kernel version, like in tangerine v11.1 or other :confused:

Thats just my speculation....

I'm not a developer or programmer.. so i can't guarantee the linux version is the problem.... :)
[Xperia SP Q&A, Help & Troubleshooting] ParanoidNemo:
[MENTION=5727088]Tomoms[/MENTION] Small bug I've found. The frequency for the CPU boost stay on 1400 for core 2 even if you change it. Core1 controls works fine
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
In Kernel Adiutor, in the CPU settings, there are two options that are called Input Boost Frequency Core 1 and Input Boost Frequency Core 2. Be sure to change both values!
[Xperia SP Q&A, Help & Troubleshooting] ParanoidNemo:
Yes i know..changing core 1 works..changing core2 don't
[Xperia SP Q&A, Help & Troubleshooting] angelodim:
Hello [MENTION=5727088]Tomoms[/MENTION], can i flash v3.4 on cm12 1204? I haven't time enogh to change the cm12's version
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Of course.

What happens? The value goes back to 1458? For me it works.
[Xperia SP Q&A, Help & Troubleshooting] ParanoidNemo:
No the values stays as set..but the core2 jump to 1400 when the boost goes active (in my case when I touch the screen)..core1 instead jump only up to the chosen freq
[Xperia SP Q&A, Help & Troubleshooting] angelodim:
And what are the best settings in Kernel Audiutor?
[Xperia SP Q&A, Help & Troubleshooting] ParanoidNemo:
Generally speaking there are no best settings..all depends of how you use your device. And what you want (performance, battery life, a little bit of both)..I suggest to search info for governors (if I remember correctly exist a thread in XDA that explain almost all the governors in term of what they do) and experiment
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
I am testing Helium v3.4.. tomorrow ( day 23 ) I go post new news :D OBS: I am using swap and my cellphone don't crashed ( I tested only 4-5 minutes )
[Xperia SP Q&A, Help & Troubleshooting] Andreus94:
Which app do you use for swap?
[Xperia SP Q&A, Help & Troubleshooting] JhonesMillionBR:
I am using ROESHOFT RAMExpander

---------- Post added at 11:03 AM ---------- Previous post was at 10:51 AM ----------

Hello everybody.

Swap: Swap was stable for 5-10 minutes after it my Xperia SP Crashed, need fix:(

NTFS: Working!:cowboy:

CPU: I can say.. More Stable!? :cool:

Swap program: Roeshoft RAM Expander

Rom for this test: CM12 Latest for now ( Original CWM )
[Xperia SP Q&A, Help & Troubleshooting] Tomoms:
Can you enable swap, make your SP crash again, and send me the last_kmsg after rebooting? It would be really really helpful.