yashsingh1/xdaforums huggingface dataset:
[ASUS ROG Phone 5 / 5s] Freak07:
Feature Documentation:

Here´s a brief documentation about some of the features included in the kernel that can be changed as the user desires.

They can be accessed via either terminal, scripts or for example EXKM manager ( tools -> user settings).

CPU-Frequency Limiting:

Another option is CPU-Freq Limiting. You can now limit the CPU frequency to a few different levels with a sysfs interface. Original implementation is from @tbalden, I only changed it to be accessible via traditional root methods.

Main Switch:

sys/module/cpufreq/parameters/batterysaver

Set this option to "1" to enable the feature

Max-Frequency Selection (Input boosts, such as scrolling boost or app launching boosts will still apply, if touch boost restriction is not set to 1)

sys/module/cpufreq/parameters/batterysaver_level

Set this to "1" to restrict the max CPU-Freqs to 1,7GHZ/2,1GHZ/2,49GHZ (Little Cluster/Big Cluster/Prime Core)

Set this to "2" to restrict the max CPU-Freqs to 1,6GHZ/1,7GHZ/2,0GHZ (Little Cluster/Big Cluster/Prime Core)

Set this to "3" to restrict the max CPU-Freqs to 1,49GHZ/1,4GHZ/1,6GHZ (Little Cluster/Big Cluster/Prime Core)

Touch-Boost Restriction

sys/module/cpufreq/parameters/batterysaver_touch limiting

Set this to "1" to restrict the powerhal from boosting over the limit defined in batterysaver_level

Set this to "0" to allow the powerhal to boost above the values defined in batterysaver_level, but only during interaction with the Phone!

Screenshots:

View attachment 5309899View attachment 5309901View attachment 5309903

This is for example very useful during gaming to prevent additional heat, if not the highest performance from the CPU is required. Check if the game is running fine on level 1 or 2, and you´ll notice much less heat. Powerdraw will be reduced as well.

Another very useful trick while doing video calls or long extended navigation sessions with google maps to preserve battery or keep the phone from heating. Especially during summer if the ambient temperatures are high.

This is a very easy way to preserve battery or reduce heat without toggling the battery save mode in settings as that restricts background data usage, which can lead to delayed notifications.
[ASUS ROG Phone 5 / 5s] Freak07:
How to pass Safetynet after unlocking the bootloader

With the introduction of hardware backed safetynet attestation, passing safetynet has become a lot more complicated.

Some probably remember a while ago, flashing a kernel that forced some flags was enough to pass it. However these days are gone.

Below is a short guide how to pass safetynet on phones that are flagged to use HW attestation (such as the ROG 5).

1. Make sure you´re running latest magisk canary.

2. In Magisk Manager enable both zygisk and deny list.

4. Download the latest Universal Safety Net Fix from @kdrag0n ´s github for zygisk cand flash it in Magisk Manager. Reboot.

5. Profit
[ASUS ROG Phone 5 / 5s] Freak07:
Github Repository containing buildable standalone stock kernel

Building the ROG Phone kernels standalone, was always tricky and the ROG Phone 5 is no different.

I was asked for help in getting the stock source buildable a while back.

Now I got hands on a Rog Phone 5 so I created a branch on my github, which is essentially a barebones stock kernel, just configured to be built standalone.

Toolchains can be obtained from googles repos. GCC you need to reset the commit history.

Buildscript is called build_kirisakura.sh.

Please check my AK3 installer as to not miss the kernel modules that should be included.

Commits · freak07/Kirisakura_ANAKIN_ROG5

Contribute to freak07/Kirisakura_ANAKIN_ROG5 development by creating an account on GitHub.

github.com

Have fun and good luck on any project started.
[ASUS ROG Phone 5 / 5s] Handeman707:
Great news and a very good kernel!, maybe you can also deploy a custom rom with this great kernel with your team in the near future for the ROG 5 phone. Thanks Anyway! 💪👍
[ASUS ROG Phone 5 / 5s] mohammed510:
Excellent kernel My Rog is noticeably smoother now! I wonder if there's a hidden 165hz refresh rate like in Rog 3?
[ASUS ROG Phone 5 / 5s] thieftime1980:
first of all, thanks a lot for your work I'm starting tests
[ASUS ROG Phone 5 / 5s] Anubarak16:
How did you install it? Never flashed a kernel.zip without twrp to be honest 😅 and I don't want to damage something
[ASUS ROG Phone 5 / 5s] mohammed510:
Use Ex kernel manager
[ASUS ROG Phone 5 / 5s] moxy93:
how are the temperatures ??
[ASUS ROG Phone 5 / 5s] twistedumbrella:
Just a heads up: Something with installing the kernel breaks 7DS (com.netmarble.nanagb) completely and causes NieR to lag terribly (games with 3d graphics). I started running it with logcat and the first three or so runs failed, but then it magically worked on the fourth. It started crashing again when attempting to exit and restart. Double checked and it doesn't happen on stock (even w/ magisk)

Spoiler content hidden.
[ASUS ROG Phone 5 / 5s] Freak07:
hey :)

thanks for the catch.

can you please check if the attached build fixes any of the issues you encountered in those games?
[ASUS ROG Phone 5 / 5s] twistedumbrella:
That got it down to every other time
[ASUS ROG Phone 5 / 5s] Freak07:
the lags in nier are gone?
[ASUS ROG Phone 5 / 5s] Freak07:
can you please try if this fixes the crashes on that one game and the lags on the other game on your side? :)
[ASUS ROG Phone 5 / 5s] twistedumbrella:
Fell asleep for a bit, but I'll try it with the new one.

This one stopped the crashes. I would assume the last one probably already fixed the lag, but it's also fixed.

CAF doesn't really test games, which is fun for a gaming phone. Cyanogenmod (Lineage) was notorious for breaking them, too. It was all about camera, sensors, response, and boot time.

All the prep is there, but it looks like you may have forgotten to add the driver. I wasn't sure if that was intentional.
[ASUS ROG Phone 5 / 5s] Anubarak16:
One other question: I know this is the wrong place to ask this but I wanted to make sure to reach both developers for this phone.

Currently the ROG 5 has Bluetooth audio lags while gaming with headphones that don't support aptx. I never faced such a delay with any other Android phone / device. Even my 4 year old OnePlus 5 has no noticeable delay and I tried it as well with other older 200€ devices.

Could this eventually be fixed via software solution (via custom kernel settings)?

Sorry if this is too offtopic - I'll report myself if you wish to.
[ASUS ROG Phone 5 / 5s] Freak07:
nothing to do with CAF.

the lag issue was because of not building a QGKI kernel and therefore a config for msm_performance didn´t get enabled.

The crash issue was caused by a commit of a mmap backport series. I compared the code around that to the zenfone 8 and my kernel there. No crash there, but the rog5 does not like that one commit for whatever reason.

Thanks for reminding me about wireguard! :) I forgot to run the script to patch the kernel repo to include it before release.

I´m about to release an update so I´ll push my updated source.

Sorry for the crashes and lags 😇:rolleyes:
[ASUS ROG Phone 5 / 5s] Freak07:
Hm. I´m not the biggest gamer. Is there a game where I can easily check that?

I just tried these two videos with my google pixel buds:

It seems to be what I would expect of BT headphones there.
[ASUS ROG Phone 5 / 5s] Lossani:
Also. In auto mode does the regular system UI work on either 60 or 120? Because there's no 90 FPS
[ASUS ROG Phone 5 / 5s] Freak07:
The fps from game doesn't say anything definitive. Does the game actually render at 120fps now? Or is it rendering at 60fps, while panel/system is at 120?

60/120. There's no 90fps accessible by default on rog5.

There's a prop command to make it appear in settings, but it looks horrible as the panel isn't supposed to run at that.
[ASUS ROG Phone 5 / 5s] Lossani:
It is rendering to up to 120 FPS, sometimes it has FPS drops as usual so I can tell it is actually rendering up to 120 FPS
[ASUS ROG Phone 5 / 5s] Freak07:
I´m not sure if I can add a simple switch as it´s no longer only handled by kernel. I could on ROG3, but FPS handling is a total mess on android and everyone does it differently. ROG 3 and ROG 5 also handle this differently.

The problem currently is if I make a switch in kernel, while the system still has 60fps as an option to switch to everything will get scrambled and messed up.

The test.zip I sent earlier has 60fps removed completely, so the system (framework) doesn´t have that option available at all, so nothing (at least from short testing) can get messed up between, kernel, hal and framework.

So that option might be the best and only one for now.

I can make zips with only 120fps and only144fps. It´s just a difference in the dtbo.img.
[ASUS ROG Phone 5 / 5s] Lossani:
Alright that works for me, I will test how battery life goes with this no 60 FPS kernel and will stick to this for a while. I don't really think I need the 60 FPS back for now. Thank you for your support!
[ASUS ROG Phone 5 / 5s] Einheit-101:
Isnt it theoretically possible to undervolt the CPU? I could do that on my Droid Turbo and it made the CPU a lot more efficient.
[ASUS ROG Phone 5 / 5s] Freak07:
No, no longer possible on modern QCOM socs.
[ASUS ROG Phone 5 / 5s] RicoMartins:
oHello friend, with again to solve a doubt... With this kernel I can't turn off the screen if something is in the background like Spotify, YouTube Premium etc... It starts flickering and I'm out of control until I restart With this kernel I can't turn off the screen if something is in the background like Spotify, YouTube Premium etc... It starts flickering and I'm out of control until I restart
[ASUS ROG Phone 5 / 5s] RicoMartins:
Remembering that I use 5S on Android 12 latest version
[ASUS ROG Phone 5 / 5s] Kenkin0:
Could you make a version with only 144fps please? Thank you

Also is it possible to enable Low Brightness DC Dimming (reduce screen flickering) on 120/144 fps? Currently this setting under Display is only available for 60fps.
[ASUS ROG Phone 5 / 5s] Lossani:
Hello,

Can you tell me where did you change the forced FPS to remove 60Hz in your kernel source code? I want to test around with that when I have time to. Also I would like to get a 144 Hz only version kernel as well.

Thank you for your time!
[ASUS ROG Phone 5 / 5s] luki2411:
is there a difference in battery life on this kernel compared to stock ?
[ASUS ROG Phone 5 / 5s] Freak07:
If that's your only concern I suggest to read the OP to get a feeling what this project is about. :)

Some optimizations in the kernel can improve battery life, while others might not. Every user has their own unique usage pattern, so nobody is able to answer that question decisively for you.

Using the battersaver feature that solely restricts max cpu freqs might help with your goal though.
[ASUS ROG Phone 5 / 5s] Godly1111:
Could this kernal fix the wif issue?
[ASUS ROG Phone 5 / 5s] Lossani:
Hello,

Do you think it's possible to port the drive for the AeroActive Cooler 6 to ROG Phone 5 kernel? Because it only detects it as a external keyboard.
[ASUS ROG Phone 5 / 5s] Freak07:
sorry it seems I completely missed to reply.

You can just remove the other timings in the display dtsi file and flash dtbo.img afterwards.

asus added the driver for the rog6 cooler already in the latest update. but as far as I´m aware there will be a version of the cooler made specifically made for the ROG 5 with the pins.
[ASUS ROG Phone 5 / 5s] Lossani:
Weird because it only recognizes as external keyboard and doesn't even power up the fan or LEDs. It fits perfectly though I don't know why they don't just allow it to work.

Also does it have a difference in Kirisakura kernel and 5S stock?
[ASUS ROG Phone 5 / 5s] Freak07:
Kirisakura_ANAKIN_ROG5/rog6_nuc1261_ms51_inbox.c at master_release_s_1 · freak07/Kirisakura_ANAKIN_ROG5

Contribute to freak07/Kirisakura_ANAKIN_ROG5 development by creating an account on GitHub.

github.com

driver is straight as in the source from asus. the firmware/rom side must support it too I guess and that´s where the problem is.
[ASUS ROG Phone 5 / 5s] Lossani:
Thank you! Do you have any scheduled project for ROG Phone 6 Kirisakura kernel?

Also, do you know how to force panel to fixed FPS number through root, su, shell, adb command or any other way?

Thanks!
[ASUS ROG Phone 5 / 5s] un-droid:
Hi Freak,

I haven't tried your kernel yet but I would like to say that your contribution with regard to rog phone 5 custom development is very well appreciated. I can tell that based on the responses that I read.

I would really like to try this kernel of yours to see if it improves my phone's performance especially on gaming. Taking into consideration that ROG Phone is a gaming phone, it should be able to handle any AAA games currently available on the market. However, I am not quite satisfied on how it performs. I mainly play Call of Duty Mobile and it works fine when on low graphics and max frames. However, when putting it to max graphics and max frames, it works fine at the start but then it start to lag after few minutes. I am quite skeptical to try this kernel of yours hoping it will improve my gaming experience. I am very sure that it is all due to poor kernel which causes the lag/frame drops since my room is well airconditioned and I have a pretty decent internet speed.

My question is, since I am on the latest firmware (31.0810.1226.128), am I required to downgrade first to the firmware which is the current version of Kirisakura is designed to?

Second, when a newer version of the custom kernel is released, should I flash the latest firmware released by ASUS and repeat the same process in installing the kernel?

Hope to hear from you soon.

Thanks!
[ASUS ROG Phone 5 / 5s] Freak07:
hey,

thanks for the kind words. :)

I´m afraid what you´re running into is thermal throttling. I don´t think a custom kernel will solve this problem completely by itself as the thermals are not controlled by the kernel, but rather the thermal daemon.

Have you tried with different thermal profiles in armoury crate app?

Have you tried limiting max cpu and gpu freqs via armoury crate for that specific game?

Once a new firmware update is released it usually takes me a little while to update the kernel and include updates in the source in case there are any.

If you update, just flash the firmware and then follow the steps to flash the kernel, correct.
[ASUS ROG Phone 5 / 5s] Freak07:
Attached is a kernel with updated source to latest firmware UL-ASUS_I005_1-ASUS-31.0810.1226.128-1.1.201-2209-user.zip as well as other updates.
[ASUS ROG Phone 5 / 5s] Lossani:
Thank you again!

Any plan for Kirisakura for ROG Phone 6? And also is there a way to disable or make the thermal daemon more permissive?
[ASUS ROG Phone 5 / 5s] un-droid:
After a day of tinkering, I was able to install the kernel. But before that, I have meddled first with the thermal profiles and other settings but no luck. I still experience frame drop.

With the kernel, first thing I have noticed is that the scrolling and opening of applications(e.g. settings), works fluidly. To me that is really good sign. I am still installing back all my games and other applications hoping they all will run just like what I expect them to be (no lags or at least will have minimal framedrops).

I still have to check the other improvements but I would like say that you have really done a good job! Thank you so much and looking forward for more of awesome works!
[ASUS ROG Phone 5 / 5s] HarshaPraveen:
Rog5s😢
[ASUS ROG Phone 5 / 5s] LeonardoVNN:
WW-31.0810.1226.131 update please
[ASUS ROG Phone 5 / 5s] un-droid:
Hi Freak,

Hope you are doing well.

November security patch has just been released.

Any plans on updating Kirisakura? I'm still using it by the way. Best custom kernel for the ROG Phone 5 so far.
[ASUS ROG Phone 5 / 5s] TheWolfOne:
Can I still use armory crate or game genie with this ROM?
[ASUS ROG Phone 5 / 5s] un-droid:
Hi there.

This kernel is based on stock as per the developer/author. All features the stock firmware has.. works fine using this kernel which includes game genie and armoury crate.
[ASUS ROG Phone 5 / 5s] TheWolfOne:
Where's update for .131 firmware?
[ASUS ROG Phone 5 / 5s] Freak07:
Update to 2.2.0

Hey guys and girls,

Alright so here´s the next update.

Source drop from 31.0810.1226.139 is included. Linux-Stable Upstream to latest and a few other things as well.

After flashing the kernel.zip there will be a magisk module in magisk manager called AK3 Helper Module. Do not delete it.

The link to the latest WW firmware can be found following this link.

More changes in the Changelog below:

Changelog:

- Update kernel source with 31.0810.1226.139

- Linux-Stable upstream bumped to 5.4.228

- other improvements and tweaks please check github

Androidfilehost is currently broken. Zip is attached to this post!

Download:

https://www.androidfilehost.com/?w=files&flid=328305

Instructions can be found in the OP!

But look at this post too :)

Have fun, enjoy the kernel and your phone.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea to keep development going: http://paypal.me/freak07
[ASUS ROG Phone 5 / 5s] NoodlesBoy:
Hi Freaks, I really want to try your kernel but I have no luck. Last year, I bought the 5s not the 5. Do you have plan to develop this kernel for ROG 6 ?
[ASUS ROG Phone 5 / 5s] putra langlang:
Is it suitable in rog 5s??
[ASUS ROG Phone 5 / 5s] RicoMartins:
I'm using it on the 5S everything seems to work fine... I just haven't compared it yet to say if it made a difference
[ASUS ROG Phone 5 / 5s] Lossani:
Hello, do you have any plan to bring this kernel to ROG Phone 6?
[ASUS ROG Phone 5 / 5s] calvinfoo:
@Freak07

Running 2.1.4 on 31.0810.1226.128

Kernel battery saver settings set to 2 on boot. But after 1 day the settings dont work anymore ~1day after. Changing the battery saver level doesnt change anything. Only works when i reboot phone. Any idea why that is?
[ASUS ROG Phone 5 / 5s] calvinfoo:
going to try update to the latest firmware and 2.2.0 to see if this problem persists.

@Freak07 is it okay if I dirty update with 31.0810.1226.139 firmware? OR should i revert to stock before attempting to manual flash the zip file?
[ASUS ROG Phone 5 / 5s] Freak07:
Yeah you can just flash full firmware zip to update the phone. It will overwrite the kernel installation.

As to the other problem:

It's the thermal daemon getting stuck , so unrelated to the kernel. Asus needs to fix it, I can reproduce it on stock kernel as well.

It happens if the phone warms up and is put to sleep while it's still thermally throttled.
[ASUS ROG Phone 5 / 5s] BACkJ5:
(y)

Thank you

​
[ASUS ROG Phone 5 / 5s] SriDatta007:
Guys attention here!

plz guide me how to force headphone ohms to 300/600/1000 I've tried turning the main switch to " y" and set left and right values to 5 but it's not working(the values reverting back to default "3") in mix plorer. THANKS IN ADVANCE 🙂✌️
[ASUS ROG Phone 5 / 5s] Freak07:
I guess that´s an issue with the file manager.

EXKM app allows you to add custom tunables, works fine on my end or use terminal with echo command.
[ASUS ROG Phone 5 / 5s] Freak07:
Update to 2.3.0

Hey guys and girls,

Alright so here´s the next update.

So it seems a bunch of code that was added on A12 to the QCOM kernel (also the stock kernel) causes the freqs to be stuck after a while. I reverted that code and the issue never happened again. This is not the cleanest solution, but it works for me.

After flashing the kernel.zip there will be a magisk module in magisk manager called AK3 Helper Module. Do not delete it.

The link to the latest WW firmware can be found following this link.

More changes in the Changelog below:

Changelog:

- Update kernel source with 31.0810.1226.146

- fix max frequenices getting stuck (as reported here)

- other improvements and tweaks please check github

Androidfilehost is currently broken. Zip is attached to this post!

Download:

https://www.androidfilehost.com/?w=files&flid=328305

Instructions can be found in the OP!

But look at this post too :)

Have fun, enjoy the kernel and your phone.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea to keep development going: http://paypal.me/freak07
[ASUS ROG Phone 5 / 5s] calvinfoo:
Hey man thanks so much for working on the issue!
[ASUS ROG Phone 5 / 5s] dracoolia:
Thx for work ;)
[ASUS ROG Phone 5 / 5s] dracoolia:
Thx for your awesome work, i have a question, it's possible to have a script for your Kernel to enable the full power of Rog5 (xmode+) without a fan connected, I'm searching about because I'm using black shark cooler, because of that I can't enable and enjoy the full power of Rog5, scenario profile enable the 2.85ghz bit don't give all the power if we don't connect the useless aero cooler 😭
[ASUS ROG Phone 5 / 5s] Freak07:
Kernel for A13 is mostly finished.

Now giving the powerhal a rework.
[ASUS ROG Phone 5 / 5s] Shareed2k:
Hi, in android 13 kernel, there is a new option pkvm, can we enable it ?
[ASUS ROG Phone 5 / 5s] Freak07:
Without el2 there's no use anyway. QCOM has that restricted deeper than kernel.
[ASUS ROG Phone 5 / 5s] Freak07:
Update to T_1.0.0

Hey guys and girls,

Alright so here´s the next update. :)

Entire kernel was rebased and build from scratch to add A13 support. All previous features and improvements are added back. That means this build is only for A13!

After flashing the kernel.zip there will be a magisk module in magisk manager called AK3 Helper Module. Do not delete it.

The link to the latest WW firmware can be found following this link.

More changes in the Changelog below:

Changelog:

- Update kernel source with WW-33.0210.0210.200

- bump kernel base to latest linux-stable and qcom

- add improvements to RCU, which makes this code more efficient and reduces energy consumption a tiny bit

- rework powerhal -> less frame drops, smoother animations

- other improvements and tweaks please check github

Androidfilehost is currently broken. Zip is attached to this post!

Instructions can be found in the OP!

But look at this post too :)

Have fun, enjoy the kernel and your phone.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea to keep development going: http://paypal.me/freak07
[ASUS ROG Phone 5 / 5s] petrukgrinder:
Hello, i've question. is ur kernel can be use on ZS676KS or ROG 5s? thank you
[ASUS ROG Phone 5 / 5s] CaumDog:
Hi.

Does this Kernel address or increases performance when reading data stored in the Rog Phone 5S's file system?

I do play Diablo Immortal and in scene transitions the performance of my Rog Phone 5s is far below other competing models. Other players, with the iPhone 12, 13 and 14, for example, load the scenario up to 3s or 4s faster than me. In some cases it is the difference between winning or losing in vault pvp.

This is very frustrating, because the Rog Phone's performance in general is excellent, but when it needs to access the file system, it suffers.

Thanks in advance.
[ASUS ROG Phone 5 / 5s] 12th month:
How i can flash this without a TWRP?
[ASUS ROG Phone 5 / 5s] Nam 82:
I've never flashed a kernel before, but i just got a rog 5 with this kernel

Can I simply flash stock rom on this phone?

Can anything bad happen?
[ASUS ROG Phone 5 / 5s] BACkJ5:
Use EXKM or FKM app to flash
[ASUS ROG Phone 5 / 5s] 12th month:
If I have the 33.0210.0210.221 and the last update for the kernel is the 33.0210.0210.200 it won't work no?