Quick Search:

Return to Quick Linux Tips

Installing Fedora Core 6 and 7 on Sony Vaio VGN-FJ170/B (v1.0)
Last modified: Friday November 9, 2012

I'm trying to get as much working as possible as quickly as possible. Your continued feedback below would be greatly appreciated. This guide is based on my Installing Fedora Core 5 on Sony Vaio page. If you have an interest in helping to get Linux running on this laptop I encourage you to join the mailing list I've set up and help out.

Having owned several laptops I now realize there are only a couple things that are truly important. Size (small but not too small) and a great screen. Based on those two needs I chose the Sony Vaio VGN-FJ170/B (decoding the model number: FJ series with 1.7Ghz processor in Black)

Please also refer to my Fedora Core 6 Tips & Tricks or Fedora 7 Tips & Tricks. These tips work pretty much the same on both of those versions of Fedora. If you're using Fedora 8 there are some things that now "just work" such as Wifi and other things that I haven't yet figured out how to get to work such as Fn key support.

Hardware Summary

For those interested here is the full lspci output:

Fedora Core 6 Compatibility

Please note I've also created a very low volume mailing list to discuss Linux on Sony Vaio FJ series notebooks. You can sign up HERE

Preparing for the install

The system comes preconfigured with a hidden partition #1 that contains system recovery data. I don't recommend touching that. The main NTFS partition is #2 which I resized using the built-in tools in the Knoppix distribution. It was tricky but worked fine. I've used Partition Magic in the past which I find is more work because you need to boot into XP and install the software for it to work.

I'm told that Gparted available at http://gparted.sourceforge.net/ is a very easy way to resize an NTFS partition. It has a downloadable live CD which is only 22.5MB and has an easy to use interface for re-sizing partitions. I have no experience with it but other people reported it works great.

Please note this is not an easy laptop to get going with Linux and the steps outlined below are not intended for Linux novices.

Install Fedora Core 6

You should be able to install Fedora normally on this laptop. The display is configured perfectly without any tweaking necessary.

It probably wouldn't hurt to do a yum -y update as soon as you get everything installed.

Configuring the audio

In my case the audio was muted by default. The easiest way is to start the audio applet in Gnome and bring up the Preferences. In my case the device was wrong, it was using the OSS driver which is not correct. Choose the HDA Intel (Alsa Mixer) and the device to track and control should be Front for the master volume. Once that's set Open Volume Control and unmute the Front and PCM sliders. If they don't show up in the master volume control hit Edit -> Preferences and choose all the tracks to be visible in the controller.

Controlling screen brightness

The main reason I chose a Sony notebook was for the incredibly bright screen. No other manufacturer was as good at the time I bought it (Dec 2005). However, once the brightness was set in Windows XP it was not possible to adjust it in Linux. Unlike other laptops that implement screen brightness in hardware Sony for some idiotic reason chose to do it with a driver. That also means that it's probably not going to work under Windows Vista when/if that ever gets released.

It is possible to get it to work but a little tricky. First, you'll want Stelian Pop's sony_acpi driver which I modified slightly as well as the fsfn-1.1-take2.tar.gz. Put the files in /usr/src  and extract and compile them. You'll obviously also need kernel sources and a compiler in case you didn't install them previously.

# yum -y install kernel-devel gcc
# gtar xzvf sony_acpi-0.3.tar.gz
# cd sony_acpi-0.3
# make install
# modprobe sony_acpi
Please note that you will also have to re-install the driver when you upgrade to a newer kernel.

If that worked you should have a directory /proc/acpi/sony  and it will contain three files. You can manually adjust the brightness by echoing numbers between 1 and 8 to the brightness file.

Now you need to get fsfn  to handle the special Fn keys and it will then control the audio volume and screen brightness for you and will display the new value in an on screen display. You'll need the xosd  and alsa  libraries installed for this to work properly.

# yum -y install xosd xosd-devel alsa-lib-devel
# gtar xzvf fsfn-1.1-take2.tar.gz
# cd fsfn-1.1
# ./configure
# make install
# cp fedora/fsfn /etc/init.d
Before you start you'll probably want to read the fsfn(5)  man page and create the configuration file /etc/fsfn.conf  containing at least the following line to enable a special hack necessary for the VAIO FJ series of notebooks:
Setting the ALSA_NAME is a hack to make the volume work. For some reason with FC6 the main volume controller is named Headphone instead of Front so until we find a solution to the naming problem this workaround will allow the Fn buttons to control the main volume.

To get this all working you'll need to start the fsfn  service at boot time (after the driver above is loaded). Rather than having it start automatically I added it to my startup file /etc/rc.d/rc.local :

	service fsfn start
And finally you will need the client that handles the on screen display to start when you log in. Go to Desktop -> Preferences -> No Preferences -> Sessions. Once there go to Startup Programs and add the command fsfn -o  to the list of startup programs.

Once you do all that you should be able to adjust the volume and screen brightness with the special Fn keys just like in XP.

Configuring Wifi

This laptop is based on the Centrino chipset which is well supported by Linux. However, some distributions like Fedora do not include the necessary firmware for the Wifi interface so you'll have to download it. The easiest way is to download it from the FreshRPMs repository. If you followed my Fedora Core 6 Tips & Tricks already then you can skip the first line.
# rpm -ihv http://ayo.freshrpms.net/fedora/linux/6/i386/RPMS.freshrpms/freshrpms-release-1.1-1.fc.noarch.rpm
# yum -y install ipw2200-firmware
# modprobe ipw2200
That will load the driver which will now have access to the firmware so the interface will come up automatically from now on. You can now set up your wireless interface as you would normally.

Built-in Video

This laptop has built-in video which until recently was a proprietary Windows driver only. But thanks to the wonderful work found at http://mxhaard.free.fr/ the camera can be made to work as a standard Video 4 Linux device very easily. Just download the latest gspcav1 driver from http://mxhaard.free.fr/download.html and extract it. Then you can just run the compile script.
# gtar xzvf gspcav1-20070426.tar.gz
# cd gspcav1-20070426
# ./gspca_build
That will build and install the kernel drivers. You will need to re-run that after upgrading your kernel. If you run dmesg you could make sure this driver loaded and successfully found the camera.
# dmesg
/usr/src/gspcav1-20070426/gspca_core.c: USB GSPCA camera found.(VC0321) 
/usr/src/gspcav1-20070426/gspca_core.c: [spca5xx_probe:4041] Camera type YUYV 
/usr/src/gspcav1-20070426/Vimicro/vc032x.h: [vc032x_probe_sensor:137] check sensor header 44
/usr/src/gspcav1-20070426/Vimicro/vc032x.h: [vc0321_config:354] Find Sensor OV7660
/usr/src/gspcav1-20070426/gspca_core.c: [spca5xx_getcapability:1198] maxw 640 maxh 480 minw 176 minh 144
usbcore: registered new interface driver gspca
/usr/src/gspcav1-20070426/gspca_core.c: gspca driver 01.00.16 registered
Then you can test to make sure the camera works by using an application such as VLC. Just open it as a local video capture device and you should then see yourself on the screen.

Other Odds and Ends

Nothing yet.


There are a few things that don't work (yet):

If you have any leads on getting any more features working pleae drop me a line.

Other Useful Resources

I used the following websites describing getting this or similar laptops to work with various versions of Linux in the process of getting this laptop to run Fedora Core 3. None of them had all the answers in one place however.
Linux on the VAIO TR3 - This site helped me figure out some of the goofier things about Sony laptops. Why do some companies feel the urge to re-invent things that have already been invented better by others?

Sony Vaio FS series FN keys - This site was a great source of information. It was for Gentoo/Ubuntu but the tips work just as well in Fedora.

HOWTO: Adjust brightness on Sony Vaio - Another Ubuntu related page for the FS series but many of the tips work on the FJ as well. A lot of what is in this guide came from this site.

Sony Vaio VGN FJ 1S Debian Installation - This is a great guide by blicero on getting Debian Unstable working on this laptop. He goes into some more detail on things such as getting getting external VGA to work as well as references to drivers in the works to support the MemoryStick port on the front.

This comments section below is only for comments, suggestions or corrections for this guide only. Please do not use this for general Fedora/Linux support. If you do require support for something other than what's described here I recommend using Fedora Forums.

Comments From People Like You!
Fedora Core 6 on Sony Vaio FJ
Add a Comment add a comment
12-Jan-2008 06:12
I haven't had any real problems with multimedia playback, though some games on fedora 6 skip frames like no body's business.  I have not had this problem with fedora 7, and fedora 7 comes with the drivers for the wifi card, you have to dig around during the install to find it though (they're not a default thing unless you're overwriting a previous install using the same settings, at least from what I've seen).  

    There was also a problem on fedora 6 where for some reason the touch pad affected loading things (i.e. during boot up it would hang until I moved the cursor with the touch pad, and using a "real" mouse to move the pointer wouldn't work, it HAD to be the touch pad).  Again, this doesn't seem to happen on 7 at all.
Will Morrel
18-Feb-2007 19:48
I've written a program to control brightness through the command line on Sony Vaio's.  See this page:


Please E-mail Me with any questions, comments or corrections.

All pictures and text are the property of Gregory Gulik unless otherwise specified. Please contact site owner if you would like permission to use these pictures for your own purposes or to make comments about anything you see here.