Ubuntu On Sony Vaio FW Series

Tips & Tricks related to Sony Vaio FW series laptops

Posts Tagged ‘kernel

sony-laptop patch included in 2.6.28-11.36 jaunty update

with 7 comments

Just a bit of good news. My patch was accepted into 2.6.28-11.36 jaunty kernel update.

I’m working on new brightness changing method, stay tuned.

Written by egaistek

March 21, 2009 at 03:06

Posted in Vaio

Tagged with , , , ,

Undervolt for Intrepid

with 10 comments

Well, Happy New Year! I guess this is the last post in this year, so let’s get our undervolting back with 2.6.27 kernels.

First of all go to phc.athousandnights.de and download 0.3.2 version of patch. Put this into directory where you have or will have kernel sources.

If you have not sources yet, do things like in the 4th step from the post about brightness:

sudo apt-get build-dep linux-source-2.6.27
sudo apt-get install linux-source-2.6.27
cp /usr/src/linux-source-2.6.27.tar.bz2 ./
tar jxvf linux-source-2.6.27.tar.bz2
cd linux-source-2.6.27

Put linux-phc-0.3.2-kernel-vanilla-2.6.26.patch.tar.gz in your current dir (linux-source-2.6.27) and unpack it, then patch the kernel sources:

tar zxvf linux-phc-0.3.2-kernel-vanilla-2.6.26.patch.tar.gz
patch -p1 < linux-phc-0.3.2-kernel-vanilla-2.6.26.patch [/sourcecode] Now go into cpufreq module dir and compile it and then install new compiled version: [sourcecode language="python"] cd arch/x86/kernel/cpu/cpufreq/ make -C /lib/modules/`uname -r`/build/ M=`pwd` modules strip --strip-debug acpi-cpufreq.ko sudo install -m644 -b acpi-cpufreq.ko /lib/modules/`uname -r`/kernel/arch/x86/kernel/cpu/cpufreq [/sourcecode] Now reboot and check for module success: [sourcecode language="python"] cat /sys/devices/system/cpu/cpu0/cpufreq/phc_vids [/sourcecode] If you see voltage numbers then you can start optimizing voltages for your cpu or take mine as reference from the previous post about undervolting.

P.S. Fan almost stops at 40C and starts at 50C.

Written by egaistek

December 27, 2008 at 04:24

Posted in Vaio

Tagged with , , , , ,

Finally a brightness How To for Vaio FW Series

with 230 comments

WARN: This how to is only for laptops with Ati graphics. Do not apply any changes to DSDT if you have Intel graphics.

WARN: Remember, when you update your kernel, you should remake all this again for new kernel.

WARN: DSDT update cause kernel panic during boot on 64bit kernels <= 2.6.27-9. Use noacpi option in grub to boot without DSDT.

UPD: S1/AV mode keys are enabled in new patch for sony-laptop module.

Hello there guys. Long time no updates, and here is a big one )

Thanks to Anze for pointing me to 11682 bug. I have managed to make easy howto on enabling brightness control.

First of all we need to install iasl and acpidump:


sudo apt-get install acpidump iasl

Second, download my patches (alternate link). And unpack it somewhere. Then go into that directory in your terminal.

Third, we need to patch our default DSDT table:

UPD: If you have Sony Vaio FW2xx or FW2x models, please use dsdt-error-fw21.patch and dsdt-ati-fix-fw21.patch here.

UPD: If you have Sony Vaio FW3xx or FW3x models, use dsdt-error-fw21.patch then dsdt-error.patch and then dsdt-ati-fix-fw21.patch here.

sudo acpidump -b -t DSDT -o DSDT.aml
iasl -d DSDT.aml
sudo rm DSDT.aml
patch < dsdt-error.patch
patch < dsdt-ati-fix.patch
iasl DSDT.dsl
sudo cp DSDT.aml /etc/initramfs-tools/
sudo dpkg-reconfigure linux-image-`uname -r`
&#91;/sourcecode&#93;

Here we dumped our DSDT table and then decompilled it. Then patched with <strong>dsdt-error.patch</strong>, this patch fix wrong name ("_T_0") produced by disassembler. Without this patch we can not recompile this table back. Then we patch with <strong>dsdt-ati-fix.patch</strong>, this is the actual fix made by <strong>Zhang Rui</strong> from bugzilla, and recompile table back. And then we put our patched DSDT into initramfs, to allow kernel load it instead of original DSDT.

Fourth, we need to patch <strong>sony-laptop</strong> module to make our Fn keys for brightness work correctly:

<span style="color:#ff0000;">UPD</span>: If you have Jaunty kernel version &gt;= 2.6.28-11.36, do not do this step, this patch is included already.

Install kernel source and all packages needed for compiling it (who knows a better way to not download so many packages by build-dep? or build-essential is enough).


sudo apt-get build-dep linux-source-2.6.27
sudo apt-get install linux-source-2.6.27
cp /usr/src/linux-source-2.6.27.tar.bz2 ./
tar jxvf linux-source-2.6.27.tar.bz2
cd linux-source-2.6.27

Then put here (linux-source-2.6.27) sony-laptop.patch patch and make this:

patch -p0 < sony-laptop.patch
cd drivers/misc/
make -C /lib/modules/`uname -r`/build/ M=`pwd` modules
strip --strip-debug sony-laptop.ko
sudo install -m644 -b sony-laptop.ko /lib/modules/`uname -r`/kernel/drivers/misc
&#91;/sourcecode&#93;

This will compile and install our new patched <strong>sony-laptop</strong> module.

Now we need to reboot.

After rebooting we can check if all ok:


dmesg | grep -i sony-laptop
dmesg | grep -i dsdt

We should get something like this:

[   16.045201] sony-laptop: Sony Notebook Control Driver v0.6.
[   16.190130] sony-laptop: detected Sony Vaio FW Series

and this:

[    0.000000] ACPI: DSDT BFE06010, 8016 (r1   Sony     VAIO 20080605 INTL 20051117)
[    0.044471] ACPI: Checking initramfs for custom DSDT
[    0.359780] ACPI: Found DSDT in DSDT.aml.
[    0.359785] ACPI: Override [DSDT-    VAIO], this is unsafe: tainting kernel
[    0.359793] ACPI: Table DSDT replaced by host OS

Now try to use Fn brightness keys. This should work =)

Color your Sony Vaio laptop Thinnest Laptop Ever Free Laptop

Written by egaistek

December 4, 2008 at 12:08

Posted in Vaio

Tagged with , , , , ,

4Gb Ram

with 8 comments

If you have 4Gb ram installed, you probably see only 3Gb in System Monitor.
To make your system see all 4Gb you need to install a version of kernel for servers.


sudo apt-get install linux-image-2.6.24-21-server linux-ubuntu-modules-2.6.24-21-server

Then reboot to this kernel. That’s the newest version at the moment for Hardy.

Written by egaistek

September 11, 2008 at 03:16

Posted in Vaio

Tagged with , ,