Sony Vaio P: Finding the right Linux Distro

This tutorial shows how to install Linux Mint on the Sony Vaio P (VGN-P21Z) netbook.


It took a while to find a distro that boots, supports the GMA500 (poulsbo) chipset, has some multimedia capability and the best: is debian based!
Ubuntu 10.10 did not even boot, Jolicloud needed a trick to start by tricking the RAM size still did not support the 3G modem, did not read any SD or MemoryStick cards inserted, and it seemed that once booted, the distro does not care about any usb drive plugged in the USB ports. Further, Flash (youtube) playback was interrupted and it was impossible to resize the video, etc.

So, here it is: Linux Mint on the Sony Vaio P

1. DownLoad Unetbootin to create a bootable live USB drive:

http://unetbootin.sourceforge.net/

2. Prepare a 1GB+ USB drive.
SD cards plugged into a multi-format card reader did not work..

3. Fromat the USB drive to WIN32 bit LBA mode

-first fdisk: del all, create new, partition type: “c”, set boot flag, write partition table to Flash, and exit fdisk.
-then mkfs.vfat /dev/sdx….

more here.

4. Run Unetbootin, choose  Linux Mint, version 9 (this version is based on Ubuntu 10.4).
Choose the usb drive and create the usb…

5. Switch the vaio off, plug into AC power. Plug in the usb into the Vaio, righ side USB plug. Slide the power button to right. Breathe…

6. Press several times F2, until the BIOS appears. Set external drive booting active, save bios, restart.

7. Boot the Mint Linux into mode 3 (compatibility mode or sthng like that in English). The other mode (mode 2) did not work, probably needs the same trick, as JoliCloud did, ie. pressing TAB at -grub time, and setting the memory size to 1900MB or less by using the following trick:

memmap=1K#0x7f800000 –

Now, Mint seems to be installed, but we need to fix some thing in order to have a real tiny multimedia PC:

Fix.1:. Connectivity:
try the 3G UMTS Modem, WiFi connections. WiFi should work out of the box, while the 3G modem needs a little trick:
Important:
do not forget to  deactivate the PIN of your SIM by using a mobile phone, before inserting it inot the Vaio.

How to make the modem appear in the list of wireless connections (thanks, elastic!):
- download this file and unzip it (creates a new folder),
- open terminal, switch to the newly unzipped folder, and execute the following one-by-one:
make => sudo make test => sudo make install
(the last one will do the depmod -a trick)
- restart and look for the Mobile broadband option under the Connectivity options:

Fix.2: Graphics, resolution, 2D, 3D acceleration:
Although screen resolution will be ok, glxGears will indicate only about 105 frames per second. Solution: install poulsbo support. Do not forget: the 9 version of Mint is based on Ubuntu 10.4!

Important: First edit the Grub parameters, and only then install the poulsbo drivers, otherwise you will get black screen after booting, and invoking command line (Alt-Ctrl-1) will also not work! So, pls change the grub params and THEN install the poulso drivers:

 

1) limit the amount of RAM used by the system so that there will be more available for the videocard:

sudo gedit /etc/default/grub

add the following parameters to grub configuation if you have for example 1GB RAM:

GRUB_CMDLINE_LINUX=”mem=896mb”

or if you have 2GB RAM:

GRUB_CMDLINE_LINUX="mem=1920mb"

next run:

sudo update-grub

2) Install the poulsbo drivers:

sudo add-apt-repository ppa:gma500/ppa && sudo apt-get update && sudo apt-get install poulsbo-driver-2d poulsbo-driver-3d poulsbo-config

more details here. After the driver installation, glxGears should run at 800-1000 frames per sec (10x faster as w/o the driver). Below a compatibility table, screen-shot of the Ubuntu HW support page from 24.01.2011:

Fix.3: Install supported Video Player applications
… that are supported by the recent Poulsbo driver (vaapi backend):

mplayer, gnome-mplayer and vlc

Now: vlc seems to provide wrong video screen ratios, meaning that the whole video image is compressed into the left half of vlc window. The rest of the window is black. Acc to some sources, this poulsbo-related vlc bug has been already reported to the vlc team…

But luckily mplayer performs well, at least when opening a file by using the following parameters:

mplayer -vo vaapi -va vaapi %F

By trying smplyer (the graphical interface of the command line mplayer application), the situation is almost as good s using vlc: you need to play a lot with the settings, and even using x11 as output the -vo and -va parameters as above .. do not lead to fluent video playback. Reason unknown, pls give feedback if you manage to succeed..

Possible fix: to edit mplayer conf file, and not to use any options in smplayer setting window..

http://ubuntuforums.org/showthread.php?t=1229345&page=152

Fix.4: Sleep and hibernation
… do not work right after installing the distro, so i did chose the simplest solution:

Menu > All applications > Preferences > Power management > When laptop lid is closed: Blank, When battery power critically low: shut down, Put computer to sleep: never

There is a way to solve the hibernation and sleep mode problem, solution here (session: tweaks). The following direct command (through command line) works…

Suspend by using uswsusp (alternative)
1. run:
sudo apt-get purge vbetool && sudo apt-get install uswsusp
2. …. and suspend using:
sudo s2ram –force

… but the trick by creating the defaults file …: the wake-up phase seems to be problematic (very long) on the vaio… Hope it helps. Cheers!

Advertisement

16 Responses to “Sony Vaio P: Finding the right Linux Distro”

  1. Cyrille Says:

    Nice job! Well I thought you’d go for 2 of those jewels ;-)

  2. bc Says:

    fix for the black vertical strips /vlc or mplayer/ while playing videos:
    http://ubuntuforums.org/showpost.php?p=9587681&postcount=1413
    http://ubuntuforums.org/showpost.php?p=9598669&postcount=1461

  3. touchmods Says:

    the reason of incompatibility of the poulsbo drivers w different kernel versions:
    http://www.linuxjournal.com/content/how-kick-your-friends-face-gma500#comment-344702

  4. elastic Says:

    For working 3g without booting windows before download >>sony-laptop-zseries-0.9np5.tar.gz< make => sudo make test => sudo make install => depmod -a unfortunately you have to do this again after every kernel update …

  5. touchmods Says:

    ok, just trying to install the tools from here:
    http://www.logic.at/people/preining/software/sony-laptop-zseries-0.9np5.tar.gz
    .. and it works!
    ok, updating the post above. thanks!

  6. cloudjubei Says:

    I’ve tried installing the poulsbo graphic drivers both before amd after updating linux and in both cases when i start up the system i get a blank screen with nothing happening. Any suggestions on what could be going wrong?

  7. Kamil Chmurzynski Says:

    Hi,
    I’ve installed Linux Mint on my Vaio P no problem, but when I’ve updated the poulsbo drivers (both before and after linux update) the laptop simply doesn’t boot, as in it stops after the loading on the underscore in the top left.
    Is there anything you guys are doing that I’m missing, that makes this work?

  8. Maxim Says:

    It did not work for me – although I followed exactly your steps I ended with black screen after installink psb drivers. I am pretty sure I didn’t let it update.

  9. touchmods Says:

    @ cloudjubei, Kamil, Maxim: no idea, why it does not work for you. What is the exact version of your Vaio? The one proving this tutorial was VGN-P21Z.

  10. Ed Says:

    Right after following instructions on Fix 2, black screen appears after reboot. Does not work. Model VGN-P530H.

  11. loadran Says:

    I also ended up with a black screen, but was able to fix it for one boot by editing the grub line manually (e and ctrl-x when done) with mem=1920m. That’s with the 2GB model. I followed the “Memory allocation optimization” instructions here:
    https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/#Compiz

    … to make it permanent. :)

    Besides that, great guide! I had a more trouble getting uswsusp to work; I ended up giving up on doing it right and simply replaced the pm-suspend binary with a script, which is really not a good idea but works.

  12. Ed Says:

    ^ That was the missing piece of this guide. That very grub edit. It finally works now (no black screen). Flash is not as smooth as Windows but it’s on its way. Hoping for better drivers soon.

  13. Fernando Says:

    hey!! i done this linux mint 9 install on my vaio p (vgn-p530h) and run super nice, but , is plausible to get the mouse work like it is on windows 7? all the tap and select and the middle button to scrol ? and why i se android phones running with less specs and can get better flash videos than my vaio?

  14. Patrice Says:

    Hi,
    On the http://www.linuxmint.com/release.php?id=13, I see that there are several desktop versions of Linux Mint 9, wich one where you using? Fluxbox, LXDE, Gnome or KDE og Xfce? Does it matter wich one chose? I’m used to Gnome, but perhaps it’s to heavy for the Vaio P?

    • touchmods Says:

      It was Gnome-based. BUT..
      recently tried Ubuntu 11.04 .. and it supports the modem and the screen resolution without the need to install anything extra. Surprising. Of course, Gnome version again. Good luck!

  15. Manish Rajalwal Says:

    can anybody suggest compatible distro for vaio VPCEB24EN???

    thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.