As some of you know, I am a Sony freak. I also have been working on switching from Windows to Linux. The following is how I got Ubuntu working on my Laptops and what works and what doesnt.

Let’s start with my laptops, I have 3 main laptops they are all Sony Vaio’s with the following model numbers:

AR290GSZ430N

UX280P

I will try to organize each phase of the install with what I did with each to get Ubuntu installed. The portions of the install that are specific to one of the types will have [model] in the beginning of that section.Ubuntu installation[SZ430N & UX280P]

I used the Ubuntu Desktop CD and ran the install from the Install Icon with no issues. I used the defaults and no special drive layout.

NOTE: On the SZ, I had Vista installed and during the install, Ubuntu did a resize and added the option to boot into Vista in the grub bootloader. This worked flawlessly, I tried a reboot into the Vista OS and it did a drive check, rebooted, and then went into Vista with no issues whatsoever. I have since removed the Vista partition and the entire laptop is all Ubuntu (160 Gig)

[AR290G]Now, my AR290G has two 200 Gigabyte drives, using the standard Ubuntu install, it would only install to one of the drives and there was no options to RAID or change drive layouts except basic partitioning on a single drive. I did some research and found that the “alternate” install CD/DVD allowed you to do this. Also, when I got around to my AR, Ubuntu Studio released and I wanted to try that.

I downloaded the Ubuntu Studio Alternate DVD and did an install from that. This does not load a “live” image, it’s a standard text based install similar to the Debian install (surprise! Ubuntu is a Debian fork).

When I got to the drive partitioning portion, I configured the following: (/dev/sda and /dev/sdb got identical partions)

Partition 1: 5 Gig, flagged RAID and BootPartition 2: 1 Gig, flagged RAID

Partition 3: 194 Gig, flagged RAID

Then I set up “Software Raid” as follows: /dev/md0 : RAID1 (mirrored), /dev/sda1 & /dev/sdb1, mountpoint: /boot/dev/md1 : RAID0 (striped), /dev/sda2 & /dev/sdb2, mountpoint: swap

/dev/md2 : RAID0 (striped), /dev/sda3 & /dev/sdb3, mountpoint: /

I ended with the following: 5 gig /boot2 gig swap

388 gig /

Then did the normal install of Ubuntu Studio.FirstbootAfter my first boot into Ubuntu, on all 3 laptops, wireless was recognized and working fine. (I did get a “restricted drivers” icon and it reported that the wireless was such) [SZ430N and AR290G] I also recieved notice about nVidia drivers restricted are available. I did nothing about it at the time.. read on.

From previous experience with Ubuntu, it annoyingly asks for the damned CD when it does any updates. The first thing I do is go into /etc/apt/sources.list and comment out any reference to the CD. Annoyance gone!

Then I ran the updates and on the SZ and AR I went to System > Administration > Restricted Drivers Manager and hit the nVidia checkbox and let the system install the nVidia Drivers. I then rebooted and everything looked MUCH prettier. FPRIVATE “TYPE=PICT;ALT=:-)”

Next, in anticipation of having to compile stuff I ran the following:

sudo apt-get install build-essential checkinstall
sudo apt-get install linux-headers-`uname -r`
These commands install compilers and the linux headers (although on both Ubuntu and Ubuntu Studio, the “linux-headers” were already installed.

Ubuntu Studio Note: By default, Ubuntu Studio boots to the -lowlatency kernel. For purposes of pre-compiled compatibility, I switch back to the -generic kernel by setting the default option in /boot/grub/menu.lst to 2 or 3 depending on which one it is on your list (one install it was 3, the other it was 2)

CAMERA DRIVERNext I followed the instructions at: http://lsb.blogdns.net/ry5u870/

In a nutshell:

Step 1:added arakhne to /etc/apt/sources.list - append the following to end of file:

deb http://www.arakhne.org/packages/ubuntu feisty-arakhne universe

Step 2:added keys and updated apt:

gpg –keyserver www.keyserver.net –recv-keys 0xBA62BC7E
gpg –export -a 0xBA62BC7E | sudo apt-key add -
apt-get update
Step 3:Downloaded and installed drivers:

apt-get install ricoh-webcam-r5u870 Step 4:Rebooted and tested:

I used xawtv to test. First install xawtv:

apt-get install xawtvNote, xawtv has issues with nVidia, so when I ran it for the test I did:

xawtv -nodgaand voila! it worked!

For the most part that’s all I needed to get the hardware working on the SZ and AR. The following is how to get the touchscreen and sound working properly on the UX.

[UX280P SPECIFIC] SOUNDFrom: http://www.micropctalk.com/forums/showthread.php?p=13374

Right click on the speaker icon and select volume control. Then Edit|Preferences and check mono on the list (it’s near the bottom). Click on the little speaker icon under Mono to unmute and then raise the slider bar. Exit. Now rightclick on the sound icon in the taskpane again and choose preferences. Choose Mono from the list and you should now have sound. Restart to confirm.

TOUCHSCREENI got this from various sources. I forgot some of the links so please forgive me for not giving credit to the original authors. I do remember there were 3 specific sites I got this information from and tweaked it to my liking.

I first used the evdev driver and noticed that when you moved out from the center your mouse pointer went further away from where you were actually touching.

I switched to the evtouch driver

To get evtouch go to:

http://stz-softwaretechnik.com/~ke/touchscreen/evtouch.html#download

cp driver to: /usr/lib/xorg/modules/input/

edit your xorg.conf with the following settings:

Section “InputDevice”
Identifier “Gunze touchscreen”
Driver “evtouch”
Option “SendCoreEvents” “true”
Option “ReportingMode” “Raw”
Option “Device” “/dev/input/event2″
Option “minx” “30″
Option “maxx” “990″
Option “miny” “50″
Option “maxy” “970″
EndSection
Section “InputDevice”
Identifier “Gunze touchscreen2″
Driver “evtouch”
Option “SendCoreEvents” “true”
Option “ReportingMode” “Raw”
Option “Device” “/dev/input/event4″
Option “minx” “30″
Option “maxx” “990″
Option “miny” “50″
Option “maxy” “970″
EndSection

I also added in: Section “ServerLayout”

Inputdevice “Gunze touchscreen”
Inputdevice “Gunze touchscreen2″
This allowed me to use the touchscreen without calibration. Everything is pretty much on track, maybe off by 1 or 2 pixels, but it works fine. Double tap, drag and drop etc works great.

This pretty much covers getting the hardware working. On the AR290G, the volume buttons and mute work great, on the SZ and AR the FN buttons all do what they are supposed to do. I have not messed with trying to get the special buttons on the UX working. On my next blog, I will cover what I did to get bluetooth tethering to work. (Using my phone as an internet connection)

RSS Trackback URL TheJoe | May 17, 2007 (11:25 am)

Technobabble

Write a Comment