[KERNEL] [January 22] ElementalX-N7 6.17 (Nougat) 7.00 (Oreo)

18,229 posts
Thanks Meter: 87,589
By flar2, Recognized Developer on 2nd August 2013, 07:36 AM
Post Reply Email Thread
ElementalX Kernel
for Nexus 7 (2013) (flo/deb)

  • Easy installation and setup with AROMA installer
  • Stock/AOSP and Cyanogenmod/CAF versions
  • Best balance of performance and battery life
  • Color control
  • USB fastcharge (optional)
  • Sweep2sleep (optional)
  • Sweep2wake and doubletap2wake (optional)
  • Wake Gestures app support
  • MultiROM support
  • disable fsync (optional)
  • sound control
  • Underclock or overclock CPU
  • L2 and bus overclocking options
  • choose automatic minimum voltage (725mV to 850mV)
  • kernel-based thermal control
  • GPU overclocking options
  • voltage control
  • NTFS read/write and exFAT support
  • init.d support
  • optional USB OTG + charge mode
  • No forceencrypt

Google+ Community

Please consider a donation to support ongoing development
Many thanks to those who have donated!

For maximum compatibility with all ROMs, ElementalX uses your existing ramdisk.
Do NOT flash this over other custom kernels!
You should only flash ElementalX over the kernel that came with your ROM!!!


Android 8.1.0 (Oreo)

Stock/AOSP/LineageOS (Android 6.0.1/7.1.1)

For fixed-install (Complete working OTG+charge mode)
Use version 5.16


Flashable zip for permissive mode (required for some ROMs and mods):

App to customize Wake Gestures:

DVB modules for Stock/AOSP (Android 5.1.1)

Stock/AOSP (Android 5.1)

Stock/AOSP (Android 5.0/5.0.1/5.0.2)

CAF/Cyanogenmod (Android 5.0.2)



XDA:DevDB Information
[FLO/DEB] ElementalX, Kernel for the Nexus 7 (2013)

Source Code:

Kernel Special Features:

Version Information
Status: Stable

Created 2013-08-03
Last Updated 2018-01-31
The Following 588 Users Say Thank You to flar2 For This Useful Post: [ View ]
2nd August 2013, 07:36 AM |#2  
-Added kali pwn support (includes several wifi dongles, eg: rtl8187l) UNTESTED!
-Added support for USB infrared devices UNTESTED!
-revert the one change I made to wifi drivers to see if it helps the few people with connectivity problems
-update fauxsound
-adjustments to msm-sleeper

-latest updates to fauxsound
-support Logitech Unifying Receiver
-security updates and fixes
-installer updates
-ElementalX app compatibility
-support forced touch firmware update

-update with Android 4.4.3 kernel source

-fix sweep2sleep not working if s2w is disabled

-Wake Timeout: disable screen wake functions after specified period of time
-Logitech Unifying Receiver: upstream update
-Wake Gestures: add interface
-GPU: add optimization flags to GPU driver
-mm: slub: Default slub_max_order to 0
-lz4: faster boot-up process.
-DRIVERS: SLIMBUS: slimbus enhancements
-build with Linaro GCC 4.9.1
-option for ondemand CPU governor
-fix init.d running twice on certain ROMs
-updated installer

-default backlight_dimmer value is 4
-fix installer not enabling fastcharge

-make gamma control optional

-fix backlight dimmer always enabled
-add more OTG compatibility to ramdisk

-update installer
-optimize dt2w
-make backlight dimmer configurable
-add Sierra wireless support
-fix magnetic cover option error
-add readahead size option

-add backlight dimmer option
-update elementalx governor
-add gamma control (faux123)
-add f2fs support
-add Sierra modem support

January 5, 2014 - ElementalX-N7-2.6
-deadline is default i/o scheduler
-tweak deadline i/o scheduler
-add row i/o scheduler
-add slimbus oc (credit: @ZeroInfinity and @poondog)
-add i/o scheduler option to installer
-revert asynchronous fsync
-restore disable fsync option
-tweaks to elementalx governor

January 1, 2014 - ElementalX-N7-2.5
-adjust shortsweep distance
-cfq is default i/o scheduler
-various tweaks and optimizations

December 22, 2013 - ElementalX-N7-2.4
-add asynchronous fsync from HTC One
-remove fsync options (no longer needed)
-Makefile adjustments
-add elementalx governor
-add gboost option
-various tweaks and optimizations
-update installer
-color control (credit: faux123)

December 7, 2013 - ElementalX-N7-2.3
-update for Android 4.4.1
-various tweaks and optimizations

November 26, 2013 - ElementalX-N7-2.2
-option to disable s2w/dt2w when magnetic cover is used

November 23, 2013 - ElementalX-N7-2.1
-fix CIFS support
-add intellidemand CPU governor
-remove ultra cpu setting
-max screen off frequency (1026MHz default)

November 21, 2013 - ElementalX-N7-2.0
-support Android 4.4 (kitkat)

October 14, 2013 - ElementalX-N7-1.8
-fix-up for kexec-hardboot (multirom)
-aroma option for battery life extender
-update installer
-3G USB modem drivers (built-in)

October 11, 2013 - ElementalX-N7-1.7
-update installer
-update config files
-add S2W power key suspend toggle
-add options to disable sweep2sleep in portrait or landscape mode
-show pvs number in sysfs
-add DVB support (requires modules add-on, coming soon)
-remove 128MHz GPU step and idle at 200MHz step
-add battery life extender (thanks tni_andro)
-boost CPU frequency only for touch input
-adjust bus bandwidth

September 26, 2013 - ElementalX-flo-1.6
-battery guage enhancements (thanks @tni.andro )
-adjust GPU frequencies
-kexec-hardboot patch (thanks @Tasssadar )
-update installer

September 21, 2013 - ElementalX-flo-1.5
-option to allow usb host mode charging
-add more GPU overclock frequencies
-latest googlesource update
-update freezer and cpuidle
-disable AVS
-update installer

September 10, 2013 - ElementalX-flo-1.4
-add option to enable/disable fsync
-AIO: Don't plug the I/O queue in do_io_submit()
-add fstrim to init script
-update installer

September 6, 2013 - ElementalX-flo-1.3
-add loadable kernel module support
-add exFAT filesystem support
-fix CIFS support

August 26, 2013 - ElementalX-flo-1.2
-add faux sound support

August 23, 2013 - ElementalX-flo-1.1
-update touch firmware to A042
-disable pack feature for Hynix part
-fix lower voltage limit
-adjust overclock

August 17, 2013 - ElementalX-flo-1.0
-stable release
-add thermal options
-clean up code

August 13, 2013 - ElementalX-flo-0.10
-kernel-based thermal control

August 12, 2013 - ElementalX-flo-0.9
-suppress multiple touches in s2w
-thermal adjustments

August 10, 2013 - ElementalX-flo-0.8
-adjust Makefile options
-adjust doubletap2wake
-fiops is default i/o scheduler
-cleanup from other kernels
-add shortsweep setting
-option to disable magnetic on/off

August 8, 2013 - ElementalX-flo-0.7
-make doubletap2wake a little easier
-remove some debugging stuff
-installer ensures mpdecision and thermald are present

August 7, 2013 - ElementalX-flo-0.6.1
-installer adds init.d and mount support to ramdisk if necessary

August 7, 2013 - ElementalX-flo-0.6
-reimplement doubletap2wake
-make sweep2sleep work on all edges
-make sweep2wake work in any direction
-fix installer typo forcing 1728 on CPU 1,2,3
-remove GPU 533MHz option

August 6, 2013 - ElementalX-flo-0.5
-build with linaro 4.8 toolchain
-O3 optimization
-add GPU overclock to 533MHz
-fix for app-mounted directories (thanks @mkasick)
-s2w works anywhere on screen when screen is off (still left to right only)
-adjust doubletap2wake

August 5, 2013 - ElementalX-flo-0.4
-adjust doubletap2wake
-increase thermal limits
-fix frequencies stuck at 1512

August 4, 2013 - ElementalX-flo-0.3
-add TCP congestion control algorithms
-add CPU optimization levels
-add more overclocking options
-fix automatic undervolting
-option to overclock GPU (487MHz)
-update ARM topology
-add cpu_power driver
-use ramdisk from ROM
-update installer
-adjust doubletap2wake

August 2, 2013 - ElementalX-flo-0.2
-max screen off frequency 702MHz
-adjust simple gpu governor
-Makefile optimizations
-simple GPU governor installer option
-add simple GPU governor (faux123)
-use Google Android toolchain 4.6
-slight boost to L2 freq
-add TCP congestion algorithm options
-hsic wakelock tweak
-sweep2wake adjustments
-doubletap2wake adjustments
-CPU overclock to 2052MHz
-automatic undervolting
-optimized AES and SHA1 routines
-lower possible voltage to 700
-undervolting option
-optional graphics overclock
-add /dev/frandom
-ntfs r/w support
-fast rcu nohz
-intellidemand governor
-add FIOPS and SIO i/o schedulers
-force fastcharge
-voltage control

August 1, 2013 - ElementalX-flo-0.1
The Following 66 Users Say Thank You to flar2 For This Useful Post: [ View ]
2nd August 2013, 07:36 AM |#3  

ElementalX Configuration File
Your choices in the Aroma installer are used to build a configuration file. The config file is located at /etc/elementalx.conf. You can edit this file to change kernel settings. Whatever is set in this file will take effect when the device is booted (unless other scripts or apps interfere!)

If settings are not sticking:[*]Make sure the file permissions for /etc/init.d/99elementalx are set to execute. [*]Check to see if any /etc/init.d scripts or apps (such as Kernel Tuner or TricksterMod) are interfering with your settings.

ElementalX Log File
Every boot, a log file is created at /data/local/tmp/elementalx-kernel.log. This file shows the date and time and all settings that have been applied. Use this to verify and troubleshoot configuration options.

ElementalX Governor
The ElementalX CPU governor has been specifically designed and tuned to get the best balance between battery life and performance. By default, it is more conservative than Ondemand. During routine usage, the CPU frequency does not ramp up very often. If gboost is enabled, during gaming or any other graphics intensive situation, the CPU frequencies boost much easier in order to maintain maximum performance. Disabling gboost can increase battery life, but there may be a loss of performance, especially during gaming.

Faux Clock/TricksterMod/Kernel Tuner/etc
You don't need these apps because the ElementalX installer sets everything up automatically, but if you want to check or change settings, you can use these apps. Just be aware that some of them (e.g. Kernel Tuner) are set by default to apply settings on boot, which can interfere with the settings you chose in the ElementalX installer.

Overclocking (or underclocking) is optional. The installer lets you choose the maximum frequency. You can set the maximum frequency individually for each CPU core in the installer. Whatever frequencies you chose in the installer will be set at boot for each CPU. Not all devices can handle overclocking. The stock maximum CPU frequency is 1512MHz. I recommend a mild overclock, like 1728MHz for daily use. Clocking higher creates heat and wastes battery for very little performance gain.

CPU voltages
The installer allows you to choose from several undervolting options. These automatically undervolt the lowest frequency (384MHz) where the CPU spends most of its time. The voltages for other frequencies are assigned based on the PVS bin of your phone. CPU voltages are fully customisable with apps such Kernel Tuner or Trickster Mod, but I recommend leaving these other voltages as-is unless you are prepared to do a lot of testing. Be careful, lowering voltages can cause instability. Generally, having reboots while the phone is asleep or other weird problems is a sign that your minimum voltage is too low. The minimum voltage allowed is 700mV.

GPU Governor
The default GPU govenror is ondemand. It works well and is recommended for best balance between performance and batter life. The simple governor is also available, but ramps up the GPU frequency much quicker than ondemand, so may impact battery life. The governor can be set in /etc/elementalx.conf

fsync can be disabled if you're looking for the last ounce of performance. I recommend leaving it enabled as there is a slight risk of data loss if your phone shuts off unexpectedly before filesystems are synced.

Max screen off frequency
The default max screen off frequency is 1026MHz, which is a good balance between limiting the voltage/frequency and the time required to complete tasks while the screen is off. This can be changed manually at /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq

Installing a new ROM
If you install a new ROM, it will probably replace this with the stock kernel and will definitely overwrite /etc/init.d/99elementalx and /etc/elementalx.conf so you will lose your settings and certain features. So always reinstall the kernel after installing a ROM.

NTFS and exFAT support
This is for anyone who wants to use OTG to connect a USB stick or portable harddrive formatted with Microsoft's NTFS or exFAT filesystems. You will need Stickmount or a similar app.

GPU overclocking
There are two modes: stock and overclocking. If you pick stock GPU freq (400MHz) you won't be able to overclock. Conversely, if you pick one of the overclocking frequencies, you won't be able to use the stock 400MHz frequency. You have to reflash if you want to change this.

These are the frequencies I've added: 450, 477, 490.5, 504, 531, 558, and 585

If you're in overclock mode, you change these on the fly with TricksterMod. I don't recommend 558+ for daily use. Too hot and probably unstable for most.

USB host mode charging
I've added a hack to allow usb host mode charging. Since not that many people are going to be using this, it needs to be enabled manually. This will allow you to charge the tablet while a USB peripheral is hooked up to the OTG cable.

To use it, change /sys/module/msm_otg/parameters/usbhost_charge_mode to 1.

You need a Y-cable and OTG adapter. This will be handy for people who use their tablet in the car and need to keep it charged.

First connect the Y-cable to your OTG adapter and a power source, then attach a USB peripheral. Finally, plug the OTG adapter into the tablet. Both the tablet and the peripheral will be powered by the Y-cable, allowing the tablet to charge

Wake Gestures
This is a new feature similar to the Motion Launch Gestures on the HTC One m8. Requires the following Xposed module:

Wake Gestures:

Set /sys/android_touch/wake_gestures to 1 to enable input events for wake gesture actions. Set to 0 to use traditional sweep2wake or doubletap2wake (wakes up the phone and turns on the screen only).

Note that if you enable wake_gestures, nothing will happen if you don't install the Wake Gestures Xposed module.


Sweep2wake allows you to turn on your phone by swiping your finger across the screen. There are four sweep actions that will work

Sweep right......1
Sweep left........2
Sweep up.........4
Sweep down....8

Add up the values for each gesture you want to enable and put the total in /sys/android_touch/sweep2wake. For example, to enable all gestures, the value is 15 (1+2+4+8). To enable sweep right, sweep left and sweep up, the value is 7 (1+2+4)


Enabling this makes sweep2wake work with a shorter sweep distance. You can edit /etc/elementalx.conf to change the setting on boot.

0 = disabled
1 = enabled

DoubleTap2Wake (DT2W) allows you to wake the device by double tapping anywhere on the screen. You can edit /etc/elementalx.conf to change the setting on boot.

Still needs some tweaking!


0 = disabled
1 = enabled

S2W/DT2W power key toggle
If enabled, turning the screen off with the power button disables s2w and dt2w to save battery (since s2w/dt2w cause significant battery drain). When you turn the screen back on, s2w and dt2w return to their previous settings. If the screen times out, s2w/dt2w are not disabled this is only if you use the power button to turn it off. You can edit /etc/elementalx.conf to change the setting on boot.

Enable/disable Magnetic on/off
This setting allows you to enable or disable the magnetic on/off switch used by some cases. You can edit /etc/elementalx.conf to change the setting on boot.


0 = disabled
1 = enabled

The Following 31 Users Say Thank You to flar2 For This Useful Post: [ View ]
2nd August 2013, 07:46 AM |#4  
casonswag's Avatar
Senior Member
Flag Jacksonville
Thanks Meter: 951
Sweat gonna try it out i love the s2w feature

Sent From My Nexus 7.2 aka N7 2013 aka Razor aka Flo

---------- Post added at 02:46 AM ---------- Previous post was at 02:39 AM ----------

I dont see where to enable it ?

Sent From My Nexus 7.2 aka N7 2013 aka Razor aka Flo
The Following 3 Users Say Thank You to casonswag For This Useful Post: [ View ] Gift casonswag Ad-Free
2nd August 2013, 07:56 AM |#5  
Originally Posted by casonswag

Sweat gonna try it out i love the s2w feature

Sent From My Nexus 7.2 aka N7 2013 aka Razor aka Flo

---------- Post added at 02:46 AM ---------- Previous post was at 02:39 AM ----------

I dont see where to enable it ?

Sent From My Nexus 7.2 aka N7 2013 aka Razor aka Flo

Are you sure the kernel is installed?

S2w and dt2w are enabled by default anyways
The Following 4 Users Say Thank You to flar2 For This Useful Post: [ View ]
2nd August 2013, 08:04 AM |#6  
casonswag's Avatar
Senior Member
Flag Jacksonville
Thanks Meter: 951
Originally Posted by flar2

Are you sure the kernel is installed?

S2w and dt2w are enabled by default anyways

Doesnt seem to be working

Sent From My Nexus 7.2 aka N7 2013 aka Razor aka Flo
2nd August 2013, 10:38 AM |#7  
Senior Member
Thanks Meter: 758
u still have stock kernel in the pic

Sent from my SCH-I535 using xda app-developers app
2nd August 2013, 10:48 AM |#8  
casonswag's Avatar
Senior Member
Flag Jacksonville
Thanks Meter: 951
Originally Posted by skiwong20

u still have stock kernel in the pic

Sent from my SCH-I535 using xda app-developers app

Thats not stock kernel didnt stock kernel say google or something?
2nd August 2013, 11:00 AM |#9  
Senior Member
Thanks Meter: 758
when i nean stock, i mean that winner00 is part of team u have carbon's stock cm kernel. not Flar's. his say elemental x should be in the kernel area

Sent from my SCH-I535 using xda app-developers app
The Following 2 Users Say Thank You to skiwong20 For This Useful Post: [ View ] Gift skiwong20 Ad-Free
2nd August 2013, 12:53 PM |#10  
conan1600's Avatar
Senior Member
Thanks Meter: 212
Donate to Me
Nice features. Do you plan on a CPU and GPU OC?
2nd August 2013, 05:18 PM |#11  
aj8600's Avatar
Senior Member
Flag Eugene, OR
Thanks Meter: 84
whats the battery drain level with these features? If im not mistaken these mods require the screen to be always slightly awake, which over time could cause a considerable battery loss.
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes