yashsingh1/xdaforums huggingface dataset:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] darkensx:
Hi um not sure if it's your kernel doing this or my phone or what is the real cause but it only happens if i install this kernel so leads me to think something with the kernel. After i install this kernel i lose the ability to connect to my PC via USB (fastboot, adb, storage etc) and also OTG stops working... Any idea how to troubleshoot what is going on?

Currently running: SKQ1.210821.001.WW_Phone-31.0210.0210.272-0 release-keys
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
you need to setup a build environment, get familiar on how to build a kernel and do a lot of research. There are plenty of guides on XDA once you start searching.

One of those guides is here, that might be a good starting point: https://xdaforums.com/android/software-hacking/reference-how-to-compile-android-kernel-t3627297

as [MENTION=5082239]MrxSiN[/MENTION] already said, the SD865+ is basically on overclocked sd865, with better binning.

I know other devices with sd865/+ already had their GPU pushed to about 900mhz, but I won´t be doing this.

Read the OP and you will know what this kernel tries to achieve.

There is absolutely no reason to overclock the GPU, other then to see it´s possible (we know from these other devices it is) or to get higher benchmark scores on a BenchMark app (antutu) that is banned from PlayStore.

There is no advantage. No game will profit from this. Your device will heat up way more quickly and throttle faster.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Devthor1487:
thanks for explaining ???

any more topics to study to create kernel?? I will be grateful to u and will give u credit whenever I create kernel pls any more info on kernel development for beginners ?and about adding features to it?? thanks for replying ???
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Try to successfully build a stock kernel first. Use the guide I linked to you as a guideline. If something is unclear, google is your best friend.

If you google you will find more guides, but the one I linked you is probably one of the best.

After you have the stock kernel running, you need to learn how to use git, then you can add features to the kernel.

It’s a long road and it will require a lot of research and effort from your side, if you never did something similar before. good luck!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Blink003:
My refresh rate has greyed out after flashing the latest kernel. I am using the .70 update
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
I don't think the kernel can cause the setting to be greyed out. This is controlled by the framework. Your issue originates somewhere else.

It’s working fine on my end. No issues switching refresh rate.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Blink003:
I think I'll just reflash the ROM again. Thanks man.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Blink003:
I found what causes it. When I tried to uninstall the hardwarestub it greys-out the refresh rate option. But on stock kernel I didn't experience it.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Why do you want to uninstall this app?

The kernel is not related to that app. But disabling/freezing this app on either rog2 or 3 causes refresh rate to be greyed out on my phones. No matter if stock or custom kernel.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Blink003:
I converted CN to WW and its always on my notification area so I want to get rid of that app.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Just hide the notification. That app seems to be part of the system. Deleting it can cause all sorts of issues, as you see. If it's not possible to hide it, you have to live with the notification.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Blink003:
Where should I flash your kernel slot A or slot B? I am using TWRP rn.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
The kernel will be flashed to your active slot automatically. Just follow the instructions in the first post :svetius:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
[MENTION=3428502]Freak07[/MENTION]

Hi and thanks for your work ;)

I just installed your kernel, after trying the excellent work of tbalden; to check the kernel version with EXKM I see this information:

Linux version 4.19.81-cleanslate-o-151 etc... etc...

It's correct? I have updated the kernel with EXKM.

Thanks :good:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
no that´s not correct. you´re still on tbaldens CleanSlate kernel.

Seems like something went wrong for you. Restore the stock boot.img patched with magisk that´s matching your current firmware via fastboot or TWRP. Then do a full reboot and make sure you´re on the stock kernel for your firmware.

Afterwards flash my kernel following the instructions in the OP. :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
Thank you, everything is fine ??
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
No changes in .78 firmware. Latest release can be flashed :svetius:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
I tried several times to run manually update (firmware.zip in the root of the sdcard); notification update appears, but the update fails.

I'm waiting full version :good:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Yes you need full firmware zip if you’re unlocked and rooted.

Here’s the link:

https://dlcdnets.asus.com/pub/ASUS/...S_I003_1-ASUS-17.0823.2008.78-1.1.63-user.zip
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
Thank you [MENTION=3428502]Freak07[/MENTION] ??
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
Edit... connection problem.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
i just tried, the link works fine here :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
Oh, no.... the connection problem created a double post, I downloaded the file without problems :good:

Thank you ;)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] ryu091:
Hi mate, Injust updated to Firmware WW-17.0823.2008.78 and the kernel was .70 now is .78

https://www.asus.com/us/Phone/ROG-Phone-3/HelpDesk_BIOS/
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
https://xdaforums.com/asus-rog-phon...ra-1-0-0-asus-rog-phone-t4155505/post83609625

No changes in kernel source from .70 to .78.

You can just flash the latest release here.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] LRNZ09:
Successfully flashed with the latest unofficial TWRP
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] jcliu0:
hello can i flash this after the latest cleanslate?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Danishblunt:
Is KCAL support built into the stock kernel? And if not could you add it into your latest build?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Captain_Throwback:
XDA Rule #1: Search before posting.

https://xdaforums.com/asus-rog-phon...ra-1-0-0-asus-rog-phone-t4155505/post83408961
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] shanelovestell:
Would undervolting help keeping temperatures down?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Blink003:
yeah but I doubt this kernel supports undervolting
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] monkboy24:
I'm still on firmware .32 and have no plans on going to the latest firmware as it breaks 5G connectivity for me. I wanted to know if the lastest kernel build would work with firmware .32?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
[MENTION=3428502]Freak07[/MENTION]

Sorry, no need to update the sources? (*.98).

Thx!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Unfortunately I can’t tell you as I don’t know. Backup your boot.img before flashing the kernel so you can flash it through fastboot in case you’re ending up in a bootloop.

You need to open the kernel.zip and adjust the following line in anykernel.sh to match your current security patch state:

supported.patchlevels=2020-08 - , or just delete the data after the "=".

I’ll update the kernel here and bump the thread when I find time :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Blink003:
Thanks for this!
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] monkboy24:
Thanks for the reply and thank you for the kernel its running great. I was indeed able to install it on the older firmware ?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] MrxSiN:
Idk it just me or placebo, but it feels a lot smoother than before. By smooth I mean no micro stuttering as before.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
Sorry, mine wasn't an eta request. I just wanted if the "old" kernel was compatible with the last update.

Thanks for the new kernel! ?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] monkboy24:
It's definitely not a placebo as this thing feels much smoother and much faster. And it seems like all the apps are opening super fast in comparison to stock
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] mascian:
I confirm: much smoother! Great work ?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
no kernel changes on .99 firmware. 1.5.0 should be good to flash :)

Here´s the link for the full firmware zip in case anybody needs it:

https://dlcdnets.asus.com/pub/ASUS/...S_I003_1-ASUS-17.0823.2009.99-1.1.76-user.zip
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] cylent:
Does the version number 1.2.3 work with 2008.78?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Yes.

Why not update to latest firmware? :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] cylent:
Need a rooted boot.img and can't find one.

Or is this rooted?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
You should not install boot.imgs rooted by others. Always flash boot.imgs rooted on your own device.

You can extract boot.img by yourself from full firmware zip linked a few posts above using this tool:

https://xdaforums.com/nokia-7-plus/how-to/guide-how-to-extract-payload-bin-ota-t3830962

Then patch the extracted boot.img with magisk 21.0 or greater.

Or you can download the magisk.zip linked in the OP (21.0).

Then use twrp to backup your stock unrooted boot.img. You can flash magisk. zip in twrp, boot to OS. Boot Back to TWRP, backup boot.img again, this will be your rooted boot.img.

Do a reboot and either flash the kernel in twrp or via kernel manager. :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tuxing:
Using kirisakura kernel since last 2 weeks. Device has been buttery smooth . Thanks a ton to [MENTION=3428502]Freak07[/MENTION] for the great kernel.

Having been noting some fluctuation in performance on 1.50 and asus xx.99 rom. Sometimes device seems less smooth and on doing geekbench test both single and multi core scores seems to be significantly affected. Also noted increased battery use, some overheating while charging when this performance issue occurs. Not concerned about geekbench scores but just wanted to let [MENTION=3428502]Freak07[/MENTION] know. Rebooting the device solves the issue temporarily.

I am using color changer pro, may be that is the causing the issue. But occurence of issue seems to be random.

Attached is a long screenshot of geekbench scores over time to show the performance fluctuation. ( Benchmarks were done after closing all background apps)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Hey :)

thanks for the report and the detailed post. Sounds like your phone is thermally throttled, when your geekbench scores are low. There might be an app or a service in the background that´s either requesting resources or is stuck in the background, thereby heating up the phone by constantly requesting resources.

This would also result in a hotter device when the phone is being charged. One thing to keep in mind when fast charging, the device reaches the thermal limit (about 45 degrees C) and then charging is being slowed down, after a bit it picks up again. That´s normal.

I don´t use any apps that overlay the screen, so I don´t know what effects they can have on the phone.

I´m not really gamer, but my ROG never got hot, the last few weeks. When I do something resource intensive (editing a video for example) it gets definitely warmer (especially in the heatsink area), but never really hot.

To check for an app that´s running in background:

Install a terminal app on your phone.

When the issue happens open the terminal app.

Type "su" without the "" and grant superuser request.

then type "top" without the "" and rotate the phone to landscape.

Check which app/process/service is on top of the list, while you don´t touch the phone. If something is requesting more than 30% CPU constantly, you probably know what´s happening.

Maybe that will help you :)

I´m quite sure it´s not the kernel itself, because otherwise the chance not everybody is affected is quite low. But let´s see where you get with this. :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tuxing:
Thanks [MENTION=3428502]Freak07[/MENTION] for the detailed reply.

Just tried top in termux. Results show logd is always using 10-20% cpu, system is the only other one using more than 10% cpu. Googling logd cpu usage showed magiskhide may be responsible for it. Shall try top when performance issue occurs and shall report here.

Thanks
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Interesting. I never saw logd using that much on my end and I’m using magisk hide as well.

That might indicate that something isn’t right on your end and logcat might be logging tons of lines.

Do you use any mods/tweaks/scripts or other root apps to alter your phone, besides the screen overlay app?

Here’s what it looks like on my end when I’m not using the phone and it just sits there.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tuxing:
I had Cx explorer , root explorer , color changer pro , termux and ex kernel manager with root permissions. Rebooting after disabling root access for Cx explorer , root explorer and ex kernel manager, seems to have reduced logd cpu usage to 1-3%.

Strangely on first reboot after disabling root access for these app, had issue on boot with system apps closing and icons not opening. Reboot solved the issue. Earlier when I had disabled autostarting apps using asus power manager scan , I had a similar issue on reboot.(also xmode stopped being auto enabled on benchmark apps after this)

Shall try enabling root for ex kernel manager again as it's needed to install kernel. Also at boot ex kernel manager was showing successfully applied setting , while I had enabled no special settings at boot.

Other changes I have done to system is hiding the status bar with adb and hiding navigation gesture pill with wm overscan. Not using other scripts or magisk modules.

Thanks a lot [MENTION=3428502]Freak07[/MENTION] for the tip.

Attached is a screenshot of my root apps.

Update - Think I spoke too soon, logd has gone up to about 10% after 45 minutes of reboot. Need to test more.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
I didn´t think these root apps would cause this. Very interesting though. My uptime is currently at 2days 5 hours and logd doesn´t appear in the list of top-command.

When logd is at the top could you just take a logcat and a dmesg at that time? You can easily do so via EXKM app :)

Is the issue with lower geekbench scores/hot phone also happening when logd is at the top? Or do these seem to be separate things?

Would be interesting to see the top-command´s output when this other issue is happening, as well as a logcat and dmesg from when it´s happening as well.

Maybe the logcat can give a clue if it´s some app or service in the background. :)
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tuxing:
After another reboot logd is now again about 1-3%, dmesg and logcat at this time is attached. Will get a logcat and dmesg when logd ramps up or issue of slowing occurs.

Thanks
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
I see. You need to rotate your phone to landscape. The important part (process names) is on the right :) see screenshot.

No hurry, take the logs when the issues occur. :svetius:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] iampatricktan:
I wonder if any other people using this kernel could give some feedbacks. Would like to try it.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Read the OP. Then you’ll have an idea about the kernel.

In case you want to return back to stock you can just flash the stock firmware in twrp or restore the stock boot.img.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] iampatricktan:
Tried installing via TWRP and ExManager, it gives me an error. Unsupported Android Security patch level. My R3 is running .99
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Either you’re not having .99 properly installed, or you’re running a module or other tweak that changes your security patch level. Magisk hide prop for example.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] iampatricktan:
I installed .99 by putting the raw file in the root of the phone. For the modules, I don't have any modules installed.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
RAW firmware isn’t flashed by putting it in the root of the phone.

https://xdaforums.com/asus-rog-phone-3/how-to/unbrick-tool-unbrick-asus-rog-phone-3-t4151443

I don’t think you’re running .99 firmware, otherwise the kernel would flash fine.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] iampatricktan:
All working now. Reflashed Raw file and then flashed the kernel.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] cylent:
failed to mount apex /dev/block/loop6

getting the following error when flashing version 1.5.0 on latest 99

failed to mount apex /dev/block/loop6

is it safe to reboot ?

and yes i am on magisk 21
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Yes it's safe to reboot.

That apex error is unrelated to the kernel. Twrp should have this error fixed, I know there is work being done on that :svetius:
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] cylent:
Thank you.

So it's a twrp bug then?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
I´m pretty sure [MENTION=1162986]Captain_Throwback[/MENTION] can answer this question better than me.

I don´t know which version of TWRP you used, but either the latest or one release that´s going to be pushed on XDA sometime soon should have this error fixed.

It also can´t hurt to capture a recovery log when you see that error line pop up (instructions for that are in the TWRP thread) and post it on the TWRP thread.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Captain_Throwback:
That should be fixed on the latest released TWRP.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] cylent:
Installed. I am using exkm. Is there another kernel manager besides cleanslate to further tweak the kernel options?
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
What do you want to tweak?

I don’t think you need any other kernel manager besides those two.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] tuxing:
After 2 days of no reboot, logd have gone to 30-50% cpu use and seems to be affecting system performance. Dmesg and logcat is attached.
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Hey , thanks for the suggestions and the nice words about the project.

I’m not going to include mq io. mq isn´t quite stable and ready for android yet.

CFQ is integrated in the android system and using any other IO-Sched conflicts with some parts of android, since A10 if I´m not mistaken.

It´s advised to use the kernel as it is and not play with any tunables. Some tunables are set after boot and it´s not beneficial to change them.

You´re free to experiment, but just a few things I noticed:

I don´t think these screenshots are from my kernel or the most recent release, are they? Some of the tunables don´t exist on my kernel...

Due to upstream 4.19 changes to the CAF scheduler, the changes to schedutil don´t make as much sense.

Limiting system-background to cpus 0 and 1, might cause more harm than good, but it might just be fine.

cpu-boosting big and prime cores is unnecessary, the powerhal does that in case it´s needed.

as mentioned above: CFQ is integrated in the android system and using any other IO-Sched conflicts with some parts of android, since A10 if I´m not mistaken. deadline generally doesn´t work very well with android. Google also experimented with it and (luckily) reverted it quite quickly:

https://twitter.com/i/web/status/1004142658757881858
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Joelbrentbell:
Hello I have been having terrible standby battery drain on this phone I'm talking loosing 14 % overnight without even touching the device. Could someone please look at my attached bug report and see what's causing this? its driving me nuts. I'm also on the Kirisakura kernel
[ASUS ROG Phone 3 ROMs, Kernels, Recoveries, & Othe] Freak07:
Hey, thanks for the logs. unfortunately there´s nothing standing out to me in the logs. So I can´t tell you where that issue originates from on your end.

The kernel log looks fine. logcat doesn´t seem like something is obviously wrong or spamming it, besides the asus stuff.

I wasn´t able to reproduce the issue on my end. Was using the rog 3 as my main phone for the last 14 days to try to reproduce your issue, but no issues even after 6 days without a reboot.

So unfortunately I can´t help you any further or tell you what´s causing the issue on your phone.

Use Better Battery Stats to monitor what happens during the night on your phone. I´m losing between 0-3% during a night.

Better Battery Stats is available for free on XDA. Make sure to remove it from asus auto-start up or background optimization service as otherwise it will be killed.

There´s no problem with logd caused by this kernel as far as I´m concerned. I can´t reproduce any issue. The problem with logd is most probably caused by using 3rd party mods or apps.