[Sony Xperia P, U, Sola, Go] etch04:
HOW TO:

Here are some intructions/tips about how to play with the kernel.

Terminal is needed.

If you want to change the values,it needs su permission.

If you get 'Permisson denied',you need su permisson.

If the devices lost responses,hold power button 8s to reboot.

You can cd to the folder first,then do echos.

( CPU Freqs )

With DVFS,we cannot tweak min/max scale freqs via apps like SetCPU or nofrill.

but there are two ways you can change cpu freq:

by using this app

or

by using terminal

For example: set 800Mhz as max limited

* When you switch on/off,power saving mode,this tweak will be overrided.

* If you want it to be permanet edit 05exp file in init.d.

No-fills CPU shows a wrong freqs

ABBamp Audio

Please note that listening to too high volume music over 1 hour or more can damage your ears.

Too high volume can make your external speakers/headset overload or damage them.

First, why do i call it `AMP`?

Because most of our tweaks are about gain(volume)

Our codec is simple, It doesn't have any hardware EQ (although i want...)

ABBamp sysfs entries are in:

Quote:

* Use RootExplorer to view this folder,there are lots files

Tweaks will take effects immediately!

Most tweaks will accept inputs like "on", "off" (no quotes)...

So, say "on" to enable this tweak, then this tweak will apply the value stored/inputed

View(cat) these files, most of them will give you useful infomation about this tweak.

They will show you the volume in dB of gain

`cd` to /sys/kernel/abbamp first then do echos, will be more convenient.

[AnaGain3] (Headset analog gain path):

Enable tweaks:

Disable tweaks:

Gain control: (min:0 ,max: 15) Lower value,higher volume (default: 0[+4dB])

Write both left and right channels:

Not Killable Processes

This feature allows to define processes and system processes white-lists filled with the preferred process names and to not be killed by lowmemorykiller, unless it is absolutely necessary.

[APP][ROOT][4.0+] Performance Control - Open Source

Logcat

I have made android logger(logcat) as module to free more RAM.

Create a new init.d script:

Quote:

Then you can use logcat command.

EGL Driver

To use Mali hardware egl driver only:

Edit /system/lib/egl.cfg

Quote:

To

Quote:

Init.d script

Please install busybox in system first

I recommend you install busybox via apps

Create a new folder named 'init.d' in /system/etc

Set the permisson of init.d foler to 0777(rwxrwxrwx) (at least has read and exec permission)

Set the owner to 0.0 (root root)

Put some scripts (any name you like) in init.d folder with permisson 0777 (rwxrwxrwx) (at least has read and exec permission)

Scripts with right permisson will be runned when system boots.

zRAM/SWAP

zRAM is optimized for Android. It is not lazy anymore.

Using zRAM will take a little CPU, because it needs to compress/decompress memory.

Recommended compressing about 18% of RAM, about 100 mb.

Setup disksize first: (example: 96mb= 96×1024×1024)

* Larger size more RAM will be compressed.

* Too large size might make phone lag

To enable:

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

To check how many does it use:

* We can get other info in its sysfs

[SWAP]

1. Format/resize external SDCard via computer first.

Enable:

2. Using a FILE as swap RAM: (Create a continuity file first)

Then we will have an 80mb swap RAM.

Last_dmesg

Some Help about posting kernel bugs -last_kmsg:

After you have a random reboot do this to get last_kmsg.txt file:

- via Terminal Emulator apk form play store : do

this:

Open the app, type:

hit enter.

type(withoutall the spaces) :

and hit enter.Then go to your internal memory with any

file explorer and you will finde the last_kmsg file

and please post it here.

UKSM

UKSM is more advanced than KSM algorithm which is developed by Chinese.

UKSM is faster 20x than KSM, and it has been disabled by default.

Here is a document about HOW-TO use UKSM in its WebSite.

http://kerneldedup.org/en/projects/u...ge/usage0-1-2/

if you want stop uksm run:

for (re)activating:

* I have set cpu_governor mode to quiet by default in order to get smooth.

* If feel laggy, try to disable UKSM.