yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Hmm no no, the Full Version of the Control App isn't needed to test the Kernel. The Kernel works fine with defaults.

Unfortunately i don't know how i could manage to make a 30 day trial version ... instead there's a demo version to see what u can do with the full version. If u really want to test the App, then just buy it, test for 2 Days, and if u don't like it, then just ask for a refund and u'll get your money back. (and the App stops to work).

The "offer" for getting the App for free, isn't meant for testing .. it's moreover for poor people that can't afford it to spend up to 7 $ for an App.

So again: if u want to test the app, u don't need post #3 Method at all.

Also u're not forced to buy it since u can do all the things the app can do for u over init.d scripts. U only need to spend some time. :highfive:

I'll try to consider this, but respect that it'll be in the overnext Release if it's not too much difference in the Kernel. (i need to download source-code and compare)

User init.d script is located in

/system/etc/init.d/99_user

CPU Governor tunables,

for the little CPU:

/sys/devices/system/cpu/cpufreq/policy0/conservative

for the big CPU:

/sys/devices/system/cpu/cpufreq/policy4/conservative
[Samsung Galaxy S8 & S8+ Cross Device Development] keyboardhouse:
I didnt expected your kernel is working fine, the first time trying this kernel I got a really really bad experience like graphics error and a bootloop.

but I trying to test it again and so I downloaded the kernel (which you said its on the FTP server and un dated), I thought it will be the same as I've installed before but its different this one is working fine, I could be able to play COD Mobile on very high graphics for both multiplayer and battle royale it sure the phone getting heatedup (kinda feel like using an stock kernel and playing games) but im not getting any lag (balanced profile).

there are 2 things I want to ask for now that

- I get 2 version of the apps downloaded from play store which one of them is the demo version, should I keep it or I can delete it?

- the clock speed doesnt change when im trying to change the cluster exynos - m2 quad - core (eg : changing from 2314MHz to 2496Mhz) I dont know is it actually changed or not but when I try to change it after the clock speed is on 2496Mhz but in the stats info on the apps it is 2314Mhz

sorry to make you confused about my language
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Red Symbol is demo, and the Blue Symbol is Full Version. I suggest to keep them both installed .. both apps together only need less than 1 MB of space. Basically the Demo Version almost does nothing except the "Debug" Menu where u can easily generate Logs to share here for any kind of issues. So they will not interfere with settings.

Only works with the Full Version.

To verify: set higher clock, then run any CPU stress App, and see current CPU clock. (with some apps that show current CPU Clock)
[Samsung Galaxy S8 & S8+ Cross Device Development] kote156mza:
Please sopport N8
[Samsung Galaxy S8 & S8+ Cross Device Development] tarikkaya:
please add kvm,virtualization support
[Samsung Galaxy S8 & S8+ Cross Device Development] binhminhluc9h:
For Memory management, it seems to be better than NX kernel, thank [MENTION=5840412]ace2nutzer[/MENTION]
[Samsung Galaxy S8 & S8+ Cross Device Development] jourlys:
Im on LOS16 can use it ??
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
I need some init.d tweaks like last time you gave hmp tweaks.. apps and games lags like hell
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
I would recommend not to wipe dalvik cache only wipe normal cache.. mobile will be useless for more than week as it becomes laggy cause of dalvik cache wipe
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
while playing game gpu only goes upto 260mhz which brings alot choppiness so I think it's not being used..
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
btw didn't got reboot even once from release
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
We will not use a test (debug) kernel for ever .. always max 3 days.

Its purpose is only for stability, not performance. Performance can be later adjusted over app or init.d in stable releases.
[Samsung Galaxy S8 & S8+ Cross Device Development] Thebatman11:
Hello, I tried your kernel, I really love the speed and fluidity it has, but this does not help the battery life, which is also lower than the stock kernel, it would not be better to use EAS and schedutil such as Rz, which has a duration of the best battery?
[Samsung Galaxy S8 & S8+ Cross Device Development] madhatter57:
I will second the above question. My battery life is not very good, even with power save features. Doesn't go over 6h SOT, with celular radio always off (WiFi only) and 85% battery health.
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
got it.. so if it useful for development of kernel then worth. except performance it's stable loved it with freakin 75% zram with no reboot.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I've also noticed that it takes long time, same with stock kernel from my FTP ? - Maybe i've to revert some changes.

But once dalvik-cache is fully optimized then it's quite fast.

With 85 % you should get 8 h SOT.

Maybe that will be better in next official build.
[Samsung Galaxy S8 & S8+ Cross Device Development] madhatter57:
I really hope so, honestly looking forward to that! The reason I installed this was for the advertised 10h SOT but I never got even close to that. Kernel is amazing otherwise!!!
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Hi everyone and dev i have question about samsung miroring with hdmi cable my tv is 4k and i have usb type c to hdmi when i plug it and from samsung dex move to screen miroring i got 4k@30hz i want to set it ti 1080p@60hz how to do that ? I have been search still not found how to set the resolution
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
thanks to your guidance, I set 50% zram level. In AA environmente, mobile seems now better and with no significant lag (considering some performances limitation due to test kernel)

here you are the similar 2 screen captures
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
All right, good job !

I was hoping to see more free swap than free RAM. That looks still painful in terms of RAM/SWAP usage somehow. You confirmed that zRam 75 % is not the best value for speed. Probably it's an overkill to have swap over 50 %. I do still believe zRam at 25 - 50 % works best for Android. For Linux, zRam 75 % is fine. Don't know why some users prefer to have it to 75 %, it really hurts performance.

Maybe you could do one more test with 25 % ? As i don't know what the new default should be in next build.

btw: it should be noted that your 4G signal is a bit low, this could make your live streaming lag and the modem can heat up on low signal.
[Samsung Galaxy S8 & S8+ Cross Device Development] Terminator-ios:
Dev, I before with the kernel version 06/03, I had set zram to 25% and I was going smooth and fast without slowing down, with the stock value of 50% I was experiencing freezes, especially while using the Dji Fly app to fly the drone, which uses a lot of Ram(Over 1,0Gb), even if now with the kernel test 18 it goes a little better, it heats up less, but sometimes it slows me down again while I'm flying.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
Thank you for reply. I google it and find something but can't do it. Well..eventually I'm not expert. But I will try more.

Anyway.. there is an other thing that full app opening takes long time while checking license online. Sometimes it takes approximately 30 sec. and sometimes I have to close and open again. Could you improve that?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You need any Linux distro (live iso image works too) and AIK-Linux tool from XDA.

Then just unpack kernel and grab the boot.img and put it into the AIK-Linux folder.

Now open a terminal emulator inside AIK-Linux, usually with F4 and copy paste the following commands:

# unpack boot.img

./unpackimg.sh --nosudo

Go to split_img and open the file: "boot.img-ramdiskcomp"

edit from lz4-l to gzip and save.

# repack boot.img

./repackimg.sh --nosudo

Now replace the old boot.img with your new "image-new.img" (rename to boot.img) and repack the kernel with zip without to change any structure.

Finally you can flash the new a2n_kernel.zip with TWRP like usual.

No, it depends on your internet speed and signal, only you can improve it.

To speed up a little bit you can disable kernel update check in debug menu. But you will no longer be notified about new a2n kernel on app startup.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
3rd test completed ! another little step ahead in performance, in my opinion.

But zram is overbooked now.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Great !! Thanks, that helps.

It's not a problem if swap is full.

Only important thing is that free RAM is at least 200 MB.

What is your impression now ? - What is better 25 or 50 % ?

Edit:

Uploaded new kernel: Test #23 !

Download for S8

Download for S8+

Again for statbility test !

It has more ram

zRam 25 %

DVFS 65 °C

Optimized DVFS

should be more responsive than test #18.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
I did exactly what did you say. But still i got boot loop with magisk v20.4. Any other idea? I did all of things on windows. AIK Linux has a windows version. Can it effect? Or could you compress test kernel 23 with gzip.

Edit:

After installing test kernel 23 compressed with gzip still boot loop appears even if i dont intall magisk.

Btw i have fast internet connection. Disabling kernel update increases opening speed of app significantly. Thanks.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
lol it can't work because i had disabled gzip support in kernel.

I'll re-upload test #23 with gzip support. But you still need to repack it like you did, it should work.

Will do in 2h.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
Ahahaha 😄😄😄 it's ok. I'm waiting you ,😊😊
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
S8 or S8+ ?

Please add your phone in your profile or signature.

Then i don't need to ask everytime.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
I'm using s8
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Re-uploaded test #23 with gzip support.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@ all

Test #18 is stable ? - no one reboot or soft-reset ?

if so, please flash test #23 and test it for 24 - 48h for stability.

If even test #23 is 100 % stable, then i'll build stable official release with updated A2N App !!
[Samsung Galaxy S8 & S8+ Cross Device Development] Terminator-ios:
So I have already been 10 hours with the test #23, it slips great, better than any other previous version for me, no locks or restarts, it does not overheat even like the previous versions (overheating caused a large battery drain) I think 65 ° is great for dvfs. I have not had the opportunity to fly with Dji fly to test the Ram \ Exchange, but personally I always felt good with 25% of zram, we will see.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
8 working hours flawlessly (test#23)

good performance (single core benchmark in Geekbench is much higher than S8 average)

maybe....more energy consuming than test#18
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Sounds great ! - Yeah, probably we will use the default config from test #23 for the new release. I also like this default config.

In fact the last 2 test kernels have patched HMP for the use of 8 threads for one app. Before it was limited only to the big cpu using its own 4 cores. That's why we get higher scores in mulit-core-score.

btw: u've posted the wrong screenshot, test #23 has 3719 MB RAM, not 3679 MB.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
It works. Thanks again. Now i'm using test kernel 23 with magisk v20.4 and i'm going to test for daily usage.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
sorry, I did not want to attach anything...(my copy/paste error)
[Samsung Galaxy S8 & S8+ Cross Device Development] Terminator-ios:
In fact, in addition to a feeling of speed when using heavy apps like Instagram, the results in multi core have increased on GK compared to previous versions of the kernel, almost approaching those of hmp stock (and now that we will have oc con the official app on the little cpu will be even greater). Best of all, it doesn't overheat even during the benchmark.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I get 392/1466 with kernel default. Maybe your device was not very cold or some apps was running in backgroud.

Sometimes if during the test the phone is checking for new e.mails or so then that would also make the score worse.
[Samsung Galaxy S8 & S8+ Cross Device Development] Terminator-ios:
Maybe because I'm in WQHD and have quite a few apps in the background lol
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
Your device surely ran into either temperature or backgroup app issues because on average, stock S8 scores like 340/1390. So it's most likely the case. I actually believe it's temperature because you placed his DVFS at 65°C. That's not very high. Less headroom for performance.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
First one hour, it is perfect. Smooth and fast. İ dont know what can i say. Good job my friend. i wish no more random reboot and use kernel for ever.

My setting: 1898/2704 little/big cpu freq. 572 gpu freq. Disabled boosts. 25% of zRam.
[Samsung Galaxy S8 & S8+ Cross Device Development] Terminator-ios:
It wasn't hot, on the contrary, it no longer heats up like the previous versions, but I had many apps open in the background and low battery, however they are much superior to the previous versions where I got around 1200 points in multi core.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Great :)

btw: A2N full version doesn't work with test kernels, so you are still on kernel defaults, but good to know it's fine.

Later on new official stable release you will be able to OC like usual.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
this evening, during the usual AA session with live streaming, CPU probably got 60° (DevCheck info till disconnection reported 59° ) and the usb connection was reset and after some seconds re-established (in past it happened more frequently and I had to disconnect and reconnect usb cable to restore normal AA mode).

I do not know what happened (battery was 37°-38°) but the CPU load slightly increaded along with CPU temperature increase.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Everything normal. Maybe LMK killed the AA stuff. Try with LMK 192 MB(default) + zRam 50 % to avoid killing required background stuff for USB/AA. (If you are 100 % sure the cable is OK)

If it doesn't help, you can try to use lower LMK value in full app. (this works even on test kernel)

The hardcore setting would be LMK 128 MB + zRam 75 %. (maximum multitasking, low responsiveness)

But probably LMK 128 MB + 50 % should be fine.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
OMG really? Am I using without oc? So it's better than perfection 😄😄😄
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
that 23 test kernel is good and very stable even with 75% zram.. And of course battery optimization seems to be good.. I'm excited to test final kernel with overclocking..
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
Hey, dev. If you can, please implement some kind of hack in the upcoming official kernal for removing moisture notification.

In test kernel # 18, the notification would not appear randomly and would stay gone after a simple restart . But in the new test kernel #23, the notification is appearing randomly and often. And once it appears it will remain persistent even after restarting the device.

Other than that both test kernels are stable and I haven't experienced and hard or soft restarts.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
I am still not able to set zram @ 50% and then I cannot test the DEV's suggestion.

zram is always set to 928Mb even after a reboot and even after changing to 25% or 75%.

So, the issue of USB disconnection in AA is still present when the system is "overloaded"
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Report dev i install new test kernel when flash magisk 20.4 i got bootloop if not install magisk run normal i from old kernel update hehe
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Update report i got reboot when open story whatsapp i cannot upload log cause no root any suggest to get root ? Or best magisk today ?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
That's right, in new build it'll work like in build #18.

Or if you want to have it better/fully fixed, you could try to provide some useful debug info with ADB.

You need USB cable + PC or you could also execute the command in your phone with terminal emulator app.

So how to do that:

flash build #18 boot the phone without cable, disable water detection in a2n app.

insert cable and if the moisture notification will appear, then tap OK, keep cable inserted and continue with the following:

open terminal emulator app and copy paste the following cmds:

su
dmesg | grep Moisture
dmesg | grep moisture
dmesg | grep Water
dmesg | grep water

post the output here and pray that i'll fix it.

OK, wait for new release, i'll add LMK 64 MB, that will improve it.

In the meantime use LMK 128 MB.

It's Magisk bug, and it's fixed in latest vesions.

Or if you still like oldschool installation over zip in TWRP like me, the latest version is 21.4 and works without patching.

Otherwise you need to patch/workaround it ... chech this !

Just perform a reboot and boot directly in TWRP.

Do not shutdown the phone, otherwise the log is lost.

Then connect to your PC, use ADB and let's go:

adb pull /proc/last_kmsg
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
how to be sure LKM is set to 128 (as per APP's setting)?

and what about the zram that seems frozen to 25% regardless of APP's setting?

thank you
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Check the value in

/proc/sys/vm/extra_free_kbytes

and

/sys/module/lowmemorykiller/parameters/minfree

if it'll change.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
free_kbytes is 196608 with zram 50%

free_kbytes is 196608 with zram 25%

but I have also read 131072 in 1 case but I am not able to reproduce it anymore

minfree is 67000,68000,69000,70000,71000,72000 if LKM is 256mb

minfree is 51000,52000,53000,54000,55000,56000 if LKM is 192mb

minfree is 35000,36000,37000,38000,39000,40000 if LKM is 128mb
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You asked how to check LMK setting verification.

Nothing to do with zRam.

extra_free_kbytes should be 131072 for LMK 128 MB.

zRam like always with termnal emulator

free -m

as for zRam:

App V. 3.5 default value for zram is 50 %.

If you boot with 50 % then it'll not change zram size because the app expect kernel default is also 50 %.

But kernel default is 25 %.

If you want to set 50 %, you have to set after boot to 50 %, then it'll start to resize to 50 % .. and this takes some time.

And on next boot, you have to reset again to 50 %.

Just set 50 % even if it's already set to 50 %.

This is because the app is outdated right now with test kernels, and therefore some settings completely disabled for now.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Uploaded test kernel #25 for verification if we did everything right.

That means theoretically this build should have random reboots like latest release 2021.06.03. If reboot happens, please post the last_kmsg.

In case of soft reboot, reboot the phone then generate last_kmsg from debug menu (a2n app demo) and post it here.

btw: test kernel #23 rock stable ??

Download for S8

Download for S8+
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
Hy dev.

So i have been trying to execute the commands you asked, on pc as well as, on the phone with terminal emulator with no success.

On pc when there is moisture notification present, the phone connects to pc with "unknown usb device ( device descriptor request failed) " . I have tried installing samsung usb driver as well as other fixes present on the internet but to no avail.

On phone i have installed terminal emulator , but it seems like the commands are not properly executing or i am doing something wrong here.

Please check the attached pic of terminal emulator command performed on phone.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
It's right, but no output. Probably you waited too long after the water notification. You need to execute very quickly the cmd after the notification.

Alternatively you can also execute this:

su
cat /proc/kmsg | grep water

then plug the cable.

no output ??

Then abort and try again with "Water", then "Moisture" and "moisture"

This will do live-logging .. and you don't need to be fast.
[Samsung Galaxy S8 & S8+ Cross Device Development] Terminator-ios:
All perfect with test # 23, improved performance and battery significantly.

You did a great job dev.
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
executing the commands on pc is out of option for now, due to "unknown usb" error.

i want to ask if i can do this on phone with terminal emulator installed on phone ?

if yes, then the above commands would execute the way you discribed directly on phone ?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes it works as well.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
After 48 hour, I didn't observe any reboot with test kernel 23. It is stable, fast, smooth and battery drain is nice.
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Report dev REBOOT when on pocket

Test new kernel all default

#25
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Thanks for testing !

All right ! - Random reboots 100 % confirmed and fully fixed in test kernel #23.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
just a remark (already observed in previous much older version): during AA session in car, I am used to have phone calls. When calling, current streaming automatically switches to PIP mode and that's ok. But, after 30-60 seconds and during the call, the data connection is lost and whatsever APP gets closed due to missing mobile connectivity.

could it be explained in some ways?

thank you
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
Soft reboot just happened, going to attach log file either before or after manual reboot as requested
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Which ROM are you using ? Original from Samsung or any other stock based ROMs ?

And did you any modifications on ROM like Xposed module ?
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
I am using latest stock ROM from Samsung with Riru/Lsposed modules
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I don't know for what you need it, but you could try to use the phone without any modification from any Magisk or Xposed modules to see if it's better.

Such modules are well known to cause a lot of problems.
[Samsung Galaxy S8 & S8+ Cross Device Development] Terminator-ios:
Hello @ace2nutzer , I wanted to ask if it is possible to integrate in the next version of the complete A2N app, the Governor management function for the Little CPU such as (Disable boost, up threshold) I think it is very useful for greater performance or savings battery, thanks.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes already did that. :)