[r3] arter97 kernel for Realme X

Search This thread

arter97

Recognized Developer
Oct 14, 2012
3,811
34,215
24
Seoul
arter97.png

arter97 kernel for Realme X​

/* Details */

Latest CAF msm-4.9 kernel fully merged
Latest Linux 4.9 subversion merged
Memory management improved(from Pixel 2 & 3)
Pixel's lowmemorykiller used
Scheduler commits cherry-picked from Pixel 3
Timer optimizations
RTL8152/8153 USB LAN adapter support
Permissive SELinux
Built with -O3 speed optimizations
Built with latest GCC
Westwood as default TCP network congestion control
UFS optimizations
Entropy hook on storage removed
Latest mainline f2fs support with GC fixes
CFQ I/O scheduler backported from mainline
Systemless installation (the kernel itself doesn't touch /system or /vendor)
Modules support disabled for lighter kernel
WireGuard support
Removed RTB(interrupt) logging entirely

/* Support */

This kernel does not support stock ColorOS and has been only tested with LineageOS by SagarMakhar.
It is likely to work with different AOSP-flavored ROMs.

This kernel may not work properly with Android 10 based ROMs.

/* Development */

This has been horrible.

This is my first Realme device and it is easily the worst device I've ever dealt with.
I won't be touching any other Realme devices unless they address this:
https://twitter.com/arter97/status/1186595816292544512

I encourage people to keep bugging them to improve the situation.

/* f2fs */

This kernel fully supports f2fs for /data and I encourage everyone to use f2fs with my kernel for better performance.
See here as to why you might want f2fs.

To use f2fs, you should be using a version of TWRP that’s bundled with my kernel.
mauronofrio made a TWRP just for that, please visit his thread and use “Temporary TWRP with f2fs support by mauronofrio (with arter kernel)”.

Also, download f2fs_fstab.zip from http://arter97.com/browse/f2fs/encrypted/20190607/
Download f2fs_fstab.zip only. f2fs_tools_for_twrp or f2fs_optimize is unnecessary.
You must use encryption. Decrypting will break device security including fingerprint sensor and pattern lock.

Enter TWRP and flash f2fs_fstab.zip and reboot back to recovery.
After rebooting, do a f2fs conversion from “Wipe > Advanced Wipe > Data > Repair or Change File System > Change File System > F2FS”.
This will wipe your entire data!

After formatting, or flashing a new ROM or an OTA, /vendor’s fstab needs to be changed.
Flash f2fs_fstab.zip to convert fstab to f2fs again. This won’t format your /data partition.

/* Disclaimer */

Your warranty is now void.
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. Hard. A lot.

/* Instructions */

Simply flash the kernel zip file from the recovery.
This kernel does not use AnyKernel. You need to reinstall Magisk everytime when you update the kernel.

/* Downloads and links */

arter97.com
Kernel source

XDA:DevDB Information
arter97 kernel for Realme X, Kernel for the Realme X

Contributors
arter97
Kernel Special Features:

Version Information
Status: Stable

Created 2019-10-28
Last Updated 2020-02-25
 

arter97

Recognized Developer
Oct 14, 2012
3,811
34,215
24
Seoul
/* Changelog */

r3
Temporarily rebased to an older CAF tag to fix random reboot issues

r2
Random reboots fixed (Realme was to blame for this as incomplete source drop was the culprit)
LA.UM.8.8.r1-05800-SDM710.0 merged
Linux v4.9.201 merged
Wi-Fi drivers updated to 5.2.03.14V

r1
Initial release
 
Last edited:

Rud09

Member
Apr 11, 2015
48
25
Hey, there's a bug that finger print sensor doesnt work in aod in sagar's latest los. Theres a video showing that in our telegram group. maybe you would like to see.
 

FahimAdib11

Member
Jul 19, 2019
10
3
After flashing this kernel the fingerprint scanner isn't working when screen is off (aod is on), only works after waking up the screen.
 

baboodice

Member
Aug 3, 2018
26
1
After flash arter97 kernel, and convert data to f2fs phone freeze, or power off itselft without do anything. It will be better to update this kernel.Sorry It's not stable like you say.
 

dan.man

Senior Member
Feb 9, 2013
233
184
Jaipur, Rajasthan, India
Thanks for your great work!
I converted data to f2fs and installed latest LOS.
Faced random reboots like everyone here 4-5 times on the first time. (When using browser, When permission dialogs came up and When phone was idle; couldn't unlock it has to force reboot).
That was the first day. IDK what happened but it's been 2 days since and I didn't encounter a single reboot since then.
Just weird.
 

dan.man

Senior Member
Feb 9, 2013
233
184
Jaipur, Rajasthan, India
I'm gonna need pstore logs from people who're encountering random reboots.

Since I posted my last reply, I've encountered several random reboots. But the pstore folder always remains empty. Do I have to enable it first?
Here's a SS:
DU8GdqA.png


-----------

Edit:
I looked for logs in these locations:
Code:
/proc/last_kmsg
/data/tombstones/
/data/dontpanic/
/data/system/dropbox/

I found logs in the /dropbox location and there are several of them. I can upload the whole folder if you'd like.
Rest locations either didn't exist or were empty.
 
Last edited:

dan.man

Senior Member
Feb 9, 2013
233
184
Jaipur, Rajasthan, India
I'm gonna need pstore logs from people who're encountering random reboots.
My phone just froze again. Rebooted it and checked in pstore folder and found a new file.
The file looks like its just a boot log. If you need anything else let me know

Edit1: Attached a tombstone file as well.

Edit2: Checked for last_kmsg file in /proc but it does not exist for me. Read up about it and apparently is deleted soon after reboot. So when next time my phone hangs I'll try to grab that file in TWRP or quickly after phone has booted up.
 

Attachments

  • console-ramoops-0.txt
    211.8 KB · Views: 17
  • tombstone_00.txt
    490.7 KB · Views: 5
Last edited:
  • Like
Reactions: vickystarboy

dan.man

Senior Member
Feb 9, 2013
233
184
Jaipur, Rajasthan, India
I'm gonna need pstore logs from people who're encountering random reboots.

There are two different behaviours from the phone. Sometimes the phone freezes and has to be manually restarted but sometimes the phone reboots automatically. Latter is the case I encountered this morning. Attaching logs.
 

Attachments

  • console-ramoops-0.txt
    219.1 KB · Views: 9
  • dmesg-ramoops-1.txt
    53.3 KB · Views: 7
  • dmesg-ramoops-0.txt
    53.3 KB · Views: 6
  • Like
Reactions: vickystarboy

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    arter97.png

    arter97 kernel for Realme X​

    /* Details */

    Latest CAF msm-4.9 kernel fully merged
    Latest Linux 4.9 subversion merged
    Memory management improved(from Pixel 2 & 3)
    Pixel's lowmemorykiller used
    Scheduler commits cherry-picked from Pixel 3
    Timer optimizations
    RTL8152/8153 USB LAN adapter support
    Permissive SELinux
    Built with -O3 speed optimizations
    Built with latest GCC
    Westwood as default TCP network congestion control
    UFS optimizations
    Entropy hook on storage removed
    Latest mainline f2fs support with GC fixes
    CFQ I/O scheduler backported from mainline
    Systemless installation (the kernel itself doesn't touch /system or /vendor)
    Modules support disabled for lighter kernel
    WireGuard support
    Removed RTB(interrupt) logging entirely

    /* Support */

    This kernel does not support stock ColorOS and has been only tested with LineageOS by SagarMakhar.
    It is likely to work with different AOSP-flavored ROMs.

    This kernel may not work properly with Android 10 based ROMs.

    /* Development */

    This has been horrible.

    This is my first Realme device and it is easily the worst device I've ever dealt with.
    I won't be touching any other Realme devices unless they address this:
    https://twitter.com/arter97/status/1186595816292544512

    I encourage people to keep bugging them to improve the situation.

    /* f2fs */

    This kernel fully supports f2fs for /data and I encourage everyone to use f2fs with my kernel for better performance.
    See here as to why you might want f2fs.

    To use f2fs, you should be using a version of TWRP that’s bundled with my kernel.
    mauronofrio made a TWRP just for that, please visit his thread and use “Temporary TWRP with f2fs support by mauronofrio (with arter kernel)”.

    Also, download f2fs_fstab.zip from http://arter97.com/browse/f2fs/encrypted/20190607/
    Download f2fs_fstab.zip only. f2fs_tools_for_twrp or f2fs_optimize is unnecessary.
    You must use encryption. Decrypting will break device security including fingerprint sensor and pattern lock.

    Enter TWRP and flash f2fs_fstab.zip and reboot back to recovery.
    After rebooting, do a f2fs conversion from “Wipe > Advanced Wipe > Data > Repair or Change File System > Change File System > F2FS”.
    This will wipe your entire data!

    After formatting, or flashing a new ROM or an OTA, /vendor’s fstab needs to be changed.
    Flash f2fs_fstab.zip to convert fstab to f2fs again. This won’t format your /data partition.

    /* Disclaimer */

    Your warranty is now void.
    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. Hard. A lot.

    /* Instructions */

    Simply flash the kernel zip file from the recovery.
    This kernel does not use AnyKernel. You need to reinstall Magisk everytime when you update the kernel.

    /* Downloads and links */

    arter97.com
    Kernel source

    XDA:DevDB Information
    arter97 kernel for Realme X, Kernel for the Realme X

    Contributors
    arter97
    Kernel Special Features:

    Version Information
    Status: Stable

    Created 2019-10-28
    Last Updated 2020-02-25
    8
    /* Changelog */

    r3
    Temporarily rebased to an older CAF tag to fix random reboot issues

    r2
    Random reboots fixed (Realme was to blame for this as incomplete source drop was the culprit)
    LA.UM.8.8.r1-05800-SDM710.0 merged
    Linux v4.9.201 merged
    Wi-Fi drivers updated to 5.2.03.14V

    r1
    Initial release
    8
    r2 is up.

    r2
    Random reboots fixed (Realme was to blame for this as incomplete source drop was the culprit)
    LA.UM.8.8.r1-05800-SDM710.0 merged
    Linux v4.9.201 merged
    Wi-Fi drivers updated to 5.2.03.14V
    4
    4