• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Development [KERNEL] [OFFICIAL] [MIUI/AOSP] [UNIFIED] LegionX V2.0 - By Venom_Stark

Search This thread

StaryMuz

Senior Member
Dec 27, 2012
348
101
This kernel allowed me to change the CPU performance.
I used the 3C All-in-One Toolbox.
So far the CPU has worked with a minimum of 576MHz, although it supports 300MHz.
This must have resulted in higher battery consumption.
This is how the CPU works in different workloads now:
Screenshot_1.png
Screenshot_2.png
Screenshot_3.png

It is also possible to choose a different governor for higher performance in games (at the expense of battery).
10hour stantby = -2% battery.

EDIT: GPS and Wifi still on.
 
Last edited:

Pachunko

Member
Jul 19, 2021
46
17
Xiaomi Redmi Note 5A
Redmi Note 10
Tried to flash PE after stock ROM, bootloop again... I'll stop posting here, sorry for all the replies and thanks everyone who tried to help. In PE recovery after flashing ROM and rebooting I saw some error at the bottom:

E:Failed to bind mount /mnt/staging/emulated/media/0 to /storage/emulated: No such file or directory
E:Emulated failed to bind mount /mnt/staging/emulated/media/0 on /storage/emulated: No such file or directory

Could be a cause for this but don't know anymore.

Cheers everyone
 
Last edited:

Pachunko

Member
Jul 19, 2021
46
17
Xiaomi Redmi Note 5A
Redmi Note 10
Ok I wanted to test if fastbooting is the problem for my device. So I tried to fix my adb drivers so I can try sideloading for the first time. Managed to fix the driver (adb devices finally showed my device in PE recovery).
What I did next:

1. While in PE recovery - apply update - adb sideload crDroid.zip - installed
2. Rebooted - crDroid WORKS!
3. Set up debugging, copied FlameGapps.zip to "Download" folder (it was not displaying in root while in TWRP)
4. Reboot to TWRP - open Download - Flashed Gapps

Booted without issues, everything's working!
 

Evangelist89

Member
Jan 21, 2021
15
10
See my last post :D

More good news: Flashed kernel the same way as gapps - WORKS! It's displayed in about phone, everything is working! THANK YOU EVERYONE!

Sideloading is the best way to flash ROM (through LOS or PE recovery), now I know!

"now I know!"

That's the sentence after every new experience specially experience that's contains errors. Always you will learn something new.

I were watching silent 😁😂
 
  • Like
Reactions: Pachunko

StaryMuz

Senior Member
Dec 27, 2012
348
101
I am currently using PE+ right now for testing. Let's see when these error will manifest. If it happen probably I will fix it in next build and this is a initial build everything will be fixed gradually Thanks for using 😍. And I will be happy if you could attach a log with dmesg in reply.
Here is the log file. APP Camera 15:58.00 and then uploaded video. End at approx. 15:58.20.
 

Attachments

  • logreader_2021-07-24_15-59.zip
    18.5 KB · Views: 9

Pachunko

Member
Jul 19, 2021
46
17
Xiaomi Redmi Note 5A
Redmi Note 10
Edit: Sorry didn't see your latest reply @Pachunko .

Yay 😁 finally everything working
So it was Windows thing..

My regards ❤️
Fastbooting was doing something differently I guess. Thanks for cheering for a successful installation <3

"now I know!"

That's the sentence after every new experience specially experience that's contains errors. Always you will learn something new.

I were watching silent 😁😂

Haha, yeah. Sideload FTW. I was avoiding it since I couldn't get it working on my PC, that's why I was fastbooting. Now I finally fixed it and I have crDroid with Gapps and Kernel. Just installing apps to see better performance :)
 

Abdullah.Csit

Senior Member
Feb 14, 2014
618
547
Iraq
Redmi Note 8 Pro
Redmi Note 9 Pro
Does this kernel affect my battery temperature? I just finish one game of mobile legends all settings high. I got 48°c temp. hot asf

And why you continue playing in "High setting" ?!
stop 🛑 it.
Legion X has some temperature on initial build because of performance.....

The rule is if you notice any temperature higher than 43 then stop it
 

StaryMuz

Senior Member
Dec 27, 2012
348
101
CPU temperature maximum 43°C? That really wouldn't be enough. After all, it is about the processor core temperature.
If the phone got to that temperature in its entirety, then yes.
 

Abdullah.Csit

Senior Member
Feb 14, 2014
618
547
Iraq
Redmi Note 8 Pro
Redmi Note 9 Pro
CPU temperature maximum 43°C? That really wouldn't be enough. After all, it is about the processor core temperature.
If the phone got to that temperature in its entirety, then yes.

Besides, Don't forget the temperature of room (Depends on location)

for an example: I'm in IRAQ which the degrees on summer more than 46° ( highest one 52°) !

so playing games in room without conditioner 😁 then the battery will dance 🩰.

I don't know why Xiaomi skipped cooling technology ?!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    greets to devs
    1
    Thanks for this update but the informations does not aviable in spécifications of divece ..
    My rom is miui global 12.5.2
    View attachment 5400799
    miui doesn't allow long names that's why (proton clang used and the name is very long)... don't worry everything is fine
    1
    Thanks for this update but the informations does not aviable in spécifications of divece ..
    My rom is miui global 12.5.2
    View attachment 5400799

    Check notes:

    « NOTES »
    In MIUI / MIUI based ROMs, kernel version will show "Unavailable" because MIUI doesn't support long names (because I used proton clang and lld) but kernel working perfectly you can see name in FKM tough.
  • 11
    IMG_20210903_150946_068.jpg


    « Disclaimer & INFO »​

    Code:
    # include <std_disclaimer.h>
    /*
    * Your warranty is... Still valid??.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this KERNEL
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

    Note: I'm just a library man all works saved to their owners this kernels made by love check credits. All copyright saved here with developer premison 😊👍
    Name of Kernel: LegionX

    Version of kernel: 2.0 NEW

    Lates stable Update: 2021/sep/03

    Supported Roms: MIUI & AOSP

    Status: Stable




    UNIFIED = MOJITO / SUNNY



    « Changelogs »

    [ Latest Release Changelog ]


    Check Post #2 (click number) for changelogs

    « NOTES »
    In MIUI / MIUI based ROMs, kernel version will show "Unavailable" because MIUI doesn't support long names (because I used proton clang and lld) but kernel working perfectly you can see name in FKM tough.
    • It's AIMING on Performance, stability,..
    • If you can't flash with TWRP , use FK manager to flash it "root required".

    KCAL works fine .Everytime you changed value in KCAL just screen off (Don't power off) and open screen .
    New value will apply.

    • If your device not booting to system just bootloop or fastboot only. Don't panic. re-flash your rom file without wiping data. And please report here with the name of rom and any details.

    • If you update TWRP recovery, reflash the kernel again too.

    • You don't need to Wipe data ! Only cashe and Dalvik.

    • Report for any bugs/issues with logs if available.

    « DOWNLOADS »
    Latest Stable Build (LegionX V2.0):

    Click here to download LegionX V2.0 (MIUI/AOSP)
    Previous Stable build:

    Click here to download V 1.0-LTO (AOSP Only) Build


    « INSTALLATION »
    1- Download Kernel & save it on internal storage.
    2- Boot to recovery (TWRP).
    3- Flash the kernel zip file.
    4- Wipe Cashe & Dalvik. “Don't Wipe Data
    5- Reboot to system.

    NOTE: For pixel experience rom, use this Guide:

    IT'S can safely installed on Pixel experience. Just follow this:

    1- Boot TWRP recovery with this command:

    Code:
    fastboot boot twrp.img

    2- Don't Install ramdisk or anything just go to LegionX Kernel on your storage and flash it.

    3- Wipe Cashe & Dalvik.

    4- Power Off then power on your device.

    Done.

    « CREDITS »
    • Kernel by: @venom_stark , Thanks 😊
    • Thanks to @ZIDAN44 , @CloudedQuartz ,@cyberknight777 & @Shararti1 .
    • Thanks @AnomYT for Banner
    • XDA-OP: @Abdullah.Csit
    • #All testers.
    • GitHub Source Link: https://github.com/venom-stark/mojito...
    SHOW YOUR SUPPORT BY HITTING LIKE 👍
    4
    I'll prolly look into eff freqs and cpuidle with lpm vals
    3
    #Kernel Changelogs 2021/9/03:

    Code:
    LegionX v2.0:
    -schedtune_assist: Cleanup and update
    -sched/tune: Only force UX tasks to big cores
    -f2fs: Enlarge min_fsync_blocks to 20
    -diag: Add timer to make sure wakelock no stuck
    -fs: Reduce cache pressure
    lib/string: optimized memcpy,memmove, memset
    -arm64: Import latest memcpy()/memmove() implementation
    -ARM64/dts: qcom: Disable CoreSight DT entries for sdmmagpie
    -scsi: ufs: Scrap Qualcomm's PM QoS implementation
    -scsi: ufs: Scrap Qualcomm's PM QoS implementation
    -msm: adreno: Relax CPU latency requirements to save power
    -sched/fair: fix misfit with PELT
    -qos: Don't allow userspace to impose restrictions on CPU idle
    -mmc: Disable SPI CRC
    -iommu: msm: Rewrite to improve clarity and performance
    -PM: sleep: Don't allow s2idle to be used
    -rcu: Speed up calling of RCU tasks callbacks
    -Enable JUMP_LABEL and added some jump lebel patches


    Code:
    ➡️ 2021/8/4 |
    
    • MIUI not supported in this update ( On V2.0 will get update)
    
    • Used LTO binary optimization
    
    • Complied using proton clang with lld linker.
    
    • Performance improvement
    
    • Battery backup improvement



    #Thread Changelog:

    🆕 // 2021.august.4 //

    - Introduce the new LOGO

    - Kernel Updated ! 2021/8/4

    - Added new note about MIUI in new update To «NOTES» section (IMPORTANT)



    //
    3
    Ok I wanted to test if fastbooting is the problem for my device. So I tried to fix my adb drivers so I can try sideloading for the first time. Managed to fix the driver (adb devices finally showed my device in PE recovery).
    What I did next:

    1. While in PE recovery - apply update - adb sideload crDroid.zip - installed
    2. Rebooted - crDroid WORKS!
    3. Set up debugging, copied FlameGapps.zip to "Download" folder (it was not displaying in root while in TWRP)
    4. Reboot to TWRP - open Download - Flashed Gapps

    Booted without issues, everything's working!