FORUMS

[KERNEL] [N] [OxygenOS] SimpleGX v1.18 (2nd Nov)

3,339 posts
Thanks Meter: 9,103
 
By AndroidGX, Inactive Recognized Contributor on 12th August 2017, 08:40 AM
Post Reply Email Thread


WARNING :

This kernel is for OnePlus 5 (cheeseburger)


Code:
You will NOT void your warranty after flashing this kernel.
Be sure to make all necessary backups first before processing to installation.
I'am not responsible of any damage caused to your device or data lost after flashing this kernel.
Of course, these are only basic warnings ! but generally you'll not get any problem :)


Some reading..

Welcome to SimpleGX kernel ! a kernel that aims for simplicity, stability, better performance, smoothness and battery life over a pure stock kernel.
This kernel is designed for people who are (like me) bored to flash kernels which integrate tons of unneeded things.
Main goals of it is to stay MUCH closer to stock than every kernels shared here and almost not to be a “custom kernel” on its own. So beware, no exotic stuffs here !
No need for any third app or whatever to control this kernel. Just "flash-n-joy" ! this is how I always liked thing.
Keep in mind that this kernel has been designed for my daily use first.
I would like to personally thanks @Lord Boeffla for his precious help to build my first OP5 kernel ! without him, this kernel won’t be there ! so please consider it.

As always, I'm enjoying sharing my contribution here on XDA for free, which taking me a lot of (my free) time to test before releasing. So, if you can offer me a little beer, it will be really appreciated!



This kernel must be only flashed over an official OnePlus 5 OxygenOS (OOS) ROM !

Feel free to include my kernel to your ROMs / threads but please don't forget to inform/ask first via PM and credit me properly in your original thread. It's always appreciated.






★ WHAT TO EXPECT ★ :
(over a pure stock kernel) :
  • Better battery life
  • Overall better performance
  • Trying to include only efficient (but definitely no experimental) tweaks
  • Stay as close as possible from pure stock source


★ FEATURES (up-to-date) ★ :
Base :
  • Always directly based from latest available "android_kernel_oneplus_msm8998" Android 7.1.1 source from OxygenOS / OnePlus 5 (for clean work)
  • Compiled with stock Google (4.9.x / aarch64-linux-android) toolchain (for best stability)
  • Featuring Anykenel2 (for all ramdisk compatibility)
  • Stock Linux 4.4.21
Main :
  • USB fast charge support (disabled by default)
  • Kernel logger disabled
  • Disabled adaptive LowMemoryKiller
  • Minimum backlight level control support (stock value by default)
  • Wakelocks control support (all wakelocks disabled by default)
  • Several fixes/optimizations patches for stock cpufreq_interactive governor
  • MAPLE I/O scheduler added (and set as default)
  • Completely optimized stock 'cfq' I/O scheduler
  • Xbox controller (and other USB pads) support
  • All TCP congestion control modules activated with Westwood currently as default
  • Removed verify and forced encryption + patched SafetyNet flags to pass CTS
  • Wlan module from official OOS source
  • Some miscellaneous tweaks, fix, patches and security patches to improve overall smoothness and battery life experience
Various tweaks :
  • Full changes to be discovered directly in my Github source below

Features that will NEVER be included in this kernel :
  • adding any other governor (than those stock)
  • root/busybox auto-installation
  • CPU/GPU overclocking/undervolting
  • KCAL
  • adreno idler
  • state_notifier
  • any upgrade of Linux kernel
  • dual-boot
  • etc



★ PREREQUISITE ★ :
  • An unlocked Bootloader
  • An Android Nougat firmware (based on OxygenOS)
  • A custom recovery (TWRP recommanded), to flash the kernel
  • Optional : to control some kernel tweaks, you can install Kernel Adiutor)



★ SOURCE (up-to-date) ★ :



★ INSTALLATION PROCEDURE ★ :
  1. Backup everything you need (internal & external)
  2. Unlock your bootloader
  3. Flash your favorite TWRP recovery (official or unofficial)
  4. Reboot to TWRP
  5. Wipe system/cache/dalvik partitions
  6. Flash your full usual ROM/firmware
  7. Flash SimpleGX kernel
  8. Flash root (Magisk or SuperSU)
  9. Reboot and enjoy !



★ FAQ ★ :
  • How can I update my SimpleGX kernel version ?
    Follow THESE steps.
  • How can I go back to stock kernel ?
    Just flash back your full usual rom back.
  • Is there a LineageOS (LOS) version of you kernel ?
    There was, but it has been discontinued. HERE is the old thread.
  • How to recover excellent battery life ?
    Check my personal tips HERE.








★ LATEST VERSION ★
★ ARCHIVES ★
/!\ CHECK MD5 BEFORE FLASHING IS ALWAYS HIGHLY RECOMMENDED /!\
/!\ PLEASE DO NOT MIRROR MY DOWNLOADS /!\




Need supports ? all kind of questions must be posted on this thread directly. Be sure to read at least completely this first post before asking any question.
If you enjoy this kernel, don't forget to rate this thread stars, and clicking the 'thanks' button (right below). It's always appreciated to keep this thread maintained


LIKE MY WORK ?
OFFER ME A

The Following 39 Users Say Thank You to AndroidGX For This Useful Post: [ View ] Gift AndroidGX Ad-Free
12th August 2017, 08:41 AM |#2  
AndroidGX's Avatar
OP Inactive Recognized Contributor
Flag ★ Montpellier ★
Thanks Meter: 9,103
 
Donate to Me
More
Info 2 Changelog
★ CHANGELOG ★ :

02.11.2017 : v1.18 released.
  • Synchronize codes for OxygenOS 4.5.14


23.10.2017 : v1.17 released.
  • Removes Spectrum support
  • Anykernel2: updated to latest version


19.10.2017 : v1.16 released.
  • Add Spectrum support (please read post #5 for all informations you need to know).


17.10.2017 : v1.15 released.
  • Re-included all queue work on power efficient wq patches (for overall better deep sleep).
  • Brings back minimum backlight to stock value (user may still set its favorite value).


09.10.2017 : v1.14 released.

09.10.2017 : v1.13 released.
  • Synchronize codes for OxygenOS 4.5.12
  • Revert (CVE-2017-1000251) now useless security patch for Bluetooth (already included from OxygenOS 4.5.12 security patch)


03.10.2017 : v1.12 released.
  • Synchronize codes for OxygenOS 4.5.11


21.09.2017 : v1.11 released.
  • init.simplegx.rc: add (and disable) missing "wcnss_filter_lock" wakelock


21.09.2017 : v1.10 released.

20.09.2017 : v1.09 released.
  • Added two cpufreq_conservative (fixes/optimizations) patches
  • Added wakelocks control back and disable them by default (for better battery life)


18.09.2017 : v1.08 released.
  • Anykernel2: updated to latest version


07.09.2017 : v1.07 released.
  • Removed all queue work on power efficient wq patches from franciscofranco. (Less experimental, more close to stock now).
  • Added OnePlus5 minimum backlight fix (current value has been set to 8 for now).


03.09.2017 : v1.06 released.
  • Added two minor (and safe) patches about performance and battery.


29.08.2017 : v1.05 released.
  • Synchronize codes for OxygenOS 4.5.10


23.08.2017 : v1.04 released.
  • USB fast charge support (disabled by default, use Kernel Adiutor to enable it if you need)
  • block: add MAPLE I/O scheduler and set it as default
  • cpufreq: interactive: Remove the jump_to_max hack
  • cpufreq_interactive: remove boost functionality
  • Anykernel2: finally fixed all available ramdisk simplegx tweaks
  • Anykernel2: updated to latest version
  • Anykernel2: new styling retouch during kernel flashing


18.08.2017 : v1.03 released.
  • Removed wakelocks control stuff.
    I wasn't happy with it (not to say useless) and anyway it needed an app to control this, so...


16.08.2017 : v1.02 released.
  • Much better deep sleep.


15.08.2017 : v1.01 released.
  • Completely rebuilded from OP5 source from zero. I decided to now include only few recognized commits (many previous commits has been removed).
  • Wakelocks control available (ON by default, but may be turned OFF via Kernel Adiutor for exemple).


12.08.2017 : v1.00 released.
  • Initial release (check actual features).
The Following 12 Users Say Thank You to AndroidGX For This Useful Post: [ View ] Gift AndroidGX Ad-Free
12th August 2017, 08:41 AM |#3  
AndroidGX's Avatar
OP Inactive Recognized Contributor
Flag ★ Montpellier ★
Thanks Meter: 9,103
 
Donate to Me
More
Cool Thanks & greetings
★ THANKS & GREETINGS ★ :

(by alphabetic order)
  • Lord Boeffla
  • osm0sis
  • ZaneZam
. . . and of course to all talented devs credited in my commits!
The Following 7 Users Say Thank You to AndroidGX For This Useful Post: [ View ] Gift AndroidGX Ad-Free
12th August 2017, 08:41 AM |#4  
AndroidGX's Avatar
OP Inactive Recognized Contributor
Flag ★ Montpellier ★
Thanks Meter: 9,103
 
Donate to Me
More
Thumbs up Donations
★ DONATIONS ★ :

Thank you to support my work !
The Following 5 Users Say Thank You to AndroidGX For This Useful Post: [ View ] Gift AndroidGX Ad-Free
12th August 2017, 08:42 AM |#5  
AndroidGX's Avatar
OP Inactive Recognized Contributor
Flag ★ Montpellier ★
Thanks Meter: 9,103
 
Donate to Me
More
Tutorial Spectrum explanation
This kernel is now NO MORE compatible with Spectrum app (author: @frap129)


Obsolete details (for reference) :

Since all spectrum profiles are all different between switching from kernels, here is my vision of things : instead of spending time to fine tune interactive gov (etc) in the purposed 4 scenarios offering typically what other kernels may do, I still wanted want to keep simple but efficiency (and not dangerous) settings/tweaks that me be useful for everybody.
Here is all you need to know, what SimpleGX kernel may offer, and the main differences between each profiles.

Full view of the currently integrated Spectrum file (for advanced users) :

Code:
 # Balance (default profile)
on property:persist.spectrum.profile=0
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
    write /sys/module/cpu_boost/parameters/input_boost_ms 100
    write /sys/class/kgsl/kgsl-3d0/devfreq/governor msm-adreno-tz
    write /sys/class/leds/lcd-backlight/max_brightness 255

# Performance
on property:persist.spectrum.profile=1
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
    write /sys/module/cpu_boost/parameters/input_boost_ms 1500
    write /sys/class/kgsl/kgsl-3d0/devfreq/governor msm-adreno-tz
    write /sys/class/leds/lcd-backlight/max_brightness 255

# Battery
on property:persist.spectrum.profile=2
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative
    write /sys/module/cpu_boost/parameters/input_boost_ms 100
    write /sys/class/kgsl/kgsl-3d0/devfreq/governor powersave
    write /sys/class/leds/lcd-backlight/max_brightness 100

# Gaming
on property:persist.spectrum.profile=3
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
    write /sys/module/cpu_boost/parameters/input_boost_ms 1500
    write /sys/class/kgsl/kgsl-3d0/devfreq/governor performance
    write /sys/class/leds/lcd-backlight/max_brightness 255


BALANCE profile :
This is the stock default profile after flashing kernel. It will be applied as default if you don’t want to switch to another profile. Balance profile will benefit from all you guys know already about this kernel for it’s great stock experience and stock values, looking for best of performance and battery life for everyday use.
PERFORMANCE profile :
Performance profile is looking those who only cares about performance at the cost of battery life. Excellent for UI and overall top tier performance during apps use. I definitely not recommended to let this profile 24/7. Please do not report any bad battery experience while using this profile.
BATTERY profile :
Battery profile is probably the most only interesting profile (at my eyes). Extremely useful in some situations, it will provide you best battery life without scarifying too much performance and keep your device usable everyday. Very useful for days at work or when you reach really low percentages, this profile will probably save your day. Note that also, the min screen brightness has been intentionally lowered to 100 (instead of 255), to reduce consummation.
GAMING profile :
This profile is completely based on performance profile, at the exception of GPU governor changed to performance. Only useful for gaining some extra FPS’s during your gaming sessions. I definitely not recommended to let this profile 24/7. Please do not report any bad battery experience while using this profile.
The Following 6 Users Say Thank You to AndroidGX For This Useful Post: [ View ] Gift AndroidGX Ad-Free
12th August 2017, 08:51 AM |#6  
Pho3nX's Avatar
Senior Member
Thanks Meter: 1,695
 
More
Welcome in the Kernel OP5 family mate, i'm also a french user (Nice)

Thanks
The Following User Says Thank You to Pho3nX For This Useful Post: [ View ] Gift Pho3nX Ad-Free
12th August 2017, 08:59 AM |#7  
gouthamgoumi's Avatar
Senior Member
Thanks Meter: 200
 
More
Can't wait to try this one out..Thanks mate.
The Following User Says Thank You to gouthamgoumi For This Useful Post: [ View ] Gift gouthamgoumi Ad-Free
12th August 2017, 09:09 AM |#8  
Member
Thanks Meter: 9
 
More
Already flash this kernel~
The Following User Says Thank You to oo0keba0oo For This Useful Post: [ View ] Gift oo0keba0oo Ad-Free
12th August 2017, 09:22 AM |#9  
Senior Member
Flag 30530
Thanks Meter: 324
 
More
Here we go

Enviado desde mi ONEPLUS A5000 mediante Tapatalk
12th August 2017, 10:19 AM |#10  
xXx's Avatar
Senior Member
Flag Munich
Thanks Meter: 18,513
 
Donate to Me
More
thanks for the new kernel which is a good alternative for all users who just used the stock kernel so far Fortunately, I didn't post an update yet for the rom so I can still implement you kernel to the aroma installer menu.
Good luck!
The Following 2 Users Say Thank You to xXx For This Useful Post: [ View ] Gift xXx Ad-Free
12th August 2017, 12:50 PM |#11  
AndroidGX's Avatar
OP Inactive Recognized Contributor
Flag ★ Montpellier ★
Thanks Meter: 9,103
 
Donate to Me
More
Quote:
Originally Posted by Pho3nX

i'm also a french user (Nice)

Welcome to the club !

Quote:
Originally Posted by xXx

thanks for the new kernel which is a good alternative for all users who just used the stock kernel so far Fortunately, I didn't post an update yet for the rom so I can still implement you kernel to the aroma installer menu.
Good luck!

Thank you very much for that, appreciated
You are my rom base since the beginning of my OP5, so thank you for your hard work!
Cheers'
The Following 3 Users Say Thank You to AndroidGX For This Useful Post: [ View ] Gift AndroidGX Ad-Free
Post Reply Subscribe to Thread

Tags
androidgx, cheeseburger, oneplus5, op5, oxygenos

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes