[Samsung Galaxy Nexus] heXacode:
ROM: PA beta 4.1

Kernel: SmittyV 3.8.14

Issue: Screen freeze, never resolved itself

Solution: Battery pull

2nd issue: bootloop, graphic glitch Google logo splash screen

Solution: battery pull

3rd issue: graphic glitch Google logo splash screen and same freeze up

Time: 8:31am

What I was doing when it happened: unplugged from charger, was looking at some /proc/ files, downloading app from play store, switching last_kmsg to .txt to be read in QuickOffice since file was too large for Solid Explorer to read inside app. This last_kmsg was before issue probably not pertaining to 3.8.14 SmittyV kernel

Last_kmsg before issue:

https://www.dropbox.com/s/va0ic78mmirf2vj/unknown_last_kmsg.txt

3.9.14 8:31am last_kmsg:

https://www.dropbox.com/s/5vu6f3w4mxp5h10/3_9_14_last_kmsg.txt

What I used to tweak kernel:

Buescher's script changed to my preference

Script preference:

#!/system/bin/sh

# chmod -R 755 /system/etc/init.d

# wait for android os

until [ `pidof com.android.systemui` != "" ]; do

sleep 1

done;

sleep 20;

# disable sysctl.conf to prevent ROM interference

if [ -e /system/etc/sysctl.conf ]; then

mount -o remount,rw /system;

mv /system/etc/sysctl.conf /system/etc/sysctl.conf.fkbak;

mount -o remount,ro /system;

fi;

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set CPU frequencies

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set Min Freq

echo "230000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo "230000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

# Set Max Freq

echo "1350000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "1350000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq

# Screen Off Max Freq (for glitch-free music play)

echo "525000" > /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq

echo "525000" > /sys/devices/system/cpu/cpu1/cpufreq/screen_off_max_freq

# Screen On Min Freq

echo "230000" > /sys/devices/system/cpu/cpu0/cpufreq/screen_on_min_freq

echo "230000" > /sys/devices/system/cpu/cpu1/cpufreq/screen_on_min_freq

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set CPU governor and tunales

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set Interactive Governor

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

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

# Set Governor Settings

chmod 664 /sys/devices/system/cpu/cpufreq/interactive/*

echo "40000" > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay

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

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

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

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

echo "525000" > /sys/devices/system/cpu/cpufreq/interactive/input_boost_freq

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

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

echo "1" > /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor

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

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

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

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set I/O governor and tunables

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set zen as governor

echo "zen" > /sys/block/mmcblk0/queue/scheduler

# Set Read Ahead KB

echo "384" > /sys/block/mmcblk0/queue/read_ahead_kb

# General I/0 Tunables

echo "0" > /sys/block/mmcblk0/queue/add_random

echo "0" > /sys/block/mmcblk0/queue/iostats

echo "0" > /sys/block/mmcblk0/queue/nomerges

echo "0" > /sys/block/mmcblk0/queue/rotational

echo "2" > /sys/block/mmcblk0/queue/rq_affinity

# I/O Scheduler Tunables

echo "2500" > /sys/block/mmcblk0/queue/iosched/async_expire

echo "0" > /sys/block/mmcblk0/queue/iosched/fifo_batch

echo "304" > /sys/block/mmcblk0/queue/iosched/sync_expire

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set TCP congestion control

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set TCP Congestion Control to Westwood

/system/xbin/sysctl -w net.ipv4.tcp_congestion_control=westwood

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set Colors

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Disable Safety

echo 0 > /sys/class/misc/colorcontrol/safety_enabled

# Trinity Gamma

echo "-16" > /sys/devices/platform/omapdss/manager0/gamma

# Contrast

echo "6" > /sys/module/panel_s6e8aa0/parameters/contrast

# Gamma Offset

echo "0 0 0" > /sys/class/misc/colorcontrol/v1_offset

# Color Multiplier

echo "1960000000 1970000000 2750000000" > /sys/class/misc/colorcontrol/multiplier

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Misc Settings

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Enable Content Adaptive Brightness

echo "1" > /sys/class/backlight/s6e8aa0/acl_set

# Enable Fast Charge

echo "1" > /sys/kernel/fast_charge/force_fast_charge

# Don't OC GPU (set to 2 for OC to 512MHz)

echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc

echo "0" > /sys/devices/system/cpu/cpu1/cpufreq/gpu_oc

# Set Headphone Volume Boost to 2

echo "1" > /sys/devices/virtual/misc/soundcontrol/volume_boost

# Set High Performance Sound to Enabled

echo "1" > /sys/class/misc/soundcontrol/highperf_enabled

# Disable Dynamic FSYNC

echo "0" > /sys/kernel/dyn_fsync/Dyn_fsync_active

# Set Multicore Power Saving to 0

echo "0" > /sys/devices/system/cpu/sched_mc_power_savings

# Enable Intelliplug

#echo "0" > /sys/module/intelli_plug/parameters/intelli_plug_active

# Enable ECO Mode

#echo "0" > /sys/module/intelli_plug/parameters/eco_mode_active

# Disable uksm (can cause battery drain)

echo "0" > /sys/kernel/mm/uksm/run

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# Set Minfree Values

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

chmod 664 /sys/module/lowmemorykiller/parameters/minfree

echo "2560,5120,25600,30720,24320,49920" > /sys/module/lowmemorykiller/parameters/minfree