[Nexus 4 General] xanthrax:
I will post here the most common issues , if any and a collection of tricks and tips based on all users experience , then will be easier for everyone to track them ;)

i will keep an eye on every post :cowboy:

-=-=-

Please have a look first at this thread

[Repository] [MakoStuff] [Nexus4 Tools]

by [MENTION=4362467]gorilla p[/MENTION]

then >>> Troubleshooting Synapse

also >>>

Installing Synapse and importing profiles

-=-=-

as from version b49 the kernel has been completely rebased therefore I will add below some new tips and tricks

- first check the change log from b49 onwards and also the discussion starts with that post

- the kernel isn`t undervolted anymore by default so , heating occurs due to stock voltages , I`m sure you know what to do then

- new dt2w by stratosk dropping the s2w/s2s feature

- some inputs here http://xdaforums.com/showpost.php?p=55232079&postcount=7836

terminal command for dt2w

thanks [MENTION=5364757]steviemch[/MENTION] for heads up

- try this http://xdaforums.com/showpost.php?p=55214263&postcount=7820 if you`re facing in call delay , thanks [MENTION=534975]eurochild[/MENTION]

[YOUTUBE]Mk-Loyb5smQ[/YOUTUBE]

- fsync status

-=-=-

For those who wants to use the latest hellscore based on KK 4.4.2 on a ROM based on 4.4.3/4/L , here is a fix for loosing WIFI

http://xdaforums.com/showpost.php?p=53132436&postcount=6487

-=-=-=-

and thanks to [MENTION=4954315]themike10452[/MENTION] we have ...

Hellscore Kernel Manager

original thread here >>> http://xdaforums.com/nexus-4/themes-apps/app-hellscore-kernel-tweaker-t2669442

playstore

Hellscore Kernel Manager

-=-=-=-

SCRIPT CREATOR

thanks [MENTION=5222551]Maxr1998[/MENTION]

hells-Core Init.d creator

-=-=-=-

Hells-Core kernel with OTG support for Nexus 4 KK

thanks [MENTION=1175139]justvarshney[/MENTION]

-=-=-=-

as some other kernels comes with their own ramdisk which will remain over after flashing hellsCore and an unpredictable negative impact on your phone stability may occur , i would recommend you to flash a STOCK KERNEL from below prior flashing

Nexus 4 Stock 4.4.3 KTU84L >>> http://d-h.st/qxB

Nexus 4 Stock 4.4.2 KOT49H >>> http://d-h.st/W8P

Nexus 4 Stock 4.4 KRT16S >>> http://d-h.st/HwN

Nexus 4 Stock 4.4 >>> http://d-h.st/apv

Nexus 4 Stock 4.3 >>> http://d-h.st/TRC

Nexus 4 AOSP 4.3 >>> http://d-h.st/NuC

-=-=-=-

the recommended applications to control/modify the kernel are

Trickster MOD Kernel Settings

Faux123 Kernel Enhancement

-=-=-=-

to be used only for 4.3/1 kernels

doesn`t affect kk kernels , in case of a broken wifi , just re-dirty-flash your rom and then the kk kernel

dePRIMAtor

-=-=-=-

please provide logs in case of troubles

use the command below in terminal emulator to extract the last_kmsg in case of a sudden reboot

su

cat /proc/last_kmsg > /sdcard/last_kmsg.txt

-=-=-=-

A nice collection of terminal commands to manually modify the kernel settings as per your desire made by [MENTION=5333570]shengovind[/MENTION]

thanks pal ! ... i must write a song for him now ... oh well

To Set CPU Governor:

Su

echo "NAME" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo "NAME" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

echo "NAME" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor

echo "NAME" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

NAME can be replaced by intellidemand, interactive, conservative, wheatley, ondemand, performance

Default is intellidemand. Changing NAME to conservative changes CPU governor to conservative

FOR SETTING GOVERNOR PARAMETERS:

First set governor then you will be able to edit these..

I do not know what each and every parameter does so these won’t help normal users’ and those who know what these mean will probably know how to edit these. But I’ve included them just because i had to …

INTELLIDEMAND :

echo "FREQUENCY" > /sys/devices/system/cpu/cpufreq/intellidemand/boostfreq

Change FREQUENCY to required value of frequency. This is the frequency cpu is boosted to when screen is touched.

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/boostpulse

not sure what this does and what the set of values are

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/boosttime

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/down_differential

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/ignore_nice_load

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/io_is_busy

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_active_load

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_active_max_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_browser

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_inactive_load

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_inactive_max_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/optimal_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/powersave_bias

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/sampling_down_factor

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate_min

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/sync_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/two_phase_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold_any_cpu_load

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold_multi_core

INTERACTIVE

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/above_high_speed_delay

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/boost

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/boostpulse

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration

AFAIK this is the time for which cpu is boosted

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/target_loads

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/timer_slack

CONSERVATIVE

echo "FREQ" > /sys/devices/system/cpu/cpufreq/conservative/boostfreq

As told above

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/freq_step

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/ignore_nice_load

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/sampling_rate

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold

WHEATLEY

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/allowed_misses

echo "FREQ" > /sys/devices/system/cpu/cpufreq/wheatley/boostfreq

told above

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/ignore_nice_load

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/io_is_busy

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/powersave_bias

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/sampling_down_factor

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/sampling_factor

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/sampling_rate

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/target_residency

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/up_threshold

ONDEMAND:

echo "FREQ" > /sys/devices/system/cpu/cpufreq/ondemand/boostfreq

told above

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core

GO HERE IF YOU WANT TO TRY AND MAKE SENSE OUT OF ALL THIS:

http://xdaforums.com/showthread.php?t=1369817

CHANGING GPU GOVERNOR

echo “GOVERNOR” > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/policy

Change GOVERNOR to conservative, performance, simple, or ondemand.

echo "1" > /sys/module/sync/parameters/fsync_enabled

TO ACTIVATE DOUBLE TAP TO WAKE

echo 1 > /sys/android_touch/doubletap2wake

TO DEACTIVATE DOUBLE TAP TO WAKE

echo 0 > /sys/android_touch/doubletap2wake

TO ACTIVATE S2W

echo "1" > /sys/android_touch/sweep2wake

TO DEACTIVATE S2W

echo "0" > /sys/android_touch/sweep2wake

BOOST ON TOUCH

echo "X" > /sys/module/msm_hotplug/cpus_boosted

X can be replaced by 1,2,3 or 4 . This sets number of cores to be boosted on touch,

Default is 2. Changing X to 4 boosts 4 cores on touch.

MINIMUM NUMBER OF CPUS ONLINE

echo "X" > /sys/module/msm_hotplug/min_cpus_online

X can be replaced by 1,2,3 or 4 . This sets number of cores to be online at all time,

Default is 1. Changing X to 2 makes sure 2 cores are online all the time.

MAXIMUM NUMBER OF CORES ONLINE

echo "X" > /sys/module/msm_hotplug/max_cpus_online

X can be replaced by 1,2,3 or 4 . This sets maximum number of cores that can go online,

Default is 4. Changing X to 2 makes sure your phone dual core.

MAXIMUM FREQUENCY WHEN SCREEN IS OFF

echo "X" > /sys/module/msm_hotplug/suspend_freq

X can take values 192000, 384000, 540000, 702000, 1026000, 1242000, 1350000, 1512000

Default is 702000. Changing X to 1026000 makes maximum frequency when screen is off to 1ghz

Someone tell how to set gamma manually... Thank you.

There might be a lot of mistakes, so try and correct them..

-=-=-

Color profiles scripts

by [MENTION=3973516]mohitgalaxy3[/MENTION]

0