[KERNEL] ElementalX | OC | UV | ZRAM | intellidemand | ROW | S2W

S

slain

Fortgeschrittenes Mitglied
19
Original Thread auf XDA ist hier zu finden


p1290930064-5.jpg

Kernel for Sense-based Jelly Bean ROMs



Code:
* 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!


This kernel has tons of options. You can get yourself into trouble. Overclocking and undervolting takes effort, you need to test, test, test in order to find stable settings for your device. Please don't complain about reboots or crashes if you're overclocking and/or undervolting. When you find settings that work well with your specific hardware, this kernel will be very stable and have long battery life.

If you have problems, or simply don't want to endlessly tweak kernel settings, then consider trying the Bulletproof kernel: http://forum.xda-developers.com/show....php?t=2178729

If you do want to endlessly tweak kernel settings, and get to know your hardware intimately, then you're in the right place.


FEATURES:




  • For the S4 version, not S3
  • Aroma installer
  • choose CPU optimization level: vanilla, elementalx, or ultra
  • optimized for extended battery life
  • overclocking/underclocking options
  • minimum CPU frequency 192MHz or 384MHz
  • choose max screen off frequency
  • user voltage control
  • choose voltage profile in installer
  • GPU overclocking
  • sweep2wake
  • /system writable
  • optional zRam with snappy compression
  • NTFS r/w support
  • governors: intellidemand (default), badass, lagfree, lionheart
  • i/o schedulers: ROW (default), FIOPS, SIO
  • option to disable fsync
  • increased refresh rate for HDMI output via MHL adapter
  • optimized -O3 linaro 4.7.3



INSTALLATION

1. Install zip from TWRP Recovery
2. Reboot!



later hboots and s-on:
The installer includes a method to flash the boot.img on later hboot versions, however, some people may still have difficulties. Note that it takes a long time, be patient. If it doesn't work, extract boot.img from the zip, reboot to bootloader and do:

fastboot flash boot boot.img

Note: you must still run the installer to get all the correct modules and configuration files!








NOTES:


Configuration
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 are interfering with your settings If you're on ViperXL, make sure your settings in Venom Tweaks are the same as the ones in /etc/elementalx.conf (for example, sweep2wake settings)


Kernel Tuner
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 recommended. 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.


Venom Tweaks force close
If Venom Tweaks closes when you try to access the CPU tab, go to Settings->Apps->Venom Tweaks and push the Clear Data button. This should fix the problem.


CPU Optimization
Vanilla: stock voltages, stock l2 cache frequency, stock bus bandwidth
ElementlaX: increases l2 cache frequency and bus bandwidth, allows you to choose voltage level in installer
Ultra: increases l2 cache frequency and bus bandwidth even more. May cause instability, please test thoroughly for stability if you use this option.


Overclocking
Overclocking (underclocking) is optional. Whatever frequency you chose in the installer will be set at boot for both CPUs. Frequencies can be changed any time using apps like No Frills or Kernel Tuner. WARNING: not all devices can handle overclocking. The stock maximum CPU frequency is 1.5GHz.


CPU voltages
CPU voltages can be changed with Venom Tweaks, Kernel Tuner or System Tuner. Be careful, lowering voltages could cause instability. If you have stability problems even at the highest voltages, try the vanilla version


Minimum CPU frequency
Sets the minimum CPU scaling frequency. 192MHz is the recommended default and should work fine on the vast majority of devices. The 384MHz option is available for devices that experience random reboots while the device is idle. It is recommended that you try increasing the minimum voltage by 25mV before changing the minimum CPU frequency.


Max screen off frequency
This sets the highest CPU frequency available while the screen is off. It is recommended that you do not set this to 192MHz or 384MHz, as many devices experience random reboots at these frequencies. The default is 486MHz, which should be safe for most devices. If you experience random reboots while the device is asleep, set this to a higher frequency. This setting can be changed in /etc/elementalx.conf or using an app like Venom Tweaks.


GPU frequencies
GPU frequencies can now be set on the fly using Kernel Tuner. There is also an option in /etc/elementalx.conf. Available maximum frequencies:
3D GPU: 480 (overclocked) or 400 (stock)
2D GPU: 266 (overclocked) or 200 (stock)


Governors
Intellidemand is the default CPU governor. There are other governors included, however, intellidemend is recommended for best balance of battery life and performance.


Installing a new ROM
If you install a new ROM, it will overwrite /etc/init.d/99elementalx and /etc/elementalx.conf. The kernel will run perfectly fine without these files, but you will lose your settings and certain features.


Sweep2Wake
Sweep2wake 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). There are now options for sweep2wake/sweep2sleep, sweep2sleep only, and disabled. If you use ViperXL, make sure to enable sweep2wake in Venom Tweaks. Note that in Venom Tweaks, the sweep2sleep only option can be selected by choosing Enable (no buttons backlight).


What is zRam
zRam creates a compressed block device in RAM that is used as swap. Although it claims some of your RAM as swap, everything written to swap is compressed. This increases the apparent memory available to the system and helps with multitasking. Swap files on disk are very slow, but with zRam the swap is on RAM so it can be read as quickly as regular memory. Even though the data need to be decompressed, modern CPUs can decompress quicker than if it had to be to read from disk. The penalty is cpu usage, which could drain battery; however, this is likely negligable in daily use. I didn't enable this by default because not everyone will want it. This is for heavy multitaskers and will allow you to quickly switch between more apps and have more tabs open in your browser without refreshes.

zRam is disabled by default. If you want to enable it, edit /etc/elementalx.conf
change ZRAM=0 to ZRAM=1 and reboot.

You can check if zRam is working by typing the command "free" into the terminal. You should see the total used and free swap. If these are all 0, then zRam is not enabled. Please ensure that other apps are not changing your minfrees, zRam works best with low minfrees and high swappiness.


NTFS support
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+ won't detect NTFS.


Enable/disable fsync
Disabling fsync can increase filesystem performance. However, there is a small risk of data loss if the system suddenly crashes. If you can't afford to lose data, keep fsync enabled. Many custom kernel disable fsync, I leave it enabled by default for safety reasons.


XBox controller support
There is an experimental module that supports XBox gamepads, however, some people have reported that it draws too much power and doesn't work. I've suggested trying a powered USB hub, but still not sure if it works.


Note about WiFi
If you go back to stock kernel after installing ElementalX-v4.4 or higher, you will need to restore the wifi module to stock. The ElementalX installer renames the original module to prima_wlan.ko.bak. You can restore the stock module by doing the following:
1. go to /system/lib/modules
2. delete prima_wlan.ko
3. rename prima_wlan.ko.bak to prima_wlan.ko
4. reboot


CHANGELOG:

ElementalX 4.2
-correct oc frequencies
-adjust l2 cache frequencies
-gpu overclock frequencies now 480 3D and 266 2D
-fix max screen off limit
-various patches from Linaro and CAF
-WiFi module fix (thanks thicklizard)
-avoid loadavg moire
-enable automatic process group scheduling
-max screen off frequency can be disabled

ElementalX 3.4
-optimized build compiled with -O3
-linaro 4.6.3 -> linaro 4.7.3
-force ac for unknown chargers

ElementalX 3.3
-add /dev/frandom
-add force fastcharge
-change makefile optimizations
-tweak init script

ElementalX 3.2
-fix gpu oc
-add row i/o scheduler
-add governors
-disable gentle fair sleepers
-add zram
-disable qcache
-use zcache and zsmalloc

ElementalX 3.1
-gpu oc
-option to disable fsync


ElementalX 3.0
-HTC Jelly Bean source
-vanilla, elementalx and ultra CPU optimization options
-overclock to 2.1GHz
-minimum frequency 192MHz
-full voltage control
-intellidemand default governor
-fiops default scheduler
-add sweep2wake
-add zRam with snappy compression
-init.d support
-ntfs r/w support
-fix HDMI refresh rate
-disable gentle fair sleepers
-xz kernel compression
-add fix for crash with wp_mod.ko
-fix installer conflicts
-switch do_fsync() to fget_light()
-CPU1 governor can be set independently
-set max screen off frequency
-choose 192 or 384 minimum CPU frequency
-update cpupower according to cpu load
-adjust readahead to 2048




DOWNLOAD


ElementalX-S-4.2


ElementalX-S-3.4
 
Zuletzt bearbeitet:
  • Danke
Reaktionen: slain, Ultranobody und Murph
Hab ihn mittlerweile ohne Probleme am Laufen, ein echt brauchbarer Kernel!

Gesendet von meinem HTC One S mit der Android-Hilfe.de App
 
Habe ihn mir auch mal drauf
wenn ich im Kernel Tuner die Hardware Tasten dimme geht das, nach einem neustart ist es aber wieder auf default ist das bei euch auch so?
 
Muss man SOFF sein oder einfach flashen?

Gesendet von meinem HTC One S mit Tapatalk 2
 
S Off ist glaube ich nicht nötig. Sehe aber keinen Grund, nicht S Off zu sein?

Gesendet von meinem HTC One S mit der Android-Hilfe.de App
 
Kann SOFF wieder rückgängig gemacht werden für den Fall der Fälle?

Gesendet von meinem HTC One S mit Tapatalk 2
 
Schon jemand 2,0 ghz getestet? Bis jetzt läuft der Kernel echt gut. Hatte mit älteren Versionen teilweise Probleme.
 
Ich Geh Nur Bis 1.9, Außerdem Braucht Man So Viel Eh Nicht...

Gesendet von meinem HTC One S mit der Android-Hilfe.de App
 
Hallo

Ich habe diesen Kernel auch installiert, jetzt geht jedoch mein WLAN nicht mehr. Zurück zu Bulletproof und WLAN funktioniert wieder. Was kann das sein?

Gruß
Semmy
 
Bei mir ist es glatt abgestürzt...:sneaky:
Läuft der kernel vielleicht nicht bei Dark Jelly S Edition ?
 
Im op steht.... For sense based rom... Da dürfte CM wohl raus sein?

Gesendet von meinem One S mit Tapatalk 2
 
Verdammt ! :(
 
3.4 lief bei mir auch problemlos ..... hab aber auch keine Unterschiede zum Vorgänger gemerkt.

Jedoch habe ich mit jeder ElementalX Version das Problem, dass er nur selten in den DeepSleep Modus geht .... auch im Flugzeugmodus habe ich einen hohen Verbrauch. Dies war jetzt auch bei 3.4 so.

Mit dem Bulletproof und Stock-Kernel funktioniert es aber problemlos, mit der gleichen Konfiguration bzw. den gleichen Apps.

Ist das nur bei mir so?:huh:
 
Ich kann machen was ich will. Wenn ich Elemetalx installiere, habe ich kein WLAN mehr. Woran kann das liegen? Bei Bulletproof habe ich WLAN.

Gruß
Semmy
 
Update auf Version 3.4
 
Habe jetzt auch die 3.4 drauf, bin mal gespannt wie der so läuft. Macht aber nen Guten Eindruck bisher!

Gesendet von meinem HTC One S mit der Android-Hilfe.de App
 
Hallo
Hat denn keiner hier im Forum eine Lösung, wie WLAN mit diesen Rom funktioniert. Geht bei mir einfach nicht.

Gruß
Semmy
 
Falscher thread :confused:

Sind diese Spannungen Standard nach flashen der Boot.img.?

8yde3a3u.jpg


Gesendet von meinem HTC One S mit Tapatalk 2
 

Ähnliche Themen

Hopie
Antworten
33
Aufrufe
8.351
JgCurry
JgCurry
K
Antworten
69
Aufrufe
15.966
bastikullig
B
B
  • BeardNinja
Antworten
0
Aufrufe
847
BeardNinja
B
Zurück
Oben Unten