Ubuntu On Sony Vaio FW Series

Tips & Tricks related to Sony Vaio FW series laptops

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 , , , , ,

230 Responses

Subscribe to comments with RSS.

  1. […] leave a comment » You probably saw that blog is suspended. I have wrote to support, and they say it was a system error. Now it’s back. Don’t forget to check last post about brightness. […]

  2. Hi, gave this a go on my FW21E. Unfortunately the first patch failed to apply:

    patching file DSDT.dsl
    Hunk #1 FAILED at 8226.
    1 out of 1 hunk FAILED — saving rejects to file DSDT.dsl.rej

    Any ideas what might be wrong?

    Joc

    December 6, 2008 at 05:33

    • Try the second patch dsdt-ati-fix.patch, your DSDT maybe do not need the first one. If this fail too, send me your DSDT.dsl.

      egaistek

      December 6, 2008 at 12:11

  3. The second patch applied ok, but the recompile stage failed. I tried doing a Find & Replace on _T_0 in my DSDT.dsl file. This allowed me to do the recompile and I completed the rest of the steps.

    Unfortunately, although the gnome brightness display moves when I press the Fn keys the screen brightness does not actually appear to change.

    Joc

    December 6, 2008 at 17:56

  4. show me your output of dmesg | grep -i dsdt

    egaistek

    December 6, 2008 at 18:35

  5. [ 0.000000] ACPI: DSDT BDF06010, 8182 (r1 Sony VAIO 20080725 INTL 20051117)
    [ 0.010339] ACPI: Checking initramfs for custom DSDT
    [ 0.482979] ACPI: Found DSDT in DSDT.aml.
    [ 0.482984] ACPI: Override [DSDT- VAIO], this is unsafe: tainting kernel
    [ 0.482993] ACPI: Table DSDT replaced by host OS
    [ 0.482997] ACPI: DSDT 00000000, 7984 (r1 Sony VAIO 20080725 INTL 20061109)
    [ 0.483002] ACPI: DSDT override uses original SSDTs unless “acpi_no_auto_ssdt”
    [ 0.645466] ACPI: EC: Look up EC in DSDT

    Joc

    December 6, 2008 at 20:36

  6. This looks fine to me. Can you give me your DSDT.aml compiled after patching and your DSDT.dsl before you patched it.
    And show the output of find /proc/acpi/video

    egaistek

    December 6, 2008 at 20:50

  7. Do you have somewhere i can email the files to? (Send it to the address i have used to comment if you like)

    The output of find /proc/acpi/video is:
    /proc/acpi/video
    /proc/acpi/video/GFX0
    /proc/acpi/video/GFX0/DD05
    /proc/acpi/video/GFX0/DD05/EDID
    /proc/acpi/video/GFX0/DD05/brightness
    /proc/acpi/video/GFX0/DD05/state
    /proc/acpi/video/GFX0/DD05/info
    /proc/acpi/video/GFX0/DD04
    /proc/acpi/video/GFX0/DD04/EDID
    /proc/acpi/video/GFX0/DD04/brightness
    /proc/acpi/video/GFX0/DD04/state
    /proc/acpi/video/GFX0/DD04/info
    /proc/acpi/video/GFX0/DD03
    /proc/acpi/video/GFX0/DD03/EDID
    /proc/acpi/video/GFX0/DD03/brightness
    /proc/acpi/video/GFX0/DD03/state
    /proc/acpi/video/GFX0/DD03/info
    /proc/acpi/video/GFX0/DD02
    /proc/acpi/video/GFX0/DD02/EDID
    /proc/acpi/video/GFX0/DD02/brightness
    /proc/acpi/video/GFX0/DD02/state
    /proc/acpi/video/GFX0/DD02/info
    /proc/acpi/video/GFX0/DD01
    /proc/acpi/video/GFX0/DD01/EDID
    /proc/acpi/video/GFX0/DD01/brightness
    /proc/acpi/video/GFX0/DD01/state
    /proc/acpi/video/GFX0/DD01/info
    /proc/acpi/video/GFX0/DOS
    /proc/acpi/video/GFX0/POST
    /proc/acpi/video/GFX0/POST_info
    /proc/acpi/video/GFX0/ROM
    /proc/acpi/video/GFX0/info
    /proc/acpi/video/VGA
    /proc/acpi/video/VGA/DFP1
    /proc/acpi/video/VGA/DFP1/EDID
    /proc/acpi/video/VGA/DFP1/brightness
    /proc/acpi/video/VGA/DFP1/state
    /proc/acpi/video/VGA/DFP1/info
    /proc/acpi/video/VGA/TV
    /proc/acpi/video/VGA/TV/EDID
    /proc/acpi/video/VGA/TV/brightness
    /proc/acpi/video/VGA/TV/state
    /proc/acpi/video/VGA/TV/info
    /proc/acpi/video/VGA/CRT
    /proc/acpi/video/VGA/CRT/EDID
    /proc/acpi/video/VGA/CRT/brightness
    /proc/acpi/video/VGA/CRT/state
    /proc/acpi/video/VGA/CRT/info
    /proc/acpi/video/VGA/LCD
    /proc/acpi/video/VGA/LCD/EDID
    /proc/acpi/video/VGA/LCD/brightness
    /proc/acpi/video/VGA/LCD/state
    /proc/acpi/video/VGA/LCD/info
    /proc/acpi/video/VGA/DOS
    /proc/acpi/video/VGA/POST
    /proc/acpi/video/VGA/POST_info
    /proc/acpi/video/VGA/ROM
    /proc/acpi/video/VGA/info

    Joc

    December 7, 2008 at 05:01

  8. Seems fine too. Do you use fglrx driver?
    You can upload files onto filefactory.com or another site like this and post links here.

    egaistek

    December 7, 2008 at 05:55

  9. Egaistek, I can’t thank you enough! I tried this out and it works beautifully. The only issue I am having is that my ‘brightness +’ key is missmapped somewhere and doesn’t work. The ‘brightness -‘ works perfectly. I just need to figure out how to reset the keymapping for KDE.
    Oh well, I can still use guidance power manager or the console to adjust brightness in the mean time.

    Again, Thank you

    Tamagotono

    December 7, 2008 at 12:43

  10. yeah, finally the brightness works on my vaio FW11M. thanks, Egaistek!

    ivan

    December 7, 2008 at 16:39

  11. Tamagotono, I’m not using KDE, so dunno what’s wrong there with keys. I thought if you patch sony-laptop module, KDE will understand it like Gnome did =)

    ivan, Русские везде? +)

    egaistek

    December 7, 2008 at 16:59

  12. Thanks!!!!!!!!!!!! I was really dying with the brigthness always in the max, and my battery too 😉

    Vanio

    December 7, 2008 at 19:01

  13. Yes, I am using fglrx from Intrepid restricted drivers manager. Here are the file links:

    http://www.filefactory.com/file/95c898/n/DSDT_dsl_orig
    http://www.filefactory.com/file/b6b2da/n/DSDT_aml

    Thanks for all the help.

    Joc

    December 7, 2008 at 22:57

  14. I have the same problem as Joc

    “The second patch applied ok, but the recompile stage failed. I tried doing a Find & Replace on _T_0 in my DSDT.dsl file. This allowed me to do the recompile and I completed the rest of the steps.”

    the recompile failed how and what do I find and replace to get it to recompile? Thank you in advance.

    dwade

    December 7, 2008 at 23:09

  15. Sorry, here is my
    output of dmesg | grep -i dsdt

    [ 0.000000] ACPI: DSDT 9DF06010, 8182 (r1 Sony VAIO 20080725 INTL 20051117)
    [ 0.020599] ACPI: Checking initramfs for custom DSDT
    [ 0.477289] ACPI: EC: Look up EC in DSDT

    I am a real noob so thank you so much for this help

    dwade

    December 7, 2008 at 23:16

  16. Egaistek, Your patch works just like it should. When I run xev I can see that the keys are returning unique keycodes, but they are mapped to “XF86STOP” and “XF86FORWARD” I have a feeling it is one of the remaining bugs in KDE4.1. I have been able to map other keys to do the same function, so I am able to get by until I figure out the proper fix.

    Again, thank you!

    Tamagotono

    December 8, 2008 at 03:27

  17. Hi,

    Thanks I managed to change the brightness from my laptop!!

    The only problem is that amount is not saved when I shut down and I have to scroll brightness down each time I reboot my computer… do you know how could I fix this?

    Thanks,

    josepcoves

    December 9, 2008 at 05:00

  18. josepcoves, brightness is set to default value after reboot, you can change it in power management preferences (right click on battery in tray).
    I guess we can save last set value and then restore it after reboot with scripts etc, I’ll think about it then.

    dwade, if the first patch not work for you, which laptop model do you have? the same is Joc have?

    Tamagotono, yea, seems bug somewhere, because Gnome see this keys as XF86MonBrightnessUp/Down.

    Joc, I’ll see what I can do.

    egaistek

    December 9, 2008 at 05:40

  19. Excellent! Workd like a charm!

    One thing though. I know it’s a miles of work but… I would love to see this packaged in proper patch form. Command line would even be nice and some simple graphical version would be awesome and would really help the people who are just stumbling into the world of Ubuntu and happen to have VAIO in front of them. Let’s face it, for normal user, command line is something rather scary. Hell, I wouldn’t want to use it myself either.

    Mikko Tikkanen

    December 9, 2008 at 21:21

  20. Egaistek, Joc:
    I`m also having Sony Vaio FW Series Notebook… VGN-FW21M exactly. For me also first patch doesn’t work. It ends with the same error message like Joc’s… Is there any possibility to handle that?

    mike

    December 9, 2008 at 22:40

  21. Hi egaistek thanks for your answer, but I cannot find anywhere under managment preferences to store brightness… how would you do it using scripts?
    I found this but doesn’t work:

    sudo spicctrl –setbrightness=10

    Thanks

    josepcoves

    December 9, 2008 at 23:00

  22. Thanks a lot, it works fine with Ubuntu but not with Kubuntu sadly.
    Thanks anyway.

    Giorgos

    December 10, 2008 at 05:13

  23. I have the VGN-FW290.

    dwade

    December 10, 2008 at 05:46

  24. Giorgos, I am running Kubuntu and it is working fine on my VGN-FW139E/H laptop. The keys do not map properly but you can still use the slider in guidance-power-manager to adjust it.

    Tamagotono

    December 10, 2008 at 13:31

  25. Hey, it worked flawlessly! Thank you very much!

    Carlos

    December 10, 2008 at 20:56

  26. Hi all

    I’ve tried also, on a fw21z, same error has Joc, I stopped there.
    quick tip for those in my case, and using compiz, in the module “opacity, brightness and saturating”, you can configure to lower the brightness a little of all windows, menus… It helps a lot the eyes, if not the battery

    Thanks anyway Egaistek for all this work, very useful

    Nirgal

    December 11, 2008 at 23:18

  27. egaistek

    December 11, 2008 at 23:39

  28. 21e, 21m, 21z, 290 guys, I have added patches for this laptops in the same archive, please re download and test it. Seems you have new bios version, does virtualization is turned on there?

    patch < dsdt-error-fw21.patch patch < dsdt-ati-fix-fw21.patch [/sourcecode]

    egaistek

    December 12, 2008 at 00:19

  29. I tried the new patch and still no control. Did I do something wrong?

    dmesg | grep -i dsdt output

    [ 0.000000] ACPI: DSDT 9DF06010, 8182 (r1 Sony VAIO 20080725 INTL 20051117)
    [ 0.020600] ACPI: Checking initramfs for custom DSDT
    [ 0.343071] ACPI: Found DSDT in DSDT.aml.
    [ 0.343076] ACPI: Override [DSDT- VAIO], this is unsafe: tainting kernel
    [ 0.343083] ACPI: Table DSDT replaced by host OS
    [ 0.343086] ACPI: DSDT 00000000, 7984 (r1 Sony VAIO 20080725 INTL 20061109)
    [ 0.343092] ACPI: DSDT override uses original SSDTs unless “acpi_no_auto_ssdt”
    [ 0.481290] ACPI: EC: Look up EC in DSDT

    dwade

    December 12, 2008 at 05:11

  30. No more error in the process, but no effect at the end, brightness doesn’t work.
    for dmesg | grep -i sony-laptop , I have:

    [ 18.032760] sonypi: please try the sony-laptop module instead and report failures, see also http://www.linux.it/~malattia/wiki/index.php/Sony_drive

    and for dmesg | grep -i dsdt output:

    dmesg | grep -i sony-laptop

    dunno if that can help…

    Nirgal

    December 12, 2008 at 05:49

  31. Try this:

    sudo su
    echo 1 > /sys/class/backlight/acpi_video1/brightness
    echo 1 > /sys/class/backlight/acpi_video0/brightness
    

    Does brightness change?

    P.S. Do not do sudo echo this will not work.

    egaistek

    December 12, 2008 at 05:50

  32. Nirgal this seems you have no sony-laptop module loaded, do this and check dmesg then:

    sudo modprobe -r sony-laptop
    sudo modprobe sony-laptop
    

    egaistek

    December 12, 2008 at 05:57

  33. Mikko Tikkanen, about the packaging. Well you see that there is problems with different bios versions etc. We can contact sony-laptop author to update it with patch, but again, this patch without patching DSDT is almost nothing. But again we can write shell script which can check bios/model version with dmidecode --type system and download needed packages/sources for compiling. If you want to help, let’s try =)

    egaistek

    December 12, 2008 at 06:02

  34. Why does sony-laptop.ko not exist for me? I find it rather strange. Please help as I’m rather intimidated by command lines

    ScopeJim

    December 12, 2008 at 14:47

  35. Egaistek : I had not answer from the terminal when doing those commands, and same error after
    Is it possible that the sony-laptop module isn’t installed ?
    I wasn’t able to find anything about this module
    I’ll try later to do a second time the whole thing to see if anything changes

    Nirgal

    December 12, 2008 at 22:44

  36. You can check if it’s installed or not by:

    modinfo sony-laptop
    

    Or you can load Ubuntu live cd and check it there. Maybe you did something wrong with your system, because it should be installed by default.

    egaistek

    December 13, 2008 at 01:07

  37. Nirgal, there should not be any output, check dmesg | grep -i sony-laptop after that commands.

    egaistek

    December 13, 2008 at 01:09

  38. Thanks for the help. I figured I hadn’t installed the linux-source properly. Do you have a forum to visit btw or just the Ubuntu forums?

    Scopejim

    December 13, 2008 at 02:21

  39. I’m on Ubuntu forums, but I have not any threads there.

    egaistek

    December 13, 2008 at 02:38

  40. I have tried your new patches and everything applies fine but brightness still does not change.

    Applying the two echo commands in your post above DOES reduce the brightness of my screen.

    How should i go about revert the brightness of the screen?

    Joc

    December 13, 2008 at 03:04

  41. Now try to delete patched DSDT.aml from /etc/initramfs-tools/ and reconfigure kernel by:

    sudo rm /etc/initramfs-tools/DSDT.aml
    sudo dpkg-reconfigure linux-image-`uname -r`
    

    Then reboot and try that echo commands again, does it change brightness again?

    To revert back use echo 8 instead of echo 1

    8 is highest brightness, 1 is lowest.

    egaistek

    December 13, 2008 at 03:13

  42. Nope, no change in brightness this time. There also does not appear to be a /sys/class/backlight/acpi_video1 directory.

    Joc

    December 13, 2008 at 03:37

  43. Does brightness changed when you echoed in acpi_video0 or acpi_video1 the first time?

    egaistek

    December 13, 2008 at 05:27

  44. Can you try to compile this DSDT and show output of this commands:

    find /proc/acpi/video
    find /sys/class/backlight
    

    and try this:

    sudo su
    echo 16 > /proc/acpi/video/VGA/LCD/brightness
    echo 8 > /sys/class/backlight/acpi_video0/brightness
    exit
    

    If this change brightness, you can try Fn keys and slider in power manager.

    egaistek

    December 13, 2008 at 05:54

  45. the modinfo return me this
    “filename: /lib/modules/2.6.27-9-generic/kernel/drivers/misc/sony-laptop.ko
    depends:
    vermagic: 2.6.27-9-generic SMP mod_unload modversions 586”
    so the sony-laptop seems to be installed
    after the two commands before (modprode) I have still the same error for “dmesg | grep -i sony-laptop”

    The Fn’s and gnome brightness applet do not work, but when doing the echo commands the brightness is changing

    Nirgal

    December 13, 2008 at 17:28

  46. ># iasl DSDT-21.dsl

    Intel ACPI Component Architecture
    ASL Optimizing Compiler version 20061109 [May 16 2007]
    Copyright (C) 2000 – 2006 Intel Corporation
    Supports ACPI Specification Revision 3.0a

    DSDT-21.dsl 8377: Method (SNF5, 1, NotSerialized)
    Warning 1086 – ^ Not all control paths return a value (SNF5)

    DSDT-21.dsl 8412: Method (SNF7, 1, NotSerialized)
    Warning 1086 – ^ Not all control paths return a value (SNF7)

    DSDT-21.dsl 8595: Method (SNFE, 1, NotSerialized)
    Warning 1086 – ^ Not all control paths return a value (SNFE)

    ASL Input: DSDT-21.dsl – 8846 lines, 289000 bytes, 3963 keywords
    AML Output: DSDT.aml – 31091 bytes 1051 named objects 2912 executable opcodes

    Compilation complete. 0 Errors, 3 Warnings, 0 Remarks, 1042 Optimizations

    Joc

    December 13, 2008 at 19:53

  47. ># find /proc/acpi/video
    /proc/acpi/video
    /proc/acpi/video/GFX0
    /proc/acpi/video/GFX0/DD05
    /proc/acpi/video/GFX0/DD05/EDID
    /proc/acpi/video/GFX0/DD05/brightness
    /proc/acpi/video/GFX0/DD05/state
    /proc/acpi/video/GFX0/DD05/info
    /proc/acpi/video/GFX0/DD04
    /proc/acpi/video/GFX0/DD04/EDID
    /proc/acpi/video/GFX0/DD04/brightness
    /proc/acpi/video/GFX0/DD04/state
    /proc/acpi/video/GFX0/DD04/info
    /proc/acpi/video/GFX0/DD03
    /proc/acpi/video/GFX0/DD03/EDID
    /proc/acpi/video/GFX0/DD03/brightness
    /proc/acpi/video/GFX0/DD03/state
    /proc/acpi/video/GFX0/DD03/info
    /proc/acpi/video/GFX0/DD02
    /proc/acpi/video/GFX0/DD02/EDID
    /proc/acpi/video/GFX0/DD02/brightness
    /proc/acpi/video/GFX0/DD02/state
    /proc/acpi/video/GFX0/DD02/info
    /proc/acpi/video/GFX0/DD01
    /proc/acpi/video/GFX0/DD01/EDID
    /proc/acpi/video/GFX0/DD01/brightness
    /proc/acpi/video/GFX0/DD01/state
    /proc/acpi/video/GFX0/DD01/info
    /proc/acpi/video/GFX0/DOS
    /proc/acpi/video/GFX0/POST
    /proc/acpi/video/GFX0/POST_info
    /proc/acpi/video/GFX0/ROM
    /proc/acpi/video/GFX0/info

    Joc

    December 13, 2008 at 19:54

  48. # find /sys/class/backlight
    /sys/class/backlight
    /sys/class/backlight/acpi_video0

    Joc

    December 13, 2008 at 19:55

  49. Just rebooted after applying DSDT-21.dsl add the brightness keys now work!!

    Great job, thanksegaistek.

    Joc

    December 13, 2008 at 20:05

  50. Great! I’ll change patches for 2x models then.

    Nirgal, are you sure you have patched sony-laptop? Update your kernel to the latest version 2.6.27-10 and remake 4 step from how to.

    egaistek

    December 13, 2008 at 20:11

  51. Ummm. Unfortunately I don’t know anything about shell scripts so.. :/

    Mikko Tikkanen

    December 13, 2008 at 21:11

  52. My kernel is 2.6.27-9 and not -10
    and I update my system, not new kernel. Is it in the backports ?
    I try to remake it with my kernel

    Nirgal

    December 14, 2008 at 07:08

  53. After a night and redoing the how to, there is some improvement !!
    dmesg | grep -i sony-laptop :
    [ 16.421368] sonypi: please try the sony-laptop module instead and report failures, see also http://www.linux.it/~malattia/wiki/index.php/Sony_drivers
    [ 17.173042] sony-laptop: Sony Notebook Control Driver v0.6.
    [ 17.229227] sony-laptop: detected Sony Vaio FW Series

    dmesg | grep -i dsdt :
    [ 0.000000] ACPI: DSDT 9DF06010, 8182 (r1 Sony VAIO 20080725 INTL 20051117)
    [ 0.020231] ACPI: Checking initramfs for custom DSDT
    [ 0.296703] ACPI: Found DSDT in DSDT.aml.
    [ 0.296708] ACPI: Override [DSDT- VAIO], this is unsafe: tainting kernel
    [ 0.296715] ACPI: Table DSDT replaced by host OS
    [ 0.296718] ACPI: DSDT 00000000, 7984 (r1 Sony VAIO 20080725 INTL 20061109)
    [ 0.296722] ACPI: DSDT override uses original SSDTs unless “acpi_no_auto_ssdt”
    [ 0.437151] ACPI: EC: Look up EC in DSDT

    When trying the fn’s, I can see the brightness animation on my screen telling me it is changing, but brightness is still not changing (with the gnome brightness applet nether)

    Nirgal

    December 14, 2008 at 19:07

  54. Yep, we already found solution with Joc, just wait for new patches for 2x models.

    egaistek

    December 14, 2008 at 19:22

  55. Thanks, works great! Now I just need to get the built in mic figured out and everything is working… You know, with some fidgeting now and again, but working dammit.

    smoosh

    December 14, 2008 at 22:34

  56. Ok, I have updated patches for FW2x models, give it a try.

    Post updated too.

    egaistek

    December 15, 2008 at 03:49

  57. egaistek. I tried the update and still no luck but Thank you for trying.

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

    Output:

    [ 11.177295] sony-laptop: Sony Notebook Control Driver v0.6.
    [ 11.236090] sony-laptop: detected Sony Vaio FW Series
    [ 20.642880] sonypi: please try the sony-laptop module instead and report failures, see also http://www.linux.it/~malattia/wiki/index.php/Sony_drivers

    [ 0.000000] ACPI: DSDT 9DF06010, 8182 (r1 Sony VAIO 20080725 INTL 20051117)
    [ 0.020598] ACPI: Checking initramfs for custom DSDT
    [ 0.343155] ACPI: Found DSDT in DSDT.aml.
    [ 0.343160] ACPI: Override [DSDT- VAIO], this is unsafe: tainting kernel
    [ 0.343167] ACPI: Table DSDT replaced by host OS
    [ 0.343171] ACPI: DSDT 00000000, 7984 (r1 Sony VAIO 20080725 INTL 20061109)
    [ 0.343176] ACPI: DSDT override uses original SSDTs unless “acpi_no_auto_ssdt”
    [ 0.481290] ACPI: EC: Look up EC in DSDT

    dwade

    December 15, 2008 at 05:34

  58. dwade ok, try commands from this comment, if this not work, try to apply original patch dsdt-ati-fix.patch and try commands again. If that not work, post output of commands from this comment after you apply original patch.

    When using Fn brightness keys, do you see brightness osd?

    egaistek

    December 15, 2008 at 06:10

  59. SO cool, works perfectly on my FW190. Even the s1 button works!!! egaistek you are freaking awesome

    Mohammad

    December 15, 2008 at 10:25

  60. thanks, alot

    Mohammad

    December 15, 2008 at 10:25

  61. Oh, I see it works like brightness down and av mode works too, but not mapped right. I’ll try to patch sony-laptop to map this buttons better.

    egaistek

    December 15, 2008 at 10:39

  62. Hi Egaistek…

    Unbeliveable but I don’t have that slice bar on startup… my configuration window ends at “Put display to sleep at inactive”. I’m using Hardy maybe that one only appers in Intrepid, could it be?

    Thanks

    josepcoves

    December 15, 2008 at 14:17

  63. For myself with last update the brightness keys aren’t working, but the gnome applet is working perfectly, and the default brigness in power management to.

    the results from the dmesg | grep -i sony-laptop aren’t the good ones, I m not at home, but I remember I had first time something like this:
    [ 11.177295] sony-laptop: Sony Notebook Control Driver v0.6.
    [ 20.642880] sonypi: please try the sony-laptop module instead and report failures, see also http://www.linux.it/~malattia/wiki/index.php/Sony_drivers

    and I tried to do the how to again and now I have something like this:
    [ 20.642880] sonypi: please try the sony-laptop module instead and report failures, see also http://www.linux.it/~malattia/wiki/index.php/Sony_drivers

    well I can change brightness with the gnome applet so I m happy !!

    Nirgal

    December 15, 2008 at 15:18

  64. josepcoves, yep maybe.

    Nirgal, well again, in this comment you have patched sony-laptop right because you saw brightness osd, now you forgot to patch it or I don’t know. Last update touch only DSDT and not sony-laptop. Remake the 4th step again.

    egaistek

    December 15, 2008 at 23:16

  65. SOME SUCCESS….

    This command dims the screen.

    echo 1 > /sys/class/backlight/acpi_video0/brightness

    but I still do not have control of either the FN keys or in power managment.. Thank you for this bit of hope, what do I do next?

    dwade

    December 16, 2008 at 05:11

  66. dwade ok, now delete patched DSDT make dpkg-reconfigure like in 3rd step, reboot and try echo commands again.

    I see that sony-laptop module is loaded at you and detected fw series, but I don’t understand why fn keys not work. Does sound change when you use volume keys? Do you see sound osd while changing? Does osd like with sound pop up when using fn brightness keys?

    If not, do this:

    sudo modprobe -r sony_laptop
    sudo modprobe sony_laptop debug=1
    

    then push Fn+F5 and Fn+F6 and do this command:

    dmesg | tail -40
    

    Then post the output to this site http://pastebin.com/ and give me a link.

    egaistek

    December 16, 2008 at 05:44

  67. maybe I do something wrong, I did this….

    # sudo acpidump -b -t DSDT -o DSDT.aml
    # iasl -d DSDT.aml
    # sudo rm DSDT.aml
    # patch < dsdt-error-fw21.patch
    # patch /sys/class/backlight/acpi_video0/brightness Still dims the screen.

    Yes volume works and shows the osd but nothing for FN 5 or FN 6

    dmesg | tail -40 output,,,

    [ 548.109381] sony-laptop: sony_acpi_notify, event: 0x11
    [ 548.209079] sony-laptop: sony_acpi_notify, event: 0x3b
    [ 548.303730] sony-laptop: sony_acpi_notify, event: 0x11

    dwade

    December 16, 2008 at 12:10

  68. sorry it cut off this is what I did…

    1. sudo acpidump -b -t DSDT -o DSDT.aml
    2. iasl -d DSDT.aml
    3. sudo rm DSDT.aml
    4. patch < dsdt-error-fw21.
    5. patch < dsdt-ati-fix-fw21.patch
    6. iasl DSDT.dsl
    7. sudo cp DSDT.aml /etc/initramfs-tools/
    8. sudo dpkg-reconfigure linux-image-`uname -r`

    Echo command still works after a reboot.

    dwade

    December 16, 2008 at 12:14

  69. yep, wrong, do this and then reboot and try echo commands again.

    sudo rm /etc/initramfs-tools/DSDT.aml
    sudo dpkg-reconfigure linux-image-`uname -r`
    

    As for sony-laptop, events is fine, I have the same, you should see brightness osd in Ubuntu anyway. But if you are in KDE (Kubuntu), the keys will not work. Anyway I can’t help you anymore with sony-laptop, because it looks ok. Try a clean install of Ubuntu Intrepid.

    For now you can do this:

    sudo pkill "gnome-power-man"
    gnome-power-manager --verbose --no-daemon
    

    then use Fn brightness keys and maybe you can see this in output:

    TI:11:41:22	TH:0x9c0e640	FI:gpm-button.c	FN:gpm_button_filter_x_events,122
     - Key 233 mapped to HAL key brightness-up
    

    egaistek

    December 16, 2008 at 12:47

  70. I followed your instructions and now
    echo 1 > /sys/class/backlight/acpi_video0/brightness stoped working before I could use it to control the brightness 1-8.

    1. sudo pkill “gnome-power-man”
    2. gnome-power-manager –verbose –no-daemon
    outputs this…

    TI:17:50:14 TH:0x9fc1640 FI:gpm-array.c FN:gpm_array_append,141
    – adding to 0xa13ef80, x=110, y=21240, data=65280
    TI:17:50:14 TH:0x9fc1640 FI:gpm-array.c FN:gpm_array_append,141
    – adding to 0xa13f300, x=110, y=-1, data=65280
    TI:17:50:19 TH:0x9fc1640 FI:gpm-array.c FN:gpm_array_append,141
    – adding to 0xa13b3c0, x=115, y=100, data=65280
    TI:17:50:19 TH:0x9fc1640 FI:gpm-array.c FN:gpm_array_append,141
    – adding to 0xa13ef80, x=115, y=21240, data=65280
    TI:17:50:19 TH:0x9fc1640 FI:gpm-array.c FN:gpm_array_append,141
    – adding to 0xa13f300, x=115, y=-1, data=65280

    DO you think a clean install of intrepid will help?

    dwade

    December 17, 2008 at 04:51

  71. Yep, make another partition on your hard drive and install clean Ubuntu there for testings. You will have old installation and new for testings. Then make only 4th step on new. Reboot and try brightness keys. If that not help, I give up.

    egaistek

    December 17, 2008 at 05:00

  72. Well thanks for all your help it was above and beyond what I expected…

    dwade

    December 17, 2008 at 05:02

  73. Hi!
    Nice tutorial! The only thing that’s not working on my sony-vaio is the FN & sound keys. FN+F2 for mute and the multimedia (- and +) buttons. The rest of them I really don’t use.
    The OSD for the sound volume and mute works, but it does nothing. Do you know any solution for this problem?
    Btw, I have a Vaio FW11M.

    Paulo Cabido

    December 17, 2008 at 17:15

    • Paulo Cabido, open volume control (double click on sound icon in tray), then use sound buttons and if you can see one of sliders changing it’s value, possibly it’s front or pcm, there is a solution. If you don’t see this, I can’t help.
      The solution is: go to System->Preferences->Sound, select ALSA everywhere. In default mixer tracks select device HDA Intel (Alsa mixer) and select Master in channels list (there is a tip under that list). Then close and use your sound keys.

      egaistek

      December 17, 2008 at 17:30

  74. It was so easy… That worked perfectly for me!
    Thaks a lot!

    Paulo Cabido

    December 17, 2008 at 17:36

  75. […] vou disponibilizar fui eu que os fiz. Este problema tem a ver com o bug 11682. Os patches são do egaistek. Para começar é preciso então fazer download dos patches. É preciso instalar o seguinte: sudo […]

  76. PROBLEM Kubuntu 64bit! Everything seems to be going well through the whole process but then it wont restar. It gets just in the Kububtu loading bar, recovery does not help either.Tried twice with different kernel versions. I twas working fine on 32bit.

    Giorgos

    December 17, 2008 at 23:44

  77. Well, it actually starts once every 4-5 attempts.

    Giorgos

    December 18, 2008 at 18:19

  78. Well I’m not using 64bit, I just have not mentioned any difference in speed etc, does it really faster or?

    egaistek

    December 18, 2008 at 23:36

  79. Just the fact that uses all the 4gb of RAM. maybe a bit faster on soem applications only. Anyway, if it is not possible to make it work on 64bit I will fall back to 32bit it is not such a big deal.
    Thank you very much anyway.

    Giorgos

    December 19, 2008 at 01:32

  80. Well, as I wrote earlier, server kernel can use all 4Gb ram and it’s 32bit. And I’m on this kernel.

    egaistek

    December 19, 2008 at 01:43

  81. Will this fix be incorporated with the next kernel? I have already made a report to launchpad.

    Giorgos

    December 20, 2008 at 15:00

  82. argh somethink bricked, kde powersave manageror don’t work anymore.. keys too

    dmesg | grep -i dsdt
    [ 0.000000] ACPI: DSDT BDF06010, 8182 (r1 Sony VAIO 20080725 INTL 20051117)
    [ 0.156919] ACPI: EC: Look up EC in DSDT

    i got only this, seems like the wrong output. someone help please? 😦

    dms

    December 21, 2008 at 08:02

  83. Giorgos, this is not fix, it’s a workaround, so this will not be included anytime.

    dms, yep, you have not complete 3rd step, and probably 4th too if keys not work. If you have updated your kernel, you should redo this how to. (added second warn in the post)

    egaistek

    December 21, 2008 at 16:07

  84. I have a FW21J with ubuntu 64 and it has worked great for me. brightness works fine and the fn keys work now too. I have 4Gb ram.
    My only problems were that when I initially downloaded the source code it would not compile because of a function which was not declared anyway (strange), not sure either if the patch worked correctly for me. I deleted that part of the code and then it compiled fine. However, just I did this there was this update from 2.6.27-10 to 2.6.27-11, after updating the fn keys didnt work so I had to download source code againg for -11 and correct it, i did it all manually this time. After booting fn keys were working again.
    So, thanks a lot!!

    elias

    December 22, 2008 at 00:19

  85. elias can you say which error you’ve got, which function, because this is strange. And which part of the code you’ve deleted.

    egaistek

    December 22, 2008 at 18:23

  86. thank you for this blog. I’ve a z11 vn/b vaio and brigthness/acpi issues. I compiled kernel 2.6.27-11 without any improvments. I know this post is dedicated to the FW models; hope you have good pointers for me, many thanks 🙂

    t_188

    December 23, 2008 at 16:35

  87. I guess I can not help you with this because I have not this laptop in hands. And in this guide you do not need to compile whole kernel, but sony-laptop module only.

    egaistek

    December 23, 2008 at 17:38

  88. Worked great for my FW21E with Linux Mint 6! The only thing not described that I had to do was to uncomment the lines with the source rep’s at sources.list. Also, I don’t know what it is supposed to do, but the special key S1 also decreases brightness. I bought this laptop yesterday and already have everything working under linux 🙂

    stardust

    December 24, 2008 at 05:17

  89. Yea, I know about S1. I’ve semi-done new patch and just testing it. And I’m working on to include sony-laptop patch in ubuntu kernel, so we have to do just dsdt patching.

    egaistek

    December 24, 2008 at 05:21

  90. Worked like a charm on FW11M! You just made my day!!

    cb

    December 25, 2008 at 18:36

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

  92. Great !!! Thank you very very much men ! 🙂

    Vitaly

    December 29, 2008 at 03:40

  93. Thanks for this.
    Followed the steps and it works just fine on my FW290 with Radeon 3650 and Full HD screen.

    Intrepid Newb

    December 29, 2008 at 22:02

  94. This is for internal LCD only, I don’t know why you talking about fullhd screen.

    egaistek

    December 29, 2008 at 22:05

  95. […] of all we need to install iasl and acpidump: view plaincopy to […]

  96. Hi EveryBody,

    I tried and works fine on my Sony Vaio FW21Z with ubuntu 8.10, really great job.

    So, has anybody know why the front mic does not work ?, in Ekiga or Skype the front mic seems like not working.

    Can anybody help me ?
    Thank you for this good blog.

    Golfito

    January 4, 2009 at 09:50

  97. No mic yet as you know.

    egaistek

    January 4, 2009 at 10:51

  98. This worked on an FW21L. Thanks!

    Mike

    January 5, 2009 at 00:55

  99. […] new sony-laptop patch (it’s included with patches for the post about brightness). Then do the 4th step in brightness how […]

  100. […] à Anton Veretenenko, à toutes les personnes du canal IRC Fedora-fr et à ceux qui ont rédigé la documentation Fedora […]

  101. […] The brightness how to updated with new warning. […]

  102. Hi!

    I have only partial success. Fn keys doesn´t work but
    sending values to /sys/class/backlight/acpi_video0/brightness does brightnes changes.
    I have FW21E, 2.6.27.10 kernel, patched dsdt table and sony-laptop and in kernel loaded custom dsdt table:

    dmesg | grep -i sony-laptop
    sony-laptop: Sony Notebook Control Driver v0.6.
    sony-laptop: detected Sony Vaio FW Series

    dmesg | grep -i dsdt
    ACPI: DSDT BDF06010, 8182 (r1 Sony VAIO 20081107 INTL 20051117)
    ACPI: Checking initramfs for custom DSDT
    ACPI: Found DSDT in DSDT.aml.
    ACPI: Override [DSDT- VAIO], this is unsafe: tainting kernel
    ACPI: Table DSDT replaced by host OS
    ACPI: DSDT 00000000, 7976 (r1 Sony VAIO 20081107 INTL 20081204)
    ACPI: DSDT override uses original SSDTs unless “acpi_no_auto_ssdt”
    ACPI: EC: Look up EC in DSD

    Any idea what can be wrong?

    VtG

    January 8, 2009 at 03:40

  103. VtG does brightness changing from gnome power manager?

    Try commands from this comment.

    egaistek

    January 8, 2009 at 03:54

  104. I don´t use gnome and my distribution version of gnome-power-manager has no option to change brightness so I can´t tell. I loaded sony-laptop module with debug option as you recommended and output is here:
    http://pastebin.com/f612e54f8
    Thx for your time.

    VtG

    January 8, 2009 at 05:41

  105. Well, the keys are working. Gnome controls brightness with gnome power manager. sony-laptop patched ok, it just handle key press events, not brightness control. So if you are in KDE or another DE, you should find app to control brightness which can hook on this keys.

    egaistek

    January 8, 2009 at 13:11

  106. OK … I try kpowersafe which look good but it say that my hardware doesn´t support brightness change.

    VtG

    January 8, 2009 at 18:42

  107. You need an app which can use acpi, hal etc

    egaistek

    January 8, 2009 at 18:51

  108. … kpowersafe support acpi and hal:
    http://www.kde-apps.org/content/show.php?content=29295

    VtG

    January 8, 2009 at 20:24

  109. Well, I can’t help you with KDE. My patches touching only drivers side and not front-end. If software can not handle hal events, it’s software issues, you can fire a bug on launchpad or bugzilla for kpowersave.
    In this comments I saw someone using KDE too. Maybe he can help.

    egaistek

    January 8, 2009 at 20:53

  110. Many thanks.
    This worked great with my VAIO FW21E.

    Charlylerouge

    January 9, 2009 at 04:26

  111. I have said that the patch worked great…for F5 & F6 function keys ( brightness ) (That was the most important for me…!)…But…but doesn’t work for S1 and AV keys. (VAIO VGN-FW21E)….

    Charlylerouge

    January 9, 2009 at 14:31

    • Charlylerouge, what do you mean by not working? Have you mapped this buttons to do something in keyboard shortcuts preferences? If no, there is nothing to do with this buttons by default.
      If you did it, then make commands from this comment, but for S1 and AV buttons and not brightness.

      egaistek

      January 10, 2009 at 20:25

  112. @ egaistek

    bash$ sudo dmidecode –type system | \
    grep “Product Name:” | \
    sed ‘s/^\sProduct Name:\s//’

    Matthew

    January 10, 2009 at 08:28

    • Yea, I know how to do such things, why do you post it here?

      egaistek

      January 10, 2009 at 20:20

  113. egaistek

    I was just elaborating on your method posted earlier. It works great for guessing laptop model! Thanks.

    P.S. I have made a shell script based on your instructions which automates the process, if you are interested in fixing it up, it may be useful to others.

    Thanks again for making this site.

    Matthew

    January 11, 2009 at 01:12

  114. egaistek,

    S1 end AV were not mapped in keyboard shortcuts preferences. ….All is good now. … Many Thanks.

    Charlylerouge

    January 11, 2009 at 06:14

  115. New Note 138

    Hey egaistek,
    Your website has definitely made installing Ubuntu on my FW290 a much easier job.
    I got your tutorial working on kernel 2.6.27-9-generic, no problems. Unfortunately, because of a bug in the kernel (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/286285) I had to enable the intrepid-proposed repo and install kernel 2.6.27-11. The mentioned bug disappeared, but unfortunately I can’t get your tutorial to work anymore. I have re-done all the steps many times, deleting all installed files and installing them again, but no cigar.
    When I press the fn keys, I get the brightness OSD working fine, but does not affect the brightness. Setting the brightness from the panel does nothing. There is nothing in /sys/class/backlight and “cat /proc/acpi/video/VGA/LCD/brightness” throws “” (ie. I can’t echo anything to that file). S1 and AV keys work fine. Any clues?

    Some more info:
    # dmesg | grep -i sony-laptop
    [ 36.964668] sony-laptop: Sony Notebook Control Driver v0.6.
    [ 37.028836] sony-laptop: detected Sony Vaio FW Series
    [ 43.794950] sonypi: please try the sony-laptop module instead and report failures, see also http://www.linux.it/~malattia/wiki/index.php/Sony_drivers

    # dmesg | grep -i dsdt
    [ 0.000000] ACPI: DSDT 9DF06010, 8182 (r1 Sony VAIO 20081107 INTL 20051117)
    [ 0.020230] ACPI: Checking initramfs for custom DSDT
    [ 0.296902] ACPI: Found DSDT in DSDT.aml.
    [ 0.296907] ACPI: Override [DSDT- VAIO], this is unsafe: tainting kernel
    [ 0.296914] ACPI: Table DSDT replaced by host OS
    [ 0.296917] ACPI: DSDT 00000000, 7973 (r1 Sony VAIO 20081107 INTL 20061109)
    [ 0.296922] ACPI: DSDT override uses original SSDTs unless "acpi_no_auto_ssdt"
    [ 0.437151] ACPI: EC: Look up EC in DSDT

    Also, before I was getting, for dmesg | grep -i sony-laptop, an additional comment:
    sony-laptop: Sony: Brightness ignored, must be controlled by ACPI video driver
    But then I found http://www.gossamer-threads.com/lists/linux/kernel/996431 and applied the patch there.
    This only resulted in getting rid of that message, but nothing changed as far as brightness is concerned.

    Pepe Gonzales

    January 11, 2009 at 12:19

  116. Sorry:
    “cat /proc/acpi/video/VGA/LCD/brightness” throws “<not supported>”

    Pepe Gonzales

    January 11, 2009 at 12:22

    • Pepe Gonzales, there is a bug in 2.6.27-11.23 kernel update from proposed which broken brightness control for many people, bug 311716. If you want to control your brightness, you can use 2.6.27-10 kernel.

      egaistek

      January 11, 2009 at 16:29

  117. Matthew, oh that’s great. Can you post it somewhere? I can put it in the post then.
    Thanks.

    egaistek

    January 12, 2009 at 07:07

  118. 2 egaistek: So if I understand well fn+F5 and fn+F6 keys
    not changing brightness by default and I must do some special key mapping. Could you kick me to right direction how to make this? Sorry for stupid post, but I really don´t know where to start.

    VtG

    January 12, 2009 at 15:59

  119. works great! I am on a sony vaio fw21z with Ubuntu 8.10 64bit and kernel version 2.6.27-9-generic. I was exactly following your excellent description with only one (hopefully minor) issue. When doing the “make” I get one warning “WARNING: /home/ckny/Downloads/Sony_Vaio_Ubuntu_Patches/kernel_src_and_packages/linux-source-2.6.27/drivers/misc/fujitsu-laptop.o(.text+0xebd): Section mismatch in reference from the function acpi_fujitsu_add() to the variable .init.data:fujitsu_dmi_table
    The function acpi_fujitsu_add() references
    the variable __initdata fujitsu_dmi_table.
    This is often because acpi_fujitsu_add lacks a __initdata
    annotation or the annotation of fujitsu_dmi_table is wrong.”. Do you also get this one?
    I have also added my dmesg output as it differs slightly from yours:
    [ 11.739381] sony-laptop: Sony Notebook Control Driver v0.6.
    [ 11.808158] sony-laptop: detected Sony Vaio FW Series

    and

    [ 0.000000] ACPI: DSDT 9DF06010, 8182 (r1 Sony VAIO 20080725 INTL 20051117)
    [ 0.008334] ACPI: Checking initramfs for custom DSDT
    [ 0.323470] ACPI: Found DSDT in DSDT.aml.
    [ 0.323474] ACPI: Override [DSDT- VAIO], this is unsafe: tainting kernel
    [ 0.323480] ACPI: Table DSDT replaced by host OS
    [ 0.323482] ACPI: DSDT 00000000, 7973 (r1 Sony VAIO 20080725 INTL 20061109)
    [ 0.323486] ACPI: DSDT override uses original SSDTs unless “acpi_no_auto_ssdt”
    [ 0.476846] ACPI: EC: Look up EC in DSDT

    All in all, the brightness keys now work fine and I did not get any kernel panic.

    Nevertheless the S1/AV keys do not work. What do you get if you press them? (In Vista it would invoke a “media center” alike (AV mode) or a dolby surround system (S1)).

    Keep up the great work! Really good manual!

    CKNY

    ckny

    January 16, 2009 at 18:32

  120. Thnx man 🙂 after trying that much it is super to see them working.Great work!

    utku

    January 16, 2009 at 23:19

  121. At last, I can adjust my brightness (!!) from kpowersave but my fn keys still do not work. My pc is FW21M.
    egaistek great guide man, thanks 🙂

    vassili

    January 21, 2009 at 20:12

  122. ckny, I could not get it to work on 64 bit.I wonder why, maybe I should use the same Kernel as you. Is the mocrophone working in any of you? Will this fix be included in ant of the nexr ubuntu kernel? I am looking forward to a permanent solution

    rodez

    January 22, 2009 at 15:35

    • rodez, no mic does not work. I’m on 64bit now and it’s fine.

      egaistek

      January 22, 2009 at 15:41

  123. Thanks egaistek. I will try again, btw on which Kernel are you?

    rodez

    January 22, 2009 at 15:43

    • I’m on 2.6.27-11-generic, you can install it if you turn on intrepid-proposed updates in Software Sources. But 2.6.27-9-generic works too without DSDT patching.

      egaistek

      January 22, 2009 at 15:59

  124. rodez, have not checked mic yet, but egaistek seems to not have it working. So I guess it’s not possible.
    rodez, any more details about it? what do you get here:
    dmesg | grep -i sony-laptop
    dmesg | grep -i dsdt

    –ckny

    ckny

    January 22, 2009 at 17:25

  125. I’m getting errors compiling this on the new vaio FW390J model. Here is what I get:

    DSDT.dsl 3200: If (LEqual (_T_0, 0x04))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 3206: If (LEqual (_T_0, 0x05))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 3253: If (LEqual (_T_0, 0x04))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 3260: If (LEqual (_T_0, 0x05))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 4184: If (LEqual (_T_0, 0x04))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 4190: If (LEqual (_T_0, 0x05))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 4237: If (LEqual (_T_0, 0x04))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 4244: If (LEqual (_T_0, 0x05))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 8423: Method (SNF5, 1, NotSerialized)
    Warning 1086 – ^ Not all control paths return a value (SNF5)

    DSDT.dsl 8458: Method (SNF7, 1, NotSerialized)
    Warning 1086 – ^ Not all control paths return a value (SNF7)

    DSDT.dsl 8571: If (LEqual (_T_0, 0x04))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 8577: If (LEqual (_T_0, 0x05))
    Error 4062 – Object does not exist ^ (_T_0)

    DSDT.dsl 8655: Method (SNFE, 1, NotSerialized)
    Warning 1086 – ^ Not all control paths return a value (SNFE)

    ASL Input: DSDT.dsl – 8906 lines, 291690 bytes, 3977 keywords
    Compilation complete. 10 Errors, 3 Warnings, 0 Remarks, 1022 Optimizations

    matt

    January 24, 2009 at 02:57

  126. hi egaistek,

    could you please please add more notes and explain in more details for someone who is a newbie? i tried to do it but i dont know exactly what went wrong.

    when you say Sony-Laptop module to make Fn key work,

    you mean i put my user NAME – Laptop ? l

    like if my startup name is harry-laptop.. i type that?

    or i must just write sony-laptop?

    i downloaded the

    mazin

    January 25, 2009 at 14:10

  127. @matt
    Did you apply the patch?
    FTA:
    Then patched with dsdt-error.patch, this patch fix wrong name (”_T_0″) produced by disassembler. Without this patch we can not recompile this table back.

    Pepe Gonzales

    January 25, 2009 at 18:13

  128. @mazin
    I think your comment got cut off.
    But when egaistek says “sony-laptop” he means “sony-laptop”. You shouldn’t have to change any instructions from the post.
    Mazin, please post any error message you might be getting.
    Sometimes when you copy commands from the blog into the console, they might get a hash (#) added, which you have to get rid of. For example,
    # iasl -d DSDT.aml
    change it into
    iasl -d DSDT.aml
    It won’t work with the hash.

    The only problem I ran into with this tutorial is the line:
    make -C /lib/modules/`uname -r`/build/ M=`pwd` modules
    which I had to run with sudo:
    sudo make -C /lib/modules/`uname -r`/build/ M=`pwd` modules

    Pepe Gonzales

    January 25, 2009 at 18:19

  129. @pepe

    I managed to “notice” the # sign the second time i tried it. and deleted it.

    but my problem is that i DONT get this line:

    16.190130] sony-laptop: detected Sony Vaio FW Series

    so it didnt work, the Fn keys didnt work. i dont know which part i did wrong, im guessing the last part.

    mazin

    January 26, 2009 at 06:35

    • mazin, as I can see, you have patched DSDT ok. So now you need to remake the fourth step which is for sony-laptop module, this is where you did something wrong.

      egaistek

      January 28, 2009 at 01:38

  130. and another thing, its not related to Brightness, but its on UBUNTU.

    has anyone used SKYPE? i downloaded it, installed it, and cannot recognize the built in MIC of the laptop 😦 i have to use an external USB mic to talk.

    anyone have this problem? is skype working fine with the built in mic?

    mazin

    January 26, 2009 at 06:38

  131. this is what i get when i type dmesg | grep -i dsdt in the terminal:

    jungar@jungar-laptop:~$ dmesg | grep -i dsdt
    [ 0.000000] ACPI: DSDT 9DF06010, 8182 (r1 Sony VAIO 20080725 INTL 20051117)
    [ 0.010413] ACPI: Checking initramfs for custom DSDT
    [ 0.505328] ACPI: Found DSDT in DSDT.aml.
    [ 0.505334] ACPI: Override [DSDT- VAIO], this is unsafe: tainting kernel
    [ 0.505341] ACPI: Table DSDT replaced by host OS
    [ 0.505345] ACPI: DSDT 00000000, 7973 (r1 Sony VAIO 20080725 INTL 20061109)
    [ 0.505350] ACPI: DSDT override uses original SSDTs unless “acpi_no_auto_ssdt”
    [ 0.665464] ACPI: EC: Look up EC in DSDT

    what did i do wrong?

    mido

    January 27, 2009 at 08:11

  132. 2 mido: Custom DSDT table is loaded … it is OK.

    VtG

    January 27, 2009 at 14:25

  133. i have the brightness working on my fw390 there are some additional lines you will need to patch in DSDT.dsl. I will try to either upload the new patch file somewhere or send it to the author of this blog when I get some free time.

    matt

    January 27, 2009 at 23:54

  134. quick question: I know it’s a little bit off topic, but does anybody have any clue on how getting a 32 bit epson printer driver to work on ubuntu 8.10 desktop 64 bit? Unfortunately, there is only a 32 bit driver provided by an external company for my excellent all in one printer epson PX800FW. That’s one of the last bits that are missing on my Ubuntu 8.10 64 bit setup on my sony vaio FW21Z.
    thanks,
    ckny

    ckny

    January 28, 2009 at 00:02

    • ckny, maybe you printer can work in a lan mode? I can’t help anymore because I just have not any printer 🙂

      egaistek

      January 28, 2009 at 01:39

  135. in order to get this to work with the FW3xx series you will need to use a different dsdt-error.patch. Use this instead only if you have trouble recompiling.

    — DSDT.dsl.orig 2009-01-27 12:47:21.000000000 -0500
    +++ DSDT.dsl 2009-01-27 12:52:44.000000000 -0500
    @@ -3197,13 +3197,13 @@
    }
    Else
    {
    – If (LEqual (_T_0, 0x04))
    + If (LEqual (T_0, 0x04))
    {
    Return (ICL4)
    }
    Else
    {
    – If (LEqual (_T_0, 0x05))
    + If (LEqual (T_0, 0x05))
    {
    Return (ICL5)
    }
    @@ -3250,14 +3250,14 @@
    }
    Else
    {
    – If (LEqual (_T_0, 0x04))
    + If (LEqual (T_0, 0x04))
    {
    Divide (Subtract (Arg0, 0x04), 0x0C, , Local0)
    Store (DerefOf (Index (RTL4, Local0)), Local0)
    }
    Else
    {
    – If (LEqual (_T_0, 0x05))
    + If (LEqual (T_0, 0x05))
    {
    Divide (Subtract (Arg0, 0x04), 0x0C, , Local0)
    Store (DerefOf (Index (RTL5, Local0)), Local0)
    @@ -4181,13 +4181,13 @@
    }
    Else
    {
    – If (LEqual (_T_0, 0x04))
    + If (LEqual (T_0, 0x04))
    {
    Return (ICL4)
    }
    Else
    {
    – If (LEqual (_T_0, 0x05))
    + If (LEqual (T_0, 0x05))
    {
    Return (ICL5)
    }
    @@ -4234,14 +4234,14 @@
    }
    Else
    {
    – If (LEqual (_T_0, 0x04))
    + If (LEqual (T_0, 0x04))
    {
    Divide (Subtract (Arg0, 0x04), 0x0C, , Local0)
    Store (DerefOf (Index (RTL4, Local0)), Local0)
    }
    Else
    {
    – If (LEqual (_T_0, 0x05))
    + If (LEqual (T_0, 0x05))
    {
    Divide (Subtract (Arg0, 0x04), 0x0C, , Local0)
    Store (DerefOf (Index (RTL5, Local0)), Local0)
    @@ -8568,13 +8568,13 @@
    }
    Else
    {
    – If (LEqual (_T_0, 0x04))
    + If (LEqual (T_0, 0x04))
    {
    Store (0x04, Local1)
    }
    Else
    {
    – If (LEqual (_T_0, 0x05))
    + If (LEqual (T_0, 0x05))
    {
    Store (0x05, Local1)
    }

    matt

    January 28, 2009 at 00:35

    • matt, can you please check my dsdt-error-fw21.patch, does it work for your dsdt? If not, I can include your patch in package.

      egaistek

      January 28, 2009 at 01:40

  136. egaistek, the dsdt-error-fw21.patch does not work for me however the other 2 patches work fine. There are are just some additional _’s in the DSDT I had to remove before I could recompile.

    matt

    January 28, 2009 at 04:58

  137. i’ve tried everything, but on “make -C /lib/modules/`uname -r`/build/ M=`pwd` modules” console gives me something like this:

    make: Вход в каталог `/usr/src/linux-headers-2.6.27-9-generic’
    CC [M] /home/acidka/linux-source-2.6.27/drivers/misc/asus-laptop.o
    /home/acidka/linux-source-2.6.27/drivers/misc/asus-laptop.c: В функции ‘asus_laptop_init’:
    /home/acidka/linux-source-2.6.27/drivers/misc/asus-laptop.c:1210: ошибка: неявная декларация функции ‘acpi_vendor_backlight_support’
    make[1]: *** [/home/acidka/linux-source-2.6.27/drivers/misc/asus-laptop.o] Ошибка 1
    make: *** [_module_/home/acidka/linux-source-2.6.27/drivers/misc] Ошибка 2
    make: Выход из каталога `/usr/src/linux-headers-2.6.27-9-generic’

    😦

    it’s Ubuntu 8.10 RU, Sony VAIO FW11LR. thanx for the help in advance!

    ACiD

    January 30, 2009 at 01:40

  138. addition: why it is asus-laptop.c? isn’t it supposed to be sony-laptop.c? 😦

    ACiD

    January 30, 2009 at 01:41

  139. Does it work with xf86-video-ati drivers? I am thinking of switching to them… but not if I can not control the brightness.

    rodez

    January 30, 2009 at 05:45

  140. 2 rodez: It works … but you must switch to text mode 😦

    VtG

    January 30, 2009 at 14:34

  141. 2 VtG: What do you mean text mode?
    Anyway, the new ati driver is out (9.1) and it supposed to be flicker free so I jus might give it a try. I like the responsiveness of the xf86-video-ati though.

    rodez

    January 30, 2009 at 17:00

  142. 2 VtG: Forgive my ignorance but what do you mean text mode?
    Anyway, the new ati driver is out (9.1) and it supposed to be flicker free so I jus might give it a try. I like the responsiveness of the xf86-video-ati though.

    rodez

    January 30, 2009 at 17:01

  143. 2 rodez: I’ve been thinking switch from X to text mode by ctrl+alt+f2 for example … in text console brightness key works.

    VtG

    January 30, 2009 at 17:28

  144. Hi, I just want to thank you for this job, it works perfectly on my vgn-fw11e, you saved my laptop’s battery! 😉

    omissis

    February 1, 2009 at 08:42

  145. Hi….thanks…it work perfectly!!!!!!
    my VGN-FW11E with ubuntu 8.10 64bit

    Gabriele Pallassini

    Gabriele

    February 13, 2009 at 01:50

  146. Hi,

    Thanks for publishing this information. Finally, i can adjust screen brigthness. But fourth section did not work for me. There was an error at “make -C /lib/….” part.

    The Error: /sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/sony-laptop.c:876: error: redefinition of ‘sony_FW_events’
    /sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/sony-laptop.c:854: error: previous definition of ‘sony_FW_events’ was here

    Anyway i can adjust it using power manager.

    Fatih Şanda

    February 13, 2009 at 21:06

  147. Redefinition means there already was these events described. How did you get sources? Maybe this patch merged in Ubuntu already.

    egaistek

    February 13, 2009 at 21:19

  148. My current kernel 2.6.27-11-server. I got the source via apt as it is written in the document. But before done other parts except fourth, i could not change brigthness using power management. Now , i can not use F5 and F6 to change it.

    Probably kernel had modules but id did not work before.

    Fatih Şanda

    February 13, 2009 at 21:38

    • For now check if sony-laptop module is loaded (lsmod | grep -i sony). If it’s loaded but Fn keys not work, try to do the 4th step again. Get clean sources then apply the patch.

      egaistek

      February 14, 2009 at 01:51

  149. As you said, Ubuntu has already added this module to the kernel, but it has some bugs. There are some open bug issues about it.

    Fatih Şanda

    February 13, 2009 at 22:02

    • The module was there all the time, I mean maybe they merged this patch. I’ll check then.

      egaistek

      February 14, 2009 at 01:47

  150. Hi! Thanks for the info, but while following the steps, I get this error:

    progre55@progre55:~/Install/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc$ sudo make -C /lib/modules/`uname -r`/build/ M=`pwd` modules
    make: Entering directory `/usr/src/linux-headers-2.6.27-7-generic’
    CC [M] /home/progre55/Install/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/asus-laptop.o
    /home/progre55/Install/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/asus-laptop.c: In function ‘asus_laptop_init’:
    /home/progre55/Install/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/asus-laptop.c:1210: error: implicit declaration of function ‘acpi_vendor_backlight_support’
    make[1]: *** [/home/progre55/Install/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/asus-laptop.o] Error 1
    make: *** [_module_/home/progre55/Install/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc] Error 2
    make: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic’

    wow, too much information 🙂
    but please, somebody help me out here..

    progre55

    February 13, 2009 at 22:14

  151. Actually, my problem should be here, while patching sony-laptop.c:

    progre55@progre55:…urce-2.6.27$ patch -p0 < sony-laptop.patch
    patching file drivers/misc/sony-laptop.c
    Hunk #1 succeeded at 873 (offset 22 lines).
    Hunk #2 succeeded at 942 with fuzz 1 (offset 31 lines).

    progre55

    February 13, 2009 at 22:45

  152. yes! I got it working 🙂

    damn, I’m a java programmer myself, and why was I acting as a noob here?? 🙂 I explicitly declared a boolean variable for all the C scripts where it used the ‘acpi_vendor_backlight_support()’ method, and now everything’s fine!
    Thanks for the great work, egaistek! appreciate!

    ps
    ignore my second post about sony-laptop.c 🙂 it was because I was re-patching on the already patched file 🙂

    progre55

    February 13, 2009 at 23:03

  153. well, sorry for being annoying and posting a fourth message, but please help me out. my ‘find /proc/acpi’ has only VGA, and no GFX0. But before applying these patches and steps, I remember it had only GFX0 and now VGA.. is it okay??

    /video
    /proc/acpi/video
    /proc/acpi/video/VGA
    /proc/acpi/video/VGA/DFP1
    /proc/acpi/video/VGA/DFP1/EDID
    /proc/acpi/video/VGA/DFP1/brightness
    /proc/acpi/video/VGA/DFP1/state
    /proc/acpi/video/VGA/DFP1/info
    /proc/acpi/video/VGA/TV
    /proc/acpi/video/VGA/TV/EDID
    /proc/acpi/video/VGA/TV/brightness
    /proc/acpi/video/VGA/TV/state
    /proc/acpi/video/VGA/TV/info
    /proc/acpi/video/VGA/CRT
    /proc/acpi/video/VGA/CRT/EDID
    /proc/acpi/video/VGA/CRT/brightness
    /proc/acpi/video/VGA/CRT/state
    /proc/acpi/video/VGA/CRT/info
    /proc/acpi/video/VGA/LCD
    /proc/acpi/video/VGA/LCD/EDID
    /proc/acpi/video/VGA/LCD/brightness
    /proc/acpi/video/VGA/LCD/state
    /proc/acpi/video/VGA/LCD/info
    /proc/acpi/video/VGA/DOS
    /proc/acpi/video/VGA/POST
    /proc/acpi/video/VGA/POST_info
    /proc/acpi/video/VGA/ROM
    /proc/acpi/video/VGA/info

    thanks in advance, good people 🙂

    ps
    русские везде 😀

    progre55

    February 13, 2009 at 23:10

    • Начиная с версии ядра 2.6.27-11.12 или выше, в acpi поменяли определение мониторов или панелей на ноутах, поэтому сейчас только VGA, у меня также. Тем не менее, кнопки работают ) Я только не совсем понимаю почему у некоторых возникают проблемы при компиляции с модулем asus-laptop, вроде сорцы одни и теже.

      egaistek

      February 14, 2009 at 01:56

  154. Thanks man, everything is working fine, except the S1, AV-MODE buttons and the internal mic. 🙂

    as for the compilation problems, I have just replaced the function “acpi_vendor_backlight_support()” to “true” 🙂 assuming that it actually DOES support backlight 🙂 and I’ve done it in all the files that report compilation problems due to the “acpi_vendor_backlight_support()” function.

    а с микрофоном никак? 🙂

    progre55

    February 14, 2009 at 09:52

  155. S1, AV надо просто настроить в System->Keyboard Shortcuts. С микрофоном пока только так 😀

    egaistek

    February 14, 2009 at 09:56

  156. Hi !

    All went good except the last two steps – below mentioned the terminal outcome:

    VAIO Desktop # cd linux-source-2.6.27

    VAIO linux-source-2.6.27 # patch -p0 < sony-laptop.patch patching file drivers/misc/sony-laptop.c

    Hunk #1 succeeded at 917 (offset 66 lines).

    Hunk #2 succeeded at 1004 with fuzz 1 (offset 93 lines).

    VAIO linux-source-2.6.27 # cd drivers/misc/

    VAIO misc # make -C /lib/modules/uname -r/build/ M=pwd modules

    make: Gehe in Verzeichnis ‘/usr/src/linux-headers-2.6.27-7-generic’

    CC [M] /home/bebote/Desktop/linux-source-2.6.27/drivers/misc/asus-laptop.o

    /home/bebote/Desktop/linux-source-2.6.27/drivers/misc/asus-laptop.c: In Funktion »asus_laptop_init«:

    /home/bebote/Desktop/linux-source-2.6.27/drivers/misc/asus-laptop.c:1210:

    Fehler: Implizite Deklaration der Funktion »acpi_vendor_backlight_support«

    make[1]: *** [/home/bebote/Desktop/linux-source-2.6.27/drivers/misc/asus-laptop.o] Fehler 1

    make: *** [_module_/home/bebote/Desktop/linux-source-2.6.27/drivers/misc] Fehler 2

    make: Verlasse Verzeichnis ‘/usr/src/linux-headers-2.6.27-7-generic’

    VAIO misc # strip –strip-debug sony-laptop.ko

    strip: ‘sony-laptop.ko’: No such file

    VAIO misc #

    thx for any help or suggestions

    B.

    Bebote

    February 21, 2009 at 06:13

  157. Hello,

    I hope you can help me, my English is very bad but I hope you can understand me.

    I have try your HowTo but is does not work.
    The Play, Stop and next buttons in the Rhythmbox are ok.

    I can not control the brightness per FN and applet in the task.

    I will hope that ist works 🙂

    I have an sony Vaio FW11j and I am a newbie

    Marc Schmitz

    February 23, 2009 at 06:42

  158. master@master-laptop:~$ dmesg | grep -i dsdt
    [ 0.000000] ACPI: DSDT BFE06010, 8016 (r1 Sony VAIO 20080605 INTL 20051117)
    [ 0.020573] ACPI: Checking initramfs for custom DSDT
    [ 0.481276] ACPI: EC: Look up EC in DSDT
    master@master-laptop:~$

    Marc Schmitz

    February 23, 2009 at 06:45

  159. Hello everybody,

    It works 🙂

    Marc Schmitz

    February 23, 2009 at 12:12

  160. I followed each step carefully until I got to the 3rd to the last step. See output below:

    lmh@vaio-ubuntu:~/Downloads/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc$ make -C /lib/modules/`uname -r`/build/ M=`pwd` modules
    make: Entering directory `/usr/src/linux-headers-2.6.27-7-generic’
    CC [M] /home/lmh/Downloads/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/asus-laptop.o
    /home/lmh/Downloads/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/asus-laptop.c: In function ‘asus_laptop_init’:
    /home/lmh/Downloads/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/asus-laptop.c:1210: error: implicit declaration of function ‘acpi_vendor_backlight_support’
    make[1]: *** [/home/lmh/Downloads/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc/asus-laptop.o] Error 1
    make: *** [_module_/home/lmh/Downloads/sony-vaio-fw-series-brightness-patches/linux-source-2.6.27/drivers/misc] Error 2
    make: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic’

    How does one proceed from here? Any help would be appreciated. Thanks.

    imunggoy

    February 23, 2009 at 19:33

  161. hello. could someone reupload the patches in rapidshare??? Filefactory doesn’t let me download as a free user

    thanks in advance

    paris

    March 6, 2009 at 00:24

  162. Hi can anyone help please I have a EPSON Stylus
    photo PX800FW it keeps flashing saying error the printers pads are at the end of their service life. I am looking for a reet code if anyone can help I would be grateful

    Many Thanks
    Lynda

    Lynda

    March 9, 2009 at 01:07

  163. is it working on fw11e and 2.6.28 ? i got everything done, and keys do not work.

    tdi

    March 12, 2009 at 16:15

  164. ok i got on patched kernel, but ACPI does not take DSDT from initrd, it does not even check for custom dsdt
    [18929.534548] sony-laptop: Sony Notebook Control Driver v0.6.
    [18929.552251] input: Sony Vaio Keys as /class/input/input9
    [18929.584612] input: Sony Vaio Jogdial as /class/input/input10
    [18929.615059] sony-laptop: detected Sony Vaio FW Series

    tdi

    March 13, 2009 at 21:10

  165. I applied the patches, but the first one did not work properly. The Brightness keys now work and show the little window, values in /sys/class/backlight/acpi_video0/brightness change by setting brightness up or down with fn-F5 and fn-F6, but the screen does not get lighter or darker.

    The Output of

    $ dmesg | grep -i sony-laptop

    [ 12.238294] sony-laptop: Sony Notebook Control Driver v0.6.
    [ 12.296749] sony-laptop: detected Sony Vaio FW Series
    [ 22.812816] sonypi: please try the sony-laptop module instead and report failures, see also http://www.linux.it/~malattia/wiki/index.php/Sony_drivers

    $ dmesg | grep -i dsdt

    [ 0.000000] ACPI: DSDT BDF06010, 825C (r1 Sony VAIO 20081107 INTL 20051117)
    [ 0.020736] ACPI: Checking initramfs for custom DSDT
    [ 0.497379] ACPI: EC: Look up EC in DSDT

    Im quite a newbie to laptops and ubuntu.

    thanks in advance for help
    frechBengel

    frechBengel

    March 18, 2009 at 22:06

  166. Was going to redo this for my new install, but now the hosting site where the patches are hosted has been giving me “no free download slots” all night. Sigh

    Peppo

    March 28, 2009 at 03:28

  167. Peppo, try another link I have added to the post.

    egaistek

    March 28, 2009 at 03:40

  168. Hi Lynda,

    I am on a Sony Vaio FW21Z with Ubuntu 9.04 64 bit (just upgraded to Jaunty) and am also using an Epson PX800FW. So in case you would like to exchange some info. I am using a trial software at the moment: TurboPrint …
    Feel free to drop me an email: ckny at gmx dot net

    –CKNY alias Christian

    ckny

    March 28, 2009 at 14:37

  169. Anyone else on Jaunty 64 bit yet?
    Worked pretty smooth. Only (minor) drawback is that some of my applets (using AWN with Mac4Lin) do not work anymore. But it is probably just a matter of time. In addition to that, only 2.6.27-12 works for me. 28.11 leads to a weird screen display that is not usable at all. I had no time to debug so far.
    Other experiences?
    –CKNY

    ckny

    March 28, 2009 at 14:40

  170. I’m on a Vaio FW31J. The FW1 and FW2 patches don’t seem to work. (Getting errors back). Does anyone know if there’s a solution for the FW3 series?

    Many thanks in advance!

    Bastian

    Bastian

    March 29, 2009 at 01:45

  171. Bastian, if you mean you getting errors compiling DSDT, try dsdt-error patch from this comment.

    egaistek

    March 29, 2009 at 04:54

  172. Vaio VGN-FW11E, ubuntu Jaunty -current, with gnome, it’s ok (many thanks guy!) with kde does not work, but i’ve read old post and i know the situation.

    cRoW2k

    March 29, 2009 at 15:31

  173. egaistek, thanks for you reply. I’ve tried to compile that patch already, but there seem to be errors in this patch and I even can’t get to the actual compiling stage. Do you know how to solve this?

    Bastian

    Bastian

    March 30, 2009 at 16:02

  174. @ckny
    Everything works fine for me in Jaunty 64.

    rodez

    March 31, 2009 at 00:38

  175. Me again. I’ve got it working! Thanks egaistek! The patch by Matt didn’t work, but the fw21-error.patch in combination with the normal fix-patch did! Great work!

    Bastian

    April 1, 2009 at 21:06

  176. Bastian, great! I just started to search a solution and saw that you found it already ) It’s good, I’ll add info to the post.

    egaistek

    April 2, 2009 at 00:17

  177. hi, thanks for this, everything is working great on my vaio.
    i’ve a dumb question though. not really thinking clearly, i downloaded your patch to a new desktop folder and subsequently have all the files from your tutorial in subfolders of this folder. do i still need it or can i delete it? if i need it, is there a safe way to move it somewhere else – a tutorial perhaps :)?

    cylebrity

    April 14, 2009 at 02:29

  178. cylebrity, you do not need to keep this files =) But if you will update the kernel package, the 4th step must be re-done. So it’s your choice to keep it or not and it’s save to move your folder anywhere you want )

    egaistek

    April 14, 2009 at 02:44

  179. egaistek, thanks!

    cylebrity

    April 14, 2009 at 17:59

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

    i am new to ubuntu and don’t understand this line. any advice on what i need to do?

    Mac

    April 17, 2009 at 21:48

  181. THANKS!!!

    Gunnar

    April 20, 2009 at 22:58

  182. @ CKNY

    Which steps did you follow above to get this working?

    for this line –>

    “= 2.6.28-11.36, do not do this step, this patch is included already.”

    –> should I continue on following the rest of the steps after that line??

    I will be upgrading from 8.10 (2.6.27-11) to 9.04 probobly later tonight.

    s3lekta

    April 23, 2009 at 03:11

  183. I am on 9.04 and cannot get dsdt-error.patch to properly patch into the DSDT.dsl

    I am using a FW373J

    FailHard

    April 25, 2009 at 00:47

  184. this worked beautifully! THANK YOU!

    aisthesis

    April 26, 2009 at 07:42

  185. Thank you!

    It worked perfectly!

    A very useful contribution.

    Ezequiel

    April 28, 2009 at 03:45

  186. Hi,

    i’m also having problems compiling the asl file:

    DSDT.dsl 3201: If (LEqual (_T_0, 0x04))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 3207: If (LEqual (_T_0, 0x05))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 3254: If (LEqual (_T_0, 0x04))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 3261: If (LEqual (_T_0, 0x05))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 4183: If (LEqual (_T_0, 0x04))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 4189: If (LEqual (_T_0, 0x05))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 4236: If (LEqual (_T_0, 0x04))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 4243: If (LEqual (_T_0, 0x05))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 8422: Method (SNF5, 1, NotSerialized)
    Warning 1087 – ^ Not all control paths return a value (SNF5)

    DSDT.dsl 8457: Method (SNF7, 1, NotSerialized)
    Warning 1087 – ^ Not all control paths return a value (SNF7)

    DSDT.dsl 8570: If (LEqual (_T_0, 0x04))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 8576: If (LEqual (_T_0, 0x05))
    Error 4063 – Object does not exist ^ (_T_0)

    DSDT.dsl 8654: Method (SNFE, 1, NotSerialized)
    Warning 1087 – ^ Not all control paths return a value (SNFE)

    Matt’s solution did not work, because his code is malformed ( i get error messages when i try to perform patch with his code). Does anybody have a solution?

    Blunzn

    May 3, 2009 at 04:52

    • Could you send me your DSDT.aml file? Or put it somewhere. My email is encoded in Qrcode on top-right corner.

      egaistek

      May 7, 2009 at 02:57

  187. egalstek

    this is what i got.. an extra 2 lines at the end:

    jungar@jungar-laptop:~$ dmesg | grep -i sony-laptop
    [ 39.700229] sony-laptop: Sony Notebook Control Driver v0.6.
    [ 39.764643] sony-laptop: detected Sony Vaio FW Series
    jungar@jungar-laptop:~$ dmesg | grep -i dsdt
    [ 0.000000] ACPI: DSDT 9DF06010, 8182 (r1 Sony VAIO 20080725 INTL 20051117)
    [ 0.004684] ACPI: Checking initramfs for custom DSDT
    [ 0.251038] ACPI: Found DSDT in DSDT.aml.
    [ 0.251042] ACPI: Override [DSDT- VAIO], this is unsafe: tainting kernel
    [ 0.251046] ACPI: Table DSDT replaced by host OS
    [ 0.251048] ACPI: DSDT 00000000, 7980 (r1 Sony VAIO 20080725 INTL 20081204)
    [ 0.251051] ACPI: DSDT override uses original SSDTs unless “acpi_no_auto_ssdt”
    [ 0.400474] ACPI: EC: Look up EC in DSDT
    jungar@jungar-laptop:~$

    what does this mean?

    the brightness is still not working for me 😕

    im using ubuntu 9.04 x64 on a sony vaio fw292

    jungaar

    May 7, 2009 at 18:37

  188. Hey! Just wanted to thank for the patches! I own a FW390 and just did a fresh install of Ubuntu 9.04.
    I had very few problems along the way with the dsdt-error.patch like this:

    DSDT.dsl 3200: If (LEqual (_T_0, 0×04))
    Error 4062 – Object does not exist ^ (_T_0)

    ….

    ASL Input: DSDT.dsl – 8906 lines, 291690 bytes, 3977 keywords
    Compilation complete. 10 Errors, 3 Warnings, 0 Remarks, 1022 Optimizations

    but after a while I figured out all I needed to do was open the DSDT.dsl file with some text editor and switch any “_T_0” that showed up by “T_0” to get rid of the errors. I still got 3 warnings after that, but followed the walk-through anyway and after a restart the brightness controls worked perfectly.

    Andre

    May 16, 2009 at 10:48

    • The combination of the patches and this find & replace worked great for me on my new 390JAS with Jaunty. Thanks to everyone who contributes here, especially egaistek!

      Jarod

      May 22, 2009 at 09:09

  189. Hi egaistek, nice blog. I bought an FW31 days ago and am using Ubuntu 8.10. My eyes are burning and I’m having great difficulty working…

    I tried this tutorial but I get an error applying dsdt-error.patch:

    lads@MDK:~/temp/2/sony-vaio-fw-series-brightness-patches$ sudo patch < dsdt-error.patch
    patching file DSDT.dsl
    Hunk #1 FAILED at 8226.
    1 out of 1 hunk FAILED — saving rejects to file DSDT.dsl.rej

    Then, when I try to compile I get the same errors reported by matt here:

    https://vaioubuntu.wordpress.com/2008/12/04/finally-a-brightness-how-to-for-vaio-fw-series/#comment-391

    So I tried the dsdt-error.patch posted by matt:

    https://vaioubuntu.wordpress.com/2008/12/04/finally-a-brightness-how-to-for-vaio-fw-series/#comment-416

    This file seems to be malformed, since it strangely starts with an } character. When applying it I get the following:

    lads@MDK:~/temp/2/sony-vaio-fw-series-brightness-patches$ patch < dsdt-error.patch
    missing header for unified diff at line 3 of patch
    patching file DSDT.dsl
    patch: **** malformed patch at line 4: }

    My DSDT.dsl can be downloaded from here:

    http://www.filefactory.com/file/ag10642/n/DSDT_dsl

    Can you you help in any way? Many thanks.

    Luís

    May 23, 2009 at 01:29

    • Out of desperation I tried the fix proposed by Andre for the FW390 and substituted the string “_T_0″ in the DSDT.dsl file by “T_0″. Compilation still produces errors, but this way the .aml file is created.

      The remaining steps went out without incident, up to the reboot. Runing the grep commands I get very similar results to those shown in the tutorial. Using the Fn key plus F5 and F6 a little menu shows up with a graphical bar that moves left or right. However, the screen simply keeps at full brightness.

      What went wrong? Can anyone point out how to deal with the remaining errors when compiling the DSDT.dsl file?

      Thank you.

      Luís

      May 26, 2009 at 03:35

      • Hello again,

        After reading other websites I tried to run acpi_listen to make sure Ubuntu is getting the Fn inputs. Here’s what I got after pressing Fn+F5 and Fn+F6:


        lads@MDK:~$ acpi_listen
        sony/hotkey SNC 00000001 00000010
        sony/hotkey SNC 00000001 0000003b
        sony/hotkey SNC 00000001 00000011
        sony/hotkey SNC 00000001 0000003b

        It seems to me that Ubuntu is getting the correct signals from the keyboard but is either ignoring them or failing to transmit them to the graphics card.

        Any help? Thank you.

        Luís

        May 27, 2009 at 19:15

      • Ok, Fn keys works as I can see. So you have not patched DSDT right. I’ll take a look right now.

        egaistek

        May 27, 2009 at 19:59

      • Try this DSDT.dsl http://www.filefactory.com/file/ag22aed/n/DSDT_fw31_dsl
        Compile it and follow tutorial from iasl DSDT.dsl line.

        egaistek

        May 27, 2009 at 21:21

      • Horray! It works!

        It reboot and set the brightness to max when the log on screen showed up, but then, when the desktop came up it decreased automatically to what I had set in the previous session.

        Thank you so much egaistek. I think this is might be the final step to leave M$ behind for good 🙂

        Luís

        May 27, 2009 at 21:43

  190. […] a comment » This little guide is faster an easier version of previous brightness how to. Since Jaunty already have sony-laptop patch included, we need to patch our DSDT bios table only […]

  191. Hi, thanks for this tip, but I have a big problem now…

    I have a VGN-FW31E with Ubuntu 9.04. I did your tutorial, patched dsdt-error-fw21.patch, dsdt-error.patch and dsdt-ati-fix-fw21.patch, compile DSDT.dsl and reboot, but now Ubuntu cannot restart any more, it freezes at “Starting up…” !
    When I launch the recovery mode, I see :

    […]
    [ 0.456420] ACPI: bus type pci registered
    [ 0.456522] PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 – 255
    [ 0.456574] PCI: MCFG area at e0000000 reserved in E820
    [ 0.456623] PCI: Using MMCONFIG for extended config space
    [ 0.456672] PCI: Using configuration type 1 for base access]
    [ 0.464494] ACPI : BIOS _OSI(Linux) query ignored

    …and that’s all.
    I start to panic : do I have to install Ubuntu again ?

    XPJ

    May 31, 2009 at 21:33

    • This can’t be just because of DSDT patching, if you did it correct. You can delete DSDT.aml (sudo rm /etc/initramfs-tools/DSDT.aml) file in recovery mode and then do dpkg-reconfigure linux-image-`uname -r` to clear DSDT modification from system.
      If system boots ok, you can try this guide.
      If not, that means that you did something more than just DSDT patching.

      egaistek

      May 31, 2009 at 21:59

      • Ok, I succeeded in booting my Ubuntu, and I tried the 2nd guide…

        AND IT WORKS !!! Thank you so much, you’re a god !

        XPJ

        June 1, 2009 at 00:46

  192. Hi,

    Thanks for this patch, it works great on my custom build vaio fw3.

    However I’m having kernel panics do to a buggy iwlagn wireless driver with the factory ubuntu driver.
    Do you have this patch to the latest kernel(2.6.30-rc7) from kernel.org ? I tried to apply it but it failed, the modules has too much changes.

    Thanks

    s.illes79

    June 1, 2009 at 14:54

  193. Hi. I have a FW31M and applying the patches as they appear at the beginning return an error, as the (buggy) _T_0 variables seem to appear somewhere else. Anyway, I applied the first and second patches without problems and then I manually corrected the _T_0 variables to be T_0. Compilead and recompiled, and the volume keys are working and nothing else (ethernet, wireless, bluetooth, CD, USB, etc.) seems to be broken, so I assume it is pretty safe.

    Where can / should I send the original and patched up DSDT for other to benefit from this?

    Cheers!

    Manuel

    June 9, 2009 at 04:06

  194. Got this working on gentoo like a charm, sony-laptop patch still necessarry on 2.6.28 gentoo-sources. Thank you very much.

    matt

    July 21, 2009 at 20:14

  195. Worked perfect on VAIO FW 390J.
    Thanks!!!

    Alex

    September 12, 2009 at 10:40

  196. Hi, Does this work with the latest beta 9.1 (k)ubuntu?

    I don’t wanna upgrade and end up burning out my eyes 🙂

    s.illes

    October 2, 2009 at 17:06

  197. […] you want to apply this patch please follow fourth step in Finally a brightness How To post but apply this new patch instead of old […]

  198. Hi, there’s the possibility to adjust this patch to work with new Lucid kernel?

    cRoW2k

    May 10, 2010 at 17:39

  199. […] disponibilizar são da minha autoria. Este problema tem a ver com o bug 11682. Os patches são do egaistek. Para começar é preciso então fazer download dos patches. É preciso instalar o seguinte: sudo […]

  200. Hi,
    I have a VAIO VGN-FW460J, with Ubuntu 10.10, kernel 2.6.35-22-generic.

    When I use acpi_listen, I got this:

    sony/hotkey SNC 00000001 00000010
    sony/hotkey SNC 00000001 0000003b
    sony/hotkey SNC 00000001 00000011
    sony/hotkey SNC 00000001 0000003b

    Two first lines is for Fn+F5. Two last for Fn+F6.

    Any chances that this tutorial and the other one (https://vaioubuntu.wordpress.com/2009/05/28/quick-brightness-guide-for-jaunty/) doesn’t work just for my model???

    What can I do?

    Thankx

    Carlos

    October 25, 2010 at 02:18

  201. If I supply you my DSDT.dsl for my FW460J, could you help me with that???

    Carlos

    October 26, 2010 at 03:39

  202. Help me please with the same problem, but only at me the laptop sony vaio vgn-aw290j

    Evgeny

    November 1, 2010 at 14:13

  203. […] I tried below links too , but still problem persists. unable to change brightness settings in sony vaio e series laptop https://vaioubuntu.wordpress.com/2008/12/04/finally-a-brightness-how-to-for-vaio-fw-series/ […]

  204. […] I tried below links too , but still problem persists. unable to change brightness settings in sony vaio e series laptop https://vaioubuntu.wordpress.com/2008/12/04/finally-a-brightness-how-to-for-vaio-fw-series/ […]

  205. […] I tried below links too , but still problem persists. unable to change brightness settings in sony vaio e series laptop https://vaioubuntu.wordpress.com/2008/12/04/finally-a-brightness-how-to-for-vaio-fw-series/ […]


Leave a reply to egaistek Cancel reply