**** 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 don’t install the Sony_acpi software from part 1 and download the 2.0.1 version of the fsfn software from here and use that in part 2. I’ve not tried this myself though, so please leave a comment if it works for you 🙂 ****
You can find Part 1 of the tutorial here & Part 2 here!
Part 3 – This will be all about the fine tuning your Sony Fn Keys configuration file & making the software auto run at boot time.
Auto run the FSFN software on boot:
Open up a terminal, type in the BOLD parts of these lines one at a time in order & press enter after each one..
wget http://gp2x.projectinfinity.org.uk/downloads/fsfn/fsfn.txt -Downloads the needed file to your desktop.
sudo mv fsfn.txt /etc/init.d/fsfn – This command will copy the file into the correct directory & renames it to fsfn.
cd /etc/init.d/ – Navigates you into the same directory that you just moved the file into.
sudo chown root:root fsfn && sudo chmod +x fsfn – This will change the owner of the file to root & stop anyone else from using it without sudo.
sudo update-rc.d fsfn defaults – This is the command that updates the boot process to include the FSFN daemon.
Auto run the On Screen Display software on boot:
If you want the on screen display to show up when you change volume/brightness you need to add it to the Gnome Sessions Manager. Dapper & Edgy users will need to click here to find out how to do that, as there’s currently a problem with the permissions for the default installs.
In the Startup Programs tab; click on the New button on the right to add your program..
Call it something like fsfn display in the Name: box & type fsfn -o in the Command: box & press the OK button to save it.
Now you just need to press the Close button & save your entry.
Don’t restart just yet as you still need to tweak your settings a little 😀
Tweaking your configuration:
sudo killall fsfn – to stop the FSFN daemon.
sudo gedit /etc/fsfn.conf – This will open up the main configuration file in the text editor.
You’ll find the following options in the file, just remove the # from the beginning of a line to activate them or add it to disable them..
With the Device option set to AUTO, you don’t need to manually find out what event number your keyboard works on.
These are your sound cards options.
The PCM option seems to work the best for me, but try them all to see which one you prefer.
Adding different targets to these fields will override the default key actions.
e.g. S1_CMD=/usr/bin/gnome-system-monitor to start up the Gnome System Monitor when you press the S1 button.
Lets you choose which font the On Screen Display uses.
Allows you to choose which colours the On Screen Display uses for the font.
VCOLOR = Volume colour
BCOLOR = Brightness colour
VCOLORZ = Mute Volume colour
(I’ve changed these to make them fit in with the Ubuntu colour scheme a little better)
Sets the default brightness for your laptop to boot up with.
(The default is 3)
Allows you to manually set the amount of time that the On Screen Display shows for.
(The default is 3)
If you find that the software won’t change your brightness correctly, then try enabling this option.
You should now have all the info that you need to set this software up to your preference. Don’t forget to save the file before exiting 🙂
Once you’ve finished with the tweaking, restart your laptop & you will have both of the programs load automatically & your Fn key will work as it should.
Huge thanks to everybody who’s worked on the FSFN software & to all the people in the Gentoo & Ubuntu forums who made this a lot easier than it would have been without them.