**** WARNING: This will only work for releases up to Feisty. For Gutsy release and later check here! (only for FS model laptops). If you don’t have an FS model laptop, you can try this tutorial anyway but skip installing the Sony_acpi software and go straight to part two. I’ve not tried this myself though, so please leave a comment if it works for you 🙂 ****
Part 1 – How to set up your laptops bios to use the keys & how to install the sony_acpi patch.
(Tested in Feisty & Dapper)
Setting the Bios:
The first thing that you need to do, is to go into your laptops bios & check that the HotKey Event Code is set to Type 1..
Restart your computer & keep pressing the F2 key until it enters the setup screen.
Press the right arrow key once to change to the Advanced screen.
Navigate to the last option called HotKey Event Code by pressing the down arrow key & Press the enter key to show more options.
Use the up & down arrow keys to highlight Type 1 & press the enter key again to select it.
Press the right arrow key 3 times to get to the Exit menu & press the enter key to Save the Changes & Exit.
Press the enter key again at the pop up box to confirm the saving of the changes.
Let the computer restart & boot up as normal.
WARNING: People who dual boot between Ubuntu & Windows might find that the keys won’t work anymore in Windows. You shouldn’t have any trouble, but if you do then it’s changing this setting that’s caused it.
The first thing that you need to do is enable the extra repositories.
Once you’ve done that, it’s time to install the sony_acpi patch..
Open up a terminal & type sudo apt-get install libasound2-dev build-essential linux-headers-$(uname -r) gcc-3.4 libxosd-dev & press the enter key. Keep pressing Y to confirm installation of the software when asked.
Next type sudo rmmod sony_acpi to make sure that sony_acpi’s not already loaded on your system. You may get an error saying.. ERROR: Module sony_acpi does not exist in /proc/modules. This is a good & nothing to worry about 🙂
Enter the following commands into a terminal one at a time & press enter after each one..
wget http://download.berlios.de/fsfn/sony_acpi.tar.gz – downloads the software’s archive to your home folder.
tar zxvf sony_acpi.tar.gz – extracts the contents of the archive into a new folder inside your home folder called sony_acpi.
cd sony_acpi – navigates into the folder you just extracted from the archive.
make && sudo make install – compiles the software & installs it on your laptop.
As this is an Ubuntu specific install, we now need to copy one of the newly created files from the sony_acpi folder that your already in, to the correct folder that the Ubuntu system uses..
sudo cp sony_acpi.ko /lib/modules/2.6.20-15-generic/kernel/ubuntu/acpi
(If your using a different kernel, then change the 2.6.20-15-generic part to the correct kernel number).
sudo modprobe sony_acpi – starts up the newly installed software on your laptop.
If you type ls /proc/acpi/sony into your terminal now & press the enter key, you should see the 3 files that you need in the sony folder.. brightness brightness_default & fnkey.
Feel free to delete the sony_acpi archive now from your home folder, but keep the sony_acpi folder that you created where it is, in case you need to copy the file again the next time you update your kernel.
sudo rm -r sony_acpi.tar.gz – removes the sony_acpi archive.
If you restart your laptop, open up a terminal & again type ls /proc/acpi/sony, you should still be able to see the 3 files. The sony_acpi software will also be auto run on boot up..
To test this type sudo rmmod sony_acpi into a terminal again, but this time you won’t get an error & it will let you input the next command (If you do this, don’t forget to start up the sony_acpi software again with sudo modprobe sony_acpi).
That’s all folks 😀
Not as bad as you expected it to be hey?