[Galaxy S 4 i9500 Android Development] krasCGQ:
zzmoove Predefined Profiles

​

I take these profiles list directly from cpufreq_zzmoove_profiles.h, but I clean it up to save some space.

currently available profiles by ZaneZam and Yank555:
(1)'def' -> Default -> will set governor defaults
(2)'ybat -> Yank Battery -> a very good battery/performance balanced setting
DEV-NOTE: highly recommended!
(3)'ybatext'-> Yank Battery Extreme -> like yank battery but focus on battery saving
(4)'zzbat' -> ZaneZam Battery -> a more 'harsh' setting strictly focused on battery saving
DEV-NOTE: might give some lags!
(5)'zzbatp' -> ZaneZam Battery Plus -> NEW! reworked 'faster' battery setting
DEV-NOTE: recommended too!:)
(6)'zzopt' -> ZaneZam Optimized -> balanced setting with no focus in any direction
DEV-NOTE: relict from back in the days, even though some people still like it!
(7)'zzmod' -> ZaneZam Moderate -> NEW! setting based on 'zzopt' which has mainly (but not strictly only!) 2 cores online
(8)'zzperf' -> ZaneZam Performance -> all you can get from zzmoove in terms of performance but still has the fast
down scaling/hotplugging behaving
(9)'zzinz' -> ZaneZam InZane -> NEW! based on performance with new insane scaling active. a new experience!
(10)'zzgame' -> ZaneZam Gaming -> NEW! based on performance with scaling block enabled to avoid cpu overheating during gameplay
(11)'zzrelax'-> ZaneZam Relax -> NEW! based on moderate (except hotplug settings) with relaxed sleep settings

NOTE: be aware when setting tuneables which have a 'should' in comments below that giving
them 'wrong' values can lead to odd hotplug behaving!

Script tweaks

​

Until Synapse support is available, all tweaks to some features will be done via init.d script instead.

#!/system/bin/sh
# KudKernel script tweaks
# by krasCGQ @ xda-developers

##################################################
# Set environment variables
SND=/sys/class/misc/wolfson_control/
SCR=/sys/class/misc/mdnie/

##################################################
# Wolfson sound control

# Headphone amplification
# Left / Right channel volume
# Minimum: 80dB; Maximum: 150dB; Default: 64
echo 64 > ${SND}headphone_left
echo 64 > ${SND}headphone_right

# Mono output
# Values: 0 (Disabled), 1 (Enabled); Default: 0
echo 0 > ${SND}switch_hp_mono

# Speaker amplification
# Main speaker volume
# Minimum: -8dB; Maximum: 16dB; Default: 0.5
echo 0.5 > ${SND}speaker_volume

# Earpiece volume
# Minimum: -8dB; Maximum: 16dB; Default: 0
echo 0 > ${SND}earpiece_volume

# Privacy mode
# Values: 0 (Disabled), 1 (Enabled); Default: 0
echo 0 > ${SND}switch_sp_privacy

# Headphone equalizer settings
# Master switch
# Values: 0 (Disabled), 1 (Enabled); Default: 0
echo 0 > ${SND}switch_eq_headphone

# Band 1 / 2 / 3 / 4 / 5 gain
# Minimum: -12dB; Maximum: 12dB; Default: 0
echo 0 > ${SND}eq_hp_gain_1
echo 0 > ${SND}eq_hp_gain_2
echo 0 > ${SND}eq_hp_gain_3
echo 0 > ${SND}eq_hp_gain_4
echo 0 > ${SND}eq_hp_gain_5

# Speaker equalizer settings
# Master switch
# Values: 0 (Disabled), 1 (Enabled); Default: 1
echo 1 > ${SND}switch_eq_speaker

# Band gains
# Minimum: -12dB; Maximum: 12dB

# Band 1 gain
# Default: 11
echo 11 > ${SND}eq_sp_gain_1

# Band 2 gain
# Default: -7
echo -7 > ${SND}eq_sp_gain_2

# Band 3 gain
# Default: 4
echo 4 > ${SND}eq_sp_gain_3

# Band 4 gain
# Default: -10
echo -10 > ${SND}eq_sp_gain_4

# Band 5 gain
# Default: 0
echo 0 > ${SND}eq_sp_gain_5

##################################################
# Screen controls
# Negative toggle
# Values: 0 (Disabled), 1 (Enabled); Default: 0
echo 0 > /sys/module/cypress_touchkey/parameters/mdnie_shortcut_enabled

# Smearing fix
# Minimum: 0; Maximum: 5; Default: 0
echo 0 > ${SCR}black_increase_value

# Brightness reduction
# Minimum: 0; Maximum: 128; Default: 75
echo 75 > ${SCR}brightness_reduction

# Brightness takeover point
# Minimum: 0; Maximum: 64; Default: 30
echo 30 > ${SCR}brightness_takeover_point

# Auto-brightness input delta
# Minimum: 0; Maximum: 64; Default: 20
echo 20 > ${SCR}brightness_input_delta

# Edge enhancement
# Master control
# Values: 0 (Disabled), 1 (Enabled); Default: 0
echo 0 > ${SCR}hook_control/s_edge_enhancement

# Enhancement control (Amount / Radius / Threshold)
# Minimum: -128; Maximum: 128; Default: 0
echo 0 > ${SCR}hook_control/de_positive_e
echo 0 > ${SCR}hook_control/de_positive_f
echo 0 > ${SCR}hook_control/de_positive_b

# Chroma saturation weight
# Minimum: 0; Maximum: 40; Default: 9
echo 9 > ${SCR}hook_control/cs_weight

# Red / Green / Blue / Yellow / Cyan / Magenta gains
# Minimum: 0; Maximum: 20

# Red gain
# Default: 18
echo 18 > ${SCR}hook_control/cs_red

# Green gain
# Default: 14
echo 14 > ${SCR}hook_control/cs_green

# Blue gain
# Default: 16
echo 16 > ${SCR}hook_control/cs_blue

# Yellow gain
# Default: 19
echo 19 > ${SCR}hook_control/cs_yellow

# Cyan gain
# Default: 10
echo 10 > ${SCR}hook_control/cs_cyan

# Magenta gain
# Default: 16
echo 16 > ${SCR}hook_control/cs_magenta

You could modify it if you want. Save as 01-kudscript.sh and put it on /system/etc/init.d/.