[Kernel][Sony5.x][Z/ZL]Zombie[23.12.15]

Tommy-Geenexus

Senior Member
Apr 30, 2013
2,769
2,576
193
I live on a Stone Hill.
Zombie is a Kernel which extends the Xperia Z's capabilities.
It is aimed at including only useful and strictly tested features, enhancements and optimisations,
it will not receive any Linux upstream updates and only useful CAF enhancements, to not sacrafice stability
for "the latest and greatest" (which is only very few cases really "the greatest" but more like very prone to introduce all kinds of issues).
Important: I do not accept Bug reports when you are running a modified Rom or using Xposed!

Features:
* Compiled with Google's AOSP GCC 4.8 and Size Optimisations (-Os) (for maximum stability)
* 2-Phase fully-configurable Kernel Thermal (userspace thermald is disabled)
* APQ-Hotplug (All CPUs are online by default, CPUs 1-3 are offline during suspend)
* Optional conservative KGSL Policy (offers more efficient clock scaling and adjustablility)
* DoubleTap2Wake/Sweep2Wake/Sweep2Sleep with adjustable (optional) haptical Feedback (Sweep2Sleep works in Navigation and Status Bar)
* Backlight-Dimmer-Hack (Reduces min. brightness to the lowest possible point)
* Faux' Gamma Control / Pre-tuned Gamma for the Sharp Panel (only controllable via Fauxclock)
* Faux' Sound Control 3.x (controllable via e.g. Fauxsound)
* Alucard24's Touch-Boost Driver (adjustable boost-freqs / boost-CPUs)
* Updated Prima-Wlan Driver from Code Aurora + Improved Wlan Configuration
* Adjustable Vibrator Strength
* Morfic's Voltage Control
* Chad Froebels FastCharge
* Ezekeel's Fsync Control
* Full MultiRom support

Todo:
* -

Downloads:
Kernel Zip Package:
Yuga:
Latest Build: Zombie-b23
Odin:
Latest Build: Zombie-b22
Flashable Recoveries:
MultiRom TWRP 2.8.7
TWRP 2.8.7


Installation:
* Flash Kernel Package via Recovery (Not only the Boot Image via Fastboot: there are important scripts which need to be applied to ensure the Kernel works as intended).
* If desired: Flash TWRP via Recovery.

Kernel Source:
Zombie-Lollipop Kernel-Source @ Github

XDA:DevDB Information
Zombie, Kernel for the Sony Xperia Z

Contributors
Tommy-Geenexus
Kernel Special Features:

Version Information
Status: Stable

Created 2015-06-03
Last Updated 2015-12-23
 
Last edited:

Tommy-Geenexus

Senior Member
Apr 30, 2013
2,769
2,576
193
I live on a Stone Hill.
Reserved

Sysfs Paths for Kernel Tuning

msm_thermal:
/sys/kernel/msm_thermal/allowed_low_freq
/sys/kernel/msm_thermal/allowed_low_temp
/sys/kernel/msm_thermal/allowed_low_rel_temp
/sys/kernel/msm_thermal/allowed_max_freq
/sys/kernel/msm_thermal/allowed_max_temp
/sys/kernel/msm_thermal/allowed_max_rel_temp
/sys/kernel/msm_thermal/poll_ms
/sys/kernel/msm_thermal/throttle_poll_ms
/sys/kernel/msm_thermal/shutdown_temp

alucard_touch_boost:
/sys/module/alu_t_boost/parameters/input_boost_freqs
/sys/module/alu_t_boost/parameters/input_boost_ms
/sys/module/alu_t_boost/parameters/min_input_interval
/sys/module/alu_t_boost/parameters/nr_boost_cpus

apq_hotplug:
/sys/kernel/apq_hotplug/apq_hotplug_version
/sys/kernel/apq_hotplug/max_online_cpus

conservative_kgsl_policy:
/sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0.0/pwrscale/policy/<trustzone-conservative>
/sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0.0/pwrscale/policy_config/conservative/policy_scale_mode/<C-E-P>
/sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0.0/pwrscale/policy_config/conservative/polling_interval/<10000-1000000>
/sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0.0/pwrscale/policy_config/conservative/thresholds

doubletap2wake/sweep2wake:
/sys/devices/virtual/input/input1/wakeup_gesture
/sys/devices/virtual/input/input1/wg_vib_enable
/sys/devices/virtual/input/input1/wg_vib_strength/<18-100>

sweep2sleep:
/sys/sweep2sleep/sweep2sleep
/sys/sweep2sleep/vib_enabled
/sys/sweep2sleep/vib_trigger_time/<18-100>

lm3533_backlight_hack:
/sys/class/leds/lm3533-lcd-bl/device/bl_hack

kcal/gamma_control: (not recommended to touch via init/script)
/sys/devices/platform/DIAG0.0/power_line
/sys/devices/platform/DIAG0.0/power_rail
/sys/devices/platform/DIAG0.0/power_rail_ctrl
/sys/devices/platform/DIAG0.0/power_reset

sound_control:
/sys/kernel/sound_control/gpl_cam_mic_gain
/sys/kernel/sound_control/gpl_headphone_gain
/sys/kernel/sound_control/gpl_headphone_pa_gain
/sys/kernel/sound_control/gpl_mic_gain
/sys/kernel/sound_control/gpl_speaker_gain
/sys/kernel/sound_control/gpl_sound_control_version
/sys/kernel/sound_control_3/gpl_cam_mic_gain
/sys/kernel/sound_control_3/gpl_headphone_gain
/sys/kernel/sound_control_3/gpl_headphone_pa_gain
/sys/kernel/sound_control_3/gpl_mic_gain
/sys/kernel/sound_control_3/gpl_sound_control_hw_revision
/sys/kernel/sound_control_3/gpl_sound_control_locked
/sys/kernel/sound_control_3/gpl_sound_control_rec_locked
/sys/kernel/sound_control_3/gpl_sound_control_version
/sys/kernel/sound_control_3/gpl_speaker_gain
/sys/kernel/sound_control_3/gpl_sound_reg_read
/sys/kernel/sound_control_3/gpl_sound_reg_sel
/sys/kernel/sound_control_3/gpl_sound_reg_write

vibrator_strength:
/sys/devices/virtual/timed_output/vibrator/level/<12-31>

fast_charge:
/sys/kernel/fast_charge/force_fast_charge

fsync_control:
/sys/class/mis/fsynccontrol/fsync_enabled

voltage_control:
/sys/devices/system/cpu/<cpu0-cpu3>/cpufreq/UV_mV_table
 
Last edited:

Tommy-Geenexus

Senior Member
Apr 30, 2013
2,769
2,576
193
I live on a Stone Hill.
Reserved

Everyone experiencing wifi related issues (disconnections, etc..) should read the following.

Luckily i have updated Prima from CAF, and pulled a wcnss configuration file from their cgit.
This means you can adjust wlan parameters like deep-sleep, idle-scan, etc.. there.

File path: /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg_ini

For example, enabling IdleScan seems to have fixed frequent wifi disconnections.
Feel free to adjust things and experiment, certain issues may get fixed this way.

Donors:
* @langeveld024
* @shoey63
Thanks for the support!
 
Last edited:

IronHydeFeLix

Senior Member
Dec 9, 2013
77
41
0
hyderabad
Hi all,

The following Kernel builds are only suitable for .454 Stock or Stock-based Roms.

Disclaimer:
No Recovery / Multirom support yet.

Features:
* Compiled with AOSP GCC 4.8 and -0s
* Gamma Control / Pre-tuned Gamma
* Morfic's Voltage Control
* APQ-Hotplug (All Cores online by default - one Core is online during suspend)
* Backlight-Dimmer-Hack (Reduces min. brightness to the lowest possible point)
* 3-Phase fully-configurable Kernel Thermal (userspace thermald is disabled)
* Sound Control 3.x
* DT2W/S2W with haptical Feedback
* FastCharge
* Ezekeel's Fsync Control
* Tunable Vibrator Strength

Todo:
* Add all modules to zip (not needed but anyway)
* Recovery
* Time will bring.

Downloads:
https://www.androidfilehost.com/?fid=23991606952614100

Installation:
Fastboot a Kernel with Recovery.
Flash via Recovery - done.

Source:
https://github.com/Tommy-Geenexus/android_kernel_sony_apq8064_yuga_5.x

XDA:DevDB Information
Zombie, Kernel for the Sony Xperia Z

Contributors
Tommy-Geenexus
Kernel Special Features:

Version Information
Status: Alpha

Created 2015-06-03
Last Updated 2015-06-03
You're FAST !!! and Thanks ALOT !!! will try now !! :D :good:
 
  • Like
Reactions: Kaktusdeutschmann

Tommy-Geenexus

Senior Member
Apr 30, 2013
2,769
2,576
193
I live on a Stone Hill.
Cores don't go offline? Isn't this bad for battery?
Nope. Hotplugging Cores uses a lot energy, and stock Mpdecision is switching them on/off continually (it is a bad kernelspace/userspace hotplugger anyway).

Simply leaving Cores online saves energy, and with a proper governor tuning they can run at lower frequencies thus improving battery life.
 

flytomars

Senior Member
Dec 15, 2012
173
15
0
Tommy-Geenexus thank you for this great kernel!

anyway, could you please consider adding GPU overlocking into this kernel in the future? The GPU, Adreno 320 of Xperia Z doesn't perform well when playing games and there are always apparent lags. Thus GPU overclocking will help making the phone runs better.
Thank you!
 

Tommy-Geenexus

Senior Member
Apr 30, 2013
2,769
2,576
193
I live on a Stone Hill.
Tommy-Geenexus thank you for this great kernel!

anyway, could you please consider adding GPU overlocking into this kernel in the future? The GPU, Adreno 320 of Xperia Z doesn't perform well when playing games and there are always apparent lags. Thus GPU overclocking will help making the phone runs better.
Thank you!
The A320 is quite good, the issue is the FHD Panel.

But: The 8064 SOC has an unpleasant issue, heating. This is the case on all phones using this SOC. Any form of OC will lead to instant throttling.

Whats more important than OC'ing is to keep the temperature down.
Most games run fine till throttling kicks in, my goal is to keep it unthrottled as long as possible.

Also we have no battery throttling, the battery gets really hot, OC will damage your battery.
 

kael2404

Senior Member
May 13, 2012
374
42
48
As i remember I had formatted my sdcard to exfat and it WORKS! In terminal emulator it says "texfat". I don't know why "t" at the beginning
 

CosmicDan

Senior Member
Jun 19, 2009
5,845
7,678
263
34
Sydney
Interesting. But why no recovery? We had it for stock kernel within a day of release, so it can't be that difficult...

Sent via Tapatalk on my Xperia Z