[Samsung Galaxy Player 4.0, 5.0] Dark_Balor:
TerraSilent 1.3.5

​

After a lot of testing I can release it

THIS IS ONLY FOR THE INTL AND USA VERSION OF THE GALAXY PLAYER 4.0 (YP-G1).

The kernel is based on the R3 version of Klin1344.

Current features :

All features of R3 of Klin Kernel (see below)

Battery life improvement using the patch of Entropy512

Jhash3

Optimized CFS (process scheduler)

A lot of memory tweak

TinyRCU

New Governor created for the kernel (based on smartassV2) : TerraSilent (I recommend you to use it)

CleanCache (using zCache) (see below for explanation)

zRam (see below for explanation)

Updated crc32 algorithm (that is quite used everywhere in the kernel)

Using optimized Sha1 algorithm

Lzma compressed initramfs

Swap enabled

New Boot logo (same image (but bigger) as the one in the begin of the Thread)

Feature Coming from based kernel :

V(R), BFQ, SIO Scheduler

OC to 1.2GHz

ClockWorkMod (recovery)

interactiveX, smartassV2, ondemandX, and the default governors.

Netarchy/coolbho3ks SoD patch from Entropy512's source (allows you to use screen off profiles of under 800Mhz)

Ext4 support

Voodoo Sound

etc ... see http://xdaforums.com/showthread.php?t=1601773

Changelog

Version 1.3.5

[RECOVERY] Optimization of the recovery with better use of the busybox

[RECOVERY] Can save the /dbdata partition in nandroid

[USA] Added VOODOO FM

Version 1.3

[CHANGE] Zram built-in not a module anymore

[BUSYBOX] Updated busybox to last version 1.20.1 meaning any init.d script will be launched with that version.

Version 1.2

[MAJOR BUG FIX]Corrected a bug with the recovery that wasn't able to mount correctly the /data partition, it was leading to a complete wipe of data when applying ZIP that needed that partition to be mounted

[OPTIMIZATION]Using LZO Compression for ZRam also, after some test, I discover that Snappy compression is not really optimized on our device.

Feature Explanation :

How to tweak/activate special features

By default zCache and zRam are disabled

because they can be unstable depending on the device.

By example, I don't have problem with zCache but with zRam yes, and Klin the exact opposite. The better is to try for your device and then choose which one you want, the 2 or none.

zCache :

To activate zCache, you only need to put a script in your init.d directory (in etc) or using ScriptManager to launch that line on boot :

insmod /lib/modules/zcache.ko

zRam:

To activate zRam, you only need to put a script in your init.d directory (in etc) or using ScriptManager to launch theses lines on boot :

mkswap /dev/block/zram0
swapon /dev/block/zram0

Changing by script the governator to TerraSilent

if you don't want to use (but I recommend noFrill Cpu to do that) an application to change the governator, you just need to do :

echo terrasilent > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Tweaking TerraSilent

in /sys/devices/system/cpu/cpufreq/terrasilent you'll find these files :

debug_mask --> for debug (possible value 0(disabled),1,2,4)
up_rate_us --> µs to wait before ramp up
down_rate_us --> µs to wait before ramp down
sleep_ideal_freq --> Freq used when sleeping/suspend
sleep_wakeup_freq --> Freq use when waking up
awake_ideal_freq --> Freq ideal for daily usage
sample_rate_jiffies --> DON'T TOUCH UNLESS YOU KNOW WHAT YOU ARE DOING
ramp_up_step --> step used when ramp up in Hz (to calcule the new frequency) (0 = maximum freq will be used when ramp up)
ramp_down_step --> step used when ramp down in Hz (to calcule the new frequency) (0 = using heuristic to found the best new lowered freq)
max_cpu_load --> max load that trigger the freq change for ramp up
min_cpu_load --> min load that trigger the freq change for ramp down

Where you can put your own values. (You have to do that after every boot, the best is to create a script that change the governor to TerraSilent, and set the wanted values)

FAQ

How to create a script

With ScriptManager it's easy, just push the menu button -> New -> Script

Put the script lines you want

Menu -> save

That's done

Manually : create a file name my-script.sh

put as first line :

#! /system/bin/sh

and then what you want your script to do.

Don't forget to do a

chmod +x my-script.sh

to make it executable.

Download (ODIN PACKAGES) :

http://www.mediafire.com/?cf9aw48dnmiqi

Source Code

Kernel : https://github.com/Belphemur/Galaxy-Player-4.0-Kernel

Initramfs : https://github.com/Belphemur/initramfs_yp-g1

If you love my work, don't hesitate to click the thanks button :)

Thanks to

Steve for the first modded kernel of our device

Klin1344 for continuing, improving the work of Steves and testing my kernel for the USA version.

Entropy512 for the battery patch, and a lot of other tweak

Faux123 for all the patch he have backported to the 2.6.35 kernel (zCache, zRam, etc ...)