[Kernel][harpia] SomeFeaK for Moto G4 Play - Moto G4 Play ROMs, Kernels, Recoveries, & Other De

This is SomeFeaK kernel, based on Squid2's kernel for device codename "harpia".
This is the first time I build a kernel, also, the first time I post something in DevDB. Hope you like this kernel and please expect many releases.
The kernel should work in stock and custom ROMs, with any variant. Tested and working in XT1601 (LATAM).
Disclamier:
Code:
[COLOR="red"]* Include <std_disclaimer.h>
* 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 ROM
* 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.
*[/COLOR]
Features:
From squid2's r19 build:
Moderately undervolted
Updated to Linux 3.10.104
Synced with latest CodeAurora changes
Improved memory management
Improved memory caching backported from Linux 3.15
Improved storage performance
Optimized ARM crypto routines
Updated f2fs and WiFi drivers
FIOPS and BFQ I/O schedulers
Lionfish CPU governor
IntelliPlug CPU hotplug (by faux123)
KCAL MDP5 colour control (by savoca)
Improved zRAM backported from Linux 4.9
Vibration intensity control
Compiled with Linaro GCC 6.2 and optimized for Cortex A53
Stripped down and optimized configuration
Added by me:
Governors: impulse and elementalX, yankactive, zzmoove, darkness and bioshock.
Double tap to wake (DT2W).
Permanently fixed screen flickering: SELinux works fine in permissive or enforcing mode.
Enabled advanced TCP congestion managers: veno, westwood, vegas, illinois, and more.
Drastically improved CPU thermal control: should react approximately from 40°C and end if lower than 35°C are reached. Otherwise it'll keep trying to cool the device, protecting, mainly, the battery.
Automatic thermal throttling and CPU cooling driver added and enabled.
Enabled CPU current throttling driver.
Use the hidden LED as a notification light.
Enabled forced consistency checks for F2FS (/data).
Multi-Cluster Power Management (less CPU battery drain).
KSM (Kernel Samepage Merging).
Advanced Power Management (emulated).
SMT (Simultaneous Multi-Threading).
Fixed temperature handling.
Dev info:
In order to make use of the new hidden LED's available behavior, it's needed that some Java developer (not me, I don't know a thing about Java) to develop an application. Here I'll give you a sort of "API" that you should use to wake up the required triggers for "if there's a notification or not".
To turn on the LED set trigger to default-on:
Code:
su -c "echo default-on > /sys/devices/soc.0/leds-atc-e3be1600/leds/charging/trigger"
To turn off the LED set trigger to none:
Code:
su -c "echo none > /sys/devices/soc.0/leds-atc-e3be1600/leds/charging/trigger"
I've also added the required modules for the LED to be able to process a hold on during "x" milliseconds and keep off during "x" milliseconds. To set it do it like as follows.
Switch trigger to timer:
Code:
su -c "echo timer > /sys/devices/soc.0/leds-atc-e3be1600/leds/charging/trigger"
Now, set time on during 0,5 seconds (500 milliseconds):
Code:
su -c "echo 500 > /sys/devices/soc.0/leds-atc-e3be1600/leds/charging/delay_on"
Now, set time off during 1 second (1000 milliseconds):
Code:
su -c "echo 1000 > /sys/devices/soc.0/leds-atc-e3be1600/leds/charging/delay_off"
For now, you must have a charger connected. It seems to be a hardware issue but I'll try to investigate it anyways.
Click to expand...
Click to collapse
Release history:
Code:
4.80 (stable): June 23, 2017:
Kernel changes:
- sensors/accelerometer: fix bugs and driver random crashes.
- sound/ALSA: fix crashes and crackling, get rid of inifinte loops.
- video/kgsl: general performance and stability improvements.
- power/wake: added wakelock toggles for wlan_rx, wlan_ctrl, wlan and bluesleep, better performance and responsiveness after suspend.
- usb: less console spamming.
- networking: speed improvements.
- input/touchscreen: add generic touchboost driver.
- cpufreq/general: prevent random scaling failiures.
Other changes:
- flashing: added Aroma Installer, pick if you want to flash bootlogo or not thanks to Aroma Installer.
- bootlogo: added built-in SomeFeaK's official bootlogo, made by @jasonmerc . P.S.: thank you so much.
4.70-1 (stable): June 22, 2017:
Kernel changes:
- input/touchscreen: update driver.
- cpu/hotplug: disable thunderplug by default, enable ASMP by default.
Other changes: none.
4.70 (stable): June 21, 2017:
Kernel changes:
- config: solve kernel panics ;), re-enable mistakenly disabled zRAM support, fix KSM driver.
- cpu/hotplug: remove old thunderplug hotplugging driver, add new quad-core specific driver.
- gpu/clock: overclock a bit more (550 MHz max.).
- thermal: support for manually setting temp. limits on runtime.
- cpufreq: added barry allen, added intel, added conservative, blu active, interactive pro.
- fs/sync: added support for dyanmic fsync.
- prima: update driver.
- wlan: performance and stability improvements, no crashes at all.
Other changes: none.
4.53 (stable): June 16, 2017:
Kernel changes:
- fs: fsync will now be enabled by default (prevents data loss if a kernel panic occurs).
- cpu/hotplug: removed broken lazyplug hotplug driver, better handling for hardware hotplugging.
- cpufreq: added intellidemand, smartmax, wheatley, smartmax_eps, pegasusq, authority.
- input/touchscreen: updated DT2W driver, still not stable, more responsive and stable touchscreen.
- sched: fixed zen, fixed and added sio.
Other changes: first build for osprey coming soon.
4.30 (stable): June 14, 2017:
Kernel changes:
- hotplug: added lazyplug (broken, don't use).
- input/touchscreen: fixing DT2W.
- sched: added sio.
Other changes: none.
4.25 (stable): June 13, 2017:
Kernel changes:
- ksm: updated code and better management, enabled checking before swapping pages, reduce cpu
- swap: updated code, got better management by adding some compression drivers.
- input/soc: added powersuspend driver, this will help DT2W work better.
- random: added frandom support, decrease CPU load for entropy generation.
- mem: enabled memory changes tracking.
- sched: added tripndroid, vr, zen.
- usb: enabled fast charge by default.
Other changes: no tool required to setup anymore, default setup won't overheat your device nor damage it; due to recently added support for surnia, every new release will be respectively named with a suffix like '-harpia' or '-surnia'; new project logo (for DevDB), thanks to @lecron89 .
4.18 (stable): June 12, 2017
- cpu: rolled back extreme overclock, new max clock: 1593 MHz.
- gpu: rolled back extreme overclock, new max clock: 465 MHz.
- cpufreq: fix build for 'darkness' governor.
- cpufreq: added new CPU governors: yankactive, zzmoove, darkness and bioshock.
4.00 (stable): June 9, 2017
- cpu: undervolted and overclocked, max freq. 1785 MHz (recommended: 1593Mhz).
- gpu: overcloked, max freq. 650 MHz.
- flashing: fixed bug where the touchscreen would become unresponsive after any kernel update.
3.90 (stable): June 8, 2017
- usb: use your device as an USB gadget, including keyboard and mouse.
- general: updated defconfig for harpia at source to match new features.
3.81 (stable): June 7, 2017
- wlan: updated drivers, solved remaining crashes and battery drain.
- prima: updated drivers.
- usb: added support for xpad joysticks (XBOX).
- cpu: fixed hotplugging driver "thunderplug", used to crash the device while allowing the user to pick "octa-core mode" when it's a quad-core device.
- cpu: hotplugging driver "alucard", default minimum of 1 (one) cpu online.
- general: performance improvements for touchscreen, GPU and variables definition.
3.61 (stable): June 4, 2017
- Added S2S (Sweep to Sleep): swipe from the navbar from right to left or from left to right to make the device go to sleep.
3.60 (stable): June 4, 2017
- In the stock ROM, the audio won't skip anymore (tested).
- The wlan driver shouldn't crash again (updated with Heliox sources).
- Re-added missing Adreno Idler driver.
3.52 (stable): June 1, 2017
- Hotfix: DT2W won't freeze the screen anymore.
3.51 (stable): May 31, 2017
- Hotfix: re-added missing hotplug driver (thunderplug).
3.5 (stable): May 31, 2017
- Reverted patches for sdcardfs (they broke the media scanner).
- USB fast charge.
- FauxSound gain control.
3.11 (stable): May 29, 2017
- Patches for sdcardfs.
- Patches for wlan.
- Patches for less power consumption.
- Re-added missing features: KSM (Kernel Samepage Merging) and TCP congestion control algorithms (veno, illinois, westwood and vegas).
3.0 (stable): May 29, 2017
- Added governors: impulse and elementalX.
- DT2W (Double tap to wake).
- Adreno Idler (reduce GPU frequency and resources if inactive).
- Added hotplug drivers: allucard and thunderplug CPU.
2.1 (stable): Februrary 8, 2017
- Rolled back to default SELinux setup.
- Switched default GPU governor from "msm-adreno-tz" to "simple_ondemand" for better battery and performance balancing.
- Fixed screen flickering bug by disabling debugging in graphics card. (SELinux socket overflow).
- Fixed noisy output if using audio MODs by disabling aggressive debugging for sound card. (SELinux socket overflow).
2.0 (stable): February 5, 2017
- Permanently fixed the screen flickering: you won't see any flickers while running SELinux in permissive or enforcing mode. This is going to work even if you build the kernel from source.
1.3 (stable): January 31, 2017
- Enabled advanced TCP congestion managers: veno, westwood, vegas, illinois, and more.
- Set default TCP congestion manager to "veno" for lesser lags while heavily loading the networking area.
1.2 (beta): January 29, 2017
- Fixed SELinux: permissive mode works again.
- Decreased SELinux activity (even more).
1.1 (beta): January 29, 2017
- Restored previous setup for audio amplifier DAC: switched input gain from 4 to 5. Reason: the output felt like if it is cropping some frequencies.
- Modified CPU cooling driver to get more sensitivity as when to react and how far the temperatures should reach. (experimental, please report if horribly lags)
1.0 (beta): January 27, 2017
- Automatic thermal throttling and CPU cooling driver added and enabled.
- Enabled CPU current throttling driver.
- Decreased audio amplifier DAC input gain to 4 from 5 (solves distorted output while using audio mods like [B]Dolby Atmos[/B])
0.3 (experimental): January 26, 2017
- Added available triggers for LED to: show cpu usage by core, blink like heartbeat, blink with interval and full on.
- Disabled swap pages caching (frontswap).
0.2 (experimental): January 25, 2017
- Enabled swap pages compression.
- Enabled swap pages caching (frontswap): better RAM management.
- Enabled cleancache for faster swap handling.
- Decreased SELinux activity and removed almost every security check.
- Enabled F2FS forced consistency checks.
- Enabled Multi-cluster power management (even better power management and less temperature).
0.1 (experimental): January 24, 2017
- Initial release.
Downloads:
Click here or go to Downloads tab at the top of the thread.
NEW! Now, if something goes wrong with the XDA download server or you simply want to download from somewhere else, I've been approved as developer at AFH. All downloads will also be posted here.
Code:
[B]Experimental builds: [/B][URL]https://www.androidfilehost.com/?w=files&flid=149407[/URL]
NEW! Ask for features, report bugs, get help with installation, usage and everything else. Join us at Telegram: t.me/somefeak
Bugs:
SELinux avc is not working as expected, coming from squid2 sources.* Fixed
Screen might flicker sometimes in harpia LATAM variant, this is also a SELinux related problem.* Fixed
Advanced Power Management might let the device reach higher temperatures sometimes, it isn't on me and must be fixed in mainstream.
Bugs marked with a "*" will be fixed in the next release.
Testing: (by users and me)
Lineage OS (latest build): No bugs found.
crDroid: working flawlessly, little lags due to UI bugs.
OCT-OS: No bugs found.
AOSPExtended: No bugs found.
Mokee OS: long boot times, no lags so far. UI might feel unresponsive sometimes if too many tasks at same time (wrongly set build.prop?). Screen flickers sometimes
Resurrection Remix (by @jasonmerc): No bugs found.
XDA:DevDB Information
SomeFeaK Kernel for Moto G4 Play, Kernel for the Moto G4 Play
Contributors
facuarmo, chijure, Dark98, squid2, TeamMex
Source Code: https://github.com/FacuM/android_kernel_motorola_msm8916
Kernel Special Features: The kernel features: everything from r19 Squid2's build, KSM (Kernel Samepage Merging), SMT (Simultaneous Multi-Threading), Advanced Power Management (emulated), advanced LED contro, DT2W and impulse and elementalX governors.
Version Information
Status: Stable
Created 2017-01-25
Last Updated 2017-12-10

SomeFeaK loves Mokee:
Mokee ROM is compatible with the SELinux patching done by Magisk while keeping Pemissive mode enabled at the core of Android, this means that you can use SomeFeaK's USB keyboard and mouse emulator features without even touching a single thing! Just open USB Keyboard app and you're good to go!
Thanks to their awesome devs! :fingers-crossed:

Reserved , will be testing once i got my phone

Harry_00s.HS said:
Reserved , will be testing once i got my phone
Click to expand...
Click to collapse
Thanks for testing . BTW, phone's booting.
Psst! Adding some governors in the next version .
Remember that, for safety reasons, you might want to load to RAM the kernel first and check if it boots, just not to have to re-flash your device if something goes wrong.
You can do this by unpacking the flashable zip to you computer and fastbooting the zImage.
Code:
fastboot boot zImage

Ok , so i have to flash the img via fastboot ?

Harry_00s.HS said:
Ok , so i have to flash the img via fastboot ?
Click to expand...
Click to collapse
If you download the zip file, you can put it in your internal or external memory and flash over recovery.
If you just want to try the kernel and not flash, follow the fastboot procedure I explained above :fingers-crossed:.

For everyone reading this thread: next release expected to be done tomorrow and fix for screen flickering :fingers-crossed:.

You can flash in RR ?????
Se puede flashear en RR???

nick more said:
You can flash in RR ?????
Se puede flashear en RR???
Click to expand...
Click to collapse
For sure you can flash in RR! It should work in any ROM .
Psst! Doing a backup of your boot partition in recovery is always a good practice, just in case .
//////////////////////
¡Claro que puedes flashear en RR! Debería funcionar en cualquier ROM .
¡Psst! Hacer una copia de seguridad de tu partición "boot" en recovery siempre es una buena práctica, sólo por si acaso .

facuarmo said:
For sure you can flash in RR! It should work in any ROM .
Psst! Doing a backup of your boot partition in recovery is always a good practice, just in case .
//////////////////////
¡Claro que puedes flashear en RR! Debería funcionar en cualquier ROM .
¡Psst! Hacer una copia de seguridad de tu partición "boot" en recovery siempre es una buena práctica, sólo por si acaso .
Click to expand...
Click to collapse
Thx
Gracias

nick more said:
Thx
Gracias
Click to expand...
Click to collapse
You're welcome! I hope you enjoy this kernel .
/////
¡De nada! Espero que disfrutes este kernel .

0.2 (experimental): January 25, 2017
----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
BROKEN BROKEN BROKEN BROKEN BROKEN BROKEN
----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
Changelog
- Enabled swap pages compression.
- Enabled swap pages caching (frontswap): better RAM management.
- Enabled cleancache for faster swap handling.
- Decreased SELinux activity and removed almost every security check.
- Enabled F2FS forced consistency checks.
- Enabled Multi-cluster power management (even better power management and less temperature).
WARNING! This release is broken: Wi-Fi card isn't working.
----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
BROKEN BROKEN BROKEN BROKEN BROKEN BROKEN
----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----

0.3 (experimental): January 26, 2017
Changelog
- Added available triggers for LED to: show cpu usage by core, blink like heartbeat, blink with interval and full on. Check for more info at the first post.
- Disabled swap pages caching (frontswap).

1.0 (beta): January 27, 2017
Changelog
- Automatic thermal throttling and CPU cooling driver added and enabled.
- Enabled CPU current throttling driver.
- Decreased audio amplifier DAC input gain to 4 from 5 (solves distorted output while using audio mods like Dolby Atmos)

@facuarmo can you give more info on the SMT feature? Isn't that usually a hardware feature of a CPU? I was going to just check the code out, but I'm not very good with github and couldn't find the commit for this feature.

spiked_mistborn said:
@facuarmo can you give more info on the SMT feature? Isn't that usually a hardware feature of a CPU? I was going to just check the code out, but I'm not very good with github and couldn't find the commit for this feature.
Click to expand...
Click to collapse
Yes, SMT is a hardware feature, supported by the smartphone's hardware. It comes as a feature like the Per-cluster power management.
You can check more here: https://en.m.wikipedia.org/wiki/Simultaneous_multithreading

facuarmo said:
Yes, SMT is a hardware feature, supported by the smartphone's hardware. It comes as a feature like the Per-cluster power management.
You can check more here: https://en.m.wikipedia.org/wiki/Simultaneous_multithreading
Click to expand...
Click to collapse
I'm familiar with what smt is, just curious about your particular implementation.
The arm a53 core is a very basic in-order design and I've never heard anything about it supporting multiple threads per core, I.e. presenting more virtual cores to the operating system than there are physical cores (like 4 core/8 thread in Intel). Features like that require hardware for state storage, register remapping, large caches etc. that use a lot of power. I can't picture any of that in the tiny a53 that was designed for low power and efficiency above all else.

spiked_mistborn said:
I'm familiar with what smt is, just curious about your particular implementation.
The arm a53 core is a very basic in-order design and I've never heard anything about it supporting multiple threads per core, I.e. presenting more virtual cores to the operating system than there are physical cores (like 4 core/8 thread in Intel). Features like that require hardware for state storage, register remapping, large caches etc. that use a lot of power. I can't picture any of that in the tiny a53 that was designed for low power and efficiency above all else.
Click to expand...
Click to collapse
Sincerely, I haven't debugged the whole kernel yet. But SMT has been compiled and is up and running, I don't know how, I mean, I know it's working and enabled but I don't know if it has some kind of effect in the system.

Special post!
Now every commit is automatically built by Travis CI testserver. Once compiled the latest build is uploaded to a server. That server will hold all the experimental builds until the final version is released.
Check it here:
https://www.androidfilehost.com/?w=files&flid=149407
Please note that this server might be unstable as it's running in a free hosting service, please don't be evil and don't overload it.
Switched to AFH.

So seeing as how this is based on squid2 kernel, I'm wondering what advantages this would have over his kernel?

Related

[Kernel 3.12.rc6][24 OCT][DEV THREAD!] Dorimanx 8.43 ONLY JB I9100 +RECOVERY+ROOTED.

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Dorimanx Kernel for SGII-I9100
Supporting 5 ROM Platforms!
My kernel was based on SiyahKernel 4.0 long time ago in other realty,
Kernel Tree is 3.12.rc6-R101, + Samsung JB updates + my tweaks and lots of tuning!
Thank you Gokhanmoral for your great work in the past!
Warning!!!
Do not install this kernel on any Android version lower than 4.1.Y
Do a Nandroid Backup of your ROM before first try it! just in case
Constant OC will drain more battery! use low speeds on screen off! min 200/100 max 800
CPU will shutdown in case of over-volt or under-volt so be careful
I'm no responsible for any hardware damage or system corruption that can happen after using this kernel,
you are using this kernel from your own will and accept any responsibility by using it.
If you install this kernel your warranty will be void!
Of course you can be relaxed, I'm trying every release on my phone several hours before of release it so,
if something wrong, i will get the damage first, you get a tested and tuned working kernel...​
« Thread rules
« Which kind of posts are allowed in this thread?
Report of bugs after test it personally and including the proper log (Please refer to the Voku's guide of How to report bugs for further information about logs.)
Feedback that could genuinely helps to the development of the kernel, for example tests of a new feature including a complete explanation, documentation and results.
Requests of new features for the next versions of the kernel with the proper explanation of why you expect to see it and why do you think that will be an improve to the kernel.
« Which kind of posts are not allowed here and belongs only to the discussion thread?
Battery life related, which include: Discussion of battery life, statistics of your battery life, screenshots about your configuration, your configuration itself (with the intention of help another users)
Reports of SOD if you undervolt / overclock your phone
General discussion about settings of the kernel, which include: Governors, schedulers, I/O, dual-boot, etc.
Requests of new features for the next versions of the kernel without the proper explanation of why you expect to see it and why you think that will be an improve to the kernel.
Bug reports with the proper attachments like logcat and kernel log (This is the exception, you can post it here and in the development thread, again, only with the log attached, otherwise the report will be ignored), please refer to the voku's guide of How to report bugs for further information about logs.
Deep sleep issues. Mostly of this issues are not kernel dependent, the rogue apps cause wakelocks and other weird behavior so, the first suggestion will be go to the BBS (Better Battery Stats) thread, install the app, and drop the log in there but as complement you can expose your issue here.
« Useful Links and Guides
Official Dorimanx's site
Facebook Fan Page
Kernel GIT Repository
INITRAMFS Repository (recovery)
Dorimanx change logs by kantjer
How to save battery by Voku
All you need to know about UV/OC by the professional chip designer Vikas [Very important to read]
[GUIDE] CPU Governors, TCP algorithms, Android Tips, & IO Schedulers: In my Own Words by MBQsniper
Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Configs by droidphile
How to make your own .TAR kernel file to flash with ODIN by dorimanx and a ready to use .TAR by kantjer
How to tune the touch screen if you need it by Crescendo Xenomorph
Kernel Gestures Builder by Flint2
SAMSUNG USB DRIVERS by Daerragh
[Tutorial] How To Logcat by paxChristos
Dorimanx kernel ICS/JB - Dummies Guide by ironass
Kernel is updated to 3.12.Y and beyond.(hybrid)(we have 93% from 3.12.Y kernel!)
Kernel SUPPORT JB 4.1.x/4.2.x/4.3.x
This is JB Tuned Kernel only! not supporting any 2.x.x/4.0.x roms!
Dual CPU support
Default CPU governor: HYPER
CFS CPU SCHEDULER Tweaks.
Default CPU frequency: 200-1200 MHz (MAX OC up to 1.6Ghz speed!)
Kernel Support STweaks and 5 Profiles.
Overclocking to 1600 MHz. (via ANY CPU Tweak Apps or STweaks)
Kernel support 16 CPU steps! 1600Mhz->100Mhz by static default!
You can set MIN/MAX CPU Freq in STweaks app! + lots of CPU tweaks.
Kernel will sleep in deep sleep on 200Mhz->800Mhz as Samsung requesting to prevent SOD.
Support undervolt/overvolting via sysfs interface/apps interface. and STweaks (800-1500mV) (all set to best)
Be very careful with voltage settings! (all set already)
Default I/O Scheduling: BFQ
More I/O Scheduling present in kernel: DEADLINE, VR, NOOP, FIFO, CFQ, SIO, ZEN, BFQ
Native USB Tethering.
Native Wi-Fi Tethering
File systems support: Ext3/4, FAT32, CIFS, NTFS, EXFAT
Added tweaks to increase I/O Speed.
Added tweaks to increase CPU speed
Removed all the debuggers to free kernel from unneeded jobs, and logs.
More Govs present, HYPER, conservative, performance, pegasusq, nightmare, darkness, zzmoove, ondemand(default sleep gov), sleepy.
ZRAM SWAP add more 150/300/600MB compressed RAM, activated by STweaks, set to off by default.
Tweak camera (better picks quality)
Kernel Include Siyah Recovery with Dual ROM support!
In Recovery you have section to select kernel profile. Performance, default, battery, the default is DEFAULT.
Kernel will Auto ROOT your device!
You can disable ROOT in STweaks app!
Tuned for I/O Mega Speed SQLite is injected to ROM after install.
BLN by GM! lights time out, and blink/breathing effect, see STweaks BLN tab to activate! (READ ABOUT BLNWW!)
New Kernel Management app STweaks by GM! installed with kernel.
BLN without Wakelock to save battery when BLN active till timed out. by GM.
Touch Keys Light change with the screen brightness! by GM.
Massive script for kernel/ROM management made by Voku,Alucard and me
It's will work by auto and set lots of tweaks: NET tweaks, GPU tweaks, CPU management, Deep Sleep Tuning, Charging states, and more!
It's name is cortexbrain-tune.sh
WE SAFE (MMC_CAP_ERASE not present) in kernel MMC Code!
MMC code merged with SAMMY Update 10 + 3.10.y updates!
FM-RADIO WORKING! (you need Spirit FM PAID!!!!) or Sammy ROM with FM APP.
Touch screen color + touch thresholds are in STweaks,
Kernel Cleaning Script is build IN! by VOKU.
BT Support for SAMMY 4.1.2 and all 4.2.X + 4.3.x
Video(GPU) + Camera Driver from SAMMY JB/CM10.1 + patches
WIFI Driver 1.61.56 ported from SG4
Modem Driver from SAMMY JB SOURCE
SMP Processor code updated from Kernel 3.12.Y
RCU + SRCU Processor code updated from Kernel 3.12.Y
Kernel Code for on screen gestures by Tungstwenty fixed by MARIO1968
All FS used Code merged with 3.12.Y kernel
SLUB fully merged with 3.12.Y Google Android kernel
SCHED CORE fully merged with 3.12.Y kernel.
RAM merged with 3.12.Y + Google Android kernel.
VFP updated to MAX from 3.12.Y
Slide2Wake by FLUXI, (swipe from left to right on turned off screen to wakeup device, tweak can be turned on/off in STweaks, this mod use 5% battery! (Modded by GM for less battery drain)
Sound boost controls by FLUXI in STweaks.
New Mali V2 Video Driver combined with old to support JB STOCK in one kernel(8.X branch) by Gokhanmoral/me/CM-TEAM!
In 9.X branch we have MALIv2 ONLY video driver for CM/AOKP new ROMS! no STOCK SUPPORT!.
Added mdnie interface and made hardcore’s sharpness tweaks optional by GM!
5 GPU FREQ Steps from 108Mhz to 520Mhz by GM!
Ultra KSM from 3.9.y kernel.
Powered by SuperSU "Please support SuperSU" dev Chainfire!
Recovery can backup/restore STOCK ROM! include the preloaded partition!
NOTE: This kernel is for JB AOKP / CM10.1 / MIUI(STOCK JB BASE) / SAMSUNG STOCK JB ROMs
WARNING:
It's not possible to dual-boot with the JB SAMMY ROMs in any combination.
So, please! don't try it and don't report it as a bug, it's a known issue.
---------------------------------------------------------
Disclaimer:
Every user must use his / her own criteria to report the off-topic posts,
The rules are just a guide to what is expected to see in a development thread,
But if you don't want report posts at least don't answer the repeated questions,
This open the door to the spoon feeders to ask again and again and again...​
Live Change Logs from GITHUB:
Initramfs
Kernel 8.x
Kernel 9.x
(To download kernel, go to links at bottom of >this page!< YES the OP PAGE!)
ICS is no longer supported!
for ICS ROMS use 5.x/7.x/8.1 only!
Discussion, Q&A Dorimanx Thread Go >HERE< For Help.
Change logs:
24/10/13 time 12:50
Kernels 8.43 + 9.43 <Stable>
Kernels 8.42 + 9.42 <Major BUG found and fixed in x.43>
Kernels 8.41 + 9.41 <Stable>
03/09/13 time 16:10
Kernels 8.40 + 9.40 < NEW BETA TEST! >
Kernels 8.39 + 9.39 <stable but with small bugs in ram count>
Added 4.3 support!
Kernels 8.38 + 9.38 <STABLE BUILD!>
15/08/13 time 04:00AM
NO 4.3 SUPPORT!
Kernels 8.37 + 9.37 <DELETED! BUGGED>
"Declared as 3.10.rc5 in X.36 build"
Kernels 8.36 + 9.36 <DELETED! BUGGED>
Kernels 8.35 + 9.35 <MASSIVE UPDATE! V2 Stable for most users>
Kernels 8.34 + 9.34 <MASSIVE UPDATE! Stable for most users>
Kernels 8.33 + 9.33 <Stable for most users! BUT do backups! to PC>
Kernels 8.32 + 9.32 <Considered stable by many, but still some got SODS(for some users). (bugs fixed)>
Kernels 8.31 + 9.31 < test V7, STABLE 90% but low vibrate and small bugs.>
Kernels 8.30 + 9.30 < test V6 STABLE 93%, OOM profiles still broken.>
Kernels 8.29 + 9.29 <new beta test V5, OOM FIXED! stable, but oom profiles broken.>
Kernels 8.28 + 9.28 <new beta test V4, half stable, 80% OK.>
Kernels 8.27 + 9.27 <STILL SODS, OOM Broken!>
Kernels 8.26 + 9.26 <STILL SODS, OOM Broken!>
Kernels 8.25 + 9.25 <DELETED, SYNC BUG>
27/05/13 time 02:50
Kernels 8.24 + 9.24 <Reported as 90% Stable release!>
Kernels 8.23 + 9.23 < DELETED SOD BUG>
Kernels 8.21 + 9.21 < DELETED SOD BUG>
kernels 8.20/9.20 < DELETED SOD BUG>
Kernels 8.19 + 9.19 < DELETED SOD BUG>
Kernels 8.18 + 9.18 < DELETED SOD BUG>
Kernels 8.17 + 9.17 < DELETED SOD BUG>
04/05/13 time 14:45
Kernels 8.16 + 9.16 <Reported as 95% Stable release!>
16/04/13 time 11:35
Kernels 8.14 + 9.14 <STABLE and WORKING OK!>
04/04/13 time 00:10
Kernels 8.13 + 9.13 <STABLE and WORKING OK!>
Kernels 8.12 + 9.12 <STABLE, but with WIFI BUG!>
23/03/13 time 23:40
Kernels 8.11 + 9.11
Kernels 8.10 + 9.10
Kernels 8.4/9.2 -> 8.9/9.9 DELETED! <MEM SOD BUG>
Kernels 8.3 + 9.1
Kernel 8.2 + 9.0
Kernel 8.1 <LAST ICS SUPPORTING KERNEL>
Old History:
24/02/13 time 05:22 (Advanced BETA II)
ICS+JB-MALI+CM10.1+JB SAMMY LEAK+OFFICIAL(from 7.44)
Kernel 7.50 <FINAL VERSION! MALI V1 is END OF LIFE!>
Kernel 7.49 <Advanced Beta Tuning FIX>
Kernel 7.48 <Advanced Beta Test>
Kernel 7.47 <Improved Beta Test>
Kernel 7.46 <MEGA BETA TEST>
01/12/12 time 19:15 (STABLE)
Kernel 7.26 ICS+JB-MALI
Kernel 7.26
20/10/12 time 16:15
Kernel 5.90 / 7.4 JB-MALI
Change Log for 5.90 ICS / 7.4 JB-MALI ONLY!
2/10/12 time 22:48
Kernel 5.84
*VOKU and me, we restored function that check DATA + CACHE file system before boot, for errors and damaged blocks and more.
it's can be requested for one time run by user via extweaks misc tab.
DO NAN DROID BACKUP VIA RECOVERY BEFORE ANY ATTEMPT TO USE IT! (if your phone will not boot, and you don't have backup, don't blame me for that)
If your data has allot of corrupted files. then first boot with this kernel will take longer! do not panic. let it work.
no more than 10MIN, if still no boot, then you need to restore your nand backup and never use this function!
your hardware is not ready for DATA partition clean up. forget it.
you will get new file /log-data and /log-cache
after boot you can check if you had any errors in data or cache.
To activate just "push the ATOMIC button " or push again to ABORT!
function will work after reboot, and never again, till requested by user.
If you do nan droid backup and then restore it, you restore all the errors and junk with it. (just for the info)
Goals for next builds:
Debug and find more code errors! (always something new)
Add cool features and tweaks
Extend battery life.
Boost performance.
« Installation
Download the file
Place it on your SD card
Reboot into recovery
Flash the file
Reboot
In case of a new installation on a non rooted or non recovery device:
You can Download ODIN 3.04 attached to page.
Reboot to Download mode (Hold Power + Home + Vol down, then vol up when you see the download menu)
Connect USB, wait until the drivers be installed
Install kernel via ODIN, choosing the option PDA, search for the file that you downloaded and push start
If all going fine the phone will reboot and you done
Mirror #1 by Bmbm
Mirror #2 by Willflint
Mirror #1 Here
Mirror #2 Here
Dev-Host mirror (just in case that main mirror be overloaded)
Alternative mirror provided by Looki75
> Server in standby, no content <​
« Credits
Gokhanmoral (Siyah Kernel)
Myfluxi (xxICSKernel)
Pinpong (Thoravukk_i9100)
Voku1987(This Kernel)
Alucard_24(This Kernel)
STANTRC(This Kernel)
Halaszk (siyahkernel-sgs3)
AndreiLux(Perseus-S3 Kernel)
Teamhacksungb (CM Kernel)
Pershoot (Galaxy-2636)
Dror2169 (KernelSanders-OMAP)
Faux123 (Great Mega Elite Dev, many kernels)
Simone201 (Neak-ICS kernel)
Angelom (Abyss kernel)
DerTeufel (Samsung kernel - Aries)
Entropy512 (CyanogenMod)
Talustus ( Dream Kernel - ICS)
Tungstwenty (On screen gestures addon)
Renaudallard (GNexus kernel)
Torvalds (Kernel 3.6.Y maintainer)
Robertobsc (Siyah kernel 3)
Second kernel developer voku1987, GIT
Please treat him as full time developer for this kernel, any of his answers are considered as if i have answered.
Thanks a lot for your help and support!
Third Kernel developer Alucard_24 GIT
Please treat him as full time developer for this kernel, respect his answers as he know much and helping in development!
Thanks a lot for your help and support!
Forth Kernel developer StanTRC GIT
Please treat him as full time developer for this kernel, respect his answers as he know much and helping in development!
Thanks a lot for your help and support!
Great Fearless Beta Test Team!
Eskriminal
Rkoby13
Infatality
Shahan_mik3
Computoncio
Metalgearhathaway
PSyCh¤_O_O
Crazy-Silver
Cybernetus
Bogdan1980
Markox89
Stopro
Misk77
The most active and honored team members are:
Voku1987 ★
Alucard_24 ★
StanTRC ★
THE RED BLUR ★
Manulemaboul ★
GaboWinter ★
Johnbeetee
Xanthrax
Cybernetus
Big_bum
Rkoby13
Unexist6969
Bologna
Kantjer
Crazy-Silver
Sybregunne
#illidan
It_ler
Flint2
Wonsky21
Zeppelinrox
Fhasovic
Lyndonguti
Nasty_z
Krishnadusad
Crescendo Xenomorph
Jgcaap
Bleuxeon
Respect them and read there posts, ask them questions, and you will be happy and safe with us
TO DONATE CLICK HERE
Donators:
Donation from a XDA Guests x36
Bmbm (Huge donation! Great Main Mirror!)
Willflint(Huge donation! Great Second Mirror!)
Bleuxeon x5
Sun90 X3
Rkoby13 X3
THE RED BLUR x2
Xanthrax x2
Kantjer x2
Flint2 x2
PigMachine x2
Nuclear******* x2
Jgcaap X2
Didgesteve X2
Toffiko X2
Ercxar X2
NeGriTa79 x2
O0boiboi0o x2
Axonn x2
Bologna, Avinashadvani, Ciribaski, Freewind29, Johnbeetee, Malavan, , Pender666, Ale.gu, Duykhang524, Fictisio, Americoz, Den15, Jomaga, GregX80, Nokia-xxx, Steili, Ulver7, Mr_omega, Haramizuki, Mofeywalker, Puppyko, Computoncio, Ophirb, [email protected], Sasho36, ADABman, Follettoverde, AMDPOWERFIST, Quijote1, GeScha, Trevfee, Cybernetus, Drinky, JulianXhokaxhiu, Thijssie909, **** Gordon, Gippy2, Mario1968, Godzifa, Maulattu, Manczyslaw1], Fakhersidhu, Davidb89, Dynomot, MrMastodon, Calanizzle, Nogo8888, Dongerado, H4cker77, GieltjE, Blaex, N1m0Y, Lukign0, Ruk_design, Bubble-be, Chivas112, Vexxx, ,Spinik, Minidou-77, Amber_Oomb, Oriundo, Imilic, Liorreem, GieltjE, Knהההrz, TrallaP, LegnaDegna, Fliron, Mrjl, Mmca, Adyjl, KqK, Xsycox, Gatsu84, Oshmoun, Poseben, R3dDr4g0n, Walter White, Arpinacio, TyDraniu, Livefortoday, Dox81, BigGiantFish, Blaex, Metalgearhathaway, HorstiG, Sgauge, ZeroLight, Leo2589, Cr3ck3r5, FaTa1-Err0r, 99x, Pitzyper[FONT=&quot], [/FONT]1.000.0000Dollar, Renemt, Cool1007, Sibero80,
« Extras
GESTURES!
Here you can download the app to set the gesture_set.sh script to make your own gestures.
*Added gestures script that connected with cortex and can be managed by user and system in harmony!
The script is located at /data/gestures_set.sh do not move it, if you have already any gestures scripts in init.d delete them and move your custom stuff to this script.
It will work with the screen on, and be shut on screen off, to get rid of one more loop that wait forever, we dont need it on screen off! So i give you 5 preconfigured gestures! max supported is 10! max finger touches supported also 10.
Script will be copied to data if not exist on boot, if exist then, nothing. You can shut this function in STweaks or restore to default gestures if you mess with it
On restore you will get backup of your current running file at /data/gestures_set.sh.bkp + gesture_set.sh.sec just in case.
PICK FOUND IN GOOGLE! It's not me
I am here for you so, ask, debug and comment!
Help me to make this kernel as good as possible!
Recognized by followers
Great Developer DORIMANX
Page modifications by GaboWinter!
​
Kernel Info about Tweaks / Mods
Here I will post about things that exist in kernel.
First of all here are some guides made by VOKU also developer for this kernel.
Android: How to report bugs
How to use "ADB" - Command Line Tool
You get ZRAM SWAP.
In short, it's compressed RAM, that by using our mighty CPU compress 150MB of Real RAM into 300MB ZRAM!
This is simple math:
we have 848MB RAM, + 300ZRAM - 150 Needed for ZRAM = 1GB RAM
You can see it work by entering terminal app, or connection by ADB
And type:
free
you will see this..
Code:
[email protected]:/ # free
total used free shared buffers
Mem: 848164 801800 46364 0 13456
-/+ buffers: 788344 59820
Swap: 292968 23420 269548
in SWAP filed you see it exist and works!
Also there is one more advanced check
type:
su
zram_stats
you get:
Code:
127|[email protected]:/ # zram_stats
Swaps Status
Filename Type Size Used Priority
/dev/block/zram0 partition 97656 7804 20
/dev/block/zram1 partition 97656 7804 20
/dev/block/zram2 partition 97656 7808 20
ZRAM STATS
/sys/block/zram0
disksize: 100003840
num_reads: 474
num_writes: 2013
invalid_io: 0
notify_free: 61
zero_pages: 105
orig_data_size: 7565312
compr_data_size: 3465633
mem_used_total: 3563520
avg_compr_ratio: 45 %
mem_overhead: 2 %
/sys/block/zram1
disksize: 100003840
num_reads: 473
num_writes: 2013
invalid_io: 0
notify_free: 61
zero_pages: 106
orig_data_size: 7561216
compr_data_size: 3447524
mem_used_total: 3584000
avg_compr_ratio: 45 %
mem_overhead: 3 %
/sys/block/zram2
disksize: 100003840
num_reads: 477
num_writes: 2014
invalid_io: 0
notify_free: 61
zero_pages: 99
orig_data_size: 7593984
compr_data_size: 3444863
mem_used_total: 3559424
avg_compr_ratio: 45 %
mem_overhead: 3 %
You see 3 ZRAM swaps each 100MB and they work in load balance!
All filled/released in one push, it's fully auto! it's will help on heavy RAM load!
==================================================================
Touch Recovery:
Made by ELITE DEVELOPER Gokhanmoral!
I have added tweaks and my configurations.
You can move in menu by finger, and by pushing arrows at the bottom, also hard keys work.
You can have 2 ROMS installed in one phone
See menu and check for full instruction on Developer Thread!
You can backup and restore / format / mount / install from ZIP / or from zImage!
You can set / reset your kernel profiles
there are 3:
Battery saver: reduced performance, but long battery life.
Default: normal performance, normal battery life
Performance: Boosted allot for performance, but faster drain of battery.
In order to use performance profile and not to drain your battery too much,
you need to set profiles in any app for CPU tweaking, that can give you profiles for:
Screen ON
Screen OFF
ON CALL
ON LOW Battery.
For screen ON you can use Full OC (200-1500) and have fun.
On Screen OFF: use 200-800/1000 speed
On Call use: 200-800 to save power.
On low battery use 200-1000/800/500 as you like..
================================================
You get tuned SQLite for CM9 or PURE ICS ROMS.
Its set to reduce the "sync command" when writing and reading tables in apps and system data.
So it's will "sync" on finish write, and not every small operation that its doing.
By this, read/write ( I/O) performance boosted allot!
If you install any other kernel after my, the sqlite will remain in ROM till ROM will be replaced.
================================================
More to be added later.
​
22/7/12 time 19:00
Kernel 1.0 -> 5.2
Code:
*Restored lot's of code that i and voku ported, to restore stability, much from that code was exp, so it's moved to EXP branch, i will test it offline.
*Changes to cortex for stability, see git.
*Messed with profiles save, should be ok now.
*Improved stability!
*Improved performance!
*Updated to 3.0.38!
*Fixed GPS
*Added wifi supplicant tuning to extweaks and to cortex.
*Added FIX for Korean GPS
*Added BT fix for SAMMY 4.0.4 ROMS by Gokhanmoral! TNX!
*More code porting for better deepsleep! and network fixes.
*Tuned hyper gov and renamed to HYPER!
*Updated to Samsung Update 5 + 6
*Lots of changes to TVOUT driver, it's may now work on custom roms!
*Removed ondemand, HYPER is the same gov but more advanced!
*Fixed intellidemand now it's stable.
*Ported more code fixes from 3.5-rc7
*Added new tweaks in extweaks and converted many to checkboxes.
*More patches to WIFI driver.
*Battery life improved allot! thanks to code changes that put more drivers to sleep!
*Removed KSM and ZCACHE from config, ZCACHE is damaged after merging with kernel 3.5-rc7 and KSM eat battery and dont really help. no big change in performance, still fast and smooth. (zcache no longer used in 3.x.x so we disable it too)
*Kernel is stable! 2 days with full cortex and performance profile.
*Updated to 3.0.37!
*I have ported lots of code changes from kernel 3.5-rc7 (about 2000+ code lines changed)
all about file system and cache memory and compression.
*VOKU has ported lots of new code for process control and kill + memory control. from 3.1.Y
*Fixed wakeup booster, it's more smart!, now i boost the freq to max but with your GOV not with performance, and add +25mV to all steps for time that wakeup booster works, then it's will set speed to normal and reduce voltage by -25 and all will be as you set.
*Cleaned code from unused functions.
*Extended light sensor and battery sensor pulling time, to reduce battery use, and CPU use (done by voku)
*Tuned voltage for HIGH steps 1000 --> 1500 added more +25mV each. for stability.
*Fixed the Touch keys timeout stuck at 5 sec. now should obey your settings.
*Added check if cortex background process is OFF or ON for real.
*Added new GOVs intellidemand and wheatley they are good for battery save, and can be fast if tuned via setcpu app! or they SLOW by default but very smart.
*Fixed all GOVS code about idle time statistics and wait for IDLE, should help reduce battery drain.
*Restored some define values to default, this small things can make big problems, we made some changes to them without fully understanding if it's OK or may damage some thing, like front camera!
*Kernel size is FULL, 8.10MB so very soon i will have to cut some tuning to gain more room for code changes...
*Fixed BLN still ON after main BLN switch off!
*Fixed small bug in kernel optimization.
*Tuned brightness for simple auto brightness (modded by VOKU)
*Improved stability and performance.
*File system corruption protection. by using FSYNC function to sync all changes to file system more often.
Added extweaks MISC option to disable the FSYNC to get little more performance, but reduce to less safe from damage file system (DEFAULT for all KERNELS!) this function is external! option will be updated only on reboot! not as you set it.
*Removed cortex background process for default and battery profiles, so user can use it or not. see extweaks, (without cortex, wake up booster + sleep gov change + dynamic GOV modding will not work!) for some ROMS, it's GOOD! since they get SOD all day with cortex ON, so try without, if OK, try with, if OK, have fun, if SOD, disable again.
It's ON for performance profile!
*Battery life improved.
*Added code fix that reduce CPU usage on idle to 1~15% on 100Mhz! was 15~30% now more battery will be saved.
*Rebuilded the root add/remove now it's used as buttons. install , remove , check
*Retuned Touch screen CODE, screen will not stuck now, 70% of SOD, not really stuck the phone, it's only the screen stuck! via adb i see that all OK! and system working as was, so now problem is fixed!
*New code fix for WIFI, now if not used and disabled in ROM, driver will cut power to WIFI chip! till now it's was still idle and drained power. not any more
*Finally i made my kernel STABLE! no more SOD and great battery life!
I have reverted from Linaro 12.06 GCC 4.7.1 builder to Android GCC 4.3 builder
that used to build all ROM and Default kernels!
So no more SOD! and battery is 1.1%/h -15mA :)
*Added more fixes to code from FLUXI kernel, TNX Myfluxi!
*Set 15 CPU freq steps for all profiles and removed settings to change it, there are many code trigers that depend on 15 freq steps, so best to have all for all profiles, then reduce the MAX freq to what needed, (already set)
*if you have added any INIT.D scripts that mess with my settings, REMOVED THEM, then test my kernel,
For some phones to low settings will always kill the phone,
I am asked all people that post INIT.D scripts in this thread, STOP/REMOVE. keep them to your self. thanks.
*Found and removed SOD bug on screen off/on and in deepsleep.
OK for me, need more people to test!
*Ported some stuff from GM SG3 kernel, better video sharpness and some restores for Video driver GPU freq lock on screen ON.
*Tuned all profiles, with min/max cpu on suspend, now we can use 200 to 700, please do not change it for now.
*Lots of new code ported by VOKU from 3.1.Y kernel! see GIT
*Some clean ups, and kernel optimizations FLAGS.
*Removed hotplug and interactive govs, we have lot better govs to use.*fixed small but critical bugs! (reuploaded kernel last at 18:59)
*I have reverted all CODE for CPU Idle and Suspend from Source (GM Thanks again!) now i hope the SOD will be wiped!
*Reduced Kernel size thanks to VOKU new reconfiguration of Kernel flags.
*Added new CPU calibration code form 3.4.y tree.
*Added more fixes for Kernel scheduler.
*Tuned all profiles, now sleep gov is pegasuq for all!
Fixed all missing config triggers and added more protection from battery gauge reset by extweaks without need.
*New Updates to SLUB scheduler that we use for memory management.
*Added new stuff to extweaks!
Now we have:
bln tab:
SWITCH to turn of BLN!
SWITCH to turn ON led lights on touch! it's use the led time out!
Fixed BLN test button.
cpu tab:
SWITCH to turn on/off wakeup booster and set the boost delay!
*Reverted last USB code update from NOTE, found that driver stuck after long charge and we can get to storage via USB, we have SG3 driver, so to mix them probably bad idea,
*Restored CPU code that needed for SAMMY rom stability to prevent SOD, so i hope it's will be ok now.
*Small fixing and cleaning. see GIT's
*Fixed WIFI wakelocks by removing latest patches, need to work on them first.
*Added CPU patches from GM
*Added Audio Amplifier GAIN for headphones 0DB 1.5DB 3-6DB addon by GM! see extweaks.
*Tweaked all profiles! set the suspend freq to min 700 max 800! as Samsung request! lest stop the SOD! please do not change that settings.
*Added new Patch for WIFI filter found by Entropy512 seems that we had an open packet filter that helped to drain battery with wakelocks!
*Fixed some cortex code, all should be good. and fast!
*Removed EXP ver, need to work on it.
*For now this kernle not include new Power Manager by VOKU, we still testing!
*Fixed Wakeup booster script, now will wake and power the phone for 10 sec on max we can get! the reduce to normal as user set in extweaks! will work only if background process is ON,
*Changed all profiles! boosted GPU freq and voltage for all, after testing with heavy games! now stable! + govs change.
*Cleaned and updated HYPER + ONDEMAND govs to 3.0.Y tree + mods.
*Lots of new stuff ported by voku for WIFI driver, so test it as much as you can.
*Fixed some bugs in cortex script, removed not used stuff from crypto module.
*Fixed SAMMY boot (reverted some stuff)
*Fixed led_timeout bug in extweaks.
*Fixed zram stats info for roms without BASH, it's temp solution till we can fix the main script.
*Added new tweaks, Negative mod On/Off via checkbox + advanced wakelock mod, will show all wakelocks that was ON and ended! so we can debug, who drained battery! it's OFF, by default, see MISC tab! added by GM! :)
*Updated New USB drivers from NOTE Update 3, need to test all we got (usb devices and external storage via usb)
*Reduced compression via XZ and reduced memory used for it, kernel bigger but little faster on boot.
*Small new fix to WIFI driver.
*Added interactive to govs, updated to max by myfluxi
*Added code correction for suspend freq + max freq for performance gov.
*Tuned touch screen wakeup and responce, very smooth now.
*Fix to pegasusq by GM
*Fixed GPU undervoltage script, (by myfluxi)
*And more, see GIT's
*Fixed boot for SlimICS!
*Fixed Battery charge low power mode + updated images from SG3
*Added full support for JellyBean ROM from working source thanks for huge help on that with the INIT root files!
*Fixed lots of mall bugs / syntax / descriptions, in all kernel scripts (extweaks and more)
*Added new stuff to extweaks (usb mod change, auto brightness)
*New fix to WIFI driver.
*Improved I/O latency
*Improved disk write to USB storage
*Improved screen wakeup
*Improved screen off state battery saver. (cortex)
*Lots of code fix and porting as always
*Reduced logs to dmesg and logcat, less chat, maybe less drain..
*Restored luzactive gov and removed tweaks for it on screen on/off now people can use the app for it to control settings.
If someone using apps like SETCPU with his own profiles, please do DISABLE in extweaks cortexbrain tab for CPU-TWEAKS! then your profiles will make difference, if it's enabled, then internal script do the work.
*Improved brightness levels, now more bright, was too dark on min..
*Updated to last released recovery by gokhanmoral!
*Reworked all boot structure to support 4 major branches and still give all that i have to all.
*Small change for kernel name, now it's better to find the last update in recovery!
*Tuned the background control process to wait 10 sec on screen off before do all the system/cpu/voltage/and more changes, just give us time to think if we finished with phone :) before it's shutdown to minimum :)
*Uploaded also in .TAR as promised.*Made lots of code fix and BOOT fix, should be ok now.
*VOKU ported new code for RAM, CPU, Power manager from 3.1.Y good work!
*Added boot progress bar, nice to have :)
*FIXED GPS Activation, deleted 4.1C/D (bugs)
*Fixed New boot order for MIUI and SAMMY and SlimICS
Need to test it.
*Fixed the screen shake on touch hold.
*Huge amount of changes to RAM, CPU, Kernel Operations (merged from 3.1.Y + 3.4.Y)
*Found and removed wakeup bug on lock screen!
*Tuned all govs and ported pegasusq from last siyah kernel to restore normal operation with it.
*Added tweak in extweak in screen tab for managing the negative color mod :)
*Voku ported lots of good stuff including new patch to WIFI driver, some problems resolved, need to test for long term.
*Fixed luzactive gov from been too slow.
*Added support for JellyBeens ROM branch! (by gokhanmoral)
*Lots of tuning and code fix, see GIT, it's too much for change log page*Massive PORT and adapt from 3.1.Y kernel by VOKU!
New code for: CPU, RAM, FS, Kernel operations and lots more! see GIT!
Now cpu used 1~10% on 100Mhz! and was like 25~35% so more battery save and more performance.
*Fixed Voltage for cpu reset on screen on/off
*Added new LOGO :) by Crazy-silver
*Arranged CPU govs by performance for awake, and by power save in deepsleep
See Extweaks CPU tab.
*Fixed battery reset on recovery.
*Added new Tweaks to CFS scheduler in CPU tab. tune it only if you know what is it and what it's set.
*Added more tuning, now we get more performance!
*Battery drain reduced due to low cpu use, and allot of stuff.
*Fixed oom_kill_allocating_task set to 0, now it's 1 as recommended.
*Fixed CFS tweaks activation.
*Added CORTEXBRAIN tab in extweaks, now you can control it, best not, but if you like to mess with stuff, then see what it do in initramfs git and change.
*Tuned scary gov should be better now, and removed it from defaul/battery just in case. added abyssplug.
*Switched to more stable compression and optimization level -O3 from Ofast
Should be more stable now. i even see some better benchmarks.
*Improved ROOT Install/Remove in extweaks + check button :)
*Fixed SCARY gov to be more adapted for this kernel.
*Allowed Abyssplug gov to control second CPU on/off
*Ported fix for vibrate for Samsung roms, TNX Gokhanmoral.
Need to test it! so please do.
*FIXED the BATTERY fuel gauge bug! now it's stable as should!
Give it some time to recover from bug to show good drain results.
but it's will stay correct after reboot, (did 10! no problemo!)
*New CPU idle code ported from 3.1.y kernel by VOKU! we now have the most advanced CPU code for SG2 :)
*Lots of changes and restoring and tuning CPU,GOVS,RAM,TWEAKS.
*Tuned data partition to be more resistant to sudden power loose (sod/batt pull and stuff) this is the android default, data=ordered, we had data=writeback, it's faster but less recommended for phones...
So now its safe again.
*Kernel Cleaning Script is build IN! by VOKU no need to run any external clean scripts.
*Small change to BLN, now will obey touch key voltage! only on blink and steady.
*Locked vibrate to min 25% (max 100%) and added code, if less than 25% set 75%, lets see if OK now after long sleep.
*More code updates from mainstream 3.0.y (some stuff was lost, so now i have my own mainstream kernel to update from)
*Tuned MAX freq for standby to 700Mhz
*Fixed UV reset after screen on/off
*Small config changes in INIT scripts / profiles.
*Added scary gov :) it's SLOW gov, good for battery save and will be used for deepsleep, also tuned it to wakeup fast!
added it to all profiles for deepsleep, and to extweaks
*Added more Voltage to CPU, now it's default ICS kernel voltage.
You can now reduce it by using asv group 4 or undervolt by -25 / -50 but test some time if no SOD. or just leave it alone.
*Updated to 3.0.36
*Added TNT to many bugs :laugh:
*Fixed slow wakeups
*Added more +25mv to lower cpu freq ranges to add more stability.
*boosted boot speed.
*Voku helped allot! he added lots of code fixing and updates to filesystem drivers and memory.
*Added new button at extweaks for checking current gps zone config.
*if you like to fix permissions, just push the button at extweaks misc and turn off the screen! fix will begin instantly! if you really need the phone, use it, but best to let it work top 2~3 min, depending on amount of mess and installed apps, it's done my 450 apps in 2 min :)
*we tuned profiles and voku added new stuff to conservative gov! so it's now the most saving battery gov! try it only for deepsleep (screen of gov)
it's slow, but this is what we need! less activity more battery!
*Vibrate should be OK now.
*now if phone is over 50c heat, and you turn off and on the screen. it's will auto drop to 1Ghz and to hotplug gov to cool off..
after temp will drop, and you turn screen on/off all your extweaks settings will be active again! so if was oc to max then you get it back :)
I care about my people :)
*Fixed the vibrate low after some time. + added extweaks interface for it.
*Added touch screen tuning
*Added screen color tuning (extweaks SCREEN tab)
*fixed WIFI driver
*Reduced batt drain
*Added HYPER gov, it's the most powerful gov in my kernel. :)
*Added New BLN from Myfluxi, it's works with aokp and cm9, need to check with original ics.
Lots of new tweaks in BLN tab
*Added lots of new code/bug fix for CPU / RAM / SYSTEM
*Corrected small bugs in extweaks,
*Updated to 3.0.35
*Reverted some commits that i think we can ignore for now. too much experimental.
*Added some more code fixes,
*Ported updated Vibrator driver code.
*Restored USB drivers, usb otg/disk-on-key should work.
*Added ZCACHE and CLEANCACHE this will boost I/O performance and help with heavy loads!
*Added massive amount of code fixing and tuning to RAM, CPU, NET.
*Added ability to boot in to DOWNLOAD(odin) mode from ROM->bootloader (credits to gokhanmoral)
*Tuned all profiles,
*Fixed ZRAM / GPS settings in extweaks!
*Added Fix permissions to extweaks MISC
*Added to system tweak to check if you have AD blocker file already, and if you do, then my adblocker will not be installed, if you dont, then you get one :)
*Added Zram turn off! not recommended, it's will shut down the zcache also. (no battery save from it, just little amount of cpu.)
*Added to GPSREGION option to restore your ROM default config! and one for not to change any config. (default!)
But restore will really work after you reinstall your rom, if you already changed it with my previous kernel version, (if not, new kernel users, then you set to go)
*Added lots of WIFI driver fixing! now Ch 13/14 will work as planed, and 5GHZ band will work as should.
*Added more pressure to save battery tweaks on screen off.
*Added ability to change the sleeping gov in extweaks + sleeping charging gov.
*Rearranged the extweaks CPU tab. now all in good order.
*Restored the Undervolt menu option. use it with care..
*Reduced undervoltage groups from 7 to 5, 6+7 are to low for our CPU.
*Updated to newest Linaro 12.05 GCC 4.7.1 ICS kernel builder! :) + patches to kernel for it to work.
*Patched All GOVS for more speed and battery save on screen off.
*Removed lots of logs generated from kernel to dmesg and logcat, now more quiet kernel and i hope it's will reduce some small battery drain.
*Blocked access to some logs that are written all the time to flash to save the flash and reduce internal cpu operations that we dont need.
*Fixed permissions to /data/anr! (no reboots any more)
*Ported more CPU code fixes.
*Fixed all kind of functions that can crash kernel and stuck the phone. there are more... there are always some more left... but we will get to them :)
*Updated to 3.0.34 Tree
*Added More EXtweaks Options:
Bus Freq, Bus Thresholds, Under voltage Groups, Suspend Freq, Zram Settings, Zram Stats, GPS Time Zone, GENTLE_FAIR_SLEEPERS, ARCH_POWER.
*Fixed and tuned lots of things in cortexbran-tune.sh script Cleaned old unused settings from extweaks xml
*Tuned all profiles.
*Tuned Network scripts, now i get a lot faster data connection!
*Added changes in CPU cores/voltage based on screen on/off
*Added cleaning of lost+found folders on each boot.
*Added WIFI fast sleep on standby.
*Code fixes and charge voltage config.
*Looks like the DATA partition fix at boot working great, and no serious problems, so i removed warning from change log, all cool :)
*Updated to 3.0.33 Tree
*Added Sec Rom NAND backup by gokhanmoral.
*Added lots of updates from SG3 kernel and NOTE(n7000) kernel.
*Added Abyssplug gov from Abyss kernel :) it's set as sleep gov in kernel operation script.
*Added one more level to BUSFREQ 100MHZ was lowest 133Mhz, may save some battery.
*Added LAZY gov and Hotplug
*I have reduced CPU global voltage! to save more power!
*Tuned all GOVS for less freq jumps and more stability,
*Added lowest power to GPU to 700mv by Myfluxi
In my profiles i use MIN 800mv, just in case, but you can test it.
*Made lots of profiles changes, please reset in recovery and set your preferred.
*Added changes to ADB operation, and lots of updates to USB and Misc code fixes.
*Massive script for kernel/rom management made by voku and me :)
It's will work by auto and set lots of tweaks: NET tweaks, GPU tweaks, CPU management, Deep Sleep Tuning, Charging states, and more!
It's name is cortexbrain-tune.sh :)
*Added DATA, CACHE, PRELOAD(sec-rom-system) partitions scan for errors and FIX! every boot!
I hope you want clean partition! there is no kernel / rom that will do that for you. :)
So errors are gathering slowly and some weird problems appear!
Well not any more :)
If no damage then no problems :) and no boot delay!.
*Added TAR kernel 3.2 for ODIN install to fix the recovery.
*Added new WIFI driver from SG3 :)
*Added ported changes to pegasusq GOV
*Tuned all profiles, (please reset and use one that you prefer.)
*New SD FAT32 driver from N7000 ported by Gokhanmoral
*CPU code restore, as was in 2.9 (no sod any more)
*Added fix_permissions script, you can run it via any terminal app or adb.
*Many drivers fixed by many devs, i have ported all :) Thanks to voku, gokhanmoral, myfluxi!
*New ZRAM compression from google, called snappy, it's use very little CPU to work. so ZRAM driver improved allot.
*Updated from source, recovery files and busybox.
*Reduced video ram from 32MB to 16MB, we had 9MB as default, so now more free ram shown. (try to run 1080p video and report if ok, or crap :) )
*Replaced WIFI driver from NOTE N7000 + fixes from lot of sources.
*Added BT drivers (more support, i hope it's will give someone any better compatibility with other devices.)
*Updated CPU code from source (siyah kernel)
*Tuned govs for more power save and performance. (ondemand + pegasusq) now back to ONDEMAND as DEFAULT.
*Added new option to dual mount sdcard+emmc via USB cable, and be able to use them in process of connection :) (one click connect)
See MISC tab in extweaks app :) after you disconnect usb, setting is released.
*Added new voltage code for GPU card and updated to source 3 N7000(NOTE) by myfluxi!
*Fixed STUCK after install on AOKP roms! (if you wait 60 sec with 2.8, rom will boot! now no wait, will boot as normal)
*New WIFI driver ported from N7000 (NOTE phone)
*New updated GPU driver (mali update 3)
*Tuned profiles, switched to pegasusq as default, (i am working on cool tweaking for it)
*Restored ntfs-3g if any one need it, + tweaks for it by gokhanmoral
*Some code fixing and settings tuning.
*Updated to 3.0.32 (lots of fixing)
*Updated new WIFI driver. (siyah kernel)
*Updated CPU code fixes from SOURCE(siyah kernel)
*Added all kind of tweaks and code fix from main line kernels.
*Improved support for SAMMY ROMS (ICS original)
*Improved battery drain, (Now Less drained on standby)
*Removed some addons that made SOD in many cases, now stable.
*Tuned my tweaks and scripts. (see initramfs) + updates from (siyah)
*Fixed init for MIUI roms, (restored + small changes)
*Added more cpu stability code from faux123
*Fixes to logger code and android binder.
*Messed allot with WIFI driver, work ok now.
*Tuned GPS permissions, should work now with non aokp roms.
*Added all new updates from all great devs :)
*fixed the init scripts to remove the encryption on boot.
*changed the charger voltage to 700mv and misc charger to 650, usb to 500.
cant be changed to different state via extweaks.
*compressed with XZ compression to allow moving all the modules inside the kernel image, now it's can be used as tar for odin.
*Added siyah in kernel name to activate dual boot support, as requested by Gokhan.
*tuned touch screen.
*tuned cpu
*tuned network
*updated recovery from ghokan.
*many new/updated drivers.
for full log see my git for initramfs and kernel.
kernel compressed with zlo the lowest compression for max speed.
so its was to big to fit the boot partition, i had to move the modules out of kernel.
so from version 2.3 you cant update via tar and odin.
so use recovery only.
or update the supplied modules to /system/lib/modules/
if you install via recovery, nothing needs to be done.
in case of emergency use 1.1 kernel in tar, then go to recovery and update to 2.X :)
*Tuned kernel for more battery saving
without reducing performance,
Now kernel will hold more in deep sleep.
*Switched to Linaro 12.4 gcc 4.7 toolchain. kernel is smaller now.
*Added CPU power management ported from NEXUS kernel.
*Made all kind of fixing and function exporting and cleaning warnings,
*Battery life improved by reducing activity in deep sleep, changes by myfluxi
*Added WIFI code fixes
*Added Network code fixes
*Tuned kernel tweak
*Added touch screen control by user, ground base code by myfluxi , now i need to put it to extweaks, still work to do..
*Updated to 3.0.31!
*Lots of cleanup and tuning to system tweaks,
*Lots of changes to recovery by gokhanmoral all for second rom and options to control it.
*Ported massive amount of code from sensation device kernel!
it's common Linux changes only, lots of bug fixing and function speedups!
see git, if you like something to read before bed :)
*Added some change to wifi to preserve more battery on sleep and wifi on.
*Fixed support for voodoo louder driver/app.
*Added lots of fixing to WIFI driver. see git.
*Fixed code for USB host and mouse/keyboard plug in.
*Added ability to change cpu min/max frequency in extweaks app.
*I have made huge amount of changes to kernel code, lots of ports from other great developers!
*tuned all profiles! you MUST clear profiles in recovery after install, and set one you like.
*For now we have static 15 CPU freq steps 1500->100, no change can be done without hot boot, so for stability i set it static.
*Added fix for cpu stats and stalls(hangs).
*New WIFI driver + lots of changes to it already.
*support for NTT-Docomo variant (you will need to “echo 16 > /proc/sys/kernel/rom_feature_set” to get gps working.
Step Table:
=========
5-steps: 1200, 1000, 800, 500, 200
6-steps: 1400, 1200, 1000, 800, 500, 200
7-steps: 1500, 1400, 1200, 1000, 800, 500, 200 (default.)
8-steps: 1600, 1400, 1200, 1000, 800, 500, 200, 100
9-steps: 1600, 1500, 1400, 1200, 1000, 800, 500, 200, 100
15-steps: 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100
Have fun
Information Page​
ZRAM (aka CompCache aka RAMZSwap)
ZRAM is an updated version formally known as CompCache and RAMZSwap. It was originally designed for 2.6.38.xx kernels, I have backported to our 3.0.xx kernel. ZRAM allows real-time compression of memory objects in RAM thus reducing memory pressure for the Linux kernel and can keep more apps in memory longer (more apps in RAM == better performance, less fetching from slower MMC or SDCard). Compression, however, is not Free. Some CPU cycles are required to do the compress/decompression, so there's a slight penalty for it. The original CompCache / RAMZSwap required a user space binary to control its behavior which adds additional penalty to performance, but the new version ZRAM eliminated the need for a separate dedicated daemon, thus reducing the overhead and increased performance from the old CompCache by 20%. Therefore, with the newer implementation of ZRAM interface, the performance penalty is almost negligible.
Info about Cortexbrain-tune.sh and more!
# ==============================================================
# Logic Explanations
#
# This script will manipulate all the system / cpu / battery behavior
# Based on chosen EXTWEAKS profile+tweaks and based on SCREEN ON/OFF state.
#
# When User select battery/default profile all tuning will be toward battery save!
# But user loose performance -20% and get more stable system and more battery left.
#
# When user select performance profile, tuning will be to max performance on screen ON!
# When screen OFF all tuning switched to max power saving! as with battery profile,
# So user gets max performance and max battery save but only on screen OFF.
#
# This script change governors and tuning for them on the fly!
# Also switch on/off hotplug CPU core based on screen on/off.
# This script reset battery stats when battery is 100% charged.
# This script tune Network and System VM settings and ROM settings tuning.
# This script changing default MOUNT options and I/O tweaks for all flash disks and ZRAM.
#
# TODO: add more description, explanations & default vaules ...
#
# ==============================================================
# Explanations
# ==============================================================
#
# oom_kill_allocating_task: If this is set to zero, the OOM killer will scan through the entire tasklist and select a task based on heuristics to kill.
#
# This normally selects a rogue memory-hogging task that frees up a large amount of memory when killed.
# If this is set to non-zero, the OOM killer simply kills the task that triggered the out-of-memory condition.
# This avoids the expensive tasklist scan.
#
# echo XXX > /proc/sys/vm/oom_kill_allocating_task;
# dirty_expire_centisecs: This tunable is used to define when dirty data is old enough to be eligible for writeout by the pdflush daemons.
#
# It is expressed in 100'ths of a second. Data which has been dirty in memory for longer than this interval will be written
# out next time a pdflush daemon wakes up.
#
# echo XXX > /proc/sys/vm/dirty_expire_centisecs;
# dirty_writeback_centisecs: The pdflush writeback daemons will periodically wake up and write "old" data out to disk.
#
# This tunable expresses the interval between those wakeups, in 100'ths of a second.
# Setting this to zero disables periodic writeback altogether.
#
# echo XXX > /proc/sys/vm/dirty_writeback_centisecs;
# drop_caches: Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.
#
# To free pagecache:
# echo 1 > /proc/sys/vm/drop_caches
#
# To free dentries and inodes:
# echo 2 > /proc/sys/vm/drop_caches
#
# To free pagecache, dentries and inodes:
# echo 3 > /proc/sys/vm/drop_caches
# page-cluster: page-cluster controls the number of pages which are written to swap in a single attempt. The swap I/O size.
#
# It is a logarithmic value - setting it to zero means "1 page", setting it to 1 means "2 pages", setting it to 2 means "4 pages", etc.
# The default value is three (eight pages at a time). There may be some small benefits in tuning this to
# a different value if your workload is swap-intensive. (default 3)
#
# echo XXX > /proc/sys/vm/page-cluster;
# laptop_mode: laptop_mode is a knob that controls "laptop mode". When the knob is set, any physical disk I/O
#
# (that might have caused the hard disk to spin up, see /proc/sys/vm/block_dump) causes Linux to flush all dirty blocks.
# The result of this is that after a disk has spun down, it will not be spun up anymore to write dirty blocks,
# because those blocks had already been written immediately after the most recent read operation.
# The value of the laptop_mode knob determines the time between the occurrence of disk I/O and when the flush is triggered.
# A sensible value for the knob is 5 seconds. Setting the knob to 0 disables laptop mode.
#
# echo XXX > /proc/sys/vm/laptop_mode;
# rr_interval: rr_interval or "round robin interval". This is the maximum time two SCHED_OTHER (or SCHED_NORMAL, the common scheduling policy)
#
# tasks of the same nice level will be running for, or looking at it the other way around, the longest duration two tasks
# of the same nice level will be delayed for. When a task requests cpu time, it is given a quota (time_slice) equal to the
# rr_interval and a virtual deadline, while increasing it will improve throughput, but at the cost of worsening latencies.
#
# echo XXX > /proc/sys/kernel/rr_interval;
# dirty_background_ratio: Contains, as a percentage of total system memory, the number of pages at which the pdflush background writeback daemon will
# start writing out dirty data.
#
# echo XXX > /proc/sys/vm/dirty_background_ratio;
# dirty_ratio: Contains, as a percentage of total system memory, the number of pages at which a process which is generating disk writes will itself start writing out dirty data.
#
# echo XXX > /proc/sys/vm/dirty_ratio;
# iso_cpu: Setting this to 100 is the equivalent of giving all users SCHED_RR access and setting it to 0 removes the ability to run any pseudo-realtime tasks.
#
# echo XXX > /proc/sys/kernel/iso_cpu;
# ===============
#
# Kernel-Settings
#
# ===============
# msgmni: The msgmni tunable specifies the maximum number of system-wide System V IPC message queue identifiers (one per queue).
#
# echo XXX > /proc/sys/kernel/msgmni;
# sem: This file contains 4 numbers defining limits for System V IPC semaphores. These fields are, in order:
#
# SEMMSL - the maximum number of semaphores per semaphore set.
# SEMMNS - a system-wide limit on the number of semaphores in all semaphore sets.
# SEMOPM - the maximum number of operations that may be specified in a semop(2) call.
# SEMMNI - a system-wide limit on the maximum number of semaphore identifiers.
#
# The default values are "250 32000 32 128".
#
# echo XXX XXX XXX XXX > /proc/sys/kernel/sem;
# ===============
#
# CPU-Settings
#
# ===============
# scaling_governor: Using Frequency Scaling Governors -> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
#
# -> http://publib.boulder.ibm.com/infoc...?topic=/liaai/cpufreq/TheOndemandGovernor.htm
#
# conservative - Increases frequency step by step, decreases instantly
# ondemand - Uses the highest CPU frequency when tasks are started, decreases step by step
# performance - CPU only runs at max frequency regardless of load
# powersave - CPU only runs at min frequency regardless of load
#
# echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# sched_latency_ns: Targeted preemption latency for CPU-bound tasks.
#
# echo XXX > /proc/sys/kernel/sched_latency_ns;
# sched_batch_wakeup_granularity_ns: Wake-up granularity for SCHED_BATCH.
#
# echo XXX > /proc/sys/kernel/sched_batch_wakeup_granularity_ns;
# sched_wakeup_granularity_ns: Wake-up granularity for SCHED_OTHER.
#
# echo XXX > /proc/sys/kernel/sched_wakeup_granularity_ns;
# sched_compat_yield: Applications depending heavily on sched_yield()'s behavior can expect varied performance because of the way CFS changes this, so turning on the sysctls is recommended.
#
# echo XXX > /proc/sys/kernel/sched_compat_yield;
# sched_child_runs_first: The child is scheduled next after fork; it's the default. If set to 0, then the parent is given the baton.
#
# echo XXX > /proc/sys/kernel/sched_child_runs_first;
# sched_min_granularity_ns: Minimum preemption granularity for CPU-bound tasks.
#
# echo XXX > /proc/sys/kernel/sched_min_granularity_ns;
# sched_features: NO_NEW_FAIR_SLEEPERS is something that will turn the scheduler into a more classic fair scheduler ?!?
#
# echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features;
# sched_stat_granularity_ns: Granularity for collecting scheduler statistics. [1/0]
#
# echo XXX > /proc/sys/kernel/sched_stat_granularity_ns;
# sched_rt_period_us: The default values for sched_rt_period_us (1000000 or 1s) and sched_rt_runtime_us (950000 or 0.95s).
#
# This gives 0.05s to be used by SCHED_OTHER (non-RT tasks). These defaults were chosen so that a run-away realtime
# tasks will not lock up the machine but leave a little time to recover it. By setting runtime to -1 you get the old behaviour back.
# threads-max: Gets/sets the limit on the maximum number of running threads system-wide.
#
# echo XXX > /proc/sys/kernel/threads-max;
# ===============
#
# Memory-Settings
#
# ===============
# swappiness: Swappiness is a parameter which sets the kernel's balance between reclaiming pages from the page cache and swapping process memory.
#
# The default value is 60. If you want kernel to swap out more process memory and thus cache more file contents increase the value.
# Otherwise, if you would like kernel to swap less decrease it. A value of 0 means "do not swap unless out of free RAM",
# a value of 100 means "swap whenever possible".
#
# echo XXX > /proc/sys/vm/swappiness;
# overcommit_memory: Controls overcommit of system memory, possibly allowing processes to allocate (but not use) more memory than is actually available.
#
# 0 - Heuristic overcommit handling.
# Obvious overcommits of address space are refused. Used for a typical system.
# It ensures a seriously wild allocation fails while allowing overcommit to reduce swap usage.
# root is allowed to allocate slighly more memory in this mode. This is the default.
# 1 - Always overcommit.
# Appropriate for some scientific applications.
# 2 - Don't overcommit.
# The total address space commit for the system is not permitted to exceed swap plus a
# configurable percentage (default is 50) of physical RAM. Depending on the percentage you use,
# in most situations this means a process will not be killed while attempting to use already-allocated memory but
# will receive errors on memory allocation as appropriate.
# overcommit_ratio: Percentage of physical memory size to include in overcommit calculations.
#
# Memory allocation limit = swapspace + physmem * (overcommit_ratio / 100)
#
# swapspace = total size of all swap areas
# physmem = size of physical memory in system
# vfs_cache_pressure: Controls the tendency of the kernel to reclaim the memory which is used for caching of directory and inode objects.
#
# At the default value of vfs_cache_pressure = 100 the kernel will attempt to reclaim dentries and inodes at a "fair" rate with respect
# to pagecache and swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer to retain dentry and inode caches.
# Increasing vfs_cache_pressure beyond 100 causes the kernel to prefer to reclaim dentries and inodes.
#
# echo XXX > /proc/sys/vm/vfs_cache_pressure;
# min_free_kbytes: This is used to force the Linux VM to keep a minimum number of kilobytes free.
#
# The VM uses this number to compute a pages_min value for each lowmem zone in the system. Each lowmem zone gets a number of reserved
# free pages based proportionally on its size.
#
# echo XXX > /proc/sys/vm/min_free_kbytes;
# ===============
#
# I/O-Settings
#
# ===============
# read_ahead_kb: Optimize for read-throughput (cache-value).
#
# example of C-program for finding correct vaules for Linux
# -> http://pastebin.com/Rg6qVJQH
#
# fifo_batch: Controls the maximum number of requests per batch.
#
# This parameter tunes the balance between per-request latency and aggregate
# throughput. When low latency is the primary concern, smaller is better (where
# a value of 1 yields first-come first-served behaviour). Increasing fifo_batch
# generally improves throughput, at the cost of latency variation.
# back_seek_max: This parameter, given in Kbytes, sets the maximum גdistanceג
#
# By default, this parameter is set to 16 MBytes.
# This distance is the amount of space from the current head location to the sectors that are backward in terms of distance.
# This idea comes from the Anticipatory Scheduler (AS) about anticipating the location of the next request.
# This parameter allows the scheduler to anticipate requests in the גbackwardג
nextג
# back_seek_penalty: This parameter is used to compute the cost of backward seeking.
#
# If the backward distance of a request is just (1/back_seek_penalty) from a גfrontג
# the seeking cost of the two requests is considered equivalent and the scheduler will not bias toward one or the other
# (otherwise the scheduler will bias the selection to גfront direction requests).
# Recall, the CFQ has the concept of elevators so it will try to seek in the current direction as much as possible to avoid the latency associated with a seek.
# This parameters defaults to 2 so if the distance is only 1/2 of the forward distance, CFQ will consider the backward request to be close enough
# to the current head location to be גcloseג
# fifo_expire_async: This particular parameter is used to set the timeout of asynchronous requests.
#
# Recall that CFQ maintains a fifo (first-in, first-out) list to manage timeout requests.
# In addition, CFQ doesnגt check the expired requests from the fifo queue after one timeout is dispatched (i.e. there is a delay in processing the expired request).
# The default value for this parameter is 250 ms. A smaller value means the timeout is considered much more quickly than a larger value.
# fifo_expire_sync: This parameter is the same as fifo_expire_async but for synchronous requests.
#
# The default value for this parameter is 125 ms.
# If you want to favor synchronous request over asynchronous requests, then this value should be decreased relative to fifo_expire_asynchronous.
# slice_sync: Remember that when a queue is selected for execution, the queues IO requests are only executed for a certain amount of time (the time_slice) before switching to another queue.
#
# This parameter is used to calculate the time slice of the synchronous queue.
# The default value for this parameter is 100 ms, but this isnגt the true time slice.
# Rather the time slice is computed from the following: time_slice = slice_sync + (slice_sync / 5 * 4 ג io_priority)).
# If you want the time slice for the synchronous queue to be longer (perhaps you have more synchronous operations), then increase the value of slice_sync.
# slice_async: This parameter is the same as slice_sync but for the asynchronous queue.
#
# The default is 40 ms. Notice that synchronous operations are preferred over asynchronous operations.
# slice_asyn_rq: This parameter is used to limit the dispatching of asynchronous requests to the device request-queue in queueגs slice time.
#
# This limits the number of asynchronous requests are executed (dispatched).
# The maximum number of requests that are allowed to be dispatched also depends upon the io priority.
# The equations for computing the maximum number of requests is, max_nr_requests = 2 * (slice_async_rq + slice_async_rq * (7 ג io_priority)). The default for slice_async_rq is 2.
# slice_idle: This parameter is the idle time for the synchronous queue only.
#
# In a queueגs time slice (the amount of time operations can be dispatched), when there are no requests in the synchronous queue CFQ will not switch to another queue
# but will sit idle to wait for the process creating more requests. If there are no new requests submitted within the idle time, then the queue will expire.
# The default value for this parameter is 8 ms. This parameters can control the amount of time the schedulers waits for synchronous requests.
# This can be important since synchronous requests tend to block execution of the process until the operation is completed. Consequently,
# the IO scheduler looks for synchronous requests within the idle window of time that might come from a streaming video application or something that needs synchronous operations.
# quantum: This parameter controls the number of dispatched requests to the device queue, request-device (i.e. the number of requests that are executed or at least sent for execution).
#
# In a queueגs time slice, a request will not be dispatched if the number of requests in the device request-device exceeds this parameter.
# For the asynchronous queue, dispatching the requests is also restricted by the parameter slice_async_rq. The default for this parameter is 4.
# ===============
#
# BFQ-Settings
#
# ===============
# timeout_sync, timeout_async: The maximum amount of disk time that can be given to a task once it has been selected for service, respectively for synchronous and asynchronous queues.
#
# It allows the user to specify a maximum slice length to put an upper bound to the latencies imposed by the scheduler.
# max_budget: The maximum amount of service, measured in disk sectors, that can be provided to a queue once it is selected (of course within the limits of the above timeouts).
#
# According to what we said in the description of the algoritm, larger values increase the throughput for the single tasks and for the system,
# in proportion to the percentage of sequential requests issued. The price is increasing the maximum latency a request may incur in.
# The default value is 0, which enables auto-tuning: BFQ tries to estimate it as the maximum number of sectors that can be served during timeout_sync.
# max_budget_async_rq: In addition to the max_budget, limit, async queues are served for a maximum number of requests, after that a new queue is selected.
# low_latency: If equal to 1 (default value), interactive and soft real-time applications are privileged and experience a lower latency.
# more Informations can be found here -> http://doc.opensuse.org/documentation/html/openSUSE/opensuse-tuning/part.tuning.kernel.html
NEW KERNEL NEW KERNEL \/
ram3n said:
Hey welcome matey,
Nice to see another awesome kernel.
Hope you the best!
Sure this one will rock against siyah.
Cheers
Sent via my s2 monster
Click to expand...
Click to collapse
You fast!
I added 2 post for more info..
If you took the second page, i will ask you in future to add some stuff about kernel for all people
thanks dorimanx
now i will try your kernel
can i use setcpu to set cpu Govs?
thank you
robertus23 said:
thanks dorimanx
now i will try your kernel
can i use setcpu to set cpu Govs?
thank you
Click to expand...
Click to collapse
yes you can, all that you want, will work
Freedom for all
thank you dorimanx
dorimanx said:
yes you can, all that you want, will work
Freedom for all
Click to expand...
Click to collapse
If I remember your kernel from the htc hd2 then I'll expect nothing less
Will test it and report back as soon as possible :]
Welcome!
Have a good day :]
Good to see you here dorimanx. Loved the hd2 kernels!
Sent from my GT-I9100 using xda premium
This is bomb ... Bomb kernel for all ics Rom... see its benchmark...!! Its really a beast of all kernel...
What about zram? How to check and activate..? Till today I cud not get it to work on your pre release kernel... sorry..!! I will wait for it..
TapaTalk Gnex Galaxy Sii
so far everything work perfect-it's mega speed kernel,no UV,no set cpu and bench is 4813 on quadrand
fantastic
thanks
The king of Kernels is here.
Needless to say I'm another old HD2 user, and i regard you as one of the main Developers responsible for the HD2's longevity.
The S2 community is in for a treat.
Welcome and thanks....(Again).
dorimanx said:
You fast!
I added 2 post for more info..
If you took the second page, i will ask you in future to add some stuff about kernel for all people
Click to expand...
Click to collapse
Haha, Yep others always call me The Fast
No problem mate, I will do it
buzzboy said:
The king of Kernels is here.
Needless to say I'm another old HD2 user, and i regard you as one of the main Developers responsible for the HD2's longevity.
The S2 community is in for a treat.
Welcome and thanks....(Again).
Click to expand...
Click to collapse
thanks! it's nice to be remembered!
My HD2 kernel and ROM still supported by me.
I am now in two fronts
Enjoy new power for SG2
I will try to make it best for all to enjoy!
Please report any bugs or suggestions,
I will do my best to add/fix all i can.
Do this kernel works on AOKP based roms?? Thanks
GLunPy said:
Do this kernel works on AOKP based roms?? Thanks
Click to expand...
Click to collapse
Yes !
10 chars
Sent from my GT-I9100 using xda premium
how about aosp? i tried it now but unfortunately almost bricked my device. installed via cwm, restarted and screen went all pixelated and stuck on bootscreen with battery heating up fast
buzzboy said:
The king of Kernels is here.
Needless to say I'm another old HD2 user, and i regard you as one of the main Developers responsible for the HD2's longevity.
The S2 community is in for a treat.
Welcome and thanks....(Again).
Click to expand...
Click to collapse
Sounds good I'm currently so satisfied with my setup that I ain't flashing nothing, but I will definitly keep an eye on this thread.
dead0 said:
how about aosp? i tried it now but unfortunately almost bricked my device. installed via cwm, restarted and screen went all pixelated and stuck on bootscreen with battery heating up fast
Click to expand...
Click to collapse
what rom do you have?
is it ICS based?
I have tested on CM9, and Original Samsung ICS,
It's configured for MIUI also.. (I didnt tried yet)

[Kernel][3.4.113][DualBoot] Chrono Kernel R5.10

Custom kernel for Samsung Galaxy Ace 2​
Features:
Only one universal kernel for JB, KK and LP-based ROMs
CPU, GPU and DDR OC support
more governors and I/O schedulers
Lite kernel - some kernel features moved to modules
fully working BLN
Sweep2wake && Doubletap2wake
CPU freq settings for suspend
Full F2FS support
SELinux support
UKSM support
ABB-charger tweaks
Credits:
@dh.harald and @hafidzduddin for contribution on codina sources
@ Team Canjica for a base for this kernel
@ Nova Fusion for F2FS implementation
@zwliew for contribution on TC kernel
@cocafe for LiveOPP, GPU OC, abbamp and abb-charger tweaks and many cool patches which I've used from his kernel
@faux123 for dynamic Fsync implementation
@Christopher83 for dynamic management of dirty page writebacks implementation
@KINGbabasula for contribution on TC kernel sources
@boype for SIOPlus tweaks and OndemandPlus governor
@Adi_Pat for abbamp, kernel tweaks
@PolishVodka for initramfs scripts for 4.2.x and 5.0.x
@Rox for help in fixing initramfs scripts for 4.1.2
@ace2nutzer for optimization CPU OC and for whatever scripts which I have used in my kernel
@Meticulus for BLN, Sweep2wake and Doubletap2wake
@mkaluza for huge LiveOPP/Mali improvements and Dynamic governor
@yanpol199 for help with F2FS support in TWRP
@ all users who tests this kernel and directs the development along the right path
@ all those users, who I forgot to mention (PM me if so)
Team Win for TWRP recovery
CyanogenMod Team for CWM recovery
Phil3759 for philz recovery
Samsung for opening kernel source
Linus Torvalds for Linux sources
Standard Disclaimer: Not responsible for bricking your phone, voiding your warranty, or any other pain or suffering you may feel as result of using this kernel!!!
To install kernel with F2FS support read installation method in 3rd post
To install kernel with dual boot support, proceed this method.
Since R2.12.1 has been released, no need to care about bootscripts, kernel package will install it itself.
Source Code:
r6.0
< r6.0
Download:
FTP
Thanks @S.AMU for providing FTP-Server
Thanks @shaqman89 for providing build server
​
XDA:DevDB Information
Chrono Kernel, Kernel for the Samsung Galaxy Ace II
Contributors
ChronoMonochrome, cocafe, faux123, zwliew, mkaluza, Meticulus, KINGbabasula, ace2nutzer, TeamCanjica
Source Code: https://github.com/ChronoMonochrome/Chrono_Kernel-1/commits/master-3.10
Kernel Special Features: Swappable ramdisk, UKSM, dual boot support
Version Information
Status: Stable
Current Stable Version: R5.1
Stable Release Date: 1974-11-11
Beta Release Date: 1974-11-11
Created 2014-06-24
Last Updated 2017-10-27
Changelogs and features
Bug list:
-
Changelog
(old changelog)
R2.10
Build from R2.6 sources with re-added all changes in LiveOPP, cpufreq_limits module, some interfaces from 2.9.x (usb sw reset, PonKey emulator on voldown/up).
R2.9
Mali OC module v2.0:
added interfaces boost_hispeed1, boost_hispeed2.
added interfaces mali_threshold_freq_down and mali_threshold_freq_up
(new interfaces manual)
1) mali_threshold_freq_down/up:
echo new value to tweak it:
Code:
echo 150 > /sys/kernel/mali/mali_threshold_freq_up
2) mali_boost_hispeed(2)
Use command
Code:
echo idx=X > /sys/kernel/mali/mali_boost_hispeed2
to tweak its freq.
following command is to tweak its threshold:
Code:
echo threshold=220 > /sys/kernel/mali/mali_boost_hispeed2
partially re-enabled touchboost (it actually was enabled even on 2.7.4, but I forgot to mention)
reverted suspend/hibernate/freezer etc. commits to hopefully fix reboots issue in deepsleep
fixed APE_25_OPP (in suspend it actually used APE50 previously)
minor fixes in cpufreq_limits driver
R2.8
Mali OC module v2.0(detailed description in 3rd post):
added interfaces boost_hispeed1, boost_hispeed2.
added interfaces mali_threshold_freq_down and mali_threshold_freq_up
partially re-enabled touchboost (it actually was enabled even on 2.7.4, but I forgot to mention)
reverted suspend/hibernate/freezer etc. commits to hopefully fix reboots issue in deepsleep
fixed APE_25_OPP (in suspend it actually used APE50 previously)
minor fixes in cpufreq_limits driver
(2.7.6)
- fixed broken GPU scaling algorithm (removed /sys/kernel/mali/mali_scaling_dynamic)
(2.7.5)
- partially reverted LiveOPP voltage autocalibration
- fixed unstable mali tunables and added interface mali_scaling_dynamic
Code:
echo 1 > /sys/kernel/mali/mali_scaling_dynamic
When mali_scaling_dynamic is used, mali will scale between mali_boost_low and mali_boost_high using all steps between these mentioned. mali_stats provides statistics about mali utilization on each step.
- removed some GPU freq steps
(2.7.4)
- new governor Dynamic (thanks to mkaluza)
- new GPU scaling algorithm (thanks to 1N4148 ) - ondemand-like GPU governor
- LiveOPP: reworked avs-based varm recalibration algorithm
(2.7.3)
added governor OndemandPlus (thanks to boype)
removed governors with hotplugging support
added interface to tweak PLLDDR freq on suspend:
Code:
echo on > /sys/kernel/cpufreq/pllddr_raw
To control freq are used raw PLLDDR register values:
Code:
echo suspend=0x000050158 > /sys/kernel/cpufreq/pllddr_raw # 675 MHz
Code:
echo resume=0x000050168 > /sys/kernel/cpufreq/pllddr_raw # 798 MHz
PLLDDR freq can be checked via
Code:
cat /sys/kernel/liveopp/pllddr
Settings applies after 3 sec after suspend/resume.
Too low suspend or too high resume value may cause reboot. Please note that this setting still experimental and unstable itself, so it's disabled by default.
adjusted some GPU OC defaults
fixed BT issues
(2.7.2)
- fixed pllddr_cross_clocks instability
- removed unneeded DDR_50_OPP requirement on screen on (should prolong battery lifetime).
2.7
many various commits from Linux 3.3 (thanks @faux123)
improved hotplugging mechanism
updated RCU system
kernel scheduler
memory management
etc...
LiveOPP:
recalibrate varm and vbbx on boot (better stability)
added interface to OC some clocks that depends on PLLDDR
reimplemented sweep2wake and doubletap2wake (thanks @Meticulus)
enabled UKSM (thanks @cocafe)
- better RAM performance with tiny cost CPU. Boot time will be increased by 3 sec, it's ok.
uploaded kernel for s6d.
R2.6
ABB-charger:
reverted most of changes. It's only uses custom voltage table, termination current 150 mA and some other tweaks, provided by ace2nutzer.
added tweakable interfaces for termination current(better battery lifetime).
LiveOPP:
added most ape_25_opp switch interface
added steps 85, 350, 450 MHz.
ddrpll interface renamed to pllddr ;D
added input boost support for most of governors (thanks to zwliew for original patch)
R2.5
- only one kernel version for all ROMs/Filesystems/codina(p), please note that installation method is different from usual installation
- Switch to single platform RTC driver - AB500 (finally fixed all problems with clock freeze issue) [golden-guy]
- update LiveOPP from CoCore
- reworked and added DDRPLL boost [WIP]
R2.4
completely rewritten screenoff limits driver
added steps 30, 125, 150, 175 MHz, increased voltage on various steps for stability
enabled SELinux again
various fixes in FAT filesystem
re-added exFat support
re-added ZenX
abb charger fix v2 [ace2nutzer]
zRam script moved to init.d (to be able to change zRam size) on CM11
new package installation script, with little changes by me (thanks to borkins for help with this)
R2.3.2
improved battery live (full credit to ace2nutzer)
reduced liveopp table (too hard to search stable/optimal voltage)
Reverted all commits from tuna kernel (these changes are tested not well, may cause instability)
temporarily disabled SELinux
R2.2
LiveOPP 2.2:
no longer use setting ARM OPP (this previously caused lags)
simple algorithm for setting clock and voltages
use only pll, external clock no longer used
use only 1 varm selection
Big LiveOPP table (51 step: 46, 69,..., 1244 MHz)
Added and optimized new governor ZenX
Added FIFO I/O scheduler
Moved more kernel stuff to modules
TWRP 2.8.0.0
R2.1.5
Huge update from Tuna Hybrid kernel by @faux123 ( a lot thanks to him! ) :
a lot various commits from Linux Kernel 3.3-rc3
various fixes backported from Linux 3.5
fixed 3G/WiFi data arrows again
reduced kernel: 628 Mb RAM is available
Reverted from R2.1:
update of device-specific drivers from Novathor 3.4 kernel
"ARM: 7493/1: use generic unaligned.h"
(R2.0.2)
update from TC kernel
moved all networking modules to kernel (fixed lost data usage, tethering, etc.)
added module autoload (read below)
renamed interface /sys/kernel/cpufreq/screenoff_cpufreq_limits -> /sys/kernel/cpufreq/cpufreq_limits_on_suspend
R2.0-refresh
Cleaned kernel source tree from some doubtful commits
moved some kernel features to modules(thanks to mkaluza for idea and most of changes)
9p, CIFS, NTFS file systems
some unneeded ipv6 features
HID drivers
most of governors
slightly decreased boot time(in my case, from 8500 to 8330 ms)
slightly increased available RAM - 628 MB (thanks to reduced kernel size)
Huge LiveOPP improvement by mkaluza:
improved overclock stability, added all extended steps
UV 100-400 MHz steps to 0x12-0x14 (lower power consumption)
added state APE_25_OPP, used only with screen off(originally introduced by mkaluza, adapted for codina by me)
allowed change APE_OPP and DDR_OPP from LiveOPP
changed step 1228 MHz -> 1248 MHz (may cause reboots, need to find out optimal voltage)
Mali improvements by mkaluza
temporarily removed 25 MHz step (don't know how to add it with new LiveOPP, all attempts is caused boot loop)
(R1.6.3)
revert "update sweep2wake and doubletap2wake by Meticulus"
add cpufreq steps: 25, 500, 700 MHz; remove: 1050, 1100, 1250 MHz (only 12 CPU freq step is allowed)
R1.6
ARM: 7493/1: use generic unaligned.h (This has the
benefit of better code generated especially for ARMv7 on gcc 4.7+
compilers.)
register rear cam flash as LED (for BLN) - thanks to @Meticulus
update sweep2wake and doubletap2wake by Meticulus
add LMK timeout interface - @cocafe
Fix max freq not capped on suspend bug on Lulzactive (it was conflicted with screenoff cpufreq limits driver)
(R1.5.2)
F2FS support in TWRP (thanks to [email protected] for help with this)
R1.5.1
update from TC kernel
enabled SELinux (was disabled in r1.5 for testing)
ARM: 7006/1: Migrate to asm-generic wrapper support
added jRCU (thanks to cocafe)
Bugfixes
reverted to LK 3.2.0
fixed disappeared data usage monitor and probably data arrows also
fixed wifi/usb tethering - hopefully, need tests
fixed incorrect display of RAM occupied by some applications
fixed incorrect phone recognition on codina P in CWM/TWRP - thanks to @ace2nutzer
R1.5
Completely reworked file systems update:
fixed reboots, apps FC
fixed CWM loop
fixed huge battery drain (hopefully)
F2FS backported to Linux 3.2
R1.4
Bumped to Linux 3.2.9
File systems: big update from LK 3.2
Writeback: update from LK 3.2
Reduced wlan_rx_wake wakelock by half - zwliew
F2FS support in /system
Fixed more potential and real memory leaks in kernel
Removed u8500 hotplug driver again
R1.3
added BLN separate configuration of blink on and off delays
added MCDE tweaks (read below)
tweaked PegasusQ governor (based on script by ace2nutzer)
fixes:
reverted commits which caused most of random reboots reasons
finally fixed kernel panic in CFQ I/O scheduler (I hope so)
interactive governor reverted to stock TC
R1.2
workaround for s6d display bug (separate kernel version - soon)
CPU freq settings for screen off
Updates from linux kernel 3.2 (currently updated to 3.2):
File systems
Specific drivers
Security
Various core changes
Reverted:
Proportional Rate Reduction for TCP
Power management update from 3.2
1000 MHz messy workaround, provide another workaround instead
r1.1
Fixed 100 MHz bug
Added 300 MHz CPU step
Added VR I/O scheduler again (thanks to @cocafe for fixes compile errors)
Updates from Linux Kernel 3.2:
Process bandwith controller
Thin provisioning and recursive snapshots in the Device Mapper
I/O-less dirty throttling, reduce filesystem writeback from page reclaim
Proportional Rate Reduction for TCP
Memory management (Cross Memory Attach, "vmscan: add block plug for page reclaim", "thp: mremap support and TLB optimization", etc.)
Networking
Device Mapper
Virtualization
Crypto
Tracing/Profiling
r1
backport new zRam driver from 3.5 LK by @faux123. Also enables LZ4 compressor for zRam.
add u8500 hotplug driver by @zwliew again
revert voltage of display and other regulators to stock
add vpnclient.ko
a somewhat fixes and optimizations from CoCore - thanks to @cocafe
fix lagfree, lulzactiveq and interactive wrong tunables
adjust voltage(0x37) for 1200 and 1250 MHz
17.08.2014
Undervolt display from 1800 to 1400 mV
Undervolt various regulators
Revert CFQ to 3.0 branch to fix reboot issue
Add Lionheart governor, disable InteractiveQ and Hotplug
Support for 4.2.x ROMs (thanks to @PolishVodka for initramfs)
12.08.2014
fixed CFQ reboot issue (i hope so )
reboot into recovery from extended power menu should work (JB 4.1.2)- thanks to Rox
TWRP recovery instead CWM for ext4 kernel versions
Update to 3.1.10
9.08.2014
Fixed reboot issue (I hope so)
Add BFQ scheduler again
Fixed UMS bugs - thanks to cocafe
Upgrade kernel to 3.1.1
4.08.2014
Fixed bug of random change min CPU freq to 1Ghz.
Removed u8500 hotplug driver
Update sioplus from [email protected]
Temporarily removed BFQ and VR I/O scheds because they are became broken for some reasons.
Update LMK from [email protected]
Updates from 3.1 LK:
Sound cards, input devices, watchdogs, networking, staging, multifunctional devices, ... etc. See full list of changes on github.
29.07.2014
Added CPU 100MHz freq step
U8500 hotplug driver - zwliew
Universal exfat driver - zwliew
Switch to SLUB again
Updates from LK 3.1:
SLUB
Memory management (6/7 commits)
VFS (9/10 commits)
Dynamic writepage throttling
21.07.2014
revert CPU voltages to default for 0-3 steps
some changes in memory management
17.07.2014
Switch to SLQB memory allocator
Update BFQ I/O sched from v7r3 to v7r5
Enable UHID support (testing)
Some fixes in memory management
Remove some buggy "fixes" from last build
5.07.2014
fixed headset bug that appeared in last build
fixed the file permissions for CoCore Manager (for JB)
4.07.2014
F2FS support (still only KK version)
Usb drivers from STEXperia sola kernel instead stock samsung
(probably, UMS bug has been fixed. For me it works perfectly now.)
LZ4-compressed kernel support
minor fixes
27.06.2014
sources updated
enabled init.d support in kernel (JB)
added Lagfree governor
added ROW I/O scheduler
23.06.2014
fixed cpu oc via 3rd party apps
lowmemorykiller should be less aggressive
19.06.2014
cwm 6.0.48 instead stock recovery
14.06.2014
initial build
Kernel Tweaks:
(GPU/CPU undervolting and related tweaks)
Undervolting the CPU/GPU will bring battery savings but possible instability.
1) to undervolt CPU use ChronoKernel app or via init.d scripts:
Code:
echo *cpufreq* varm=xx > /sys/kernel/liveopp/arm_summary
for example, following sets voltage varm=0x10 for 200 MHz:
Code:
echo 200000 varm=0x10 > /sys/kernel/liveopp/arm_summary
or
Code:
echo 200000 varm-=10 > /sys/kernel/liveopp/arm_summary
(default varm voltage for 200 MHz is 0x1a but, code above sets 0x1a - 0xa(10) = 0x10 )
2) to undervolt GPU use init.d script:
Code:
echo x vape=yy > /sys/kernel/mali/mali_dvfs_config
Example:
Code:
echo 2 vape=0x1c > /sys/kernel/mali/mali_dvfs_config
"2" stands for DVFS idx (look at mali_boost_high/mali_boost_low).
To prevent overriding of such settings by ChronoKernel app, add line to your init.d script after GPU undervolting
Code:
chmod 444 /sys/kernel/mali/mali_dvfs_config
Don't change voltage of both GPU/CPU at the same time - otherwise if you'll get reboot if won't know what it caused. The same is for different frequencies - if you'll change voltage of too many steps you won't know which frequency caused reboot. It's not easy process, though, following method simplifies it: https://github.com/mkaluza/i9070_kernel_CoCore-E/wiki/Undervolting-janice .
3) Custom LiveOPP table.
By default some LiveOPP steps such as 100, 200, 500 ... MHz aren't used. You can re-enable those by following way:
Code:
echo 200000 enable=1 > /sys/kernel/liveopp/arm_summary
Or use CK app instead. Don't enable it unless it uses the same voltage as 400 MHz. The same is for the rest frequencies - until some of them uses same voltage, no point to enable steps with lower freq. I've added 100 MHz just to further make some tests with it once again. It can't use lower varm than 200 MHz - that's why it's disabled by default. Furthermore, not all phones well keep undervoltage, that's why 100-400 MHz steps uses same stock voltage varm=0x1a.
UPD. thanks to @borkins for this nice editor LiveOPP ARM steps: http://forum.xda-developers.com/showpost.php?p=60311291&postcount=2921
(CPU freq management tweaks)
CPU freq. limiter for screen OFF, adjust it via:
Code:
SYSFS=/sys/kernel/cpufreq/cpufreq_limits_on_suspend
echo min=100000 > $SYSFS
echo max=400000 > $SYSFS
echo on > $SYSFS
Too low frequency may cause freezes after wakeup and sound scrathes. If you use Dynamic govermor, it make no sense to use cpufreq limiter, because Dynamic already takes care about CPUfreq usage optimization. For more, read wiki.
Input boost
This feature has been originally written by zwliew.
Not all governors support input boost. Supported governors: ondemand, interactive, conservative, ZenX, lionheart and some others. Dynamic governor has its own boost interface.
Default boost frequency is 400 MHz.
Code:
echo 450000 > /sys/kernel/cpufreq/input_boost_freq # echo '0' to disable
echo 35 /sys/kernel/cpufreq/input_boost_ms
(BackLight Notification)
To configure time intervals of BLN blinking type(bln_ondelay stands for time of blink and bln_offdelay - delay between two blinks):
Code:
echo bln_ondelay=500 > /sys/kernel/bln/blink_mode
echo bln_offdelay=6000 > /sys/kernel/bln/blink_mode
Make sure BLN enabled:
Code:
echo 1 > /sys/class/misc/backlightnotification/enabled
# to enable bln_wakelock.
echo on > /sys/kernel/bln/bln_wakelock
Use /sys/devices/virtual/misc/backlightnotification/blink_mode to changes modes.
Blink modes:
0 = no blinking
1 = blink backlight only
2 = blink backlight + rear cam flash
3 = blink rear cam flash only
(Module autoload)
Now there is a simple way to load modules at boot. Just move needed modules to /system/lib/modules/autoload and reboot device(or execute /etc/init.d/00autoload)
(DDR overclock)
This feature has been developed by me and allows you to improve DDR and GPU performance. Please note, that DDR OC might work unstable and cause filesystem corruption. Though, DDR clock of 975 MHz has been highly tested and should work fairly stable on most devices.
Overclocking DDR over 975 MHz is highly NOT recommended, especially in case if you not sure that you can deal with possible consequences.
How to OC DDR:
1) by using
this script .
2) by using Terminal Emulator(in example below 975 MHz):
Code:
echo 0x5017f > /sys/kernel/liveopp/pllddr_oc_on_suspend
This setting will be applied right after disabling screen.
(Minimum APE/DDR OPP on screen on)
This feature has been developed by me and allows to set minimum APE/DDR OPP states which are used when screen is ON. APE controls many systems such as an image, video, audio system etc. DDR OPP determines performance of DDR. Default values are APE50 and DDR50. Lower states(APE25/DDR25) reduces power consumption, but may cause graphical glitches like screen blinking or filling it by vertical grey lines. If you don't have mentioned effects, it's recommended to use APE25/DDR25:
Code:
echo ddropp=25 > /sys/devices/pri_lcd_ws2401.0/mcde_screenon_opp
echo apeopp=25 > /sys/devices/pri_lcd_ws2401.0/mcde_screenon_opp
* if you don't have folder /sys/devices/pri_lcd_ws2401.0, use /sys/devices/pri_lcd_s6d27a1 instead.
(Screen refresh rate)
This feature has been developed by cocafe and modified by me. Lower lcdclk frequency cause less power usage, but too low values makes system unusable.
Following command allows to change screen refresh rate:
Code:
echo x > /sys/kernel/mcde/lcdclk
use
Code:
cat /sys/kernel/mcde/lcdclk
to see supported lcdclk modes. Default mode is 60 Hz which is recommended in most typical cases. If you've screen tearings, blinking etc. change resresh rate mode to "60+ Hz":
Code:
echo 0 > /sys/kernel/mcde/lcdclk
(ABB charger tweaks)
added tweakable interfaces for termination current. To adjust it type(just an example):
Code:
echo 90 > /sys/kernel/abb-chargalg/termination_curr_1st
echo 70 > /sys/kernel/abb-chargalg/termination_curr_2nd
curr_2nd should be less or same as curr_1st. Lower values prolongs battery lifetime, but also slows battery charging.
Default values are curr_1st == curr_2nd == 150 mA. Please note, too low values maybe aren't usable.
(Dynamic FSync)
This feature has been developed by Faux123 and allows to dynamically manage the synchronous writes performed on file system (FSync).
It uses asynchronous writes when the screen is on, instead of synchronous writes, to have better performance and a slightly lower battery drain, while when the screen is off the synchronous writes are re-enabled to flush all the outstanding writes and prevent possible data loss.
How to enable/disable the Dynamic FSync (default enabled):
1) By downloading and using Trickster MOD
2) By directly editing the file /sys/kernel/dyn_fsync/Dyn_fsync_active and setting 1 to enable the dynamic fsync, 0 to disable it (note that set value will be lost after a reboot/shutdown)
3) By using Terminal Emulator (note that set value will be lost after a reboot/shutdown)
- Open Terminal Emulator
- Run this command to disable the dynamic fsync feature
Code:
su
echo 0 > /sys/kernel/dyn_fsync/Dyn_fsync_active
- Or run this command to re-enable the dynamic fsync feature
Code:
su
echo 1 > /sys/kernel/dyn_fsync/Dyn_fsync_active
Click to expand...
Click to collapse
(Software CRCs)
Disabling software CRCs gives you a slight bump(10-30% is what they say) of MMC performance, at the cost of a possibility of your Ace 2 freezing randomly.
Code:
echo 0 > /sys/module/mmc_core/parameters/use_spi_crc
Click to expand...
Click to collapse
(Dynamic dirty page writebacks)
This feature has been developed by Christopher83 and allows to dynamically manage the dirty page writebacks with two different intervals, one when the screen is on and another when the screen is off.
It is based on a commit of Francisco Franco, but instead of using hard coded values and of disabling at all the dirty page writebacks while the screen is on (possibility of data loss).
By using a higher interval we have better performance and less battery consumption, with a very low risk of data loss.
How to customize the dynamic dirty page writebacks feature (default disabled):
Three new procfs parameters are exposed inside /proc/sys/vm path:
- dynamic_dirty_writeback is the activation status of this feature, set 1 to enable it, set 0 to disable it and use the standard behaviour
- dirty_writeback_active_centisecs is the interval for the dirty page writebacks when the system is active (screen on), the default value is 1500 centisecs (15 seconds)
- dirty_writeback_suspend_centisecs is the interval for the dirty page writebacks when the system is suspended (screen off), the default value is 500 centisecs (5 seconds)
1) By directly editing one of the file written above inside /proc/sys/vm and setting the preferred value (note that set value will be lost after a reboot/shutdown)
2) By using Terminal Emulator (note that set value will be lost after a reboot/shutdown)
- Open Terminal Emulator
- Run this command to disable the dynamic dirty page writebacks feature
Code:
echo 0 > /proc/sys/vm/dynamic_dirty_writeback
- Or run this command to re-enable the dynamic dirty page writebacks feature
Code:
echo 1 > /proc/sys/vm/dynamic_dirty_writeback
- Run this command to set customize the two intervals (30 seconds while the screen is on, 10 seconds when the screen is off)
Code:
echo "3000" > /proc/sys/vm/dirty_writeback_active_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_suspend_centisecs
(Storages switch)
By default, this kernel comes with internal and external storages switched. You can revert this behavior, by changing the line
Code:
use_swap=1
to
Code:
use_swap=0
in file /ramdisk/fstab_specs.txt and flashing the kernel package. This setting will remain until you format /ramdisk partition.
(Tweak app)
ChronoKernel settings
Thanks mars_army for this app!
Bug reports:
after experiencing a random reboot, type in terminal:
Code:
su
cat /proc/last_kmsg > /storage/sdcard0/last_kmsg.txt
report it in the thread and attach the last_kmsg.txt
Other information
How to install kernel with F2FS support:
For those who don't know what F2FS is, check these links out:
General info
Benchmarks
Warnings
1. Make sure you have a standard kernel for backup that uses ext4 just in case. If anything goes wrong, just install the backup kernel and reboot to recovery.
2. You will have to wipe your /data and /cache partitions for this. Basically factory reset.
3. For 2, you could try to backup data and restore after formatting. I haven't tried this but I could work.
Click to expand...
Click to collapse
Installation method of kernels with full F2FS support:
Before installation make sure that you have at least ~25% free space on each partition that will be formatted to F2FS.
for CWM:
make backup
format /system partition to F2FS (and also /data and /cache if you didn't do it before)
restore /system partition
for TWRP
disable md5 generation
make backup of /system
find backup folder, run terminal and rename file system.ext4.win to system.f2fs.win (it won't work via filemanager)
Code:
mv system.ext4.win system.f2fs.win
format /system as f2fs
restore backup
Then install kernel.
To install kernel on ROM that isn't supported by installer:
(supported ROMs):
Stock ROM 4.1.2
CyanogenMod 10.1*
CyanogenMod 10.2*
CyanogenMod 11*
CyanogenMod 12
* most ROMs that based on this ROM are also supported. Despite of that some ROMs are supported, they can work incorrectly due to difference in their initramfs scripts(ramdisk).
1. Install needed ROM first,
2. Type following command in terminal emulator:
Code:
cd /
find . -xdev | cpio -o -Hnewc | gzip -9 > /sdcard/x.y.z.cpio.gz
where x.y.z is OS version (for example - CM11-based ROM - 4.4.4.cpio.gz)
3. put this file in installer at osfiles/x.y.z/ (e.g. osfiles/4.4.4/4.4.4.cpio.gz)
4. install kernel
To install a new ROM that is not F2FS compatible:
Use EXT4 to F2FS converter script
or edit the updater-script as follows
(manual method)
1. Replace strings
"mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system");"
with string
"run_program("/sbin/busybox", "mount", "/system");"
2. Replace string
"format("ext4", "EMMC", "/dev/block/mmcblk0p3", "0", "/system");"
with string
"run_program("/sbin/mkfs.f2fs", "/dev/block/mmcblk0p3");"
3. Add string
"run_program("/sbin/busybox", "mount", "/data");"
after strings
"run_program("/sbin/mkfs.f2fs", "/dev/block/mmcblk0p3");"
"run_program("/sbin/busybox", "mount", "/system");"
4. Add string
"unmount("/data");"
before string
unmount("/system");
Click to expand...
Click to collapse
Fix for CodinaP, recognized as Codina in recovery (thanks @fluffi444 )
http://forum.xda-developers.com/showpost.php?p=58839849&postcount=2448
Various tweaks (thanks @xo.en )
xo.en said:
do NOT use swapiness more than 30, bigger values can bog machine down!
small advice:
Code:
#!/system/bin/sh
#chmod -R 755 /system/etc/init.d
chown root:root /proc/sys/vm;
echo "30" > /proc/sys/vm/swappiness;
busybox chmod ugo+rw /proc/sys/vm/vfs_cache_pressure;
echo "50" > /proc/sys/vm/vfs_cache_pressure;
echo "2000" > /proc/sys/vm/dirty_expire_centisecs;
echo "1500" > /proc/sys/vm/dirty_writeback_centisecs;
busybox chmod ugo+rw /proc/sys/vm/dirty_ratio;
echo "90" > /proc/sys/vm/dirty_ratio;
busybox chmod ugo+rw /proc/sys/vm/dirty_background_ratio;
echo "75" > /proc/sys/vm/dirty_background_ratio;
echo "512" > /sys/devices/virtual/bdi/default/read_ahead_kb;
echo "10" > /proc/sys/fs/lease-break-time;
echo "4" > /proc/sys/vm/page-cluster;
echo "5360" > /proc/sys/vm/min_free_kbytes;
echo "8" > /proc/sys/vm/min_free_order_shift;
echo "0" > /proc/sys/vm/oom_kill_allocating_task;
echo "1" > /proc/sys/vm/overcommit_memory
busybox sysctl -w kernel.random.write_wakeup_threshold=256;
busybox sysctl -w kernel.random.read_wakeup_threshold=1376;
and
Code:
#!/system/bin/sh
chmod 0644 /sys/module/lowmemorykiller/parameters/adj
echo "0,3,6,10,12,15" > /sys/module/lowmemorykiller/parameters/adj;
chmod 0644 /sys/module/lowmemorykiller/parameters/minfree
echo "1024,2048,2560,4096,6144,8192" > /sys/module/lowmemorykiller/parameters/minfree;
chmod 0644 /sys/module/lowmemorykiller/parameters/debug_level
echo "0" > /sys/module/lowmemorykiller/parameters/debug_level;
works miracles in my case, especially second one, imho it would be hard to use different values, i was trying different setups for YEARS(with this machine), so it is not just random throw. Bigger LMK REALLY makes things worse here. It usually has tremendous influence over fluidity of gui, and whole sys.
Click to expand...
Click to collapse
Odin kernel
with TWRP
with CWM
There is no KSM or Low Memory killer or any Performance tweaks ?? Built in CWM ?
Master-ZizO said:
There is no KSM or Low Memory killer or any Performance tweaks ?? Built in CWM ?
Click to expand...
Click to collapse
This kernel based on stock CM kernel by TeamCanjica, and it's have same changes.
Damn, I was so excited to see a new kernel, but I noticed that it's actually for 4.1.2. I almost flashed it on a 4.4.3, not that it would have been such a tragedy.
Is there gonna be a version for the KitKat ROMs?
dragos281993 said:
Is there gonna be a version for the KitKat ROMs?
Click to expand...
Click to collapse
yes, please wait a little bit.
ChronoMonochrome said:
yes, please wait a little bit.
Click to expand...
Click to collapse
OK. I've got another question for you. Are you gonna add "lagfree" between the governors you already added, because that's probably one of the best governors a kernel can have ?
This is for stock samsung JB?
yes it is
Even if in the download section it says 4.4.2, I flashed the kernel on a Carbon 4.4.3 and it's working like a charm. The only thing that doesn't show up correctly is both frequency bars in "performance". It shows 0MHz max, 0MHz minimum, but if you set the minimum to 600MHz, for example, the frequency will run at 600 minimum, even if it shows 0.
five attempts and each time bootloop and recovery keys do not work.
dragos281993 said:
The only thing that doesn't show up correctly is both frequency bars in "performance". It shows 0MHz max, 0MHz minimum, but if you set the minimum to 600MHz, for example, the frequency will run at 600 minimum, even if it shows 0.
Click to expand...
Click to collapse
It works normally for me. (ROM CM11 by TeamCanjica 4.4.2)
dragos281993 said:
OK. I've got another question for you. Are you gonna add "lagfree" between the governors you already added, because that's probably one of the best governors a kernel can have ?
Click to expand...
Click to collapse
Maybe I'll add this Governor.
mPiter said:
five attempts and each time bootloop and recovery keys do not work.
Click to expand...
Click to collapse
please post your last_kmsg log.
@ChronoMonochrome how do I do ksmg log when the phone does not turn on?
ChronoMonochrome said:
It works normally for me. (ROM CM11 by TeamCanjica 4.4.2)
Maybe I'll add this Governor.
please post your last_kmsg log.
Click to expand...
Click to collapse
If you added "lagfree", you'd be the first on to do it, so it would obviously be amazing and it would make you a better developer than others, of course.
EDIT: About the frequency thing, for me it shows 0MHz probably because I've got kitkat 4.4.3. Everything else's working fine.
@mPiter ,
Bug reports:
after experiencing a random reboot, type in terminal:
Code:
su
cat /proc/last_kmsg > /storage/sdcard0/last_kmsg.txt
report it in the thread and attach the last_kmsg.txt
Click to expand...
Click to collapse
p.s. restore stock kernel first.
there is a new folder in sdcard0 : triggers and files in it ( Cpt log). what is it?
ip3000 said:
there is a new folder in sdcard0 : triggers and files in it ( Cpt log). what is it?
Click to expand...
Click to collapse
I have no idea what caused this problem. Because on stock kernel and CM kernel i did not have this problem. Try to remove this folder and create text file with same name.
Would love to see lag free if anyone could make possible
Sent from my GT-I8160 using Tapatalk
1. Compatible for aosp 4.4.4 or only for CM?
2. Whats is the different with custom kernel by zwliew?
@ChronoMonochrome

tn2009_kernel

⋆⋆⋆⋆⋆⋆⋆⋆⋆⋆⋆
⋆⋆⋆ tn2009_kernel ⋆⋆⋆
⋆⋆⋆⋆⋆⋆⋆⋆⋆⋆⋆
By Tamerlan2009​Kernel Supports F/I/S/K/L/T/W8 variants of 920 AND 925 devices​The kernel had spent a lot of time in order to satisfy all. This kernel is built to appeal to users who want something really high-quality and stable with a broad customization capabilities. If you wish to use this kernel in a rom , feel free! Although I would love it if you let me know just for my own curiosity. emphasis was placed for maximum performance and battery life.
Features:
1. Changes in the kernal
- based on the latest sources COI9 G925F
- Build on gcc 5.2.1 UBERTC (01.11.2015);
- deep sleep fix;
- Smoothen GPU throttling levels;
- fix memory leak in gpiod_sysfs_set_active_low;
- fix memory leak in gpiod_export_link;
- optimization MakeFile and other files
- optimization workqueue
- optimization zswap
-added many new tweaks / optimization to improve RAM.
- memory leak fixed
-A lot of changes config of the kernel;
-Included Input booster.
- ARM64 readahead: fault retry breaks mmap file read random detection;
- Remove + sign from kernel version;
- fs/dcache.c: Fix the too small buffer for dname;
- Fixup! mm: fix aio performance regression for database caused by THP;
- Async I/O latency to a ssd greatly increased, 34% gain (Creds: kleikamp);
- mmc: disable CRC check for better performance;
- drivers/mmc: spi CRC configurable;
- PM / sleep: Fix memory leak in pm_vt_switch_unregister();
- tcp cong: westwood & htcp builtin and add hstcp & hybla & vegas;
- tcp: replace bic by westwood as default;
- CONFIG_EXYNOS5_DYNAMIC_CPU_HOTPLUG_SLEEP_PREPARE set to 1 for better stand-by battery life
- Faster lzo compression
- Added a new kernel compression lz4;
- Full support for ext4 and f2fs;
- rework f2fs - Linux 4.4 merge window;
- cpufreq: Remember last policy min/max on cluster restart
- block: disable add_random for more performance on SSD's
- wireless: dhd: Enable standby ARP and multicast packet filters
- mailbox: Separate APM CPU cluster voltages and fix debugfs output
- Added latest version of driver POWERSUSPEND
- Included schedule workqueues to save energy
-tweaks and optimize the interactive Governor, cpu standard
- GApps wakelock fix
- enable ld fix for cortex-a53 errata 843419;
- Included configs to improve the sound (g928f);
- Ported the driver from random Linux 4.2+;
- full NTFS R/W support (installed total commander and the plugin and use the flash drive with the ntfs file system);- enable USB OTG support)
- fs/dyn_sync_cntrl: dynamic Fsync control v1.5;
- fs/dyn_sync_cntrl: on by default;
-Optimization make all the kernal files;
- A new driver LMK (Lowmemorykiller);
- UI lags fixed with binder patch;
- NVIDIA's power-efficiency improvement commits applied;
- disable GCC SRA optimization;
- increase AES interleave to 4x;
- Improve ext4 и fuse;
- Enable standby ARP and multicast packet filters;
- rcu: Move SRCU grace period work to power efficient workqueue;
- firmware: use power efficient workqueue for unloading and aborting fwload;
- usb: move hub init and LED blink work to power efficient workqueue ;
- net: rfkill: move poll work to power efficient workqueue;
- net: wireless: move regulatory timeout work to power efficient workqueue;
- net/ipv4: queue work on power efficient wq;
- switch: arizona: Use power efficient workqueue;
- rtmutex: Fix deadlock detector for real;
- sched/__wake_up_sync_key(): Fix nr_exclusive tasks which lead to WF_SYNC clearing;
- Readahead: Optimize divide/multiply by power of 2 using L/R shift;
- readahead: Fix an error (thx ramgear);
- Async I/O latency to a ssd greatly increased, 34% gain (Creds: kleikamp);
- fixup! mm: fix aio performance regression for database caused by THP;
- mm: fix aio performance regression for database caused by THP;
-Disabled all the junk in the kernel (unused drivers, ramdisk compression, sedulity, Governor, etc.);
- per-thread vma caching;
- Improve drivers gpio;
- Improve drivers keyboard;
- Add power-aware migration decision making
- power migration: Refactor the hysteresis scales
- Implement task packing for small tasks in HMP systems
- tweaks dm-hotplug (before the tests with the kernel need to log in to Synapse and see if the maximum frequency set for the processor, and also put on 0 undervolting).
- the kernel source code is fully fixed not a single error, and warnings note (perfect code).
2. Changes in ramdisk:
- spoilramdisk (COI9) +my changes
- SE Linux set to permissive (will prevent private mode from working)
- Full init.d scripting support
-removed the red line when the phone is boot(SE Android enforsing);
- support engineering(samsung loaders;
- поддержка port ROM S6 Edge + and Note5
- Changed ramdisk compression in lzo;
- SeLinux is fully disabled;
- full support for Synapse
- SQLITE
- ensure cores to be online on boot
- boost onlined cpu;
- Auto-install Synapse
-Full support for ext4 and f2fs multiboot;
- Improving and automatic tuning of file system (fstrim);
- Optimization and tweaks RAM;
- automatically remove KNOX
3. Control via Synapse :
A57 CPU
- CPU temperature
- A57 big Cores Frequency Scaling
live frequency
MAX: 2100 MHz
MIN: 800 MHz
- HPM voltage control (UNDERVOLTING)
- A57 big Cores voltage control
- CPU governors
interactive (default)
userspace
performance
- CPU governor tunables
A53 CPU
- A53 LITTLE Cores Frequency Scaling
live frequency
MAX: 1500 MHz
MIN: 400 MHz
- HPM voltage control (UNDERVOLTING)
- A53 LITTLE Cores voltage control
- CPU governors
interactive (default)
userspace
performance
CPU governor tunables
GPU
- GPU stats
Current clock freq
Live Frequency Utilization (load)
- Time in state
- GPU power policy control
coarse_demand (default)
demand
always_on
- GPU frequency scaling
- GPU Governor
Default
Interactive (default)
Static
Booster (more graphic and benchmark performance)
- GPU Interactive Governor tunables
highspeed clock
highspeed load
highspeed delay
-I/O Schedulers
CFQ default(tweaked for SSD)
NOOP
Storage read-ahead (256 KB)
- General IO tuneable
Add random
IO stats
Rotational
No merges
RQ Affinity
- I/O scheduler tunables
AUDIO
(Sound Control by AndreiLux)
- Jack media volume control
L/R channel volume
mono mixer
- Main Equalizer
- Advanced Stereo Equalizer
NETWORK
- TCP congestion control
All available enabled.
Default = westwood+
- Screen mirror/allshare cast fix control (enabled)
- Clean WIFI Lease
- TCP/IP network security
- 3G DNS speed & security tweak
Google
OpenDNS
Comodo, Level3
Norton_DNS
Smart_Viper
REBOOT
- Reboot device
- Recovery Mode
- Download Mode
- Power Off
- Clear Synapse Data & Reboot
- Restart Synapse
Led indicator
- on/off fading led
FS
- Information about the partitions on the phone and their file systems
- tweaks
Backup/restore
- Save and restore your settings Synapse
Thanks to:
AndreiLux
faux123
Linaro
arter97
Xileforce
g.lewarne
and a lot of other people I forgot.
Changelog:
Code:
[B][I]v.5.2 [/I][/B] (Universal)
- Kernel Supports F/I/S/K/L/T/W8 variants of 920 AND 925 devices.
- kernel with all prior versions and changes;
- add sweep2sleep (control via Synapse);
- add IPV6 Optimistic Detection (control via Synapse);
- add USB storage controls - you can connect your phone to PC, CD-rom, etc. (control via Synapse).
[B][U]v.5.1[/U][/B]
- Sources COI9 G925F;
- Completely rewritten kernal;
- Completely rewritten ramdisk;
- Removed a lot of junk;
- Compression ramdisk gzip;
net/neighbour: queue work on power efficient wq;
- aio: Skip timer for io_getevents if timeout=0;
- sched/fair: Implement fast idling of CPUs when the system is partially loaded;
- futex: Implement lockless wakeups;
- locking/rtmutex: Implement lockless top-waiter wakeup;
- A kernel with all prior versions and changes;
- Sort of happened to build into the kernel tweaks for the RAM!
- At the moment is the kernel for me the best performance, savings and tweaks.
- Update kernel will return a standard video driver from G925F COI9.
[U][B]v.5.0[/B] [/U]
- compute time-average nr_running per run-queue;
- Re-compute time-average nr_running on read;
- network speed tweak;
- governor: Be friendly towards latency-sensitive bursty workloads;
- Introduce new relation for freq selection Introduce CPUFREQ;
- Replace CPUFREQ_RELATION_L with C (interactive governor);
- add quickwakeup driver (from Motorola);
- always mount partitions as noatime and nodiratime;
- process: drecrease time to enter sleep ;
- Increase hash table size for better performance ;
- sensorhub: reduce wakelock time;
- implement readpages() to optimize sequential read ;
- Move clock sync work to power efficient workqueue;
- remove WQ_POWER_EFFICIENT from kblockd;
- LOAD_FREQ (4*HZ+61) avoids loadavg Moire;
- pass readahead info down to the i/o schedule ;
- cpufreq: add underclock;
- updated the files and applied a lot of tweaks to cpufreq_stats - dm_cpu_hotplug - freq_table - speedstep-lit - speedstep-sm - cpufreq_interactive - cfq-iosched;
- Added ROW iosched and set as default;
- Control voltage and overclocking GPU (100 - 852 Mhz);
- add dynamic read-ahead
- Improvements to RAM;
- Many improvements ramdisk
[/B]
.
Downloads:
V.5.2
Mod Edit link removed
XDA:DevDB Information
tn2009_kernel for the Samsung Galaxy S6\S6 EDGE
Contributors
-=RaZoR=-
Version Information
Status: Stable
Current Stable Version: v.5.2
Created 2015-12-04
Last Updated 2015-12-06
Welcome ?
Great. Always nice to see a new kernel. Going to test it.
Flashed it. Will test it with default settings first.
Nice. Will try !!
welcome ! i will try it
Welcome! I will try it. Thanks =]
Very happy to see another developer here for S6/Edge.
do everything possible to make you glad
When scrolling through Facebook its giving glitches. Will test some more. Hmmm its only with the Facebook app.
Oké after a reboot its gone. Strange
Awesome work,dev! Really i get a wonderful multitasking,i will report later for battery life! Again,great work. Thanks
Sent from my SM-N920C using Tapatalk
work in 925i?
core720 said:
work in 925i?
Click to expand...
Click to collapse
this kernel is made only for SM-G920F\SM-G925F but may work on other models. if you still decide to put for your SM-G925I before installing make a backup.
So far so good Good to see another project!
-=RaZoR=- said:
this kernel is made only for SM-G920F\SM-G925F but may work on other models. if you still decide to put for your SM-G925I before installing make a backup.
Click to expand...
Click to collapse
Yeah it works on g925i
Attinderkahlon said:
Yeah it works on g925i
Click to expand...
Click to collapse
great! any problems bugs?
Sources?
Have been using this kernel for a few weeks now, and it's fantastic. Please post your sources in the OP though, so you don't get shut down again!!!
nofam said:
Have been using this kernel for a few weeks now, and it's fantastic. Please post your sources in the OP though, so you don't get shut down again!!!
Click to expand...
Click to collapse
don't worry it's not need! the kernal of each time will only get better and better:laugh:
-=RaZoR=- said:
great! any problems bugs?
Click to expand...
Click to collapse
Haven't faced any yet...
Everything is alright.
Nice kernel. Had a bad standby time overnight. Will see what happend
Erik1805 said:
Nice kernel. Had a bad standby time overnight. Will see what happend
Click to expand...
Click to collapse
This!
-=RaZoR=- said:
don't worry it's not need! the kernal of each time will only get better and better:laugh:
Click to expand...
Click to collapse
i really impressed with this kernel but still you must follow xda rules < XDA-Developers and the GPL > if you want this thread still alive bro.

[KERNEL][STOCK-MM 3.4.113][Gabriel][Stweak][D85X_VS985_LS990_F400]_[160617]

Be Sure ! If you benefit to the other's you will see it's effect.
Imam Ali (a.s.)
If you don't believe in any religion and don't fear the Resurrection Day, at least be free in this world.
Imam Husayn (a.s.)​
Q&A in 2nd post
Features/Changelog in 3rd post
Mod & Tweak in 4th post
Flash at you own Risk !
Download directory
Kernel Source Code: https://github.com/mostafa-z/Gabriel_MM
Ramdisk Source Code: https://github.com/mostafa-z/MM_RAMDISK
There is a file named "compile.log" in kernel zip file
that says which branch i used for build process
[ Stweak support added from V 1.7 ]
Big thanks to these kind Developers, who shared their works​
Q&A
Q: i have long charge time !
A: there is a driver to reduce charge current if battery temp goes high to prevent damage, if cpu temp goes high thermal driver will cut off freqs so it can reduce charge time, so monitor system for why temp is high specially on battery.
Q: can i turn intelli_thermal_2 off to get better performance?
A: we have 2 intelligent thermal control driver, if you turn it off the built-in driver will get online and control the temperature which is controlling temp during the boot till intelli_2 get online then you can have more control over it. i changed parameters from 80 & 90 degC to 72 & 75 degC for safer temp control (as a user requested ). so if you want get higher freq values at higher temperature you should get control of intelli_2. caution: reduce the temperature for long life.
Q: i can't get last_kmsg , there is no last_kmsg ?
A: actually there is a tunable parameters to let the kernel dump it at fails but you can use ADB and get live kmsg log at terminal by running "cat /proc/kmsg". it will show you live show
Code:
<3>[ 8624.446243 / 07-07 11:08:50.416] pre-check do_freq_control temp[47], limit_idx[14],
<3>[ 8624.696399 / 07-07 11:08:50.666] pre-check do_freq_control temp[48], limit_idx[14],
<3>[ 8624.946358 / 07-07 11:08:50.916] pre-check do_freq_control temp[47], limit_idx[14],
<3>[ 8625.196421 / 07-07 11:08:51.166] pre-check do_freq_control temp[46], limit_idx[14],
<3>[ 8625.446387 / 07-07 11:08:51.416] pre-check do_freq_control temp[46], limit_idx[14],
<3>[ 8625.696374 / 07-07 11:08:51.666] pre-check do_freq_control temp[46], limit_idx[14],
if you want get log only for your desired parameters like temp you can limit it with "cat /proc/kmsg | grep temp"
Q: my device is always hot and max freq is decreasing to lower values?
A: depends on your config, decreasing max freq is due to thermal limitation ( protect your device from heat by decreasing max freq to produce less heat ... ).
you can find out which process using the cpu and cpu produced heat :
run "top -s cpu" in your android terminal or adb :
Code:
PID PR CPU% S #THR VSS RSS PCY UID Name
22972 2 [B] 26%[/B] S 14 1362360K 135488K bg u0_a23 [B]android.process.media[/B]
4432 0 [B]24%[/B] S 4 9680K 2632K fg media_rw [B]/system/bin/sdcard[/B]
4974 1 7% S 14 1354472K 69500K fg system com.android.settings
361 2 3% S 18 191664K 6452K fg system /system/bin/surfaceflinger
22960 0 2% S 10 1716192K 198660K bg u0_a38 com.android.gallery3d
23060 3 1% R 1 3068K 1288K fg root top
21534 0 1% S 20 1221608K 49832K bg u0_a104 com.grarak.kerneladiutor
3532 0 0% S 148 2023996K 93580K fg system system_server
1134 0 0% D 1 0K 0K fg root mdss_fb0
in this case process.media is using much more that other processes , find out why it's running or end that process.
Q: i faced lag ! what can i do ?
A: depends on your config, but try ramp up thermal degC can prevent to throttle freq & cores (you will kill your device by heat )
Q: can i take my device temprature down ?
A: depends on your config, try lower down temprature degC limit to make throttle freq & core as soon as possible.
lower down max freq, you have not to kill performance at all try free up the ram from unwanted apps
Q: i have long charge time ?
A: i switched cpu_governor at charge process to have shortest ( ~ 1:20 ), monitor its rate at battery usage.( i've tested slim and alucard )
Q: what you mean by optimized build?
A: simple answer is i use GCC build flags in build process, google it.
Q: do you have any script for configuration?
A: actually i'm trying to build some script :
example: to drop cache and free up ram in scheduled time using: echo 2 > /proc/sys/vm/drop_caches
and some cool script from dorimanx
implementing stweak can fix all of these stuff
Q: why there is a build for slim governor and one for elementalx?
A: they have almost similar code, they can't live toghether or i can't make them.i'm working on it.
Q: do you have plan to build with separate toolchain, like uber-7,5 or linaro ?
A: it depends on users feedback, let's experience them, who cares
Q: do you support other variants like D852 and ... ?
A: as far as i can
Q: why kernel options not tuned?
A: i've planing to implement stweak to have control over sysfs
Q: what is your kernel config?
A: i satisfied if i have 0% or 1% during the night
Code:
# My simple profile
cpu alucard
hotplug alucard
gpu powersave
i/o noop 1024
screen
232 237 256, saturation 75 (franco config)
entropy
read 512, write 256
fsync off
thermal
core control off
freq throttle 75, core throttle 72
temp,core hysterecis 10
# my smoothness profile
cpu slim/elementalx
down_differential 10
input_enent_timeout 800
sampling_down_factor 2
ui/sampling_rate 15000
hotplug alucard
sample_rate 35%
gpu msm-adreno
simple algorithm laziness 3, ramp threshold 7
screen same
i/o fiops 1024
entropy same
fsync same
note: for better performance set same sample rate at cpu and hotplug
Features/Changelog
KERNEL 2.3
* restore f2fs driver to 3.4.y stable
* codes compiled with gnu gcc 7.1.0 toolchain compile by me
* kernel use updated libraries instead of linux ones by gcc 7.1.0
* add CFS kernel scheduler switch (how to balance tasks onto different CPU unit)
* fix devfreq nodes unavailable
* remove async-fsync
* add fsync control
* remove sched relaxing cpu-idle by nvidia
* merge kernel cpu codes
* merge cpu-idle codes from 3.10.y kernel mainline
* merge codes to fat, exfat from 3.10.y kernel mainline
* add interactivex, nightmare, darkness governors
* merge massive codes to crypto, of, cgroup, kernel time, ntp, tick, rcu, lib
* merge codes to net
* merge codes to zram driver from 4.11.y kernel mainline
* merge codes to base/power & base/core & qos driver from 3.10.y kernel mainline
* merge codes to mdss
* merge codes to selinux
* merge codes to kernel/irq
* merge codes to kernel scheduler, cputime, cpu accounting from 3.10.y kernel mainline
##### Ramdisk/Stweak
* add dcop7 profile by @dcop7
* add salvation profile by me
* add per governor profile for alucard & nighmare cpu governors
* add profile for alucard hotplug
* add adreno-idler controls
* add multicore power saving controls
* fix thermal driver switch
* fix synapse stats, now it shows kernel stats
* fix node path for cpu-boost & devfreq governors
* update busybox to latest codes from branch "busybox.net/master", compiled by me
KERNEL 2.2
* allow modem to enter deep sleep (control interface in mastercore tab)
* merge random driver from 3.16.y
* disable more debug option to save space and cpu cycle
* add maple io scheduler (based on zen & sio)
* merged alucard touch-boost driver's option and stability to caf cpu-boost to fix the min freq locking to boosted freq and boosted core & freq in heat.
* merge NTFS fs from 3.10.y
* merge EXT4 & F2FS fs from 3.10.y ( better coded file system can save power )
* merge update to selinux
* removed dyn_fsync and add fast async_fsync from htc
* merge update to ZRAM & ZSMALLOC from 4.8 kernel
* merge swap speed update to ZRAM driver
* merged massive update to memory code from 3.10.y and upstream code aurora updates backported from 4.5.y
* merge updates to memory code and ram leaks fixes ( slub, OOM, LMK, page_aloc, etc )
* merged some updates to memory code from 4.6.y and some fixes to shrinker code
* merged many updates to memory code, including vmpressure and new shrinker API & tunable process reclaim control available in memory tab
* add zen-interactive tuning to optimized & overclocked version and all ondemand based GOVs (Tunes the kernel for responsiveness at the cost of throughput and power usage) (web)
Thank you @dorimanx
##
* all profiles will be reset at fisrt boot after flash
KERNEL 2.1
* merge kernel printk driver from 3.10.y
* merge cgroup & library updates from 3.10.y
* merge I/O driver from 3.10.y (all io schedulers converted to use new io update)
* merge LMK driver from 3.10.y and fix panic under memory pressure
* merge ipc & android binder codes from 3.10.y (interprocess communication mechanism, rom and apps should do better under pressure, thanks dorimanx)
* add quick wake-up driver and fix for lpm and cpu-idle
* available in 3 style
1- same as previous versions
2- same as #1 + GCC OPTimization Flags (Ofast, Graphite, ...)
3- same as #1 & #2 + CPU and GPU has been Over Clocked ( CPU 2.8 GHz and GPU 657 MHz )
##### Ramdisk/Stweak
* add suigintou profile
* some typo fixes
* add overclocked frequencies which works only in Over Clocked version
KERNEL 2.0
* merge MMC codes from 3.10.y kernel mainline
* merge cpuidle codes from 3.10.y
* add ability to disable dmesg (kernel logging)
* merge qseecom from 3.10.y
* merge watchdog from 3.10.y
* add frandom
* add Boeffla sound engine
sysfs available at: /sys/class/misc/boeffla_sound/*
enable with : echo 1 > /sys/class/misc/boeffla_sound/boeffla_sound
to change volume you should add left & right chanel : echo "20 20" > /sys/class/misc/boeffla_sound/speaker_volume
##### Ramdisk/Stweak
* add ability to disable dmesg logging (others tab)
* add sound control options
* update busybox
KERNEL 1.9
* merge workqueue from 3.10.y and use new idr
* alucard hotplug is up with latest version to use the new workqueue structure.
##### Ramdisk/Stweak
* add an option to deactivate hotplug protection (you can set hotplug out of the stweak and cortexbrain can't change it to stweak value)
KERNEL 1.8
* Linux kernel version 3.4.113
* merge arm codes
* getting almost same and close features to v 1.7 features
* revert back to 3.4.y kernel scheduler
* multirom support
* merge lge v30j kernel source codes
* merge lmk (low memory killer) & oom (out of mermory) codes
* squashfs implemented (i don't have any tools to enable it)
* lz4 de/compression updated with 3.10.y
* enabled unaligned memory access (faster lz4 de/compression)
* merged latest 3.4.y f2fs updates
* merged latest zram from 3.10.y Motorola
* merged latest zsmalloc codes 3.10.y and some other memory improvement codes
* merged kgls, devfreq codes (gpu update)
* merged much saner idr and using it in most parts of kernel
* zram using new idr and compact in sleep mode (see kernel log for statistics while going to sleep, much improved results will show when ram loaded and have much app)
* kernel uses 300 Mhz internal clock
* swapping scheduled on all cores to free up ram faster
* merged codes to main cpu driver
* added null cpu-idle governor
* merged some CVE commit
* krait boost enabled
* added dynamic fsync
* compiled with latest Linaro 6.1.1
##### Ramdisk/Stweak
* added Gabriel profile (ran asphalt 8 , no lag in high detailed maps and ui)
* added undervolt control
* added sleep state control for VM (there is 2 profile for VM in Gabriel profile that you can adapt and use, one for awake state (speedmod) and one for sleep state (boeffla, adapted from boeffla kernel)
* added more controls on hotplug and cpu
* added kcal profiles
* control for new features, dynfsync, vibrator strength , ...
KERNEL 1.7
* Linux kernel version 3.4.112
* Merge UKSM codes (ultra kernel same page merging)
* Add cpufreq barry_allen, intel, ondemandx, interactive & ondemand from AOSP kernel mainline
* Merge Nvidia Cpuquiet codes (available on kernel adiutor)
* Merge cpu codes
* Merge multi cpu policy limiter
* Merge cpu freq limiter v 5.4 (per core functions)
* Merge cpu-boost update (per core functions)
* Merge sched codes (higher linux mainline)
* Merge workqueue codes (higher linux mainline)
* Merge power codes (higher linux mainline)
* Disable bunch of trace & debug to save cpu cycle
* Merge HMP (heterogeneous multi-process) codes (higher linux mainline)
* Cpu underclock to 268 MHz
* Merge KGSL codes
* Add Thunder-plug hotplug driver
* Add Intelli-plug hotplug driver
* Merge Random codes (3.16.y mainline)
* Merge RWSEM optimization
* Merge sl[a,o,u]b memory codes
* Merge zcache codes (3.18.y mainline)
# with new cpu/sched codes some hotplug driver may don't work properly, codes need more update !
* Implement Stweak support (kernel control with profile support)
* Stweak: add more sleep/awake functions to control kernel
* Stweak: add tunable service control (fstrim,memory reclaim and more)
* Stweak: initial 5 profile support (extreme battery,battery,default,performance,extreme performance)
# install Dorimanx stweak by default as respect him, other different ui available in download folder
KERNEL 1.6
* Introduce Linaro 5.3 Toolchain
* Fixed latest kernel crash
* Add Ondemand CPU_Governor from semaphore kernel (nexus 4)
* Update Intelli_Thermal driver (parameters descriptions)
* Set High Performance Profile After Boot Up to Finish the OS Load Process
As Fast As Possible and Smoothly,
Normal Profile will set after CPU Temp Goes Under 65 degC, Just a While
KERNEL 1.5
* F2FS bring up to date with Kernel.org latest codes,
stable branch 4.7-rc1-3.4 - 2016-06-03
* Sync FS just once before suspend, not all the time
* Mako Hotplug added
* Quick Wakeup driver added
( system back into suspend without fully resuming
if the wake reason was a special quick wakeup event )
* Make MPDecision to be Conservative
* Enhanced Power Efficiency by NVIDIA implemented
* Interactive CPU back to LGe changes
* CPU Boost updates and Relative Dependencies Removed
this should solve last Kernel oops
* Back light control by jon777 added
Force Rom to use defined min/max back light
/sys/module/lm3697/parameters/*
* Arch Power & Gentle Fair Sleepers sysfs added
/sys/kernel/sched/*
disabling gentle fair sleepers may bring you smoother ui
* Add MMC CRC control sysfs
/sys/module/mmc_core/parameters/use_spi_crc
( Enabling software CRCs on the data blocks can be a
significant (30%) performance cost )
KERNEL 1.4
* Support F2FS (see this instruction)
* Neon-mode activated
* Neon optimized Crypto
KERNEL 1.3
* Fix kernel crash/reboot
* Add Smartmax cpu_governor
* cleanup dmseg to produce better logs
* Install custom busybox for my later needs
* Enable msm_thermal by default
KERNEL 1.2
* Support Exfat
* Tune down default thermal limit to 72 & 75 degC
* Switch to XZ kernel compressor
* Initial support for D850, 1 ,2
KERNEL 1.1
* Introducing UBERTC-7 toolchain, Experimental (first time for G3)
* CPU_Governor added:
zzmoove,alucard,impulse,intellimm,hyper,nightmare,darkness,lionheart,(slim & elementalx : gpu_boost feature)
(i can't have slim and elementalx at same time) :\
interactive synced with AOSP source
* GPU_Governor added:
conservative + adreno idler,simple gpu algorithm
* Minimum GPU Freq 27 MHz
* Hotplug added:
alucard,msm
* I/O Scheduler added:
bfq,fiops,sioplus,zen,vr,tripndroid
* CPU_Boost updated
* Scheduled Workqueue implemented
* CPU Voltage control supported
* MSM_Thermal v2 implemented
* KCal v2 implemented
* Live user sharpening control implemented
can access by "/sys/devices/virtual/graphics/fb0/sharpening"
* KSM ,disabled by default
* Adaptive LMK (by motorolla) implemented
* Fsync implemented
* TCP congestion algorithm (westwood & ...)
* State notifier (determine screen state, on & off)
/sys/module/state_notifier/parameters/*
* ZCache,ZRam,Zsmalloc,Frontswap implemented
zram compressor can switch to lzo or lz4
maximum compressor streams can change from 1~4 cpu
## enabling zram can drain battery faster, google zcache,zram,frontswap
## to enable 512 MiB zram copy these commands to your init.d script or run in terminal:
Code:
swapoff /dev/block/zram0;
echo "1" > /sys/block/zram0/reset;
echo "lz4" > /sys/block/zram0/comp_algorithm;
echo "2" > /sys/block/zram0/max_comp_streams;
echo "512MB" > /sys/block/zram0/disksize;
mkswap /dev/block/zram0;
swapon /dev/block/zram0;
* Process reclaim implemented (i don't think it's working ...)
* EXT4 filesys updated
* Frandom implemented (10-50 times faster than what you get from Linux urandom)
* Disabled crc check
* memutils, memcpy, memmove optimization
## filename resolution
SLIM is for slim cpu_governor
ELEX is for elementalx cpu_governor
U7 is for UBERTC-7 toolchain
U5 is for UBERTC-5.3.x toolchain
L5 is for Linaro-5.3.x toolchain
OPT is for optimized with gcc build flags
STK is for no-optimization
Mod & Tweak
1- Bullet_93 UKM_Mod ( synapse ) 010716
Bullet_93_Mod 1.3
2- Tasker instruction
Niceeeeeeeee I loveeeeee it always best on LP and now in MM
f400 variant pls...
Pls support f400 i would like to use this kernel as daily driver........
toks420 said:
Pls support f400 i would like to use this kernel as daily driver........
Click to expand...
Click to collapse
you know i'd failed for fF400 with LP, i will try again, if you know anyone who build stock MM for F400 please introduce him/her to me,tnx
i should get sources,step by step during the time
Great to see you on MM builds @mostafaz, thank you for your work.
Any reviews? Performance, battery life, feeling?
Great performance......
For battery life is to early.......
( UBERTC 7.0.0 )
Cpu elementalx
Gpu alucard
D855
FULMICS 5.3
Inviato dal mio LG-D855 utilizzando Tapatalk
davidez25 said:
Inviato dal mio LG-D855 utilizzando Tapatalk
Click to expand...
Click to collapse
Hat do you mean different file?....
D855
FULMICS 5.3
cultofluna said:
Hat do you mean different file?....
D855
FULMICS 5.3
Click to expand...
Click to collapse
Yes
because there are 4 files, the difference between them?
Inviato dal mio LG-D855 utilizzando Tapatalk
Exfat
Pls support exfat for sdcard
Great builds, thank you for your work. :good:
davidez25 said:
Inviato dal mio LG-D855 utilizzando Tapatalk
Click to expand...
Click to collapse
davidez25 said:
Yes
because there are 4 files, the difference between them?
Inviato dal mio LG-D855 utilizzando Tapatalk
Click to expand...
Click to collapse
Can you not read? ^^
mostafaz said:
## filename resolution
SLIM is for slim cpu_governor
ELEX is for elementalx cpu_governor
U7 is for UBERTC-7 toolchain
U5 is for UBERTC-5.3.x toolchain
OPT is for optimized with gcc build flags
STK is for no-optimization
Click to expand...
Click to collapse
Which means one contains slim governor(among other governors included) compiled with ubertc 5 and the other one with ubertc 7, and another pair with elementalx governor.
When I use 64GB sdcard, it seems that i can't use. Please support exfat. Thank you!
Thaks dev for the kernel. Will be my daily driver going forward.
Sent from my LG-D855 using XDA-Developers mobile app
Slim for battery life
Elementalx for performance
Right?
Thanhtho96 said:
Slim for battery life
Elementalx for performance
Right?
Click to expand...
Click to collapse
Both are performance oriented and very simillar.i just let users choose which one they decide to have.
You can disable gboost in governor settings & lower down differential & ramp up sample_rates & lower responsivness ...
how can i get better battery life in this kernel? download slim version?

[KERNEL] [OCEAN] [Custom Roms] jsX-CustoKernal Blue-Virtual-Dragon

-#_#- JavaShin-X CustoKernal -#_#-
Blue Virtual Dragon Custom Kernel.
For The Moto G7 Power Ocean Model : XT1955 = ocean.
To Improves Your Experience With This Awesome Phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-#- blue_virtual_dragon_kernel_sdm632 -#-
https://github.com/javashin/blue_virtual_dragon_kernel_sdm632
• Kernel Based On Motorola Stock Q 4.9.206-perf+ Ocean Source Push kernel-msm-MMI-QPOS30.52-29-2 .
https://github.com/MotorolaMobilityLLC/kernel-msm/tree/MMI-QPOS30.52-29-2
• Upstreamed To 4.9.232 Android-Stable MSM-4.9 Branch -r27.
https://github.com/android-linux-stable/msm-4.9/tree/kernel.lnx.4.9.r27-rel
• Inline Modules Added From lineage-17.1 Kernel Tree For Motorola Sdm632. Ocean.
https://github.com/erfanoabdi/android_kernel_motorola_sdm632
• Merge Linux 4.9.232 Into Blue-Virtual-Dragon jsX-CustoKernal.
Kernel.org ChangeLog = https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.232
• Merged GoldenFreezer/MetalCooler/Frost/Vegeta/Trunks/Kakarot CustoKernal's Mods , Tweaks , Features & Optimizations.
https://github.com/javashin/android_kernel_motorola_sdm632
##-Features-##
• kernel.lnx.4.9.r27-rel MSM-4.9 CAF Branch Merged IN.
• Release build have significantly reduced debugging messages/routines for slight performance & battery enhancements.
• Optimize compiler flags with better CPU optimizations.
• Optimize for performance rather than size.
• Higher performance with lower battery usage.
• Various other improvements.
• Ultra low latency.
• SchedUtil Cpu Governor Set To Default.
• Addeded BFQ I/O SCHED.
• Added 750Hz timer interrupt. Set To Default
• Zswap now uses BTREE For Search With ZPOOL.
• Zswap Now Default Compression To LZ4 and Z3fold Instead Of ZBUD.
• Zsmalloc by Default.
• WireGuard VPN.
• Boeffla generic wakelock blocker driver.
• AnyKernel v3 To Retain Magisk Root.
• Disabled GFS to Achieve Better UI Performance.
• BlueTooth Check Key-Sizes Only If Secure Simple Pairing.
• Simple Android Low Memory Killer.
• Enable ZRAM to 3GB and use lz4 as compressor.
• Use optimized spinning loop for arm64, this makes about 20% performance improvement on the CPU multithread load.
• Zen I/O scheduler - Primarily based on Noop, deadline, and SIO IO schedulers.
• Regular Updates Of WireGuard Backport From GIT.
• MDSS color control KCAL.
• Devfreq - Use high priority workqueue.
• Kgsl - Increase priority of RT thread.
• Run kgsl-workqueue as a high prio wq.
• Workqueue - change permissions to allow root control of wq_power_efficient toggle.
• Zstd Compression Algo Backported.
• Zswap kernel feature that provides a compressed RAM cache for swap pages Can Select Zstd.
• Updated Lzo From msm-4.14.
• LZO-RLE Compression Algo Backported.
• Crypto/compress - add asynchronous compression support Api's.
• Crypto/acomp - add support for lzo via scomp.
• Zswap kernel feature that provides a compressed RAM cache for swap pages Using ZPool Btree LZ4 z3fold
• ZRAM Will See Greater Performance Thanks To Lzo-rle By Default.
• Backport kvmalloc and kvmalloc_node kv[mz]alloc helpers.
• Add - Streebog Crypto Support Developed By Russia's FSB.
* introduced as a cryptographic hash function developed in large part by the Russian government.
• KLapse 5.0 A-kernel-level-livedisplay-module.
• State Notifier Driver.
• Adreno Idler.
• cpufreq Pixel 3 Smurfutil CPU governor.
• Dynamic Fsync 2.0 .
• GPU-Enable-19MHz-idle-frequency.
• Switch Fsync ON/OFF.
• adreno_tz GPU Input-Boost Feature.
• Dynamic SchedTune boosting support (DYNAMIC_STUNE_BOOST).
• Dynamic SchedTune Boosting on events (DSBOOST).
• Fingerprint Boost (FINGERPRINT_BOOST).
• AdrenoBoost.
• SIO I/O Scheduler.
• Maple I/O Scheduler.
• Force faster charge rate for USB (FORCE_FAST_CHARGE) (NEW) .
• wireless / db.txt : Checkout from head:master wireless-regdb.git
• Backport KBuild From BlueCross-Proton Android Kernel.
• Disable Unmap kernel when running in userspace (aka "KAISER").
• Kernel 4.9-Fixes From Kernel-Stable-Queue.
• Bluecross Kernel Upstream Patches Merges.
• No Kernel Modules .
• Modless Kernel .
• Disabled Loading Modules .
• Disabled Module Support .
• Config Mod's =
[*] Enable RCU priority boosting
[*] QTI Core Control
[*] Optimize very unlikely/likely branches
[*] Automatic process group scheduling
[*] CPU bandwidth provisioning for FAIR_GROUP_SCHED
[*] Enable workqueue power-efficient mode by default
[*] SMT scheduler support
• Extra Mod patches By JavaShin-X. "-jsX" Compiled With LTO+PGO+POLLY Optimized Compiler By kdrag0n.
• Build System Debian Sid/Unstable Bullseye.
• Specific Aarch64 Sdm632 optimizations. "-march=armv8-a+fp+simd+crc+crypto" .
• Plus ricer optimizations "-O3 -mllvm -polly -mcpu=kryo -mtune=kryo -fno-stack-protector -pipe".
• Clang-Proton 12.
• GCC 10.2.0 aarch64-linux-gnu- & arm-linux-gnueabihf- . As CROSS-COMPILERS.
• CROSS_COMPILE_ARM32 & CLANG_TRIPLE_ARM32.
• VDSO32 Bits Enabled By Default.
• Kernel Compatible To Compile With LTO THINLTO & LD.LLD Linker.
• THINLTO Build Link On Time Optimizations.
• Faster Builds Time.
• Make USE LD.LLD LLVM Linker For LTO.
• Enable -O3 In LD.LLD Plugin When Using CLang.
• Simple And Human Readble Building Script.
• Set Optimiztions To Polly LLVM by Default. Polyhedral optimizations for LLVM.
KBUILD_CFLAGS += "-mllvm -polly -mllvm -polly-run-dce -mllvm -polly-run-inliner -mllvm -polly-opt-fusion=max
-mllvm -polly-ast-use-context -mllvm -polly-detect-keep-going -mllvm -polly-vectorizer=stripmine
-mllvm -polly-invariant-load-hoisting"
Compatible With DerpFest , Msm-X , Havoc-OS , SuperiorOS , StagOS , Plenty More Roms.
SmartPack Kernel Manager. Recommended.
Credits :
Thanks To erfanoabdi SyberHaxen Barry Allen For Their Contributions.
And Provide The lineageos-17.1 Kernel Source Tree.
Thanks To Motorola-Lenovo For Being A Great Company Friendly With The Open Source Community.
Thanks To Google And Qualcomm "2" .
@everyone Who Has Tried My Kernal. Testers!
Thanks To @GarfieldArbuckle For The Kernel Logo ArtWork.
Moto G7 Power Communities English And Spanish.
electimon , TailanCunha , Dan Ford , David Rondeau , steve , gabi , Deivid , Francisco.
##- Please give feedback. A lot of work has been done to get here. -##
JavaShin-X CustoKernals Telegram Channel Dumper =
https://t.me/CustoKernal_JavaShin_Mods
Telegram CustoKernal Support Group =
https://t.me/jsX_CustoKernals_Support
* Disclaimer ===
"Not Responsible For Any Kind Of Damage To Any Device"
"Use At Your Own Risk , No Warranty Included , If Brick Well It Bricks In The Name Of Science Don't Blame ME"
"If You Got Here Is For A Reason , Meaning You Already Know What Are You Doing With Your Phone"
"Meaning That You Already Void OEM Warranty"
" And There Is No Turning Back Starting When You Typed = fastboot oem unlock + key "
* Instructions ===
Always retain a backup of your current kernel and system image. Before Flashing.
After Set Everything Up - Working System Custom Rom With Recovery & Magisk Root.
Then Just Need To Reboot To Recovery Via Advanced Reboot Power Menu Or "adb reboot recovery"
Or Starting Phone In Bootloader Mode Selecting Recovery From Menu Using Vol - And Power.
##- Enjoy - Cheers ! -##
Carlos Jimenez = NickName =
JavaShin-X WrongDevice =
Ozmage JavaShin-X Fork.
Dominican Republic -
Sunday August 02 2020.
XDA:DevDB Information
Blue_Virtual_Dragon, Kernel for the Moto G7 Power
Version Information
Status: Stable
Created 2020-08-02
Last Updated 2020-08-08
Blue_Virtual_Dragon Kernel Profile Magisk Module.
After Install In Magisk* The Kernel Profile , The System Will Have 12 Gigas Of Swap Virtual Mem With 4 Zram Device Nodes 1 Compressed Pages With LZ4 The Last 3 With LZO-RLE.
- Magisk-Kernel-Module-Profile-v0.2
- ChangeLOG =
1. NEw Tweaks To USe More Swap From The Zram Virtual 12G .
2. Added New Tweaks =
sysctl -w vm.vfs_cache_pressure=500
sysctl -w vm.swappiness=100
sysctl -w vm.dirty_background_ratio=1
sysctl -w vm.dirty_ratio=50
3. Add Missing Version Renaming
- OCEAN-KERNEL-4.9.232-Blue-Virtual-Dragon_r4.1-03-AUG-2020
- ChangeLOG =
1. Kernel-Command Line Built In.
• Kernel Command Line Additions = androidboot.selinux=permissive buildvariant=user audit=0 mitigations=off zram.num_devices=4 zram_num.devices=4 zswap.compressor=lz4 zswap.max_pool_percent=25 zswap.zpool=z3fold zswap.enabled=1 ksm_mode=always elevator=maple coresight_cpu_debug.enable=0 debug=0 nowatchdog nmi_watchdog=0 no_debug_objects dyndbg=0 module.dyndbg=0
* No Need To Flash Old *.IMG To Get The Commands For The Bootloader.
2. Compiled With Last Clang-PROTON. Sync.
# Update Blue_Virtual_Dragon_r7+ Down.
READ CAREFULLY SOON TM. I Will SOLVE The COMMAND LINE ISSUE THAT NEEDS TO BE FLASHED THE IMG FIRST THEN THE KERNEL ZIP FOR MORE INFO AND SUPPORT CHECKOUT MY TELEGRAM GROUP
EDIT :
Solved With NEW Build _r4.1
This Are The Tunables Included In The Magisk Kernel Module Profile.
echo '1' > /sys/kernel/dyn_fsync/Dyn_fsync_active
echo 'maple' > /sys/block/mmcblk0/queue/scheduler
echo '1' > /sys/module/klapse/parameters/enabled_mode
echo '256' > /sys/module/klapse/parameters/target_r
echo '202' > /sys/module/klapse/parameters/target_g
echo '151' > /sys/module/klapse/parameters/target_b
echo '2' > /sys/class/kgsl/kgsl-3d0/devfreq/adrenoboost
echo '1' > /sys/module/cpu_boost/parameters/sched_boost_on_input
echo '35' > /sys/module/cpu_boost/parameters/dynamic_stune_boost
echo 'lzo-rle' > /sys/block/zram1/comp_algorithm
echo '8' > /sys/block/zram1/max_comp_streams
echo '3221225472' > /sys/block/zram1/disksize
mkswap /dev/block/zram1 > /dev/null 2>&1
swapon /dev/block/zram1 > /dev/null 2>&1
echo 'lzo-rle' > /sys/block/zram2/comp_algorithm
echo '8' > /sys/block/zram2/max_comp_streams
echo '3221225472' > /sys/block/zram2/disksize
mkswap /dev/block/zram2 > /dev/null 2>&1
swapon /dev/block/zram2 > /dev/null 2>&1
echo 'lzo-rle' > /sys/block/zram3/comp_algorithm
echo '8' > /sys/block/zram3/max_comp_streams
echo '3221225472' > /sys/block/zram3/disksize
mkswap /dev/block/zram3 > /dev/null 2>&1
swapon /dev/block/zram3 > /dev/null 2>&1
echo 'pixel_smurfutil' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 'pixel_smurfutil' > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 'pixel_smurfutil' > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo 'pixel_smurfutil' > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo 'pixel_smurfutil' > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor
echo 'pixel_smurfutil' > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor
echo 'pixel_smurfutil' > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor
echo 'pixel_smurfutil' > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor
# Schedule task
nohup /bin/sh > /dev/null 2>&1 <<EOF &
sysctl -w kernel.sched_min_granularity_ns=1000000
sysctl -w kernel.sched_wakeup_granularity_ns=2000000
sysctl -w kernel.sched_child_runs_first=1
sysctl -w kernel.sched_tunable_scaling=1
sysctl -w vm.overcommit_memory=1
sysctl -w kernel.sched_migration_cost_ns=5000000
sysctl -w kernel.sched_autogroup_enabled=0
sysctl -w fs.file-max=2097152
sysctl -w fs.inotify.max_user_instances=1024
sysctl -w fs.inotify.max_user_watches=524288
EOF
NOTES :
The Magisk Module Can Be Easy Edited And Modified , For Example To Remove K-lapse Time Based Scaling Which Turn On Automatic Night Light On Kernel Side Without Need To Be Set On ROM Userspace.
you can unzip
and edit the *.sh files and add/remove anything to start at boot
To disable the k-lapse behavior Remove From the fs script.
echo '1' > /sys/module/klapse/parameters/enabled_mode
echo '256' > /sys/module/klapse/parameters/target_r
echo '202' > /sys/module/klapse/parameters/target_g
echo '151' > /sys/module/klapse/parameters/target_b
This ^ 4 commands.
Done.
#NEW# jsX-CustoKernal. #NEW#
* - Blue-Virtual-Dragon R7.
-#- BvD_r7+ Changes - Additions - Mods And Fixes =
1. Stability fixes.
2. Compile warning fixes.
3. Making kernel less debugging overhead.
4. Random optimizations.
5. Shutting up selinux logging making it less verbose.
6. Added CpuMasks.
7. Qcomm Ion Heap Speed Up Optimization.
8. Use More Optimized Arm64 memcmp.
9. Disable Compiling Tracing And Logging On Qcomm MSM Adreno Gpu Driver.
10. Feature Addition Cpu Input Boost Working Along Side SchedTune Cpu Boost.
11. Sync With Kernel.org linux-stable-queue 4.9-fixes
12. Fake Selinux Enforcing - Force Always Permissive But Return Enforcing.
13. Kernel Ocean Defconfig Changes.
- Enable USB Gadget Drivers (HID Gadget). For Nethunter Compat.
- Disable cleancache driver to cache clean pages if tmem is present. For Better Perfromance On aarch64.
14. Kernel Hacking = Debug Support Disabled.
- Disable Core Dump Support.
- Disable Kernel debugging.
- Disable Export Bluetooth internals in debugfs.
- Disable Tracers.
- Disable Debug Logging for IPC Drivers.
- Disable Stack Trace.
- Disable system-call auditing support.
- Disable USB Debugging information files (DEVELOPMENT) And In in debugfs.
15. Nuke Profiling support.
16. NFC subsystem support Disabled.
* Nuke NFC Support If Someone Needs It I Will Re-Enable Not All Ocean Devices Have NFC.
17. Reduced Boot Image Size.
* 14M = 12M ./Image.gz-dtb Now.
18. Faster Boot Times.
19. Hard Tested.
20. Roms Compatible = DerpFest - HavocOS - Msm-Xtended - Candy. Plenty More Roms , Some Needs Extra Work To Get Rid Of "Internal Error" Warning Which Is Just That ..... Don't Affect Any Funcionality.
* Magisk Modules Kernel Profile Always Needed For Blue-Virtual-Dragon Kernel Soon Is Going To Get More Updates With More Tweaks.
Flasheable Kernel Zip Download Link HERE =
https://github.com/javashin/blue_vi...-AUG-2020-NONDEBUG-FAKE-Enforcing-Selinux.zip
- Conflicts Fixing Code Clean Up And Integration By @me =
JavaShin-X CustoKernal Modder.
Saturday 08 Of August 2020.
Sorry if I misread anything;
Not getting wifi, no hotspot and when I go back (flash over to) to ROM built in kernel, VPN/net masking for TMobile hotspot throttling is broken. Was using Proton VPN since this ROM could bypass tethering using it.
Any suggestions besides factory reset or clean install? Intermediate flasher, here.
Much appreciated otherwise and found no other issues, actually. Really clean job. Thanks!
Really enjoyed being able to switch my TCP Algorithm finally.
These devices are what the Nexus 6P was not (and so much more) IMHO ..
EDIT: Resurrection Remix Android 9, G7 Power, Magisk, V4A, SmartPack manager, etc.
roiikka said:
Sorry if I misread anything;
Not getting wifi, no hotspot and when I go back (flash over to) to ROM built in kernel, VPN/net masking for TMobile hotspot throttling is broken. Was using Proton VPN since this ROM could bypass tethering using it.
Any suggestions besides factory reset or clean install? Intermediate flasher, here.
Much appreciated otherwise and found no other issues, actually. Really clean job. Thanks!
Really enjoyed being able to switch my TCP Algorithm finally.
These devices are what the Nexus 6P was not (and so much more) IMHO ..
EDIT: Resurrection Remix Android 9, G7 Power, Magisk, V4A, SmartPack manager, etc.
Click to expand...
Click to collapse
i Recommended You To Use New RROS Android 10 Or Any Other Android Q Which Have Support For This Kernel. As I Do Not Make Roms , But They Are Roms With This Kernel Already Build In Line . Like MSM-XTENDED , BLISS , DerpFest Also This Kernel Never Going TO Works On Android Pie Because IS Based On The Kernel Sources Pushed To Github By Motorola But Changed In Everything Lots Of New Commits Have Been Made Since 4.9.206-perf+ Stock Q Kernel Plus Mods Backports ETc. Join The Moto G7 Power Community On Telegram. My Custom Kernel Support Group Or Channel To Get Updates And New Releases.
Works! Thanks!
MSM-XTENDED Android 10
Just waiting for some of the apps to catch up, now
Running really smooth, score gets better and better. Thank you for the kick ass kernel
Profiles
Do you have any personal profiles for this kernel? Or a good balanced profile to share?
ozmage said:
-#_#- JavaShin-X CustoKernal -#_#-
Blue Virtual Dragon Custom Kernel.
For The Moto G7 Power Ocean Model : XT1955 = ocean.
To Improves Your Experience With This Awesome Phone.
-#- blue_virtual_dragon_kernel_sdm632 -#-
https://github.com/javashin/blue_virtual_dragon_kernel_sdm632
• Kernel Based On Motorola Stock Q 4.9.206-perf+ Ocean Source Push kernel-msm-MMI-QPOS30.52-29-2 .
https://github.com/MotorolaMobilityLLC/kernel-msm/tree/MMI-QPOS30.52-29-2
• Upstreamed To 4.9.232 Android-Stable MSM-4.9 Branch -r27.
https://github.com/android-linux-stable/msm-4.9/tree/kernel.lnx.4.9.r27-rel
• Inline Modules Added From lineage-17.1 Kernel Tree For Motorola Sdm632. Ocean.
https://github.com/erfanoabdi/android_kernel_motorola_sdm632
• Merge Linux 4.9.232 Into Blue-Virtual-Dragon jsX-CustoKernal.
Kernel.org ChangeLog = https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.232
• Merged GoldenFreezer/MetalCooler/Frost/Vegeta/Trunks/Kakarot CustoKernal's Mods , Tweaks , Features & Optimizations.
https://github.com/javashin/android_kernel_motorola_sdm632
##-Features-##
• kernel.lnx.4.9.r27-rel MSM-4.9 CAF Branch Merged IN.
• Release build have significantly reduced debugging messages/routines for slight performance & battery enhancements.
• Optimize compiler flags with better CPU optimizations.
• Optimize for performance rather than size.
• Higher performance with lower battery usage.
• Various other improvements.
• Ultra low latency.
• SchedUtil Cpu Governor Set To Default.
• Addeded BFQ I/O SCHED.
• Added 750Hz timer interrupt. Set To Default
• Zswap now uses BTREE For Search With ZPOOL.
• Zswap Now Default Compression To LZ4 and Z3fold Instead Of ZBUD.
• Zsmalloc by Default.
• WireGuard VPN.
• Boeffla generic wakelock blocker driver.
• AnyKernel v3 To Retain Magisk Root.
• Disabled GFS to Achieve Better UI Performance.
• BlueTooth Check Key-Sizes Only If Secure Simple Pairing.
• Simple Android Low Memory Killer.
• Enable ZRAM to 3GB and use lz4 as compressor.
• Use optimized spinning loop for arm64, this makes about 20% performance improvement on the CPU multithread load.
• Zen I/O scheduler - Primarily based on Noop, deadline, and SIO IO schedulers.
• Regular Updates Of WireGuard Backport From GIT.
• MDSS color control KCAL.
• Devfreq - Use high priority workqueue.
• Kgsl - Increase priority of RT thread.
• Run kgsl-workqueue as a high prio wq.
• Workqueue - change permissions to allow root control of wq_power_efficient toggle.
• Zstd Compression Algo Backported.
• Zswap kernel feature that provides a compressed RAM cache for swap pages Can Select Zstd.
• Updated Lzo From msm-4.14.
• LZO-RLE Compression Algo Backported.
• Crypto/compress - add asynchronous compression support Api's.
• Crypto/acomp - add support for lzo via scomp.
• Zswap kernel feature that provides a compressed RAM cache for swap pages Using ZPool Btree LZ4 z3fold
• ZRAM Will See Greater Performance Thanks To Lzo-rle By Default.
• Backport kvmalloc and kvmalloc_node kv[mz]alloc helpers.
• Add - Streebog Crypto Support Developed By Russia's FSB.
* introduced as a cryptographic hash function developed in large part by the Russian government.
• KLapse 5.0 A-kernel-level-livedisplay-module.
• State Notifier Driver.
• Adreno Idler.
• cpufreq Pixel 3 Smurfutil CPU governor.
• Dynamic Fsync 2.0 .
• GPU-Enable-19MHz-idle-frequency.
• Switch Fsync ON/OFF.
• adreno_tz GPU Input-Boost Feature.
• Dynamic SchedTune boosting support (DYNAMIC_STUNE_BOOST).
• Dynamic SchedTune Boosting on events (DSBOOST).
• Fingerprint Boost (FINGERPRINT_BOOST).
• AdrenoBoost.
• SIO I/O Scheduler.
• Maple I/O Scheduler.
• Force faster charge rate for USB (FORCE_FAST_CHARGE) (NEW) .
• wireless / db.txt : Checkout from head:master wireless-regdb.git
• Backport KBuild From BlueCross-Proton Android Kernel.
• Disable Unmap kernel when running in userspace (aka "KAISER").
• Kernel 4.9-Fixes From Kernel-Stable-Queue.
• Bluecross Kernel Upstream Patches Merges.
• No Kernel Modules .
• Modless Kernel .
• Disabled Loading Modules .
• Disabled Module Support .
• Config Mod's =
[*] Enable RCU priority boosting
[*] QTI Core Control
[*] Optimize very unlikely/likely branches
[*] Automatic process group scheduling
[*] CPU bandwidth provisioning for FAIR_GROUP_SCHED
[*] Enable workqueue power-efficient mode by default
[*] SMT scheduler support
• Extra Mod patches By JavaShin-X. "-jsX" Compiled With LTO+PGO+POLLY Optimized Compiler By kdrag0n.
• Build System Debian Sid/Unstable Bullseye.
• Specific Aarch64 Sdm632 optimizations. "-march=armv8-a+fp+simd+crc+crypto" .
• Plus ricer optimizations "-O3 -mllvm -polly -mcpu=kryo -mtune=kryo -fno-stack-protector -pipe".
• Clang-Proton 12.
• GCC 10.2.0 aarch64-linux-gnu- & arm-linux-gnueabihf- . As CROSS-COMPILERS.
• CROSS_COMPILE_ARM32 & CLANG_TRIPLE_ARM32.
• VDSO32 Bits Enabled By Default.
• Kernel Compatible To Compile With LTO THINLTO & LD.LLD Linker.
• THINLTO Build Link On Time Optimizations.
• Faster Builds Time.
• Make USE LD.LLD LLVM Linker For LTO.
• Enable -O3 In LD.LLD Plugin When Using CLang.
• Simple And Human Readble Building Script.
• Set Optimiztions To Polly LLVM by Default. Polyhedral optimizations for LLVM.
KBUILD_CFLAGS += "-mllvm -polly -mllvm -polly-run-dce -mllvm -polly-run-inliner -mllvm -polly-opt-fusion=max
-mllvm -polly-ast-use-context -mllvm -polly-detect-keep-going -mllvm -polly-vectorizer=stripmine
-mllvm -polly-invariant-load-hoisting"
Compatible With DerpFest , Msm-X , Havoc-OS , SuperiorOS , StagOS , Plenty More Roms.
SmartPack Kernel Manager. Recommended.
Credits :
Thanks To erfanoabdi SyberHaxen Barry Allen For Their Contributions.
And Provide The lineageos-17.1 Kernel Source Tree.
Thanks To Motorola-Lenovo For Being A Great Company Friendly With The Open Source Community.
Thanks To Google And Qualcomm "2" .
@everyone Who Has Tried My Kernal. Testers!
Thanks To @GarfieldArbuckle For The Kernel Logo ArtWork.
Moto G7 Power Communities English And Spanish.
electimon , TailanCunha , Dan Ford , David Rondeau , steve , gabi , Deivid , Francisco.
##- Please give feedback. A lot of work has been done to get here. -##
JavaShin-X CustoKernals Telegram Channel Dumper =
https://t.me/CustoKernal_JavaShin_Mods
Telegram CustoKernal Support Group =
https://t.me/jsX_CustoKernals_Support
* Disclaimer ===
"Not Responsible For Any Kind Of Damage To Any Device"
"Use At Your Own Risk , No Warranty Included , If Brick Well It Bricks In The Name Of Science Don't Blame ME"
"If You Got Here Is For A Reason , Meaning You Already Know What Are You Doing With Your Phone"
"Meaning That You Already Void OEM Warranty"
" And There Is No Turning Back Starting When You Typed = fastboot oem unlock + key "
* Instructions ===
Always retain a backup of your current kernel and system image. Before Flashing.
After Set Everything Up - Working System Custom Rom With Recovery & Magisk Root.
Then Just Need To Reboot To Recovery Via Advanced Reboot Power Menu Or "adb reboot recovery"
Or Starting Phone In Bootloader Mode Selecting Recovery From Menu Using Vol - And Power.
##- Enjoy - Cheers ! -##
Carlos Jimenez = NickName =
JavaShin-X WrongDevice =
Ozmage JavaShin-X Fork.
Dominican Republic -
Sunday August 02 2020.
XDA:DevDB Information
Blue_Virtual_Dragon, Kernel for the Moto G7 Power
Version Information
Status: Stable
Created 2020-08-02
Last Updated 2020-08-08
Blue_Virtual_Dragon Kernel Profile Magisk Module.
After Install In Magisk* The Kernel Profile , The System Will Have 12 Gigas Of Swap Virtual Mem With 4 Zram Device Nodes 1 Compressed Pages With LZ4 The Last 3 With LZO-RLE.
- Magisk-Kernel-Module-Profile-v0.2
- ChangeLOG =
1. NEw Tweaks To USe More Swap From The Zram Virtual 12G .
2. Added New Tweaks =
sysctl -w vm.vfs_cache_pressure=500
sysctl -w vm.swappiness=100
sysctl -w vm.dirty_background_ratio=1
sysctl -w vm.dirty_ratio=50
3. Add Missing Version Renaming
- OCEAN-KERNEL-4.9.232-Blue-Virtual-Dragon_r4.1-03-AUG-2020
- ChangeLOG =
1. Kernel-Command Line Built In.
• Kernel Command Line Additions = androidboot.selinux=permissive buildvariant=user audit=0 mitigations=off zram.num_devices=4 zram_num.devices=4 zswap.compressor=lz4 zswap.max_pool_percent=25 zswap.zpool=z3fold zswap.enabled=1 ksm_mode=always elevator=maple coresight_cpu_debug.enable=0 debug=0 nowatchdog nmi_watchdog=0 no_debug_objects dyndbg=0 module.dyndbg=0
* No Need To Flash Old *.IMG To Get The Commands For The Bootloader.
2. Compiled With Last Clang-PROTON. Sync.
# Update Blue_Virtual_Dragon_r7+ Down.
Click to expand...
Click to collapse
ozmage said:
-#_#- JavaShin-X CustoKernal -#_#-
Blue Virtual Dragon Custom Kernel.
For The Moto G7 Power Ocean Model : XT1955 = ocean.
To Improves Your Experience With This Awesome Phone.
-#- blue_virtual_dragon_kernel_sdm632 -#-
https://github.com/javashin/blue_virtual_dragon_kernel_sdm632
• Kernel Based On Motorola Stock Q 4.9.206-perf+ Ocean Source Push kernel-msm-MMI-QPOS30.52-29-2 .
https://github.com/MotorolaMobilityLLC/kernel-msm/tree/MMI-QPOS30.52-29-2
• Upstreamed To 4.9.232 Android-Stable MSM-4.9 Branch -r27.
https://github.com/android-linux-stable/msm-4.9/tree/kernel.lnx.4.9.r27-rel
• Inline Modules Added From lineage-17.1 Kernel Tree For Motorola Sdm632. Ocean.
https://github.com/erfanoabdi/android_kernel_motorola_sdm632
• Merge Linux 4.9.232 Into Blue-Virtual-Dragon jsX-CustoKernal.
Kernel.org ChangeLog = https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.232
• Merged GoldenFreezer/MetalCooler/Frost/Vegeta/Trunks/Kakarot CustoKernal's Mods , Tweaks , Features & Optimizations.
https://github.com/javashin/android_kernel_motorola_sdm632
##-Features-##
• kernel.lnx.4.9.r27-rel MSM-4.9 CAF Branch Merged IN.
• Release build have significantly reduced debugging messages/routines for slight performance & battery enhancements.
• Optimize compiler flags with better CPU optimizations.
• Optimize for performance rather than size.
• Higher performance with lower battery usage.
• Various other improvements.
• Ultra low latency.
• SchedUtil Cpu Governor Set To Default.
• Addeded BFQ I/O SCHED.
• Added 750Hz timer interrupt. Set To Default
• Zswap now uses BTREE For Search With ZPOOL.
• Zswap Now Default Compression To LZ4 and Z3fold Instead Of ZBUD.
• Zsmalloc by Default.
• WireGuard VPN.
• Boeffla generic wakelock blocker driver.
• AnyKernel v3 To Retain Magisk Root.
• Disabled GFS to Achieve Better UI Performance.
• BlueTooth Check Key-Sizes Only If Secure Simple Pairing.
• Simple Android Low Memory Killer.
• Enable ZRAM to 3GB and use lz4 as compressor.
• Use optimized spinning loop for arm64, this makes about 20% performance improvement on the CPU multithread load.
• Zen I/O scheduler - Primarily based on Noop, deadline, and SIO IO schedulers.
• Regular Updates Of WireGuard Backport From GIT.
• MDSS color control KCAL.
• Devfreq - Use high priority workqueue.
• Kgsl - Increase priority of RT thread.
• Run kgsl-workqueue as a high prio wq.
• Workqueue - change permissions to allow root control of wq_power_efficient toggle.
• Zstd Compression Algo Backported.
• Zswap kernel feature that provides a compressed RAM cache for swap pages Can Select Zstd.
• Updated Lzo From msm-4.14.
• LZO-RLE Compression Algo Backported.
• Crypto/compress - add asynchronous compression support Api's.
• Crypto/acomp - add support for lzo via scomp.
• Zswap kernel feature that provides a compressed RAM cache for swap pages Using ZPool Btree LZ4 z3fold
• ZRAM Will See Greater Performance Thanks To Lzo-rle By Default.
• Backport kvmalloc and kvmalloc_node kv[mz]alloc helpers.
• Add - Streebog Crypto Support Developed By Russia's FSB.
* introduced as a cryptographic hash function developed in large part by the Russian government.
• KLapse 5.0 A-kernel-level-livedisplay-module.
• State Notifier Driver.
• Adreno Idler.
• cpufreq Pixel 3 Smurfutil CPU governor.
• Dynamic Fsync 2.0 .
• GPU-Enable-19MHz-idle-frequency.
• Switch Fsync ON/OFF.
• adreno_tz GPU Input-Boost Feature.
• Dynamic SchedTune boosting support (DYNAMIC_STUNE_BOOST).
• Dynamic SchedTune Boosting on events (DSBOOST).
• Fingerprint Boost (FINGERPRINT_BOOST).
• AdrenoBoost.
• SIO I/O Scheduler.
• Maple I/O Scheduler.
• Force faster charge rate for USB (FORCE_FAST_CHARGE) (NEW) .
• wireless / db.txt : Checkout from head:master wireless-regdb.git
• Backport KBuild From BlueCross-Proton Android Kernel.
• Disable Unmap kernel when running in userspace (aka "KAISER").
• Kernel 4.9-Fixes From Kernel-Stable-Queue.
• Bluecross Kernel Upstream Patches Merges.
• No Kernel Modules .
• Modless Kernel .
• Disabled Loading Modules .
• Disabled Module Support .
• Config Mod's =
[*] Enable RCU priority boosting
[*] QTI Core Control
[*] Optimize very unlikely/likely branches
[*] Automatic process group scheduling
[*] CPU bandwidth provisioning for FAIR_GROUP_SCHED
[*] Enable workqueue power-efficient mode by default
[*] SMT scheduler support
• Extra Mod patches By JavaShin-X. "-jsX" Compiled With LTO+PGO+POLLY Optimized Compiler By kdrag0n.
• Build System Debian Sid/Unstable Bullseye.
• Specific Aarch64 Sdm632 optimizations. "-march=armv8-a+fp+simd+crc+crypto" .
• Plus ricer optimizations "-O3 -mllvm -polly -mcpu=kryo -mtune=kryo -fno-stack-protector -pipe".
• Clang-Proton 12.
• GCC 10.2.0 aarch64-linux-gnu- & arm-linux-gnueabihf- . As CROSS-COMPILERS.
• CROSS_COMPILE_ARM32 & CLANG_TRIPLE_ARM32.
• VDSO32 Bits Enabled By Default.
• Kernel Compatible To Compile With LTO THINLTO & LD.LLD Linker.
• THINLTO Build Link On Time Optimizations.
• Faster Builds Time.
• Make USE LD.LLD LLVM Linker For LTO.
• Enable -O3 In LD.LLD Plugin When Using CLang.
• Simple And Human Readble Building Script.
• Set Optimiztions To Polly LLVM by Default. Polyhedral optimizations for LLVM.
KBUILD_CFLAGS += "-mllvm -polly -mllvm -polly-run-dce -mllvm -polly-run-inliner -mllvm -polly-opt-fusion=max
-mllvm -polly-ast-use-context -mllvm -polly-detect-keep-going -mllvm -polly-vectorizer=stripmine
-mllvm -polly-invariant-load-hoisting"
Compatible With DerpFest , Msm-X , Havoc-OS , SuperiorOS , StagOS , Plenty More Roms.
SmartPack Kernel Manager. Recommended.
Credits :
Thanks To erfanoabdi SyberHaxen Barry Allen For Their Contributions.
And Provide The lineageos-17.1 Kernel Source Tree.
Thanks To Motorola-Lenovo For Being A Great Company Friendly With The Open Source Community.
Thanks To Google And Qualcomm "2" .
@everyone Who Has Tried My Kernal. Testers!
Thanks To @GarfieldArbuckle For The Kernel Logo ArtWork.
Moto G7 Power Communities English And Spanish.
electimon , TailanCunha , Dan Ford , David Rondeau , steve , gabi , Deivid , Francisco.
##- Please give feedback. A lot of work has been done to get here. -##
JavaShin-X CustoKernals Telegram Channel Dumper =
https://t.me/CustoKernal_JavaShin_Mods
Telegram CustoKernal Support Group =
https://t.me/jsX_CustoKernals_Support
* Disclaimer ===
"Not Responsible For Any Kind Of Damage To Any Device"
"Use At Your Own Risk , No Warranty Included , If Brick Well It Bricks In The Name Of Science Don't Blame ME"
"If You Got Here Is For A Reason , Meaning You Already Know What Are You Doing With Your Phone"
"Meaning That You Already Void OEM Warranty"
" And There Is No Turning Back Starting When You Typed = fastboot oem unlock + key "
* Instructions ===
Always retain a backup of your current kernel and system image. Before Flashing.
After Set Everything Up - Working System Custom Rom With Recovery & Magisk Root.
Then Just Need To Reboot To Recovery Via Advanced Reboot Power Menu Or "adb reboot recovery"
Or Starting Phone In Bootloader Mode Selecting Recovery From Menu Using Vol - And Power.
##- Enjoy - Cheers ! -##
Carlos Jimenez = NickName =
JavaShin-X WrongDevice =
Ozmage JavaShin-X Fork.
Dominican Republic -
Sunday August 02 2020.
XDA:DevDB Information
Blue_Virtual_Dragon, Kernel for the Moto G7 Power
Version Information
Status: Stable
Created 2020-08-02
Last Updated 2020-08-08
Blue_Virtual_Dragon Kernel Profile Magisk Module.
After Install In Magisk* The Kernel Profile , The System Will Have 12 Gigas Of Swap Virtual Mem With 4 Zram Device Nodes 1 Compressed Pages With LZ4 The Last 3 With LZO-RLE.
- Magisk-Kernel-Module-Profile-v0.2
- ChangeLOG =
1. NEw Tweaks To USe More Swap From The Zram Virtual 12G .
2. Added New Tweaks =
sysctl -w vm.vfs_cache_pressure=500
sysctl -w vm.swappiness=100
sysctl -w vm.dirty_background_ratio=1
sysctl -w vm.dirty_ratio=50
3. Add Missing Version Renaming
- OCEAN-KERNEL-4.9.232-Blue-Virtual-Dragon_r4.1-03-AUG-2020
- ChangeLOG =
1. Kernel-Command Line Built In.
• Kernel Command Line Additions = androidboot.selinux=permissive buildvariant=user audit=0 mitigations=off zram.num_devices=4 zram_num.devices=4 zswap.compressor=lz4 zswap.max_pool_percent=25 zswap.zpool=z3fold zswap.enabled=1 ksm_mode=always elevator=maple coresight_cpu_debug.enable=0 debug=0 nowatchdog nmi_watchdog=0 no_debug_objects dyndbg=0 module.dyndbg=0
* No Need To Flash Old *.IMG To Get The Commands For The Bootloader.
2. Compiled With Last Clang-PROTON. Sync.
# Update Blue_Virtual_Dragon_r7+ Down.
Click to expand...
Click to collapse
hello, I would like a step by step installation of the kernel first
hello, I would like a step by step installation of the kernel first
RIP
New to kernel modding, not to playing with roms and the like. Would the premade kernel work on a Moto E 2020 ginna. I think it's the same kernel.
Stock, rooted
Magisked
Lsposed
Build QPGS30.82-135-7
4.9.206-perf+
#1 Wed Jun 9 05:43:55 CDT 2021
CrYpTiC VaLoR said:
Correndo muito bem, a pontuação fica cada vez melhor. Obrigado pelo kernel foda
Click to expand...
Click to collapse

Categories

Resources