yashsingh1/xdaforums huggingface dataset:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Let's me see about that one, But that feature is available in GSI ROMs.

https://xdaforums.com/project-treble/trebleenabled-device-development

Try RR or Havoc ROM.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] gorast358:
I'm using stock with arter kernel. Gsi have too many bugs for me. I hope you can do it. Thanks.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
it's more than kernel thing. and it's not available in these gsi

---------- Post added at 11:33 AM ---------- Previous post was at 11:30 AM ----------

well i (with friends) found out how to fix Bluetooth audio and there's no bug left if you are using latest phh gsi or pixel experience. (Expressluke broke his havoc on latest versions)
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
Couple of questions.

1. I see this is a zip, so do you have to already have the arter kernel installed with TWRP to install this?

2. If that is the case, can this then be installed over the arter kernel?

3. Will it keep TWRP?

Also, thanks for the development, Razer Phone 2 development is quite scarce.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
1. You can directly flash this via Arters Kernel using TWRP..

2. This will overwrite your current kernel which is Arter's Kernel.

3. Yes.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
As for the next version I'm already implementing new features from other devices like blue_schedutil, KLapse, and other more optimization and patches.. This might take 1-2 weeks.

Regards,

TrinityHaxxorX
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Reznor7:
Is incoming SMS working now? Is the fingerprint scanner reliable? Play Store device certification? Those three things have kept me from using any GSI I've tried.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
Thank you for developing this! Is f2fs compatible with this kernel as well?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
Both always worked for me.

also fingerprint got fixed on 10
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
I've already KLapse, USB2 Fastcharge, KCal and other more goodies :" .. Hope you enjoy my next version of my Kernel.. Ofcourse F2FS is supported since my Kernel Source is from Arter's Kernel Source.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
you just changed title to TREMBLE and your beta kernel doesn't boot on TREBLE GSIs (and probably on stock too but i haven't tried it yet)
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Fixed it sorry!! The kernel works well if it's flashed via TWRP... Here's the fix if it's flashed via fastboot.. Kindly download the img and flash it.

If there's any problem kindly provide kernel log.

But everything works well now.

Here's the V2.0 BETA compiled using Linaro Toolchain.

Flashable Zip:

https://trinitydata.ap.ngrok.io/s/ioxXApst6yq4aHY

.img File:

https://trinitydata.ap.ngrok.io/s/g2Nm36XeTmdZt6S
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Warrior1988:
Kernel is great!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] gorast358:
This is example of Always-on Fingerprint .it is not working on our phone.

https://xdaforums.com/apps/magisk/module-fingerprint-mi-5-mi-note-2-t3660179
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Alright I'll look into it at a Kernel Level Perspective.. I'll be creating A module for that one. No promises yet but I'll add it to my To Do list.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] gorast358:
Thank you for the time and effort .
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Can SELinux be flipped to permissive on this kernel on GSI? With arter97's kernel SELinux cannot be changed to Permissive, though it might be due to GSI.

I need SELinux permissive so I can make use of Tincore for gamepad accessories like FeiZhiWee2T. Without SELinux permissive Tincore will not be able to see my controller.

EDIT: Just flashed and the answer is no. I think most likely both the kernel and GSI need to be able to support permissive in order to do so.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] sako_1930:
check you dm
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] ziggary:
God bless you my man 🙏🏻
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DRMMR144:
The link to the kernal is broken.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DRMMR144:
Can you dm it to me? I need it for a guide on how to get Android 11 GSI onto a Razer Phone 2 and it uses the same broken link.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Revan1398:
can i get that dm as well? i need the kernal v4 as well. please and thank you
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] sako_1930:
im not sure i allowed to share the links here but here try this LINK
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Cylow333:
bruh doesnt boot on m7 and on m3 i cant mount sd card and if i even try to mount it as portable my storage setting crashes anytime i click it what am i doing wrong?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Weerawit37:
next update it impossible to oc cpu/gpu clock like pocof1 devices same soc sdm845?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Very much possible, I'll add that at my to do list.. I'm currently compiling Pixel ROM for our device.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] oRAZY:
Hi, unfortunately after flashing the zip through TWRP my partition is encrypted. Any idea how to fix? Don't want to format data.

Edit:

I flashed the kernel to slot a and then changed to b. Then booted. It's only encrypted when I'm on slot a. On slot b it seems almost fine..... Under settings/system info it says trinity r12

So I have arter on a and trinity on b.

I'm also noticing slight Bluetooth stuttering.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] rogeriskira:
Thanks so much for creating this kernel. You're making the RP2 exciting again by looking forward to your updates!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Alright thanks.. UNOFFICIAL GrapheneOS it's basically A AOSP ROM that focuses in Privacy will be available soon in Razer 2 :3..
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Just wanted to stop by with a thanks
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Version 2.0 have been deployed! Enjoy and have a nice day.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
Flashed the zip forgot to immediately flash magisk back. Then I lost TWRP. So I flashed img via adb/fastboot, then booted straight to TWRP and flashed magisk 20.3. All good so far. Thanks dude.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Waiting patiently for this!!

Thanks for your efforts I'm about to flash your kernel for the first time :cowboy:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Generic123.:
It already exists

https://xdaforums.com/razer-phone-2/development/rom-grapheneos-pie-t4049705
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Oh snap!!

Downloading it now!

Got the kernel installed just fine and magisk on stock.

Thanks for sharing this :good:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Weerawit37:
Here let you know

Testing info

lastest stock rom P-MR2-RC001-RZR-190914.3123

Magisk 20.1

f2fs data partition arter97

On Some app and game using gpu heavy load like benchmark work great on Gpu Freq at 835Mhz very stable but some app or game you has to down clock at 767Mhz to work stable

Hope next update will oc cpu like rog phone 1 if it possible

And fast charging

I has Test charging on stock kernel and arter97 kernel run around at 1900-2000mA when charging whatever screen on/off i hope this can be fix fast charging with set parameters kernel

I has test my second device pocof1 and mi mix 3 with custom kernel charging around at 3300-4000mA same sdm845
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
I'll be having A General maintenance of my Server tomorrow at Feb 22, 2020 no Exact time but it will be down.. Thanks! so if you haven't downloaded my kernel kindly do so.. Cause I need to do some upgrade in my Rasberry Pi Server.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
I'm experiencing some system lockups with the latest Trinity Kernel when using some apps. Such lockups do not happen on vanilla arter97 r12 kernel. When the lockup happens, I need to manually reboot the phone.

Not sure where I can start to debug what might be causing the issue, or that I might need to tweak the CPU/GPU parameters a bit to make things stable (I do have SmartPack Kernel Manager).
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Nomyth:
I'm also getting the same lockups with this kernel. They don't appear to be related to any single specific app. I'm still running stock Pie MR1 w/ Magisk, however.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
you can add R to your thread title since arter kernel booted it ?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Kindly install logcat reader then save the whole log then send it to francismico.rosario@benilde.edu.ph via Email

Kindly install logcat reader then save the whole log then send it to francismico.rosario@benilde.edu.ph via Email

Seems like isolated case, I haven't experience that kind of lockups.. But try changing I/O Scheduler to Ondemand/ZEN.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] CentraPlex:
How do you install TWRP alongside this rom?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Yeah, it's random and not specific to apps. Some apps trigger the lockup more frequent than others, though. I'm on Havoc 3.1 GSI. The lockups do not happen on vanilla arter97 r12.

I'll try ondemand CPU governor (instead of default schedutil) to see if it makes a difference. The I/O scheduler is already zen.

EDIT: I just got another lockup when trying to unlock the screen. The lockup happens at random and it seems more likely to happen when the system has been up for a long time, like at least a day. This is with ondemand governor instead of schedutil.

May consider tweak the kernel a bit further with SmartPack... However, I don't have too much time to diagnose this as it's my daily driver and I need to make sure it's usable during daytime.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] CentraPlex:
been reading through this thread some so does that mean this has twrp built in?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
Arters twrp with it, yes.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
It seems the lockup mainly hangs all display activities. The system may be still running underneath. When the lockup happens, in rare cases the display can still respond for a short while before completely frozen in place. I suspect the issue might be gfx-related.

However, I cannot get a logcat right when I encounter a lockup, because I don't have permissions. To be able to communicate with adb I need to first connect the USB cable and manually set USB mode to anything other than Charging Only. But unfortunately, it wouldn't be possible to manually enter the USB mode menu in the wake of a crash.

In Charging Only, the device is not accessible regardless of whether you've authorized the computer or not. This situation has been there for a while and it's unknown whether this is a bug or an intended security behavior (to deter juice-jacking).

EDIT: Will keep the device hooked on the USB port for a few hours to see if I could hit another lockup, but don't get the hope high as while the lockup does happen, it's difficult to make it happen at a time that I wanted to.

EDIT 2: It seems there are some charging renegotiation going on as I'm hearing the charging sound even when the cable is still plugged, although the USB connection is intact, as the logcat is not interrupted. The battery is currently 100%, so something might be happening when the device is fully charged... (EDIT 3: Guess that might be due to the device using more power than my computer's USB port could provide.)
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Alright if that's the case I'll revert some commits that I made.. I'll also release A 2nd Variant of my Kernel where there's only minimal tweaks and without OC but always up-to-date kernel upstream... Vanilla and PerfX. It might take 1-2 weeks I need to fully test it first.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
I had these issues when i tried flashing this via twrp on top of arter. I could hear events but screen was on but blank. I then flashed this kernel via fastboot with the img instead, then rebooted straight to twrp to flash magisk 20.3. All good so far. No lockups.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
arter97 r12 doesn't have any lockups at all. So you suspect the issue might be with the TWRP version? Due to the issues I've been flashing back and forth between arter97 r12 and Trinity. arter97 r12 is always fine without issues.

May consider try flashing the img later to see if that makes a difference.

However, additional information is needed to narrow down what might be the real cause of the problem.

EDIT: I was able to capture a logcat when the lockup happens. Here's the a part of the logcat about the events taking place before it froze completely (after which no more logcat appears).

There are some mentions about ThermalEngine, and yeah, when the phone locks up it's feeling really really hot.

Not sure if this could be of some help in narrowing down the cause of the lockups I've been experiencing with this kernel, though some did mention that the kernel flashed from fastboot (instead of using the TWRP flashable zip) also doesn't have lockups.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DotNetDeveloper:
Is it possible to include some Network feature in the kernel? Like iptables feature.

Sorry, I don't know the exact name of that feature, but I've searching kernels with full iptables features for a while for Razer Phone 2.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Iptables? I think you need A Busybox for that one..
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
thanks for the log, Did this happen in the previous version of my Kernel which is V1?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DotNetDeveloper:
Some iptables are built into the kernel level, and it requires kernel support.

I know AOSP based kernel "suppose" to have it, but not all of the variants do. I know at least ElementalX kernel does have that feature included in its kernel.

---------- Post added at 06:49 PM ---------- Previous post was at 06:41 PM ----------

From searching other forums, I found the kernel has to support TTL in iptables.

https://xdaforums.com/moto-x-style/help/kernel-iptables-ttl-target-t3663100/amp/

The list from running the command in above thread has to include TTL in the list.

Whether your kernel support it or not, and I don't know how hard it is to include that feature, thank you for taking your time responding and looking into the issue!!!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Nomyth:
I can confirm that the lockups also occurred in V1. I flashed it back from V2
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
If that's the case i'll fully investigate it, But at the mean time kindly provide logcats, So I can crosscheck what's really happening.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
I'll try enabling this at the next release, I need to fix first the lockups that other people are experiencing.

config IP_NF_TARGET_TTL

tristate 'TTL target support'

depends on IP_NF_MANGLE

help

This option adds a `TTL' target, which enables the user to modify

the TTL value of the IP header.

While it is safe to decrement/lower the TTL, this target also enables

functionality to increment and set the TTL value of the IP header to

arbitrary values. This is EXTREMELY DANGEROUS since you can easily

create immortal packets that loop forever on the network.

To compile it as a module, choose M here. If unsure, say N.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DotNetDeveloper:
Thanks a lot!

I'm really glad to find someone who is willing to provide support for this great phone!!

Looking forward to your next build!!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] f(x)THaxxorX:
Kindly please report back if this fixes the lockup to those users who experiences it :

if problem persist report back with Logcat. I need to cross check the problem..

Download Link :

https://trinitydata.ap.ngrok.io/s/3spDPBdcXDWwSJA

Download V2.1 Kindly TEST IT FIRST BEFORE I Post it in the OP.

Changes :

974b6f110042 Disable DSB #2
f683aea985af Disable DSB
76d1cb056575 fix powersuspend compile error
9bd9ef62e2e1 powersuspend: add debug sysfs trigger to see how driver work
86c41b37a842 powersuspend: Replaced deprecated singlethread workqueue with updated schedule_work
3919657cb2c5 powersuspend: add power_suspended boolean for global access
0325390f1b5f kernel/power/powersuspend: v1.6.1 add autosleep & hybrid modes
80f2d22a18cf Push Defconfig
1edc3bfe5fa3 kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.7 (faux123/Yank555.lu)
63da01570ccc kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.7 (faux123/Yank555.lu)
bd15372b7b84 kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.6 (faux123/Yank555.lu)
263fc80493c0 kernel/power/powersuspend: new PM kernel driver for Android w/o early_suspend v1.5 (faux123/Yank555.lu)
43029176f2df GenerateChangelog Script
[B]a30b80f32117 Merge tag 'LA.UM.8.3.r1-07300-sdm845.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.9 into master-wip
671d8e5b592f Merge tag 'LA.UM.8.3.r1-07200-sdm845.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.9 into master-wip
ecfd6ac644a0 Merge branch 'master-wip' of https://github.com/fxTHaxxorX/android_kernel_razer_sdm845.git; tag 'LA.UM.8.3.r1-07100-sdm845.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.9 [/B]into master-wip
[B]861060461ec4 Merge tag 'LA.UM.8.3.r1-06900-sdm845.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.9 into master-wip[/B]
0c0ecca0153c Revert "fs/dcache: Set vfs_cache_pressure to 0"
6268ba7689f0 Revert "mm/vmscan: Set Swappiness to zero"
053fdb2fceca Increase adreno bus data limit: 1200:
fad8b809d019 random: Fix comment for unused random_min_urandom_seed
14431ac1929e random: Remove variable limit
90c7fda85003 random: Remove stale urandom_init_wait
f3588b6c2508 random: Prevent add_input from doing anything

If it doesn't fix the lockups, Im planning to rebase the Kernel to Original Kernel Source of Razer MR2 then Merge it with CAF Kernel Source. Instead of using Arter's Kernel Source.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Tried this kernel since yesterday, and at first was able to use it without lockups, until right now another lockup occurred that took me by surprise, when I launched a game. Unfortunately as the phone was not plugged to a computer when it happened, I could not get a logcat. I'll keep an eye on it a bit longer to actually assess the difference. It's possible the changes you made have made the lockups less frequent, but not completely gone.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] ringowu1234:
What kind of lockups are you guys experiencing? If you mean black screen unresponsive to any input (touch input or power button except hard reboot), then I have this issue with arter kernel as well, about once every couple or more days. One thing I notice with this lockup is that sometimes the status bar (top of the screen where signal/ time go) will appear briefly and disappear again.

I haven't try the kernel in this thread yet.

EDIT: Nvm after typing this comment, I went ahead and flashed Trinity 2.0 and immediately experienced quite a bit of lockups in few reboots.

Moving onto 2.1 now, will report back.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Interesting I've never experienced any lock ups not once on either arter nor Trinity since I've owned this phone.

My battery has been kick ass since I've installed Trinity with Warriors deodexed MR2 combo and EdXposed w/ modules installed.

Phone has never ran better actually!!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] ringowu1234:
I just tried R3. The lockup seem to be ok when unplugged, but once I charge the phone, it seems like the phone cannot wake from sleep after some time. This is the same as 2.0, and 2.1 was worse which causes lock ups here and there even unplugged.

Maybe just my phone, but I don't know. I'm back to Arter kernel now, but if you need any additional testing I will do it.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] dizgustipated:
Remove original post, an place this updated notice.

Disregard for now.

I'll take another look in the morning.

If it's too screwy, I'll send you a PM with a better logcat.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] xbe28:
tanks
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Currently testing v3. The lockup can still happen, but less frequent compared to v2.1.

It seems to have a high likelihood to happen, when I attempt to return to a game right after I wake up the screen. Additionally, I had another freeze in similar situation, when I just rebooted the phone, put it to sleep, then tried to run something immediately after waking up. However, the phone managed to snap out of it with a SystemUI crash (that soft-rebooted the system), although this may be less relevant to the kernel.

Besides, I just figured out that if I started the adb-server on my PC as root, and authorize the PC (the adb server instance started with root) one more time on the phone, I can use logcat immediately. In case I get another lockup I may try getting a logcat this way.

Still, until the crash I observed today, the V3 kernel had been run stable for about 2 days. I've only changed a few I/O-related options, like the zen I/O scheduler and a 4096kB cache for both internal and SD card, increased entropy and TCP congestion algorithm bbr. Not sure if lockups happen on default settings, though.

EDIT: I suspect this kernel may still have some wakeup/thermal issue. After I posted the comment I just left it on the charger and went to bed. And when I got up the phone's getting super hot and couldn't turn on the screen anymore (and the PC cannot detect the device in this state when I connected the USB cable).
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Real100slim:
im a noob here...can anyone tell me how to apply this kernel on my phone
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] ringowu1234:
Check out Arter97 kernel thread first. There's an instruction there, flash that, then just install this in recovery afterwards. If you don't understand anything I just said, then you should also check out the first root instruction too.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] carbon271:
Just got around to rooting my Razer phone 2 installed the deodexed stock ROM and arters kernel to set everything up an now running this kernel to see how good it is trying to extend my battery as much as I can since I will be gaming on my phone quite a lot since I did read in the thread that there are issue with the Zip version I flashed the kernel to A&B thru Fastboot to hopefully avoid any of the issues that people may have faced if I do bump into any issue I will let you know overall thanks for the hard work I'm happy to finally get to mess with my Razer Phone 2 took a bit to get to me but want to try all the things that are around.

---------- Post added at 11:14 PM ---------- Previous post was at 10:56 PM ----------

Well I Spoke too soon had a full on lockup just copying my files from PC to the phone twice it really didn't like that I tried to get a logcat but that didn't get me anywhere since the phone just didn't want to be friendly I guess I will be floating with arters kernel for now until the next update comes out.