Kernel for Google Play Edition and Sense-based ROMs
FAST • STABLE • FULL-FEATURED
This version works on every HTC One variant except Sprint.
The Sprint HTC One version is here: http://forum.xda-developers.com/show....php?t=2295596
ElementalX brings the best performance and battery life on the HTC One. Stable and full-featured, you get complete control over your phone. The only kernel that offers GPU overclocking, individual control of all CPU cores without third party apps, automatic undervolting options, full compatibility with paid apps, thermal options, fully working sweep2wake, doubletap2wake and pocket detection to prevent accidental wakes. Other features include button light notification, 60Hz refresh rate for HDMI, HTC logo as menu button, sleep/wake with long press of the HTC logo, support for many gamepads and more.
* Standard disclaimer:
* Your warranty is now void. Use at your own risk.
* In other words: It is your choice to use this software,
* I am not responsible for any damage or problems you may have!
- Aroma installer
- optimized for extended battery life
- overclocking/underclocking options
- select independent frequencies for each core
- user voltage control
- optional GPU overclocking
- choose undervolting levels
- kernel based thermal control
- thermal options
- pocket detection
- button light notification
- /system writable
- init.d support
- force fastcharge
- NTFS r/w support
- CIFS support
- OTG support
- support more game controllers (including PS3)
- maintains compatibility with all paid apps
- increased refresh rate for HDMI output via MHL adapter
- optimized -O3 linaro 4.7.3
Google Play Edition and Sense 5 Android 4.2.2
mirror 1: ElementalX-m7-2.4
mirror 2: ElementalX-m7-2.4
Sense 5 Android 4.1.2
NOTE: After installation, let it boot up all the way, then reboot again,
For a more stock experience, try my other kernel: Bulletproof
As always, with overclocking, not all phones can handle all frequencies. If it doesn't boot, or randomly reboots, or freezes, your first course of action should be to reinstall with a lower frequency.
1. Install zip from recovery
2. Follow the instructions, if you don't know what to do, use the preselected options
4. Let it boot up all the way, and reboot again
Don't use dumlock, just flash as normal in recovery.
Please hit the Thanks button if you download this
If you really like it, please consider buying me a beer
Actually, I won't spend it on beer. I'm saving it all up to buy my next device
Thanks to those who have donated!
@tbalden for l2m and bln
@xHausx and @amarullz for installer stuff
@backfromthestorm for fstrim
@crpalmer for kernel based thermal control
@mkasick Fix for empty app-mounted directories
@jonas2295 for elementalx logo
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!)
The settings can be changed by editing /etc/elementalx.conf and rebooting. Advanced users can apply settings on the fly by running /etc/init.d/99elementalx as root.
There is no need to edit /etc/init.d/99elementalx. All settings are configured in /etc/elementalx.conf.
If settings are not sticking, make sure the file permissions for /etc/init.d/99elementalx are set to execute. Every time the settings are applied, a log file is created at /data/local/tmp/elementalx-kernel.log. Problems can be diagnosed by looking at the log file.
Please 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-1.0 and later includes the latest camera drivers. It will work out of the box on .16 based custom ROMs. Previous versions of ElementalX had a camera fix, this is no longer necessary.
You don't need Kernel Tuner because the ElementalX installer sets everything up automatically, but if you want to check or change settings, Kernel Tuner is a nice app. Just be aware that Kernel Tuner is 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 a maximum between 1134MHz (underclocked) and 2160MHz (overclocked). 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 1.7GHz. I recommend a mild overclock, like 1836MHz. Clocking higher creates heat and wastes battery for very little performance gain.
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 is a sign that your minimum voltage is too low. The minimum voltage allowed is 700mV.
Be careful with undervolting. If you have bluetooth or sound issues, try increasing the minimum voltage.
Minimum CPU frequency
The minimum CPU frequency in this kernel is 384MHz. This chip was not designed to operate below 384MHz and I am respecting Qualcomm's design decision to have the CPU idle on pll8 at 384MHz. There is a way to achieve lower frequencies using the high frequency pll, however, this is likely to cause instability and inefficient operation (battery drain, ui stuttering)
You can choose to a GPU frequency of 400MHz (stock) or 450 MHz (overclocked). Overclocked offers better performance and will not have a significant impact on battery life. The same voltages are used no matter if the GPU is overclocked or not. Other phones using this chipset (e.g, the S4) set the GPU to 450MHz by default.
I've added kernel based thermal control and throttling. HTC's thermald is very aggressive and throttles the CPU frequency pretty much anytime you use all four processors. This kernel based implementation allow better performance while still protecting your phone from overheating. There are three levels of thermal control, which can be chosen in the installer or changed in /etc/elementalx.conf. The default option is recommended. With the run cool option, your CPU will run about 5C cooler than default while under heavy load. With the run hot option, the CPU will run about 5C warmer than default under heavy load.
The default governor is ondemand. I have not done extensive testing of governors so the stock governor is recommended for now. Intellidemand, lagfree, lionheart and smartassv2 are also available. Feedback on their operation is welcomed.
The default i/o scheduler is cfq. I have not tested the others much so the default is recommended for now. Other available schedulers are ROW, FIOPS, SIO, NOOP and deadline. Feedback on their operation is welcomed.
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.
Sweep2wake (S2W) allows you to wake up your device by swiping your finger across the capacitive buttons from left to right. Swiping from right to left will put it back to sleep (sweep2sleep). The options are: sweep2wake/sweep2sleep, sweep2sleep only, and disabled. If you use apps such as Kernel Tuner, the sweep2sleep only option can be selected by choosing "On with backlight". You can edit /etc/elementalx.conf to change the setting on boot.
1=enable sweep2wake + sweep2sleep
2=enable sweep2sleep only
DoubleTap2Wake (DT2W) allows you to wake the device by double tapping in the bottom inch or so of the screen, above the capacitive buttons. You can edit /etc/elementalx.conf to change the setting on boot.
Logo2Wake (L2W) allows you to sleep or wake the device by long pressing the HTC logo. You have to press just slightly above the HTC logo. The screen will automatically turn on or off with a long press. You can edit /etc/elementalx.conf to change the setting on boot.
Pocket detection protects against accidental wakes while S2W, DT2W or L2W are enabled and the phone is in your pocket. Pocket detection uses the proximity sensor. A few people have a problem with their proximity sensor that makes DT2W not work, so I've made an option to disable pocket detection. You can edit /etc/elementalx.conf to change the setting on boot.
1=enable pocket detection
Enabling Logot2Menu (L2M) allows you to use the HTC logo as a menu button. You must press just slightly above the HTC logo. You can edit /etc/elementalx.conf to change the setting on boot.
Button Light Notification
With Button Light Notification (BLN), the capacitive buttons will blink on and off when you have a new notification. As soon as the screen comes on, BLN is canceled and the lights will no longer blink until you have another notification. Please note that if you have your screen set to turn on when a message arrives, you will not see the buttons blinking because once the screen comes on, the button light notification is canceled. You can edit /etc/elementalx.conf to change the setting on boot.
0 = disabled
1 = BLN enabled
This is for anyone who wants to use OTG to connect a USB stick or portable harddrive formatted with Microsoft's NTFS filesystem. You will need Stickmount or a similar app, HTC Sense does not automatically detect NTFS filesystem.
All the cryptographic modules load properly, so you shouldn't have an issues with paid apps.
This kernel supports many game pads and controllers, including PS3 controllers and some X-Box controllers. It has full OTG support. A refresh rate of 60Hz for HDMI output allows you to play games on the big screen without choppiness. CIFS support is built into the kernel. Faux sound control is also supported.
July 11 ElementalX-m7-2.4
-fix touchscreen registering input during calls
-fiops default i/o scheduler
-add sysfs config for sleep/wake vibration strength
-new logo (@jonas2295)
-slight boost to L2 freq
-slight boost to GPU bus bandwidth
July 10 ElementalX-m7-2.3
-vibration feedback for s2w
-add TCP congestion algorithm options
-fix fastcharge (thanks tbalden)
-revert some tweaks
June 30 ElementalX-m7-2.2
-fix for app-mounted directories (thanks @mkasick)
June 29 ElementalX-m7-2.1
-add support for Android 4.2.2
-update aroma installer
June 23 ElementalX-m7-1.1
June 20 ElementalX-m7-1.0.1
-installer ensures update camera files are present
June 19 ElementalX-m7-1.0
-update to latest HTC sources (still 4.1.2!)
-updated camera (works with .16 base ROMs)
-updated capacitive button sensitivity
-revert earpiece audio patch
-remove camera fix
-adjust doubletap2wake sensitivity
-pocket detection only active when screen off
May 23 ElementalX-m7-0.11
-make camera fix optional
-wifi as module
-revert arm rwsem algorithm
-adjustments and fixes to sweep/wake options
-add smartmax and wheatley governors
-remove smartassv2 governor
-add "extra cool" thermal setting
May 14 ElementalX-m7-0.10
-add option to disable pocket detection
-add new settings schema for sleep/wake functions
-fix bug dt2w not working when s2w disabled
-change l2w to automatically sleep/wake after pressed for a certain time
May 13 ElementalX-m7-0.9
-suppress accidental wakes with s2w and dt2w
-add ROW scheduler
-add Lionheart, lagfree and smartassv2 governors
-button light notification (tbalden)
May 10 ElementalX-m7-0.8.1
-camera fix for .16 based ROMs (thanks to he_stheone64)
May 7 ElementalX-m7-0.8
-fix frequencies not sticking
-fix 2133 and 2160 frequency steps
-add thermal options
May 6 ElementalX-m7-0.7
-add kernel based thermal control (crpalmer)
-update faux123 sound control
-remove cpu optimization levels
May 2 ElementalX-m7-0.6
-remove GPU overclock to 480MHz
-disable gentle fair sleepers
-Improve scalability via 'CPU buddies'
-avoid loadavg moire
May 1 ElementalX-m7-0.5
-GPU overclock to 480MHz (experimental)
-CPU overclock to 2160MHz
-CPU optimization levels: stock, elementalx and ultra
-automatic undervolting to 850, 800 or 750
-compatible with faux sound control
-hsic wakelock fix
-L2W vibrates on sleep/wake
-update to latest HTC sources
-optimized arm rwsem algorithm
-optimized AES and SHA1 routines
-disable usb whitelist
April 25 ElementalX-m7-0.4
-lower possible voltage to 700
-expose PVS in sysfs
-sleep/wake with longpress HTC button
-select oc frequency up to 2106MHz
April 25 ElementalX-m7-0.3
-ensure GPU is set to stock by default
April 25 ElementalX-m7-0.2
-select oc frequency up to 2052MHz
-optional graphics overclocking
-fix audio in calls (tbalden)
-ensure crypto modules load
-camera fix included
April 20 ElementalX-m7-0.1
-disable /system write protection
-linaro 4.7.3 -o3 optimization
-fast rcu nohz
-readahead set to 2048
-mhl change to 1280x720@60Hz
-add CIFS support
-add FIOPS and SIO i/o schedulers