[XPERIA X8 General] sgt. meow:
TIPS AND TRICKS :)

So compiling a kernel, a bland, vanilla kernel is pretty mainstream. You want more tweaks. That's up to you to find out how you're gonna manage that. All I can do is help you with some things that'll make the kernel your very own, your precious.

Changing the name of the kernel...like completely

You want to change the name of the kernel like

xxxxx

xxx@xxx#1

[TIMESTAMP]

The xxxxx in the first line can be changed in the defconfig or in the menuconfig (easier). Go to General Setup. Then scroll down to the KERNEL_VERSION line (in menuconfig). Then change the name to anything you like (for example, X8-kernel).

The xxx@xxx#1 can also be changed. Go to /source-folder/scripts and open up the mk_compile.h file. Scroll down to line 66 and change the word within inverted commas to anything you like (for example, X8). Then in the next line, change the word within inverted commas to anything you like as well (for example, XDA).

After you flash your compiled kernel and go to Settings > About phone, you'll see

X8-kernel

X8@XDA#1

[TIMESTAMP]

I'm not sure if you can change the TIMESTAMP.

Editing CPU freqs

Editing CPU frequencies via kernel is also pretty easy (thanks fotak-x for the suggestion).

Go to /arch/arm/mach-msm and open up acpuclock.c.

Scroll to line 202 (the line which says "7x27 with GSM capable modem PLL0 and PLL1 swapped" or something) and just below that you'll see the frequency table which also has the GPU frequencies (??)

The value after { 0, is the CPU frequency, the one you want to change.

You can delete any frequency that you don't use (19MHz and so on) but don't delete 600MHz or add any beyond 864MHz. No X8 will ever go beyond that without freezing up.

The values just before the last number are the voltage units (ranging from 1 to 7). You can experiment with that too but it's better not to.

If you do not know what you are doing, please do not attempt this.

Adding/Deleting I/O schedulers

First look at this commit from DooMLorD: https://github.com/DooMLoRD/Xperia-...mmit/0ae625f7561c559d4933284f489733bf5eb66e96

I'm pretty sure you understood what you gotta do. If you still didn't, read on.

What Sir DooMLorD did was change some lines in the Kconfig.iosched of /block directory to add the Simple I/O scheduler. Then he edited the Makefile to include the building of SIO. The most important thing he did was to make a new file and paste the code that is the script that tells SIO what to do, basically it's core ingredient. You have to perform similarly and change the defconfig to include the I/O scheduler.

Deleting is way simpler than that. You just have to write n after the line in the defconfig where the inclusion of the scheduler is mentioned.

50% FPS-uncap in ICS (and JB?) kernels

It's pretty obvious that I'm referring to the nAa-ICS kernel source. Navigate to the arch/arm/mach-msm directory and open up the board-delata.c file.

Go to line 1915 (the one that begins with panel_data->panel_info.lcd.vsync_enable). Change the value to FALSE. This disables HW vSync.

Then go to line 1999 (it also begins with panel_data->panel_info.lcd.vsync_enable). Change this value to FALSE as well.

Compile the kernel as you would normally. Flash to see a slight increase in performance, and a massive improvement in gaming.

Thanks to pilu1978

That's it for now. Will be updated soon.