[PIE/Q][KERNEL][4.9.223-Upstream][GPU-OC] TrinityKernel R4.0 -(Gaming-Battery Kernel)

Search This thread

rogeriskira

Senior Member
Jun 16, 2011
144
28
Elizabeth, New Jersey
Post#132 has the zip and img files linked.

https://drive.google.com/file/d/10NedASVYuF4ioMDFTOLeEuoeeEREgsc7/view?usp=drivesdk

I flash the img file in bootloader and zip in TWRP

How do you generally flash it? @rogeriskira
Thanks. Well, the same way really I just didn't want to try again because of the boot loop (I got it twice). So, I was being a little careful since it's spotty. (Tried with arter and Trinity kernels). I also sometimes flash zips with FK kernel and that usually works but doesn't work under MR3 for some reason.
 

LSS4181

Senior Member
Mar 13, 2012
498
179
Google Pixel C
Razer Phone 2
Please please please fix the aptx codecs and get rid of Razer's horrible theme engine, I would definitely be willing to donate for that

On stock, aptX was blacklisted by an overlay (there's a thread about it) and could be restored by deleting the offending overlay from /vendor.

On 10 GSI, aptX simply doesn't work. It seems there were some null pointer dereference going underneath when using aptX (as far as what the logcat told me, which crashed the whole Bluetooth stack causing everything paired to lose connection for a while). Since the author of gjf_bt module explicitly blacklisted Android 10 and onwards in recent commits, it's most likely an issue with Android 10 in overall.

EDIT: I'm not sure about the Bluetooth audio codec industry for now... as of Android 10 there are some new codecs included as part of the AOSP, such as LHDC/LLAC... plus there were few aptX-related modules in the Pie/Q era (most of those were in the Oreo era).
 
Last edited:

DeathToy

Member
Aug 3, 2018
43
5
It's not weird like I said with my prev. post it's the Thermal Throttling of Android, Heres you can remove the thermal Throttling go to vendor/etc and you'll see 3 thermal profiles delete those 3 thermal profile but don't blame me if your Phone gets ultra hot like 60-70 Celsius, You've been warned.

But you can try it if your comfortable having A very hot phone even in normal usage. I still need to make adjustments in the Kernel to have A stable thermal output without using stock thermal Throttling..
I'll give that a shot but I wasn't overclocking. I had everything underclocked to 1.3-1.5GHz. Oddly enough, it's actually raising the min frequencies up to 1GHz from whatever I set them to lol. Kernel is rock solid, though. No crashes. Only downside I'm seeing is a lot more drain during screen off times. I usually end the day with ~50-60% battery, but now it gets down to 10-15%.
 
  • Like
Reactions: grv00711

Punk_Oll

Member
Dec 25, 2013
43
7
Hobbiton
Samsung Galaxy Note 10
Hi I was just wondering about Nethunter I used to love messing around with that on some of my old phones, would your kernel work with it?
The thought only crossed my mind last night when I found my tplink WiFi dongel.
Any input would be cool I might just take the plunge and try myself though I don't really have any experience but I do love to learn ??
 

Punk_Oll

Member
Dec 25, 2013
43
7
Hobbiton
Samsung Galaxy Note 10
Good-day! 4.0 have been released.

Working nicely with stock MR3 global feel some much happier now I have a working TWRP backup of my phone (for some reason MR2 + Arter79 always failed to int&ex) this doesn't.

I'm going to have a play with the magisk nethunter and see what happens with AP injection once my USB c adapter arrives tomorrow

But lovely work & much appreciated
 
Last edited:
Aug 21, 2019
16
1
hey i saw you have a new version. Sadly i cant use it. i tried flashing the boot.img via fastboot and it justs sits there with the green fire booting forever. i cant do zips since i dont have twrp (tried to use arter's kernel to get it but it always gives me problems with encryption) so now im on the old trinity. Anyway you can upload a fastboot friendly img file or something?
 

Punk_Oll

Member
Dec 25, 2013
43
7
Hobbiton
Samsung Galaxy Note 10
hey i saw you have a new version. Sadly i cant use it. i tried flashing the boot.img via fastboot and it justs sits there with the green fire booting forever. i cant do zips since i dont have twrp (tried to use arter's kernel to get it but it always gives me problems with encryption) so now im on the old trinity. Anyway you can upload a fastboot friendly img file or something?

I just unzipped the Zip to extract the boot.img on my pc then just flashed that
 

Punk_Oll

Member
Dec 25, 2013
43
7
Hobbiton
Samsung Galaxy Note 10
i did the same thing, and after i did, the system would not boot. Just the green flames forever.

Did you flash it to both boot_a & boot_b I did and was coming from global MR3 stock? If not and you don't have a backup of your original boot.img you'll need to find one for your variant or use the stock image from the razer Dev portal to bring your phone back to life and start over hope this helps
 

LSS4181

Senior Member
Mar 13, 2012
498
179
Google Pixel C
Razer Phone 2
Not sure what's changed but I'm observing some strange behavior with the 4.0 kernel on Havoc 3.5 GSI.

While I can get to the lockscreen much earlier compared to previous kernel versions, the system is not stable at this point and SystemUI would crash (back to Havoc logo) 1-2 times before going stable.

And during one of those abrupt soft reboots my exFAT SD card got fscked up (Issue with SD card, tap to fix which in turn prompts me to format it). Fortunately I'm able to fsck it back to life from TWRP.

The issue is minor, as aside from this instability during system startup the kernel's running mostly stable.

EDIT: I think there might be something like race conditions going on. I'm able to record a logcat of the boot process (this time after flashing an updated GSI it soft-rebooted 2 times during the boot). However, the log content is quite messy and I'm yet to find out anything that might be interesting...

EDIT 2: It seems if I wait for at least 2-3 minutes before unlocking the phone, I could avoid the soft reboots. Probably with this kernel some things finished their initializations too early.
 
Last edited:
Aug 21, 2019
16
1
Did you flash it to both boot_a & boot_b I did and was coming from global MR3 stock? If not and you don't have a backup of your original boot.img you'll need to find one for your variant or use the stock image from the razer Dev portal to bring your phone back to life and start over hope this helps

mm i never ever updated to mr3, flashing it all now. If that works ill dl trinity and patch it with magisk.

ill let you know how it goes

Edit: went perfectly smooth. Trinity and magisk done. Guess it was cus i didnt come from mr3. Thanks
 
Last edited:
  • Like
Reactions: Punk_Oll

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    [ Introduction : ]
    Welcome to The TrinityKernel, Giving the Most recent Bit Patches including new Distinctive features and Optimization(s), When your utilizing this kernel expect 2 weeks regular update.

    WIP THREAD​

    KERNEL DOWNLOAD :
    https://github.com/francisrosario/android_kernel_razer_sdm845/releases/download/4.0/TrinityKernel-kernel-r4-20200512.zip

    Special Features.
    • Upstream Kernel update to 4.9.215 from 4.9.198. Tons of Changes!!
    • KCal ( Change Display R G B Values. )
    • Added Adreno Boost V2.2
    • Added KLapse
    • Added new PM Driver
    • Added USB Fast Charge @ 900mA
    • Added more GPU Optimization
    • Compiled using Linaro Toolchain! with Snapdragon Optimization Reverted to GCC, I'll be using Different CC soon!!
    Full Changelog :
    Code:
    [U][I][B]r4
    [/B][/I][/U]
    
    
    Set to Version 4.0
    defconfig: Changes in SCHED_TUNE
    build_kernel: use 2020-03 for the patch level
    Merge 4.9.223 into kernel.lnx.4.9.r34-rel
    Merge 4.9.222 into kernel.lnx.4.9.r34-rel
    Merge 4.9.221 into kernel.lnx.4.9.r34-rel
    Merge 4.9.220 into kernel.lnx.4.9.r34-rel
    Merge 4.9.219 into kernel.lnx.4.9.r34-rel
    Merge 4.9.218 into kernel.lnx.4.9.r34-rel
    Merge 4.9.217 into kernel.lnx.4.9.r34-rel
    Merge 4.9.216 Fix
    Merge 4.9.216 into kernel.lnx.4.9.r34-rel
    Revert "dynamic eas boost: add 4th level - longer input boost, higher…
    Revert "dynamic schedtunes: boost framework based top-app boost uci h…
    Revert "sched/tune: Create dynamic_boost SchedTune parameter"
    Revert "cpu-boost: Reset Dynamic SchedTune Boost only if it is curren…
    Revert "sched/boost: Perform SchedTune boosting when sched_boost is t…
    Revert "dynamic schedtune: Boost Value of 3"
    Revert "dynamic schedtune: add UCI rootless config hooks"
    Revert "dynamic eas boost: add 4th level - longer input boost, higher…
    Revert "Dynamic Tuneboost V3"
    Revert "sched/tune: Add initial support for Dynamic SchedTune Boost"
    Add BFQ and Patches 
    
    [U][I][B]r3
    [/B][/I][/U]
    
    a1b25362f906 [SIZE="4"]Version 3.1[/SIZE]
    f3042ef51c73 devfreq_boost: Merge fixup
    65425451d967 Regenerate Defconfig + enable devfreq boost
    eedbb7f89a9e base: dd: Continue probe deferral forever as needed after late_initcall
    d7089bdcb539 drm/msm/sde: Cache register values when performing clock control
    c44748f7dfe1 devfreq_boost: Replace all instances of fb_notif with msm_drm_notif
    088e8713acb2 devfreq_boost: Convert to msm_drm_notifier
    6e25561aa700 devfreq: Introduce devfreq boost driver
    585649668676 defconfig: Regenerate
    25f3a25bd678 Revert "drm: msm: sde: Boost CPU when a new frame is ready to be committed"
    779cfdee0f9a cpufreq: Return 0 from ->fast_switch() on errors
    08ba2b4cef95 Revert "mm: Boost when memory pressure becomes high"
    2ac6b8c2b77f Revert "kernel: Boost to the max for a short amount of time when zygote forks"
    cf964e14044b power: qpnp-fg-gen3: fix soc not keeping full after charging overnight
    215800e2282c sched: boost: Don't try to kick idle CPU
    f48c30b60da4 ARM: dts: sdm845: Set GPU idle timeout to 64 ms
    bb1ebbfd4607 gcc-9: silence 'address-of-packed-member' warning
    192912e0d72c qseecom: micro optimization for module detection
    ac529eda77bf thermal: core: Use high value to init low temp tracking thermal_zone
    91a5c4f6cd15 cpufreq: Return 0 from ->fast_switch() on errors
    91607fc81ce2 cpufreq: blu_schedutil: merge latest CAF kernel/msm-4.9
    6f713ec32fcb cpufreq: blu_schedutil: fix iowait_boost_enable on gov change
    e3d5e498db9a cpufreq: blu_schedutil: add some bits from Pixel 3
    5cab0f285280 cpufreq: blu_schedutil: add a couple fixes
    752fef8bae3f cpufreq: blu_schedutil: make iowait boost optional
    661c57491bd2 cpufreq: blu_schedutil: Introduce initial bringup
    b0b716669178 beryllium: Block a couple wakelocks
    2e5fa2022a18 kernel: Boost to the max for a short amount of time when zygote forks
    efb95e07616a drm: msm: sde: Boost CPU when a new frame is ready to be committed
    766a7b9289e7 qpnp-fg: adjust percentage calculation formula
    243e391a74be drm/msm/sde: Cache register values when performing clock control
    b2fd6214e852 string: Use faster alternatives when constant arguments are used
    248f45bbad83 Initialize ata before graphics
    6b73094b185c kernel: time: reduce ntp wakeups
    4d81ebff7f7b drm/msm: do not notify events when the system is shutting down
    ca73061a13ac mm: Boost when memory pressure becomes high
    ba153511da46 drm/msm/sde: Wait for ctl_start asynchronously on cmd mode panels
    cdb7a2faee49 clk: qcom: clk-cpu-osm: Don't sleep inside the global clk lock
    e5aa97911226 clk: qcom: clk-cpu-osm: Convert atomic delay into sleep
    19e4de07702b clk: qcom: clk-cpu-osm: Limit the rate of CPU clock-rate changes
    afc6061b7f82 Merge branch 'Master-Branch' into Master-Workspace
    84277d2ce69a ecryptfs: Fix up bad backport of fe2e082f5da5b4a0a92ae32978f81507ef37ec66
    6e13499cef9c kernel.lnx.4.9.r27-rel: Merge fix
    47fff482b8ff Merge remote-tracking branch 'kernel.lnx.4.9.r27-rel'
    b38aba85e44e defconfig : EXP defconfig
    4109cc4db707 Merge 4.9.215 into kernel.lnx.4.9.r27-rel
    5ca831a09a02 Merge tag 'LA.UM.8.8.1.r1-01800-QCS605.0' into Master-Workspace
    ab90ee2f5c21 Merge tag 'LF.BR.1.2.11.r1-01000-8x09.0' into Master-Workspace
    e140b761cf1c Makefile: Fix Toolchain dir
    4e03d7a4e255 staging/android: Fix ashmem merge.
    
    52332bbc5023 r3
    4c8938c9bfc6 Revert "intramfs gitignore"
    86509f5ff586 mm: Disable readahead by default
    d1e0f0d6943c mm: Do not periodically flush dirty pages
    fdf51b0e69e8 PM / Sleep: Expedite garbage collection if idle
    9a11e7759313 PM / Sleep: Start killing wakelocks after one minute of idle
    a2230fe58e8c mm: util: Guarentee memory access to applications
    52b38ee933ba mm: Lock dirty background writeback to an internal ratio
    3eb19913fff1 mm: Adjust dirty ratio percentage
    bc4f4d0c194b mm: util: Guarentee memory access to applications
    633dce263118 net: Allow BFP JIT to compile without module support
    31f8cebc7533 intramfs gitignore
    3f1a11664de1 arm64: bfp_jit: Enable JIT by default
    63281e7ce869 arm64: debug: Disable JTAG debugging by default
    99483ccc7026 Compiler Build Patch Fix!
    834fc0c91c06 Merge branch 'Master-Branch' into Master-Workspace
    4d9f5b2aa40b Change Build Path to new PopOS Directory (Server)
    970381096fc3 Revert Build_Kernel
    5c714ce7a7ef drivers: video: Add MDSS Powersuspend hook
    4476d23ce143 Auto stash before cherry pick of "arm/arm64: crypto: boost performance"
    1ff4dd34cede arm/arm64: crypto: boost performance
    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
    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 into master-wip
    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
    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
    16d82e9dd51a r2 Changes ( version ; devfreq )
    d6df9f8beccf gpu: devfreq: adrenoboost v2.2
    65f7f0768c28 GPU: add 180 MHz step
    7e7c52d20740 sdm845: max gpu freq -> 835MHz
    2c0ef4504960 GPU OC to 833 mhz
    
    [U]
    [I][B]r2[/B][/I][/U]
    16d82e9dd51a r2 Changes ( version ; devfreq )
    d6df9f8beccf gpu: devfreq: adrenoboost v2.2
    65f7f0768c28 GPU: add 180 MHz step
    7e7c52d20740 sdm845: max gpu freq -> 835MHz
    2c0ef4504960 GPU OC to 833 mhz
    2f056c80b285 workqueue: make workqueue available early during boot
    7d42ee1396f1 mm: swap_ratio: consider swap slots
    8ae0abb02e56 mm/swapfile.c: fix swapon frontswap_map memory leak on error
    0342544ef43f mm: kvfree the swap cluster info if the swap file is unsatisfactory
    e723363ef91b mm/swapfile.c: fix swap space leak in error path of swap_free_entries()
    ff582ec0c2f6 mm, swap: avoid lock swap_avail_lock when held cluster lock
    165019f7f57e mm, swap: Fix a race in free_swap_and_cache()
    64876fd07a90 mm/swap: skip readahead only when swap slot cache is enabled
    98e0a0d12bcf mm/swap: enable swap slots cache usage
    cf45d9165fa9 mm/swap: add cache for swap slots allocation
    f979d71c7445 mm/swap: free swap slots in batch
    442784a913cd mm: add three more cond_resched() in swapoff
    2487dfea5612 mm/swap: skip readahead for unreferenced swap slots
    26030f179c2c mm/swap: allocate swap slots in batches
    5bfe1c57a374 mm/swap: fix kernel message in swap_info_get()
    691f944d8d88 mm/swap: add cluster lock
    5850a02d5e3d sched/tune: increase BOOSTGROUPS_COUNT to 6
    559d8148e9d5 thermal: fix lockdep splat from qcom driver
    04e304e0d269 cpuset: fix hotplug lock
    67a1a72bb7b9 sched: fix unbalanced locking
    970352063161 mm: per-process reclaim
    7953370ec295 Merge 4.9.214 into kernel.lnx.4.9.r27-rel
    2ab14262da04 temporarily revert to GCC Compiler
    If you want to change display RGB Values and etc.. Kindly use Franco Kernel Manager / Ex Kernel Manager you can get it in Playstore or Google


    Nightly Daily Builds :
    https://trinitydata.ap.ngrok.io/s/DyLSqHRGmcampzz

    Kernel Source :
    Kernel Source Code

    Special Thanks to :

    Arter97 - Kernel Source Base
    DooMLord - Kernel Tools
    XDA Community for Kernel Patches
    8
    Good-day! 4.0 have been released.
    5
    - reserved for r3 beta release -
    5
    Version 2.0 have been deployed! Enjoy and have a nice day.
    5
    /** AUTOMATED POST USING JENKINS BUILD AND DEPLY TOOL**/
    Data Server: Rasberry Pi 4B
    Main Server: PopOS! Intel i7 3770K 8 Cores, 16GB RAM.
    ...
    Download Link:
    https://trinitydata.ap.ngrok.io/s/DyLSqHRGmcampzz
    Type:
    Nightly | Nightly-r4.0.2-EXP

    Changelog:
    Arch:DTS: Add-Pixel 3 Energy Model
    r4.0.2 EXP - Change RAMDISK .sh | Changes in Defconfig.
    mm: Increase ratelimit pages value
    Defconfig: Use FIOPS
    mm/scatterlist: Do not disable irqs on RT
    Avoid freeing an active timer
    drivers: uci | include: mm - Changes
    Nightly Build
    Fix kconfig
    scsi: ufs: Remove 10 ms CPU idle latency unvote timeout
    block: cfq : small changes
    block: Make CFQ default to IOPS mode on SSDs