******************************************************************************************
ORYGINALNY WĄTEK NA XDA
[KERNEL] [July 12] ElementalX-N5-6.19 | Nexus 5 | XDA Forum
******************************************************************************************
Kernel dla Nexus 5
[TABLE]
FUNKCJE
Easy installation and setup with AROMA installer
Best balance of performance and battery life
Advanced color control
USB fastcharge (optional)
Sweep2sleep (optional)
Sweep2wake and doubletap2wake (optional)
Disable wake functions with timeout or power button
Wake Gestures app support
MultiROM support
Disable fsync (optional)
Sound control
Cooler color preset (optional)
backlight dimmer (optional)
Underclock or overclock CPU
L2 and bus overclocking options
Choose automatic minimum voltage
kernel-based thermal control
GPU overclocking options
voltage control
NTFS read/write and exFAT support
init.d support
Charge light support (enabled by some ROMs)
No forceencrypt
[/TABLE]
[TABLE]
FAQ
Q. Czy doubletap2wake/sweep2wake drenuje baterię?
A. Tak, na tym urządzeni tak. Jeśli wybierzesz, aby korzystać z tych funkcji, możesz ustawić czas, po którym wyłącza się to automatycznie lub użyć przełącznika klawiszem power, aby szybko wyłączyć dt2w jeśli nie zamierzasz z tego korzystać przez chwilę.
Q. Moja minimalna częstotliwość utknęła na 1267MHz.
A. Nie, nie utknęła. Kiedy dotykasz ekran, częstotliwość jest chwilowo podbijana do 1267MHz. Minimalna częstotliwość wraca na 300MHz kiedy nie widzisz. Ale jest sposób na to, aby utknąć na 1267, jeśli korzystasz z aplikacji, które zapamiętują ustawienia. Mopja rada:: NIE MIESZAJ Z CZĘSTOTLIWOŚCIAMI!!! Ustaw je w instalatorze i zostaw w spokoju.
Q: Jaka jest różnica między wersją normalną, a express?
A: Normalna używa instalatora Aroma do personalizacji ustawień kernela. Ekspresowa jest standardową paczką .zip flaszowalną w recovery z domyślnymi ustawieniami. Flaszując wersję express, wcześniejsze ustawienia kernela zostają zachowane. Zalecane jest, aby pierwsza instalacja była instalacją standardową (chyba, że chcesz zmienić ustawienia).
Q. Czy bateria na tym kernelu trzyma dobrze?
A. Tak. Najlepiej i nie wchodzi w kompromis z wydajnością.
Q. Jakiej applikacji użyć, aby kontrolować ten kernel?
A. Nie potrzebujesz aplikacji, wybierz ustawienia w instalatorze. Jeśli chcesz, możesz użyć Faux Clock, Franco Kernel Updater, TricksterMod i prawdopodobnie inne też.
Q. Czy powinienem wyłączyć mpdecision?
A. Nie.
Q. Moja bateria na prawdę słabo trzyma, jakieś pomysły?
A. Możliwe, że masz włączone sweep2wake lub doubletap2wake. W innym przypadku coś jest nie tak z Twoim telefonem.
Q. Mam[różne problemy], jakieś pomysły?
A. Coś jest nie tak z Twoim telefonem. Zrób fabryczny reset i przeinstaluj. Główne wersje tego kernela są w 100% stabilne i wszystko działa.
[/TABLE]
Instalacja
Stock ROM z rootem: flasz SuperSU 2.61 albo późniejszy, następnie flasz ElementalX
Stock ROM bez roota: po prostu flasz ElementalX w recovery
Zrootowane custom ROMy: po prostu flasz ElementalX w recovery
Dla custom ROMów, które wymagają trybu permissive, upewnij się, żeby odznaczyć opcję "Enforcing" w instalatorze kernela.
Dla maksymalnej kompatybilności ze wszystkimi ROMami, ElementalX używa Twojego bieżącego RAMdiska.
NIE flaszuj tego bezpośrednio na inny customowy kernel!
Powinieneś sflaszować ElementalX tylko na kernel jaki masz domyślnie z ROMem!!!
Rozważ proszę dotację, aby wesprzeć rozwój
Wielkie podziękowania tym, którz wsparli!
Specjalne podziękowania @jonas2295 za logo ElementalX
Download
Android 6.0.1 (Marshmallow)
ElementalX-N5-6.19
Uwaga: 6.19 jest TYLKO dla ROMów z lipcowymi łatkami bezpieczeństwa! Jeśli nie działa Ci WiFi - używaj wersji 6.17.
Aplikacja do ustawień gestów Wake Gestures:
http://elementalx.org/wake-gestures/
Android 5.0.1/5.0.2 (Lollipop):
ElementalX-N5-2.10
Stock/AOSP (Android 4.4.3/4.4.4):
ElementalX-N5-1.13
ElementalX-N5-1.13-express
Cyanogenmod/CAF (Android 4.4.3/4.4.4):
ElementalX-N5-1.13-cm
ElementalX-N5-1.13-express-cm
Stock/AOSP (Android 4.4.2):
ElementalX-N5-0.38
ElementalX-N5-0.38-express
RECENZJE
INFO
Plik konfiguracyjny ElementalX
Twoje wybory w instalatorze Aroma są użyte w celu stworzenia pliku konfiguracyjnego. Plik znajduje się w /etc/elementalx.conf. Możesz edytować ten plik, aby zmieniać ustawienia kernela. Cokolwiek jest ustawione w tym pliku, zaczyna to działać po restarcie telefonu (chyba, że wpływ na to ma jakiś skrypt albo aplikacja!)
Jeśli ustawienia nie zapisują się na stałe: [*]Upewnij się, że masz prawidłowo zainstalowany busybox i że jest w najnowszej wersji [*]Upewnij się, że uprawnienia pliku /etc/init.d/99elementalx są ustawione na execute. [*]Sprawdź czy jakikolwiek skrypt w /etc/init.d lub aplikacja (jak chociażby Kernel Tuner albo TricksterMod) nie wchodzi w konflikt z Twoimi ustawieniami.
Plik Log ElementalX
Podczas każdego uruchamiania telefonu, tworzy się log w /data/local/tmp/elementalx-kernel.log. Ten plik zawiera datę i czas i wszystkie ustawienia jakie zostały zastosowane podczas startu. Użyj tego do weryfikacji problemów z konfiguracją.
ElementalX Governor
Zarządca CPU w ElementalX został specjalnie zaprojektowany, aby uzyskać najlepszy balans między wytrzymałością baterii i wydajnością. Domyśłnie, jest bardziej conservative niż Ondemand. Podcas normalnego użytkowania, częstotliwość CPU nie skacze zbyt często. Jeśli gboost jest włączony, podczas grania lub innych wymagających sytuacji, CPU podbija częstotliwość znacznie łatwiej i częście, aby utrzymać maximum wydajności. Wbudowany jest także input boost. Jest kilka specyficznych zmiennych w zarządcy:
input_event_min_freq: takes four values separated by comma. These are the input boost frequencies for cores 0, 1, 2, and 3 (default 1728000, 1267200, 1267200, 1267200)
input_event_timeout: this is the length of time in milliseconds that the input boost will be active (default 500). Setting this to 0 disables input boosting.
ui_sampling_rate: when you touch the screen, the sampling rate changes temporarily to whatever you set here (default 15000)
two_phase_frequency: this sets the max frequency for moderate loads. Accepts four frequency values separated by comma, for cores 0, 1, 2, and 3. (default 1728000, 1728000, 1728000, 1728000)
How does it work? It's basically a multiphase ondemand governor.
The basic governor is very conservative for most phone activities, spending most of its time at 1267MHz. If there is graphics load, we switch to a two phase ondemand. The first phase runs with a max freq of 1728MHz (default). If the load increases, it goes to max frequency (default is 2265MHz) and the minimum frequency changes to 1267200 (I will probably make this tunable)
The input boost does a couple things. First, it lowers the sampling rate for the timeout duration to make the governor more responsive. Second, it boosts the frequency of any online cores. You can disable this by setting input_event_timeout to 0.
If you want to experiment, delete /system/lib/hw/power.msm8974.so and set the input_event_timeout to about 1000. But I recommend leaving it alone for optimal smoothness.
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
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. I don't recommend overclocking, this device is fast enough. If you overclock, the CPU frequency will likely be throttled due to heat. I recommend the stock frequencies, as this device is plenty fast.
CPU voltages
The installer allows you to choose from several undervolting options. These automatically undervolt the lowest frequency (300MHz) 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.
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
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 1190MHz, 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.
F2FS support
F2FS support is built into the kernel, however, you will need to have an F2FS compatible kernel installed before you install ElementalX to get all the proper ramdisk stuff.
Wake Gestures
This is a new feature similar to the Motion Launch Gestures on the HTC One m8. Requires this Xposed module: [APP][XPOSED] Wake Gestures v1.1 [02/06/2014… | Xposed General | XDA Forum
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 Gesture Xposed module.
Sweep2wake
Sweep2wake allows you to turn on your phone by swiping your finger across the screen. There are four sweep actions that will work
Gesture........Value
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)
/sys/android_touch/sweep2wake
Doubletap2wake
DoubleTap2Wake (DT2W) allows you to wake the device by double tapping anywhere on the screen. This causes significant battery drain. You can edit /etc/elementalx.conf to change the setting on boot.
/sys/android_touch/doubletap2wake
0 = disabled
1 = enabled (bottom of screen only)
2 = enabled (full screen)
Vibration Strength
Haptic feedback can be enabled for the wake gestures in /sys/android_touch/vib_strength. This setting takes a number between 0 and 90. Default is 20. Setting this to 0 disables haptic feedback for gestures.
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.
S2W/DT2W Timeout
Doubletap2wake and sweep2wake can be automatically disabled after a certain number of minutes. I give a few choices between 5 and 120 minutes in the installer. Default is 30 minutes. You can put in whatever you want in /etc/elementalx.conf.
When the screen is turned on, the timeout is canceled and will start again next time you turn the screen off. This means that if you have your screen set to come on for incoming messages or notifications, the timeout will start over again.
If you also enabled the power button to toggle s2w/dt2w, there is no timeout when you use the power button, the wake functions are immediately disabled (same as before).
You can edit /etc/elementalx.conf to change the setting on boot.
Sweep2Sleep
Sweep2Sleep allows you to put the device to sleep by sweeping your finger across the navigation bar area. Unlike Sweep2wake, this does not cause any battery drain. You can edit /etc/elementalx.conf to change the setting on boot.
/sys/android_touch/sweep2sleep
0 = disabled
1 = sweep right
2 = sweep left
3 = sweep left or right
Color preset
There are two color presets: stock and slightly cooler. You can edit /etc/elementalx.conf to change the setting on boot.
/sys/module/mdss_dsi/parameters/color_preset
0 = stock color
1 = slightly cooler color
Backlight dimmer
Backlight dimmer allows you to adjust the LCD screen brightness lower than is possible with stock. Be careful, you can lower the brightness so much you can barely see it. You can edit /etc/elementalx.conf to change the setting on boot.
/sys/module/lm3630_bl/parameters/backlight_dimmer
0 = disabled
1 = enabled
USB fastcharge
USB fastcharge is optional. This will allow you to charge at a faster rate when connected to a USB port. The default limit for USB ports is 500ma, this increases it to 900ma. Be sure that the computer/laptop/whatever you are plugged into can handle it. Some will automatically cap it at 500ma. Please note that this does not force AC charge mode like previous implementations of force fastcharge. Your battery setting will still say USB mode. You can edit /etc/elementalx.conf to change the setting on boot.