yashsingh1/xdaforums huggingface dataset:
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] shaifabra5:
Yeah maybe because you modified the rom.

Im currently running Flash Global V3.11 when i tested your kernel no modification made im just rooted with TWRP Installed and i posted this kernel on red magic 5g group on facebook and 3 of us having the same issues as well.

Im gonna try it again on V3.13

UPDATE:

still returning to 490mhz as minimum frequency after gaming and after watching one youtube clip

kinda sad hopefully you can fix this bug on the global rom that nubia provided if you have the time, great kernel for gaming because of the 900mhz boost and the phone can sustain this boost because of the active fan
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] N1ldo:
Why don't I have a roughly similar score?
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Blink003:
Is it possible to overclock the CPU as well? They officially release the specs sheet of ROG Phone 3 it has overclocked CPU (3.091ghz) and an overclocked GPU. I know this phone can keep up with those clocks because of the cooling system but the problem is the battery life. But still, its worth it.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] zayidhs:
I believe Qualcomm blocked overclocking of CPUs quite a while ago from SD845. Only GPUs can be overclocked.

Though I don't know if devs have gotten tools to get around it.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
The 490 bug looks like it's related to the gaming mode APK resetting the min frequency. I can't decompile or recompile APKs so I don't have a way to get around the system reverting to 490 without removing 3 other frequencies. It seems hard-coded in the app that it only expects to see 5 frequencies so to have all working properly, 3 need to be removed. This is in contrast to what my buddy dev on the Op8 Pro can do, but this device is designed differently in how it boots and custom apps that increase frequency clocks. If any devs are good with APKs it's a very simple function call that sets the minimum GPU frequency. The only odd thing I see is that the minimum power level stays at 8 (minimum) which corresponds to the lowest clock speed. That number doesn't change in a kernel manager when the min GPU clock reverts to 490.

I'm off on vacation not near a PC but will try to come up with a stock # of clock frequencies that still scrolls smoothly between them and the Adreno GPU driver. May take a few tries but it's quite easy to modify. I already think 180mhz is too low from using it, it's more of a sleep frequency some suggested going this low but I think the phone design is for 300+. I prefer to use more clocks for better throttling but have to work with what we are given and do the best inside those boundaries.

No you can't raise CPU clocks on 865 devices that ROG device is supposedly using the 865+ or whatever the mid device is named between the 865 and 875. They have blocked CPU OC hardware wise for some time now.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] samussamus1:
Qualcomm's Meizu’s CMO Wan Zhiqiang recently commented on Weibo saying that there won’t be a Snapdragon 865 Plus this year.

We will see!
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
No 865+ this year..

Trust me whatever they call it it's already defined in the source code as a second GPU bin clock for another device ID. So maybe it won't be called an 865+ but there is some device between the 865 and 875 coming out. I have OEM confirmation as well this device exists the name isn't important. I can tell you the top GPU frequency is 670mhz that's it, vs. the 587mhz default on the 865. Still the 865 handles 900mhz GPU no problem the only benefit would be higher CPU clocks. And an extra GPU clock. Which I'll attempt to spoof next time I get near a PC.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Blink003:
Is it possible to overclock the memory clock too? I assumed that 900mhz is the core clock.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] samussamus1:
You're right, that makes sense.

I'm glad they are making a refreshed chip.

On another note, do you think we will see an overclocking tool in the future?

Possibly with a custom ROM?
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
MOD 1.10 BETA gets around the "reset to 490MHz" after game mode bug

So I tried everything in my capacity to override the actions of how this phone works. Basically it assumes you have 5 power levels no matter how many are defined. After it boosts, the phone (game mode most likely) will return to a power level 5. So if you have any more than 5 frequencies defined, the phone will always go back to idle at power level 5. So go check the releases page under the GitHub I'll post a 5 frequency version. I verified after AnTuTu it drops back to 305mhz. This is not something I like to do (remove frequencies) but it works.

https://github.com/mrslezak/NX659J_Q_kernel/releases

MOD KERNEL 1.10 BETA

[MENTION=3945550]MRSL[/MENTION]ezak mrslezak released this 11 minutes ago

This is an updated release of the MOD kernel 1.0 beta - after attempting to defeat the game mode for several days, I realized the phone's software will not allow me to have more than 5 frequency clocks, or after boosting it will always revert to power level 5 (which was 490mhz on the prior build). To get around this, I tried many methods, but the only one that worked was reducing the number of frequencies. I HIGHLY suggest installing SmartPack Kernel manager. It will give you insights into the kernel and how it's performing and it's free. Just root your phone and flash from TWRP. If you haven't already installed Magisk, then install that too. There's a guide I posted on XDA about that. Use the experimental method there is no reason to unlock your bootloader.

Here are the remaining frequencies. I tried to space them out across voltage regulators as much as possible. Will have to wait for AOSP before I can add back more.

900MHz

670MHz

525MHz

400MHz

305MHz

AS ALWAYS, USE AT YOUR OWN RISK!!!
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Don't root a phone if you don't know how...

If you don't know what you are doing, my advice to you is find someone who does. Otherwise you may end up with a bricked phone that is a paperweight.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] shaifabra5:
Thank you! its now fixed and every game feels smoother compared before 900mhz was pretty sweet
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Bryceicle1971:
Well done Matt :)
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] sunu792002:
Any good preset for saving battery life?
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Blink003:
So Jerry admitted that overclocked on 865 can be done with adjusting the kernel. its not even 865+ and its not mandatory to switch to a new processor. What you think? Its possible to OC the CPU? [MENTION=7920168]mslezak[/MENTION]
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
We have to wait for source

So yeah I saw that too, but if there is no source code released + modifications (i.e. their new model RM5GS) then there's no way to do it. Unless another brand posts the code, we don't have anything to go off of. Keep a lookout for CPU increased clocks and I'll be able to do it with the source code, doesn't matter the 865 chipset (can be another manufacturer.) Although I doubt this is actually possible given Qualcomm has blocked devices for 3 generations about on the CPU side... Time will tell. It would just be strange for them to lock for years then unlock the CPU OC is my opinion in the future, especially with a new CPU coming out. They are all about releasing devices with higher clocks at a higher price. That's business.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Blink003:
If we try then it works it will be worth it. Technically he said the 865+ is the 865 with modified kernel code. Then the RM5Gs is the same as RM5G. I hope it works :)
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
You don't know how much effort and help I had getting the kernel source released for the Red Magic 5G. It took A LOT OF PEOPLE to request and MANY EMAILS to support to get anything. We got it in about a month which I think is a record for them. It's usually 3+ months. Unless we do the same thing again (I don't have the time), pressing GitHub issues and emailing support, it's likely going to be 3 months+ unless another company releases the source ahead of time. ROG III who knows last release on the ROG II was about a month or so for source, but if they use an 865+ it won't help at all. If they use an 865 then possibly it can be ported over. Qualcomm is the major factor here, they hate OC'd kernels in general - it messes with their release schedule of just bumping up clocks and selling "new" chipset based phones as a result. Hey they are a business, a business exists to make money. We can't unfortunately change that... So even if the source to bump up CPU frequencies exists, Qualcomm may be blocking that code even though it should be under the GPL.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Blink003:
I doubt that they will use 865+ as if it actually existing. If I refer on what Jerry says its just the adjusted kernel code 865 to make it somehow OC'd 865 what they call "865+" but who knows. And if I refer on what you said earlier, it contradicts the statement of Jerry, that they will not suddenly unlocked it after locking it for 3 years. Lets wait on what will happen in the future. For now, The OC'd CPU is just an idea.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Just a note here - I'll make different versions of the kernel as I add features. 1) stock frequencies 2) OC to 900mhz 3) full 10 frequencies. I think I'm going to try to work on the power saving while the device is on in my next few updates. Note from my past kernel work: this is the very, very hard part. To underclock and add boost to make up for it is no easy task. So I may add a few simple updates before embarking on that. FYI all you need to do to use this kernel without modified GPU frequencies is remove the dtb file from the zip. It's that simple. I do it on my phone with File Manager +, it has it's archive tool built in and won't damage the zip file. My favorite file manager out there. Just delete the dtb, exit the file and it will autosave without changing GPU clocks on you.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Updated 1.2BETA please provide feedback on the power savings you see. It should run less drain (but not while gaming at full throttle!) It is using power efficiency additions that should provide less drain on your device under normal usage.

And BTW another dev found why we are limited to 5 frequencies on the Nubia kernel. It's a persistent .RC script that gets called when the phone boots. There is no way to override it that I am aware of that would be safe or easy to do. However, AOSP is being developed and does not have this restriction. I could probably figure out a way to get over it, now that an unbrick tool has been released, but I prefer to keep the kernel in the safe zone and not add super technical work to get more frequencies enabled.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] CaLix25:
Im expecting to recieve my NRM5 next week Jul. 6 2020 from AliExpress, Can you please guide me in an easy way to root and flash your wonderful kernel?

Thanks,
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Go to the guides section here and look for unlock BL or root. Choose the experimental method. The download file comes with everything you need.

Install TWRP as it says. Wipe your entire data partition after flashing the vbmeta_bl_skip.img in TWRP. Then flash Magisk and this kernel if you'd like. If you have issues booting read the included files that explain how I was able to get past them. The TG group is also helpful. I advise you to first upgrade your device to the newest ROM before under Settings / System Update as well as any future OTAs will require you to unroot and redo the experimental root method again.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Also if no one noticed a few of us have been able to run as high as 940mhz GPU smoothly, it's on the first page. The normal build has a 900mhz max. You don't really need that fast but if you want to see if your device can handle that download both 1.2BETA versions and attempt using them. If 940mhz throttles down to 800mhz, you aren't one of the lucky ones. Everyone who has tried in the TG group to my knowledge has had success though. Will lose you probably 2-3% more battery per hour though on normal use.

But 900mhz is fast enough! Plus it uses less power. It's just for those that want to push their device to the maximum. I'm personally perfectly happy with a 50% GPU OC. A 60% OC is super high.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
The truth of the matter is phones have exceeded software at this point in time. Once the 865 devices drop under $300 I think we'll see a use for these crazy speeds (as there will be far more users in that price range). I just am a tech junkie that likes to see what the best hardware can do personally. If you saw the 3D mark bench I added, it's crazy. And that was at 900mhz, not 940mhz GPU. Of course benchmarks are just that - they don't really show us much other than a set of pre-defined tests that are supposed to emulate various activities on a phone. And algorithms are changing all the time, so I take them with a grain of salt. Truthfully what a phone running this fast needs is battery life enhancement. Which I am working on. There are not many phones 865 driven with developers at this point, and no one has released anything I'd consider a "novel" kernel that does anything a prior kernel hasn't done before. All just basic items.

At some point I'd like to integrate some of SultanXDA's boost functions: https://github.com/kerneltoast/android_kernel_google_bluecross/commits/9.0.0-sultan with the point of allowing the phone to run at lower CPU frequencies and using boost when needed so that the phone "feels" responsive and "looks" responsive, even though it will prefer to run at lower CPU mhz to save power. But it's tax time and I'm busy ATM.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] SmollZ:
Can you run antutu using the 940mhz" oc and please share the results? ?
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
I'm running the 900mhz build as I don't have a need for that kind of speed. One guy scored close to 300,000 GPU on the last test I saw posted. This 1.25BETA even with all the battery savings is still quick. I don't even notice a performance difference but I'm not a gamer so I don't know how it will react in games, and appreciate feedback so if boosting is needed, it can be done by the kernel instead of the userspace scripts in the OS.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
My mem scores have dropped a lot since I started the thread with a clean install. As I have a ton of apps on it now. But GPU went up to 290,000 at 940mhz. Total score was still over 660k with the power savings added. 1.25 Beta release.

I'd prefer the 13hrs SOT + 24 hrs screen off this device is fast enough. We won't actually see the real pure kernel impact to performance until we have a stable LOS release. Then I will add boosting functions time permitting.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] os_man:
ASUS ROG 3 and Lenovo Legion Phone will have SD865+, July 22th and 23th will be announced. CPU will be 3.1GHz, no word on GPU, they say %10 more performance.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Yep as I mentioned the RM5G source already has an extra GPU clock for it 670mhz. I couldn't spoof it though using what worked on the 855 / 855+. There's supposed to be a GPU structure that reads values from the GPU and one of those is GPU speedbin or something like that. There's 2 values 0 and 1, 0=865 1=865+. Even if I set the value to 1 it ignores it unfortunately. Anyway my builds already have 670 800 and 900/940 clocks. And the battery life is insane already on 1.25BETA so check it out.

I'm pretty convinced at this point AnTuTu is just used for sales. Most companies cheat it anyway, the RM5G kicks on the fan as soon as you start it up. I think I saw ROG III with a 645k AnTuTu or so, which means when you actually have one it will bench lower. It's just how it goes... That will be the 16gb $1200 version anyhow or whatever double what this phone costs.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] os_man:
I just wanted to share info, otherwise your work is amazing.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Thanks bud, don't forget to thumbs up the post on the main screen if you like it :)
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] os_man:
Already did :)
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
940mhz 3d Mark 1.25BETA

Not run with a full battery at all, I think we reach the limits of this GPU somewhere around 940mhs it still makes me curious what device can score higher? Of course some devices probably can't run this fast but it's interesting to see the results. Note I realized after running the fan was turned off :) So I'd expect higher results with better cooling, although these are like the 99 percentile of all results (no idea what runs faster, as it doesn't mention). Probably someone with an emulator on a tweaked out PC.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Insyder28:
My GPU did run 940MHz, but with severe artifacting, sadly. I wasn't able to fully complete the 3DMark bench, only Vulkan, on which it did score nicely. I tried a few games, but the artifacting and crashing made most games unplayable, except for Minecraft, which oddly enough didn't artifact at all, even though it was definitely running at 940MHz most of the time. I went a step back to the 900MHz kernel, and everything works great now. I set the CPU to performance in SmartPack, and the AnTuTu score was 650615. Was definitely worth it!
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] lanoblesse:
Amazing job you are my hero ! Looking forward the futures updates if you made them :)
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] lanoblesse:
Here is my score with the 900 Mhz with the EU v4.11 (and maybe some tasks in background) 12GB version / 256GB
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Ah, yes there will be phones that can't run at 940mhz unfortunately. It's part of the "silicon lottery" - many of us can use it, some can't. Always be sure those fan vents aren't blocked at all, it needs that cooling. BTW you don't need to set anything differently in SmartPack for the CPU, the phone will automatically boost when you run AnTuTu. You really only lose about 10K AnTuTu at 900mhz it's not really anything you would notice really, not in normal usage or gaming. Making builds that run the round of 900 925 940 may be useful for some. Although this is the first time I've heard of a RM5G not being able to run at 940mhz, I'm sure you won't be the only one. That's a HUGE overclock. My dev buddies say the Op8 Pro can't run any higher than 900mhz OC'd. But we have a fan and great cooling.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
That's what I like to see - 673.6K very nice at 900mhz. Power savings and still high benches. I think my mem scores will go higher after the next ROM update comes out since I'll be on a clean install, although I have tons of apps installed. When I had the bare minimum stuff installed, mem was scoring in your area. 12GB version / 256GB

I still like the power savings more than the OC personally for daily usage, my battery lasts a long long time.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] raumyasarkar:
Yuhuuuu [emoji16][emoji16][emoji16][emoji16]
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] samussamus1:
Hi all,

Has anyone got the fingerprint back up and working after installing the mod?

Sam
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] raumyasarkar:
It was never lost to begin with
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] samussamus1:
Hi,

Oh okay, my mistake.

I thought the Fingerprint Reader stopped working after unlocking the bootloader.

Is it just a case of locking the bootloader again after rooting and installing any mods?

Sam
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] raumyasarkar:
1.Locking the bootloader does get you your fp scanner back

2.there is a guide on how to get your fp back if you want to stay unlocked, check xda added today or yesterday

3. Through the rooting process available in XDA (the experimental process) you don't actually have to unlock bootloader to root the phone or to get twrp. It's a bug in their bootloader system. Through which you install twrp and root the phone without unlocking the bootloader.

Hope this helps [emoji4]
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] samussamus1:
Hi,

That's great, thanks for the info.

I'll wait for the next update before modifying the system as there are a couple bugs I hope they will address.

Sam
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Alipro786:
RM3 /S Custom Kernel

well i know this is a thread for 5g but i was wondering if a Rm5g overclocked kernel could be made why cant of RM3 anyone would like to help me wouldd be great i will dm u if interested in developing . i have the source code but dont know how to compile.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Moxzot:
The overclock is pretty great, doubt I'll use all its power yet in games but the best part for me is the standby battery, went from 10-15% per day to around 1-2%. Truly awesome, thanks for the great work. Small side note, under moderately extreme conditions the performance is solid, 42c starting temp with a peak of 67.2c and it still pulled off a 650k with minimal throttling.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] luis7654:
I'm sorry if this is something obvious or common knowledge, but I'm new to this and I can't find a tutorial for installing this kernel?
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Moxzot:
I flashed it with twrp, not sure if that's how you are meant to do it because I'm new at it too but it works fine for me.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] luis7654:
yes, thanks! okay so do I just copy the zip file into my phone, then get into TWRP and press INSTALL and choose the zip file?
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Super.Mody:
#TheGreatestKernel

[MENTION=7920168]mslezak[/MENTION]

Thank you Matt!, i got 5h sot full of hardcore gaming!

Gaming all the time 90% + Calling 5% + Texting 2% + surfing web 3%

Pubg around 3hr + 1h other games like asphalt 9 and Subway
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Hey that's 6 hours if you run it to 0% :) Overall I hear 50% more SOT than the stock kernel hardcore gaming. Glad you like it.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Yep then flash Magisk 20.4 or what ever. The TWRP has a built in Magisk 20.3 under Advanced / Root if you want to be lazy.
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Super.Mody:
Yeah my bad, I did put a screenshot for a reference so it shows 20% of battery left which is amazing!

And i agree, there is no comparison between this amazing kernel and the stock one!
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] Qtr1st:
Great job Bro always seen great performance and great battery optimization after installing your kernel through TWRP me and my friends as well

Thanks Matt for improving the phone performance almost around 80k to 90K difference from stock kernel

The next post will be my score using antutu app for reference
[Nubia Red Magic 5G / 5S ROMs, Kernels, Recoveries] mslezak:
Qtr1st AnTuTu scores