[Samsung Galaxy W I8150] CastagnaIT:
[KERNEL][✔ICS✔JB] CastagnaIT v11.0 (OC/UV, Governors, I/O, More feature) [11/04/2013]

​

This kernels versions (2.6 and 3.x) is based on Ivendor kernel for ICS and JellyBean (Ivendor kernel is based on Arco68 kernel)

With this kernel yours device it will come back to life! have fun!

You can help me with testing this kernel and signaling the problems to me.

If you have some request, you ask, if are able i implement it ;)

✔ Kernel version 3.0.72

✔ Compiled with Linaro 4.7.3 2013.03 optimized from Christopher

✔ Linaro O3 optimizations

✔ Snapdragon optimizations

✔ Overclock until 1804 Mhz (selectable - default 1401 Mhz)

✔ Extreme undervolted kernel version available

✔ Bigmem kernel version available with 369MB of free memory (720P video recorder does not work, but you can record with 480P)

✔ Governors: Lulzactive(v.2) (default), Ondemand, OndemandX, Interactive, InteractiveX, Powersave, Performance, SmartAssV2, MinMax, Lagfree, Savagedzen, Smoothass, Lionheart, BrazilianWax, Scary, Lazy, Intellidemand, Fantasy, Hyper

✔ I/O scheduler: ROW (default), SIO, V(r), BFQ, CFQ, Deadline, Noop

✔ CK1 Con Kolivas performance improvements

✔ Init.d support

✔ Custom AriesPart for customize kernel settings (Some menu is not available with this device)

✔ USB-OTG Host ready (mice, keyboard, for mass storage device only FAT system work)

✔ FAT and NTFS filesystem support

✔ CIFS support

✔ TUN support

✔ Increased boot speed

✔ Increased audio loudness

✔ Do Not Kill process (see**4)

✔ Improved Low Memory Killer values

✔ USB Forced Fast Charge support (see**2) (info)

✔ Speed up SD card read-write

✔ Default readahead based on the size of the connected disk

✔ VDD level sysfs interface

✔ Dynamic sync control

✔ Dynamic writeback and I/O-less dirty throttling

✔ Writeback optimized for slight best smooth performace

✔ Frandom fast random generator (with hacked random and urandom linked to frandom)

✔ Battery Life eXtender (BLX) (see**3)

✔ Stochastic Fair Blue (SFB) network scheduler

✔ Cleancache

✔ Lowered display voltage

✔ Lowered wi-fi voltage

✔ Zram swap ready (default disabled)

✔ Google snappy compression for zram

✔ SLUB memory allocator

✔ UI speed up tweaks

✔ Memory/vm tweaks

✔ ...and much more!! For detailed information read the changelog below

FEATURES OF THE OLD KERNEL 2.6 - CLICK SHOW BUTTON

✔ OC/UV until 1804 Mhz (selectable - default 1401 Mhz)

✔ Compiled with Linaro 4.7.3 2012.12

✔ Snapdragon optimizations

✔ Governors: Lulzactive(v.2) (default), Ondemand, OndemandX, Interactive, InteractiveX, Powersave, Performance, SmartAssV2, MinMax, Lagfree, Savagedzen, Smoothass, Lionheart, BrazilianWax, Scary, Lazy, Intellidemand, Wheatley

✔ I/O scheduler: SIO (default), V(r), BFQ, CFQ, Deadline, Noop, ZEN

✔ CFS (Completely Fair Scheduler) or BFS (Brian F#ck Scheduler) (see ***)

✔ 375MB of free memory!

✔ Init.d support

✔ CIFS support

✔ TUN support

✔ Increased audio loudness

✔ Fast Charge support (see**2) (info)

✔ Speed up SD card read-write

✔ Dynamic sync control

✔ Stochastic Fair Blue (SFB) network scheduler

✔ Lowered display voltage

✔ Lowered SD card voltage

✔ Lowered Wi-fi voltage

✔ Wi-fi seen lowered signals

✔ TinyRCU

✔ Zram swap ready (default disabled)

✔ SLUB memory allocator

✔ Glitch free GPU frequency changing

✔ UI speed up tweaks

✔ Memory/vm tweaks

✔ ...and other optimizations and tweaks

× 720P video recorder does not work, record only 480P

*** CFS is used on standard/stock kernel, for more detailed information read FAQ

**2 To easily activate this function uses IncrediControl or similar app / widget

**3 To easily activate this function uses NSTools or similar app / widget, or else with coming soon custom AriesPart

**4 This feature protect apps/launcher/system process from being killed by the internal Low Memory Killer.

➤You can download all versions of this kernel from the link to the folder donwload.

❓You do not know which kernel to use? Use this: I8150_3.X_JB_OC_CITKernel

⏩KERNEL FOR ICS

⏩KERNEL FOR JELLYBEAN CM10

⏩CastagnaIT - AriesPart v1.4(Some menu is not available with this device) (CWM flashable zip)

Summary filenames abbreviations:

BFS - Brian F#ck Scheduler

CFS	- Completely Fair Scheduler

BIGMEM - Version with much more memory free

OC - CPU Overclockable with slight undervolt voltages

ExUV - CPU Overclockable with extreme undervolt voltages for maximize battery longevity

Enable Zram swap (CWM flashable zip) ONLY ICS KERNEL - for info read the FAQ below

1) Copy the zip file to sdcard

2) Reboot to recovery mode and flash the file

3) Wipe cache

4) Wipe dalvik cache

5) Reboot (normal boot)

6) Reboot to recovery (again)

7) Fix permissions

8) Reboot

FAQ: (some solutions for problems.. how to... etc)

Q: What are BFS (Brian F#ck Scheduler) kernel?

A: They are task schedulers (they determine what processes get cpu time, how much, etc)

CFS (Completely Fair Scheduler) is the default scheduler in the official mainline kernel. It's a tried, tested, stable scheduler.

BFS (Brain F#ck Scheduler) is a third party scheduler written by Con Kolivas that must be patched into the kernel, and replaces the CFS scheduler. It tends to be faster in certain tasks, and is usually pretty stable, but sometimes there can be performance quirks.

In a few words:

CFS stable scheduler best at multitasking, used on all standard/stock kernel

BFS a little less stable scheduler, increased much interactivity at the cost of multitasking

Q: How to check if Zram swap running?

A: To check if it is active, open the Terminal and type FREE in the line Swap column Total should be the number 98300.

What is zram swap?

ZRAM (formerly ramzswap) is a block device which is created in your computer’s memory, or RAM. It looks and acts to the system like a disk drive.

However, this disk drive has only one function, to act as a swap disk. One difference between ZRAM and a normal swap partition is that the pages swapped to ZRAM are compressed before being stored.

This technique has two advantages. (1) More page data can be stored because the data is compressed. (2) Because the swapped memory is stored in RAM, rather than a normal disk drive, read and write access times are much quicker.

Please note the use of zram, requires a calculation twice for the CPU (compress / decompress), and may slow down some operations.

Q: How to disable Zram swap?

A: Follow this istructions:

1) Open the folder "/system/etc/init.d" (use ES File Explorer with administrator permission or similar app)

2) Delete the file "10zram"

3) Reboot

Q: How to disable the High Photo Quality?

A: Follow this istructions:

1) Open the folder "/system/etc/init.d" (use ES File Explorer with administrator permission or similar app)

2) Delete the file "22zerojpegcompression"

3) Reboot

Q: How to maximize the SDcard read/write cache?

A: Follow this istructions:

1) Flash of the kernel

2) Do wipe cache and Dalvik

3) Normal reboot

4) Restart in Recovery

5) Do a second time Wipe cache and Dalvik

6) Fix permissions

Q: DeepSleep seem not to work?

A: 1) Check usb cable/charger cable, it is not connected, otherwise remove it

2) Check if you have wifi active, disable it

3) Check if you have similar app like facebook or active services that they activate the data continuously

4) Try to disable data connection

5) If you use a custom rom they could be to me other problems that i do not know

Q: Why i don't succeed to change governor through the menu? the setting does not change.

A: If you use IncrediControl or similar app, you must only use that to change governor.

Q: Why compass does not work?

A: Need to do a Horizontal calibration, Settings > Advanced > Horizontal calibration.

Q: What is the difference between normal OC/UV kernel and the Extreme Undervolt kernel version?

A: The Extreme Undervolt kernel version have a maximized undervolted voltages, so it consumes less battery.

But it can also be that the values are to low and your phone will shut down.

A my advice is to try it if you do not have problems like shoutdown, it means your telephone supports it.

Table of the linearity of the voltages/frequencies

Q: In which order the scripts are executed in INIT.D?

A: The scripts are excuted in this order: <0-9><0-9>scriptname, <E>scriptname, <S>scriptname

Q: What are the sysfs commands to manually change the configuration?

A:

Do Not Kill Process:

Status enabled/disabled: "cat /sys/module/lowmemorykiller/parameters/donotkill_proc"

Process list names: "cat /sys/module/lowmemorykiller/parameters/donotkill_proc_names"

For change processes names: "echo 'com.cyanogenmod.trebuchet,org.adwfreak.launcher' > /sys/module/lowmemorykiller/parameters/donotkill_proc_names"

For enable: "echo 1 > /sys/module/lowmemorykiller/parameters/donotkill_proc"

For disable: "echo 0 > /sys/module/lowmemorykiller/parameters/donotkill_proc"

Do Not Kill System Process:

Status enabled/disabled: "cat /sys/module/lowmemorykiller/parameters/donotkill_sysproc"

Process list names: "cat /sys/module/lowmemorykiller/parameters/donotkill_sysproc_names"

For change processes names: "echo 'android.process.acore,android.process.voicedialer' > /sys/module/lowmemorykiller/parameters/donotkill_sysproc_names"

For enable: "echo 1 > /sys/module/lowmemorykiller/parameters/donotkill_sysproc"

For disable: "echo 0 > /sys/module/lowmemorykiller/parameters/donotkill_sysproc"

Fast Charge:

Status: "cat /sys/kernel/fast_charge/force_fast_charge"

For enable: "echo 1 > /sys/kernel/fast_charge/force_fast_charge"

For disable: "echo 0 > /sys/kernel/fast_charge/force_fast_charge"

Zram swap (this method is only for ICS kernel):

Status: "free" (see in the line Swap column Total should be the number 98300)

For enable:

mkswap /dev/block/zram0

swapon /dev/block/zram0

For disable:

swapoff /dev/block/zram0

v11.0
First CIT kernel release for CM10 - I8150
Compiled with Linaro 4.7.3 2013.03 with O3 optimizations, toolchain optimized from [URL="http://xdaforums.com/showthread.php?t=2098133"]Christopher[/URL]
New CastagnaIT AriesPart v1.4!! (installable separately)
Added Overclock / Undervolt frequencies
Added VDD level sysfs interface
Added scheduler:
ROW (v4), V(r), SIO, Deadline, Noop, BFQ
Added governors:
Smoothass, Scary, SavagedZen, Minmax, Lazy, Lagfree, BrazilianWax, Fantasy, Intellidemand, InteractiveX,
OndemandX, Powersave, Lionheart, Lulzactive, SmartAssV2, Hyper
Added dynamic sync control
Added support to NTFS and VFAT file systems
Added Snappy compression library for zram
Added USB forced fast charge
Added Init.d support
Added Tun support
Added CIFS support
Added Stochastic Fair Blue (SFB)
Added Do Not Kill process v2.3 (made by me)
Added Battery Life eXtender (BLX) (adapted by me)
Added I/O-less dirty throttling (thanks Franciscofranco for porting)
Added frandom v1.1 (fast entropy saving random number generator)
Hacked random and urandom for frandom (is now used only frandom in every situation)
Implemented CK1 Con Kolivas performance improvements
Increased audio loudness - revision 2 (trying to reduce the nasty sounds)
Increased speed of memory operations with glibc
Increased speed of SD card read-write
Increased boot speed
Updated Intellidemand governor
Improved asynchronous I/O latency
Improved TCP latency with PRR
SLUB memory allocator as default
Tweaked scheduler SIO, Deadline for SSD
Adjusted low memory killer
Slub optimized
Disabled gentle fair sleepers
Lowered display panel voltage
Lowered wi-fi voltage
Bigmem kernel ready (standard 350Mb - bigmem 369Mb)
Zram swap ready (default disabled and not tested)
Modified writeback for slight best smoothness and performance (credit franciscofranco)
Patched the default readahead now based on the size of the "disc" in order to obtain the best performance
Tweaked XZ kernel compression to have a slight increase of decompression speed on boot time
Tuned Hyper governor a little less aggressive
Changed swappiness to 40
Corrected/tuned some governor
UI speed up tweaks
Removed MMC_CAP_ERASE flag from kernel (No more samsung mmc brick bug)
Removed some ramdisk tweaks, for better compatibility with other custom rom
Fixed calculation of brightness levels
Disabled restriction on Dmesg output
Sync. kernel source with the latest changes made by Ivendor/Arco
It is probable that there are other things i forgot..
And for last the new boot logo ;)

>> ------------------- END OF 2.6.35 KERNEL RELEASES ------------------- <<

v7.5
Added bigmem as default now we have 375MB free memory (breaks only 720P video recorder)
Added ZEN scheduler
Lowered SD voltage
Lowered WiFi voltage
VFS / VM tweaks
Some other fix/tweaks
HQ photo now is enabled by default
Sync. kernel source with the latest changes made by Arco
Compiled with new Linaro 4.7.3 2012.12

v7.3
Added BFS (Brian F#ck Scheduler) (separated download)
Added Lulzactive(v.2) governor (now is the default governor)
Added Dynamic sync control
Glitch free GPU frequency changing patch (by MikeC84)
Allow low Wifi signals to be seen (by MikeC84)
Some cleaning and improvements-optimizations
Fixed bluetooth problem
Removed FSync control support

v7.0
Official release stable
NOTE: BLN is not supported because the drivers for the physical keys are missing

v7.0 TEST 3
Removed keyboard drivers

v7.0 TEST 2
Added keyboard drivers
Increased memory for the camera

v7.0 TEST
First test version for I8150

--currently not available--

Credits

CyanogenMod Team

Arco68 for his kernel

Ivendor for his kernel updates

Smeroni68 for his help to testing and support to adjust frequencies/voltage

And to all SGW and SGS+ users that helped with testing and donations

Warning: I am not responsible if takes to fire the telephone :D​