Ubuntu on the Sony Vaio VPCY 21S1E

This is a subnotebook (“ultraportable”) sold by Sony with quite a nice hardware lineup. Installing Ubuntu on it wasn’t quite easy due to graphic drivers but fear not! There is a solution that makes it work 100%, including 3D acceleration. Also, the touchpad doesn’t work at first. Doesn’t matter either, we’ll fix that too.

Issues with this laptop

All those issues have fixes.

Hardware list

Per default, the device comes with

Default Configuration

Per default, the laptop comes with 3 Partitions already:

Installation

Graphics issues

When booting from standard Ubuntu installation media, the screen goes blank right at the beginning, even before the boot splash. This is due to the graphics card not being supported correctly by the kernel. What doesn’t work is Kernel Mode Setting (i.e. switching resolution etc), hence the black screen.

Graphics solution

To install Ubuntu correctly, you will need the Alternate Installation CD. And since your laptop has 4 GiB of RAM, you will need the amd64 variant. Get the alternate amd64 installation ISO from the Ubuntu homepage

  1. Burn an installation cd or write it to usb and boot from your medium.
  2. On the first splash screen, press any key to be shown the boot options.
  3. Press F6 to see advanced settings and select nomodeset. This will disable Kernel Mode Setting and allow you to see at least text.
  4. Installation should work self explanatory from there.
  5. After the reboot, you should see the standard greeter and log in.

Don’t worry if the touchpad doesn’t work. We’ll fix that later. Also, we’ll improve the screen resolution. Until then, plug in an USB mouse.

Installing another kernel

Since we disabled kernel mode switching before installation and Intel has removed User Mode Switching in their drivers, we’re running on VESA drivers that support only 1024x768. To fix that, we will have to both re-enable kernel mode switching and install a newer kernel with the appropriate drivers.

Before we install a new kernel, re-enable KMS:

gksudo gedit /etc/default/grub

In the line that starts with GRUB_CMDLINE_LINUX= remove everything between the quotes. Leave the quotes where they are.

As of 2010-12-28, I had the best luck with the 2010-12-24 snapshot of 2.6.37rc3:

Install the packages you just downloaded.

Installing the latest video drivers

Add the Ubuntu X-Swat-Updates PPA:

sudo add-apt-repositry ppa:ubuntu-x-swat/x-updates; sudo apt-get update && sudo apt-get dist-upgrade -u 

Battery meter

To see your current battery capacity, you’ll need to install an updated GNOME power manager. Add a PPA that includes the bugfix

sudo add-apt-repository ppa:brian-rogers/power; sudo apt-get update && sudo apt-get dist-upgrade -u 

Reboot

After reboot, the new kernel and system updates will have taking care both of the graphics issues and the nonworking touchpad. The new GNOME power manager and upower packages should show the correct battery capacity, too.