Linux on Laptops

Sponsored by LinuxCertified Inc.

Home | New | Models | Components | Discussion | Submit        

UBUNTU 5.10 (BREEZY BADGER) ON A SONY VAIO VGN-FS315B

UBUNTU 5.10 (BREEZY BADGER) ON A SONY VAIO VGN-FS315B


The installation is very easy and doesn't require any special advice. I installed it in a formated hard disk and as the unique operating system (I don't like Windows or any other) so I can't help you if your would want to have some other operating system.  At the first time many devices are working: the wireless, the display (even the resolution is well configured to 1280x800) so I'll only talk about thing that didn't worked fine and I have to change.

Sound

The sound is detected properly and the HDA Intel (Alsa Mixer) Driver  is used. The problem is that, if you try to hear something you will hear nothing: this is not a problem of the driver but only of the volume. To fix this, open your volume control icon in the upper right corner of the desktop and edit the preference so you can see all this volume controls:
volume controls
Raise to the maximum all the volume controls (specially PCM, Front and PC Speaker) and everything will sound fine.

DVD

The DVD is detected properly but the DMA is not active by default and thus you can have problems playing and recording dvds and cds. To overcome edit the file /etc/init.d/bootmisc.sh and add
 hdparm -d1 /dev/hdb

after the line that contains

[ -f /etc/default/rcS ] && . /etc/default/rcS


so the final result can be something similar to

[ -f /etc/default/rcS ] && . /etc/default/rcS
hdparm -d1 /dev/hdb

Every time you boot your computer you will have your DVD DMA activated.

Touchpad

After the installation the touchpad is configured as an emulation of a PS/2 mouse, so it doesn't have any vertical/horizontal scroll ability or any other configurable features.  The first thing that you have to do is install the latest version of the synaptic driver from http://web.telia.com/~u89404340/touchpad/
Once installed, we can manage the touchpad as a real touchpad (not anymore a PS/2 mouse). The way to do this is to edit the file  /etc/X11/xorg.conf and add/modify the lines in bold:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
    FontPath    "/usr/share/X11/fonts/misc"
    FontPath    "/usr/share/X11/fonts/cyrillic"
    FontPath    "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/Type1"
    FontPath    "/usr/share/X11/fonts/CID"
    FontPath    "/usr/share/X11/fonts/100dpi"
    FontPath    "/usr/share/X11/fonts/75dpi"
        # paths to defoma fonts
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
    Load    "GLcore"
    Load    "i2c"
    Load    "bitmap"
    Load    "ddc"
    Load    "dri"
    Load    "extmod"
    Load    "freetype"
    Load    "glx"
    Load    "int10"
    Load    "type1"
    Load    "vbe"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "es"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ImPS/2"
    Option        "Emulate3Buttons"    "true"
    Option        "ZAxisMapping"        "4 5"
EndSection

Section "InputDevice"
    Identifier    "Synaptics Touchpad"
    Driver        "synaptics"
    Option        "SendCoreEvents"    "true"
    Option        "Device"        "/dev/psaux"
    Option        "Protocol"        "auto-dev"
    Option        "LeftEdge"        "120"
    Option        "RightEdge"        "830"
    Option        "TopEdge"        "120"
    Option        "BottomEdge"        "650"
    Option        "FingerLow"        "14"
    Option        "FingerHigh"        "15"
    Option        "MaxTapTime"        "180"
    Option        "MaxTapMove"        "110"
    Option        "EmulateMidButtonTime"    "75"
    Option        "VertScrollDelta"    "20"
    Option        "HorizScrollDelta"    "20"
    Option        "MinSpeed"        "0.3"
    Option        "MaxSpeed"        "0.75"
    Option        "AccelFactor"        "0.015"
    Option        "EdgeMotionMinSpeed"    "200"
    Option        "EdgeMotionMaxSpeed"    "200"
    Option        "UpDownScrolling"    "1"
    Option        "LeftRightScrolling"    "1"
    Option        "CircularScrolling"    "1"
    Option        "CircScrollDelta"    "0.1"
    Option        "CircScrollTrigger"    "2"
EndSection

Section "Device"
    Identifier    "Intel Corporation Intel Default Card"
    Driver        "i810"
    BusID        "PCI:0:2:0"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
    Modeline    "1280x800@60" 83.91 1280 1312 1624 1656 800 816 824 841
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "Intel Corporation Intel Default Card"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection "Display"
        Depth        1
        Modes        "1280x800"
    EndSubSection
    SubSection "Display"
        Depth        4
        Modes        "1280x800"
    EndSubSection
    SubSection "Display"
        Depth        8
        Modes        "1280x800"
    EndSubSection
    SubSection "Display"
        Depth        15
        Modes        "1280x800"
    EndSubSection
    SubSection "Display"
        Depth        16
        Modes        "1280x800"
    EndSubSection
    SubSection "Display"
        Depth        24
        Modes        "1280x800"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
   InputDevice    "Synaptics Touchpad"
EndSection

Section "DRI"
    Mode    0666
EndSection

The parameters I have selected work very fine for me but you can change them as you like. For example, in some applications like browser the horizontal scrollbar can be annoying and you can disable it  by setting 
Option "HorizScrollDelta"    "0"
But take into acount that you'll disable it the horizontal scrollbar for all the applications!

FN Keys

The first thing that you have to do is to install two packages which gives us graphical bars for the volume and bright levels. The packages are xosd and xosd-devel; execute the following command to install them:
sudo apt-get install xosd-devel xosd
Afterwards you have to download the fsfn driver, which is the driver that enables the FN keys, from http://download.berlios.de/fsfn/fsfn-1.0.tar.gz then execute the following commands:
tar xvfz fsfn-1.0.tar.gz
cd fsfn-1.0
./configure
make
sudo make install
Copy the program to a typical binary directory
cp fsfn /usr/local/bin/
We have to start the fsfn in each boot, so we are going to do similar thing that with the DMA activation. Edit the file /etc/init.d/bootmisc.sh and add

/usr/local/bin/fsfn


after the line that contains

[ -f /etc/default/rcS ] && . /etc/default/rcS


so the final result can be something similar to

[ -f /etc/default/rcS ] && . /etc/default/rcS
hdparm -d1 /dev/hdb
/usr/local/bin/fsfn

With each boot the FN keys daemon will start running, so the mute, volume up/down and brightness up/down will work. If we want the above mentioned graphical interface (why we needed the xosd packages) we have to go to
system menu -> preferences -> sessions -> startup programs
and add the following command
fsfn -o
Every time you log into your X you'll find a graphical bar like this:
fsfn

By editing the file  /etc/fsfn.conf you can configure more keys in a file with this format (type man 5 fsfn for more information). For example if you want to enable hibernation (fn + f12) you should have a file like this:

# device
#DEVICE=/dev/input/event1
#ALSA_NAME=Front
# osd looks
#OSD_FONT=-*-lucida-*-*-*-*-24-*-*-*-*-*-iso8859-1
#OSD_VCOLOR=green
#OSD_BCOLOR=yellow
# scripts
#F2_CMD=
#F3_CMD=
#F4_CMD=
#F5_CMD=
#F6_CMD=
#F7_CMD=
#F10_CMD=
F12_CMD= /etc/acpi/hibernate.sh
#S1_CMD=
#S2_CMD=

Conclusions

The Ubuntu Breezy Badger distro configures properly almost al devices of the laptop, much better than other distros that I've tried. In this help page, some minor patches are explained. If you don't understand any procedure and/or want more help with this laptop model don't hesitate to write me an e-mail.

Manuel Cebrian
e-mail: xxxmanuelcebrianramosxxx.gmail.com (remove the two xxx triplets to send me an e-mail).
March, 2006





Cheap Laptop Rugged Laptop Case Gaming Laptop Lenovo Linux Laptop
Linux on Laptops is copyright © linux-on-laptops.com
Privacy Statement  Contact us at linuxonlaptops (at) gmail.com
  Advertise on linux-on-laptops.com

No Warranties: This information is provided "as is" without any warranty, condition, or representation of any kind, either express or implied, including but not limited to, any warranty respecting non-infringement, and the implied warranties of conditions of merchantability and fitness for a particular purpose. All logos or trademarks on this site are the property of their respective owner. In no event shall linux-laptop.net, linux-on-laptops.com, or any directors, trustees, associates, or employees thereof be liable for any direct, indirect, special, incidental, consequential or other damages howsoever caused whether arising in contract, tort, or otherwise, arising out of or in connection with the use or performance of the information contained on this web site.