yashsingh1/xdaforums huggingface dataset:
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] dejanktm35:
Hi I have big problem Whit my phone I want ask Freak07 maybe can help me my phone is swich off after havy use of Cpu I test it on thermal throttling test app and is swich of on 34c° phone temperature, is shutdown is not even hot the phone but is shutdown ,I try to find where is that file for overheating to shutdown the phone if u can help me to find this and maybe can fix my problem.thanks
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
There’s a multitude of temperature sensors in the device. Most apps show only some of them and most of these apps display the battery temperature during tests.

If your phone reaches a certain amount (80-100°C) on one of the sensors near the CPU (that are not shown in the app) it might shut itself down.

If that happens while the phone feels very cool and after a few seconds of the stress test something might be wrong. I’d return to stock (and do a factory reset once you have time) and see if the issue persists.

The phone will not shut itself down on 34°C on any sensor.

I wouldn't change the thermal thresholds (the config file), because if something is getting hot, despite you noticing, your device may take permanent damage. (or even a person if the battery combusts)

It could also be that the app is unstable and crashes your device and it’s not due to thermals at all.

I’d return to stock with a clean flash and if the issue persists. If that doesn’t help try to get into contact with asus support.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] dejanktm35:
Thanks for your answer

I contact asus support they say is hardware problem but i dont think so bicouse all start after i update my phone bifore that i never have problem on asus forum alot of people have same problem after update is not just me

I test is shot down even when i charge my phone on fastchargin

What i notice is when my phone in cold room around 17c he not switch off work properly even i make strestest 30 min very stable but temperature on phone not rich more than 30c so this make to think that maybe is not hardware problem

Cpus not get more than 72c i want to find and check skin temperature on device file i make miliont test and everytime shutdown on 34-35c and dont even give me working that the phone is hot
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] uriii13:
Hi [MENTION=3428502]Freak07[/MENTION]

Do you see compatible your kernel with the app Naptime (by Franco)? Do you think it will collapse with your tweaks? You don't recommend tweaks that modify yours, but could this help?

Thanks.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
The kernel itself should be compatible as the app interferes only with the rom/userspace side. However modifying doze can lead to unforeseeable issues.

If you decide to modify your device in that way don´t come here and ask for support if you face issues. :)
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 2.7.2

Hey guys and girls,

Here´s the next update that also includes the source code from the recent OTA: ASUS_I001_1-ASUS-17.0240.2004.9-1.1.185.

Before flashing the kernel make sure to properly update to this firmware.

Other changes include CAF-Upstream, Linux-Stable upstream, Updates to f2fs and others.

Detailed changelog below and on github.

Kernel backend PSI-Support and PSI-Enable Magisk-Module:

2.6.0 introduced kernel-backend PSI support .Asus enabled the userspace low memory killer in the stable firmware update. However they do not use it with PSI like the Pixel 4 and google intends, but with vmpressure levels.

If you´re interested in this topic here is more information.

I personally like the PSI-approach way better and I think google did some excellent work there.

If you want to enable this feature just flash the PSI-Enable Magisk-Module, when you´re on 2.6.0 or higher and reboot.

If you say I like the approach from Asus just don´t flash it.

I´d advise everybody to read the instructions in the OP and follow them. They are written for a reason, because they ensure everything will be working as expected.

Kernel is made for the latest stock rom from Asus, you must update your phone to the most recent Asus update, before flashing the kernel.

Enjoy!

Changelog:

- Include Asus Source Code for ASUS_I001_1-ASUS-17.0240.2004.9-1.1.185 (make sure to properly update to this firmware before attempting to flash the kernel)

- Linux-Stable Upstream to 4.14.184

- Merge CAF Upstream up to LA.UM.8.1.r1-15100-sm8150.0

- F2FS Stable brought to latest state

- patches from kernel/common

I wish you all a nice day/evening!

Download is below :)

Download:

Disclaimer/Important:

Kernel: https://www.androidfilehost.com/?fid=8889791610682870195

Instructions how to flash the kernel can be found in the OP!

But look at this post too :)

PSI-Enabler-Magisk-Module: https://www.androidfilehost.com/?fid=4349826312261798764

Only for Android 10 Stock Rom! Flashable via Magisk Manager!

Brightness Module (reduces minimum brightness):https://www.androidfilehost.com/?fid=4349826312261766808

Only for Android 10 WW Stock Firmware ! Flashable via Magisk Manager.

The module is offered without any form of support. Please do not discuss it here in the thread.

If you face issues, it´s because you accidentally use any form of tweak, app, script, module or some other conflicting mod.

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] samurai18951:
Hi there. With this new kernel and latest A10 build i am all the time on 120hz. Can't switch back to 90 ir 60.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
Nice catch. I'm running exclusively on 120hz so I didn't notice.

I'll debug and update the thread once it is fixed :svetius:
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] samurai18951:
Thanks man for your hard work.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 2.7.5

Hey guys and girls,

The initial release, 2.7.2, for the new OTA had a minor bug. A CAF Patchset that is not compatible with the Asus FPS-Selection made the device only run at 120FPS.

I never noticed, because I run the device exclusively at 120FPS.

This is fixed in 2.7.5. FPS-switching works the same as before. Sorry for the inconvenience.

I´ll keep the changelog from 2.7.2 in this post as well.

Here´s the next update that also includes the source code from the recent OTA: ASUS_I001_1-ASUS-17.0240.2004.9-1.1.185.

Before flashing the kernel make sure to properly update to this firmware.

Other changes include CAF-Upstream, Linux-Stable upstream, Updates to f2fs and others.

Detailed changelog below and on github.

Kernel backend PSI-Support and PSI-Enable Magisk-Module:

2.6.0 introduced kernel-backend PSI support .Asus enabled the userspace low memory killer in the stable firmware update. However they do not use it with PSI like the Pixel 4 and google intends, but with vmpressure levels.

If you´re interested in this topic here is more information.

I personally like the PSI-approach way better and I think google did some excellent work there.

If you want to enable this feature just flash the PSI-Enable Magisk-Module, when you´re on 2.6.0 or higher and reboot.

If you say I like the approach from Asus just don´t flash it.

I´d advise everybody to read the instructions in the OP and follow them. They are written for a reason, because they ensure everything will be working as expected.

Kernel is made for the latest stock rom from Asus, you must update your phone to the most recent Asus update, before flashing the kernel.

Enjoy!

Changelog:

- 2.7.5: Fix a bug introduced in 2.7.2 that broke FPS-Switching

- Include Asus Source Code for ASUS_I001_1-ASUS-17.0240.2004.9-1.1.185 (make sure to properly update to this firmware before attempting to flash the kernel)

- Linux-Stable Upstream to 4.14.184

- Merge CAF Upstream up to LA.UM.8.1.r1-15100-sm8150.0

- F2FS Stable brought to latest state

- patches from kernel/common

I wish you all a nice day/evening!

Download is below :)

Download:

Disclaimer/Important:

Kernel: https://www.androidfilehost.com/?fid=8889791610682870543

Instructions how to flash the kernel can be found in the OP!

But look at this post too :)

PSI-Enabler-Magisk-Module: https://www.androidfilehost.com/?fid=4349826312261798764

Only for Android 10 Stock Rom! Flashable via Magisk Manager!

Brightness Module (reduces minimum brightness):https://www.androidfilehost.com/?fid=4349826312261766808

Only for Android 10 WW Stock Firmware ! Flashable via Magisk Manager.

The module is offered without any form of support. Please do not discuss it here in the thread.

If you face issues, it´s because you accidentally use any form of tweak, app, script, module or some other conflicting mod.

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Rixonovy:
Bug

Hi :)

It's an issue that affects animations too. We can reproduce it for example in settings: go to settings, tap on section for example Battery, Storage and animations looks like running 60hz. Whatever I choose in settings.. 120,90,60.. these animations runs in 60hz (probably or just laggy). Thanks for your hard work, cheers

EDIT:

You just pushed an update, while I was writing this post :D NVM then, thanks for fast update
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
The bug with FPS being stuck at 120FPS is fixed.

Though I have no idea about animations. Animations have nothing to do with the kernel. They are controlled by the ROM.

So I´d be interested in getting some feedback from you: did the update help your animation issue as well?
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Rixonovy:
Yeah, its fixed for me. It was weird issue. Btw I'm on latest stock Asus firmware. The issue was only in UI animations, transitions. It looked like it was locked to 60hz, and the rest to 120hz :D because normally I'm using constantly 120hz. I asked on telegram and few users seen this also (on latest stock and havoc). But, anyway now it's buttery smooth :) Thanks for your job ?
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Gayrat1999:
Hello, someone will help me unlock the bootloader, I beg you! Firmware cost beta 10. I tried to do this through the arch, I won’t get some kind of bug.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] uriii13:
Lul, see the threads posted on the forum! :)
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Mercury Galf:
friend you have not thought about doing an OC gpu
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Ariac Konrel:
Please read post #275.

The developer stated they were not interested in overclocking this device as there would be no practical benefit from it (which I agree especially since the ROG Phone 2 features a binned SoC that runs at a higher clock speed).

In that same post, someone included a commit for the ROG Phone 2 for a GPU overclock if you would like to build your own kernel. :)
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] DanielM1418:
I've been using this kernel for a while now and I've only just realised it's been the cause of a minor annoyance I've been having.

When I have this kernel installed I cannot use the Aero Active Cooler and instead get a warning when I plug it in - "Please use the cooler fan that comes with this phone". I've attached a screenshot.

Has anyone else had this issue?

[IMG="Aero Cooler Error"]https://i.imgur.com/5yOO17Q.png[/IMG]
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
No, my cooler is working just fine when I attach it. can’t reproduce the issue.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] DanielM1418:
Very strange.

I was on 2.6.4 this morning and it did not work. I updated to the latest Asus FW and the cooler worked on the stock Kernel before installing Kernel v2.7.5 at which point it stopped working again.

It's not something that will keep me from using this great Kernel. Thank you for your hard work.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
Are you using magisk? If so which version?
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Ariac Konrel:
This happened to me on stock as well as on this kernel.

I believe it to be related to the that that I converted the unit from CN to WW.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] DanielM1418:
I am on version 20.4 of Magisk. It must be something funny on my end, nobody else seems to be having this issue. I'll live with it and update this post if I ever discover what is causing it.

Interesting that it happened to you on stock. My device was always WW so I haven't converted it but perhaps I've flashed one too many things at some point! :P
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
Are you using magisk in core only mode? With modules disabled? That would break the fan for example.

Do you use other magisk modules and are they working?

After flashing the kernel and rebooting, you should see a magisk module in magisk manager called “AK3 Helper Module”. Did you accidentally remove or delete it?

After flashing and booting up again, can you do the following command in terminal?

first do:

su

Then grant superuser access if asked.

Then do:

lsmod

If that gives you some output please paste it here.

Now plug in the fan and run the command again:

lsmod

And paste the output again.

I'll attach a screenshot how it should look like. First lsmod shows kernel modules (not related to magisk modules, kernel modules are drivers not built into the kernel but externally so they can be dynamically loaded ) without fan being plugged in. second lsmod shows the kernel module for the fan is being loaded correctly (ml51fb9ae_inbox appears). When unplugging the fan module gets unloaded (third lsmod command).
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] DanielM1418:
You were bang on! My Magisk was in core-only mode. I must have restored to a TWRP backup when this was set at some point and then never noticed.

Thank you for taking the time out of your day to troubleshoot this. I've bought you a cup of coffee via paypal.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
Thank you very very much for the donation and the friendly words! It´s greatly appreciated :)
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Mercury Galf:
could you tell me what I need to be able to create a kernel or modify it
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] dvx2550:
has anyone tried with the latest version 17.0240.2007.27 ?
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] sunilnair007:
Yup ! No issues so far, working fine !
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
You need a linux based build environment and recompile the kernel with the changes you want to apply.

There are guides on XDA on how to start :)

I plan to update the kernel later this weekend with the changes from the new source code :)

Most of the changes we had already by merging several upstream repos in the past :svetius:
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 2.9.0

Hey guys and girls,

Here´s the next update that also includes the source code from the recent OTA: UL-ASUS_I001_1-ASUS-17.0240.2007.27-1.1.204.

Before flashing the kernel make sure to properly update to this firmware. It´s on July Security patch.

Other changes include CAF-Upstream, Linux-Stable upstream, Updates to f2fs and others.

Detailed changelog below and on github.

Kernel backend PSI-Support and PSI-Enable Magisk-Module:

2.6.0 introduced kernel-backend PSI support .Asus enabled the userspace low memory killer in the stable firmware update. However they do not use it with PSI like the Pixel 4 and google intends, but with vmpressure levels.

If you´re interested in this topic here is more information.

I personally like the PSI-approach way better and I think google did some excellent work there.

If you want to enable this feature just flash the PSI-Enable Magisk-Module via Magisk Manager, when you´re on 2.6.0 or higher and reboot.

If you say I like the approach from Asus just don´t flash it.

I´d advise everybody to read the instructions in the OP and follow them. They are written for a reason, because they ensure everything will be working as expected.

Kernel is made for the latest stock rom from Asus, you must update your phone to the most recent Asus update, before flashing the kernel.

Enjoy!

Changelog:

- Include Asus Source Code for UL-ASUS_I001_1-ASUS-17.0240.2007.27-1.1.204 (make sure to properly update to this firmware before attempting to flash the kernel, you must be on July security patch!)

- Linux-Stable Upstream to 4.14.188

- Update Clang to 11.0.3 prebuilt from Google

- Merge CAF Upstream

- F2FS Stable brought to latest state

- patches from kernel/common

I wish you all a nice day/evening!

Download is below :)

Download:

Disclaimer/Important:

Kernel: https://www.androidfilehost.com/?fid=8889791610682896264

Instructions how to flash the kernel can be found in the OP!

But look at this post too :)

PSI-Enabler-Magisk-Module: https://www.androidfilehost.com/?fid=4349826312261798764

Only for Android 10 Stock Rom running a custom kernel with PSI enabled! Flashable via Magisk Manager!

Brightness Module (reduces minimum brightness):https://www.androidfilehost.com/?fid=4349826312261766808

Only for Android 10 WW Stock Firmware ! Flashable via Magisk Manager.

The module is offered without any form of support. Please do not discuss it here in the thread.

If you face issues, it´s because you accidentally use any form of tweak, app, script, module or some other conflicting mod.

It´s optional and can be used standalone without the kernel.

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] tonyg12345:
Are you planning to make it an overclock kernel?
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] reg66:
I think dev already answered this with a 'no'.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] tonyg12345:
oh sorry I didn't notice it
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] moinakJumpy:
Wigig not working after flashing the Kirisakura kernel.

After flashing the ROGII phone with Kirisakura_Yoda_Q_2.7.5 custom kernel, the phone's Wigig interface is not turning on. Wifi seems to be working fine.

Selected dmesg output while trying to turn on the Wigig on the phone :-

[ 1.314010] [ 1.314010] (CPU:7-pid:1:swapper/0)msm_11ad soc:qcom,wil6210: GPIO <qcom,wigig-dc> not found, dc GPIO not used

[ 1.314023] [ 1.314023] (CPU:7-pid:1:swapper/0)msm_11ad soc:qcom,wil6210: GPIO <qcom,sleep-clk-en> not found, sleep clock not used

[ 1.314111] [ 1.314111] (CPU:7-pid:1:swapper/0)msm_11ad soc:qcom,wil6210: soc:qcom,wil6210 supply vdd not found, using dummy regulator

[ 1.402578] [ 1.402578] (CPU:6-pid:1:swapper/0)msm_11ad soc:qcom,wil6210: for WIGIG segments only will be dumped.

[ 1.402611] [ 1.402611] (CPU:6-pid:1:swapper/0)msm_11ad soc:qcom,wil6210: CPU boost: will use cores 4 - 5

[ 1.402620] [ 1.402620] (CPU:6-pid:1:swapper/0)msm_11ad soc:qcom,wil6210: msm_11ad discovered. ffffffcb22e4d080 {\x0a gpio_en = 131\x0a gpio_dc = -2\x0a sleep_clk_en = -2\x0a rc_index = 0\x0a use_smmu = 1\x0a pcidev = ffffffcb219a1000\x0a}

Thanks.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
you´re correct wigig functionality is currently broken. I don´t have any wigig related device so I can´t test that myself.

Thanks for the excerpt from your log. However these logs are directly after the phone started booting (approx 1 second into the boot process), 20 seconds before you actually booted into the OS, so it´s not the log from when you actually turn on the feature.

But I could reproduce the issue myself and gather a log. It might be that there´s no way to get it working at the moment due to ThinLTO and CFI.

I will take a look at it and try to see if I can fix it! :)
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] moinakJumpy:
Thank you Freak07.

Could you provide the logs you have noticed while turning the feature on?

[Edit]: Also, I have equipment related to Wigig (802.11ad). If you need any help, let me know.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
So it seems I managed to fix it hopefully looking at the log. wigig should work fine now.

Can you please test the kernel linked below and confirm with your wigig equipment?

to anybody else. this is not an official release. Everything "should" work, it´s the kernel I´m running at the moment myself. :)

If you decide to flash it and face issues, please provide logs as described in the 2nd and 3rd post :) thanks.

https://www.androidfilehost.com/?fid=8889791610682904370
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] ausaras:
Thank you!

Just wanted to thank [MENTION=3428502]Freak07[/MENTION] for this custom kernel.

I got my ROG2 a week ago. Immediately updated to Android 10. Was very annoyed that I could not use system gesture with Nova Launcher and the battery life was not stellar despite the 6000mAh battery. So, I downgraded to Android 9 just 3 days after I got the phone.

Battery life was better in Android 9 but Android 9 just was not as well put together as Android 10. Also, the phone UI kept crashing when I edited the build.prop to disable the navigation keys. So, I upgraded back to Android 10 after just 1 day.

To my surprise, editing build.prop to disable navigation key does not crash UI in Android 10. So now, I am using Nova Launcher with a navigation gesture app (Edge Gestures). I also flashed Yoda kernel (also the PSI magisk module) for the first time. After using the phone for a few days, I can definitely tell battery life dramatically improved when compared to the first 3 days that i was running Android 10.

Thank you for the fantastic kernel!
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] moinakJumpy:
Thanks for the Wigig fix

Thank you [MENTION=3428502]Freak07[/MENTION]

The updated kernel worked in turning on the Wigig. I tested it with an 802.11ad router.

Would you be able to upload/send the modified kernel code? (not as an official release, but maybe on a different git branch)

Thanks.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] shivang94:
Thanks a lot for this [MENTION=3428502]Freak07[/MENTION]! Had been waiting for this as well. I do a bit of research with WiGig and that sometimes involves modifying the wil6210 driver.

If you could provide the latest source code for the kernel with the changes you made to get the WiGig module up and running that would be awesome.

Thanks again for the great work!
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
pushed the updated source :)

you need to put all kernel modules inside the system/vendor/lib/modules folder of my kernel.zip and make sure to use all latest changes from the source I pushed. :)

magisk needs to be installed when flashing the zip for the modules to be overlayed correctly.
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] ckr4356:
First of all thanks for the great work I've been using this kernel for a while

However I recently updated the firmware on my phone manually and therefore had to reinstall the kernel however I when I check for the kernel version to make sure everything is fine and dandy I get "kernel version: unavailable" so I'm not sure what's up with that anyone have a similar situation? If so how did you correct it
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] reg66:
Use fk manager or ex kernel manager
[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] carlsmad:
I would like to try this kernel. Is this flash and forget or do I still have to set some things after flashing?