HardwareSupportComponentsVideoCardsPoulsbo

Differences between revisions 33 and 36 (spanning 3 versions)
Revision 33 as of 2010-01-22 04:06:55
Size: 7196
Editor: c-98-216-214-137
Comment: posted a warning since lucazade ran out of bandwidth
Revision 36 as of 2010-01-28 04:57:21
Size: 8145
Editor: c-98-216-214-137
Comment: updated link for the installation script download. TRIED to clarify mplayer-vaapi stuff. This is still confusing, needs work
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
{{attachment:IconsPage/IconWarning3.png}} Due to traffic limitation by provider, you may not be able to download this script temporarily. Please try again in a day or two. ## FOR EDITORS: METHOD REMOVED. DO NOT USE LUCAZADE PPA BY HIS PERSONAL REQUEST
##
##{{{
##1) Add the following to your /etc/apt/sources.list
##deb http://ppa.launchpad.net/lucazade/gma500/ubuntu/ karmic main
##deb-src http://ppa.launchpad.net/lucazade/gma500/ubuntu/ karmic main
##
##2) Install the Kernel modules
##sudo apt-get install psb-kernel-source
##sudo apt-get install psb-kernel-headers
##sudo apt-get install psb-modules
##
##3) Reboot
##}}}
##
##
##== Karmic (9.10) - Alternate Method ==
{{attachment:IconsPage/IconWarning3.png}} Due to traffic limitation by provider, the script has been temporarily relocated. If you have downloaded a previous version of poulsbo.sh script, please remove it prior to executing the following command.
##{{{
##1) PPA-based (UbuntuMobile & Milone):
##wget http://gma500re.altervista.org/scripts/poulsbo_ppa.sh && sh ./poulsbo_ppa.sh
##
##or
##
##2) FTP-based (no ppa repositories):
##wget http://gma500re.altervista.org/scripts/poulsbo.sh && sh ./poulsbo.sh
##}}}
The following script will download and install .deb packages for GMA 500 video chipset, including latest Flash player and hardware-accelerated mplayer, and will configure X server.
Line 12: Line 39:
1) PPA-based (UbuntuMobile & Milone):
wget http://gma500re.altervista.org/scripts/poulsbo_ppa.sh && sh ./poulsbo_ppa.sh

or

2) FTP-based (no ppa repositories):
wget http://gma500re.altervista.org/scripts/poulsbo.sh && sh ./poulsbo.sh
wget http://dl.dropbox.com/u/1338581/Gma500/scripts/poulsbo.sh && sh ./poulsbo.sh
Line 21: Line 42:
'''Note:'''  '''Note:'''
Line 25: Line 47:
There are two ways to re-enable the driver, the first one is the easiest: There are several ways to re-enable the driver, this one is the easiest:
Line 30: Line 52:
If it fails, try the second set of commands:

{{{
# apt-get purge psb-kernel-source
# wget http://gma500re.altervista.org/_altervista_ht/psb-kernel-source_4.41.2-0ubuntu1~910um1_all.deb -O /tmp/psb-kernel-source_4.41.2-0ubuntu1~910um1_all.deb
# dpkg -i /tmp/psb-kernel-source_4.41.2-0ubuntu1~910um1_all.deb
}}}

If you want to use VAAPI video acceleration, look at this howto:
http://linux-tipps.blogspot.com/2009/12/vaapi-accelerated-hd-video-on-msi-wind.html

If you get a crash with kernel null pointer dereference on loading the psb module, try this:
'''Troubleshooting''': If you get a crash with kernel null pointer dereference on loading the psb module (likely for MSI Wind U110), try this:
Line 121: Line 132:
'''Hardware accelerated video.'''
Psb driver supports hardware acceleration using [[http://en.wikipedia.org/wiki/Video_Acceleration_API|Video Acceleration API (VA API)]]. The script on the top of the page provides a media player with hardware acceleration (mplayer-vaapi) as a package. Alternatively, the following instructions will let you build your own mplayer with VAAPI video acceleration:
http://linux-tipps.blogspot.com/2009/12/vaapi-accelerated-hd-video-on-msi-wind.html

This page details support for the Intel GMA500 "Poulsbo" video hardware in various Ubuntu releases.

Karmic (9.10) - New Method

IconsPage/IconWarning3.png Due to traffic limitation by provider, the script has been temporarily relocated. If you have downloaded a previous version of poulsbo.sh script, please remove it prior to executing the following command.

The following script will download and install .deb packages for GMA 500 video chipset, including latest Flash player and hardware-accelerated mplayer, and will configure X server.

wget http://dl.dropbox.com/u/1338581/Gma500/scripts/poulsbo.sh && sh ./poulsbo.sh

Note:

1)The above method works with the original Karmic kernel - 2.6.31-14. When the above scripts are used with current versions [2.6.31-17+], it causes problems. It is suggested that kernel be held at 2.6.31-14 for best results. [Audio failure on Acer 751 has been reported for later kernels].

2)However, if you decide to test a new kernel, after the kernel update, the following steps are needed to re-enable the driver. Prior to a computer reboot, print these instructions so you have them available. Choose a "Recovery" option from the boot menu, and run the following commands from prompt. There are several ways to re-enable the driver, this one is the easiest:

# dpkg-reconfigure psb-kernel-source

Troubleshooting: If you get a crash with kernel null pointer dereference on loading the psb module (likely for MSI Wind U110), try this: http://linux-tipps.blogspot.com/2009/12/x-video-finally-works-linux-on-msi-wind.html

Karmic (9.10) - Old Method

Run the following commands as root:

#
# Add PPAs
#

echo 'deb http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main' >> /etc/apt/sources.list.d/ubuntu-mobile.list

echo 'deb-src http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main' >> /etc/apt/sources.list.d/ubuntu-mobile.list

echo 'deb http://ppa.launchpad.net/albertomilone/poulsbo-graphics/ubuntu jaunty main ' >> /etc/apt/sources.list.d/poulsbo-graphics-alberto-milone.list

echo 'deb-src http://ppa.launchpad.net/albertomilone/poulsbo-graphics/ubuntu jaunty main' >> /etc/apt/sources.list.d/poulsbo-graphics-alberto-milone.list


#
# Add keys for PPAs
#

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6699F3D9

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C6598A30

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 99C0198F


#
# Install new packages
#
# Note: installing psb-kernel-source may take a while.
#

apt-get update

apt-get install dkms \
                fakeroot \
                libdrm-poulsbo1 \
                poulsbo-driver-2d \
                poulsbo-driver-3d \
                psb-firmware \
                psb-kernel-source \
                psb-kernel-headers \
                psb-modules

echo "blacklist i915" >> /etc/modprobe.d/blacklist.conf

update-initramfs -u

Create xorg.conf with following content and whitelist psb in /usr/bin/compiz by adding "psb" to the WHITELIST line.

Section "Device"
        Identifier      "GMA500"
        Option "AccelMethod" "EXA"
        Option "DRI" "on"
        Option "MigrationHeuristic" "greedy"
        Option "IgnoreACPI" "yes"
        Driver "psb"
EndSection

Section "DRI"
    Mode    0666
EndSection

Now reboot, and your video should work correctly.

If it does not and fails while DKMS is trying to build your psb module, try downloading lucazades psb-kernel-*.deb packages from http://swiss.ubuntuforums.org/showpost.php?p=7773647&postcount=13 and then do a:

 sudo dpkg -i psb-kernel-* 

Hardware accelerated video. Psb driver supports hardware acceleration using Video Acceleration API (VA API). The script on the top of the page provides a media player with hardware acceleration (mplayer-vaapi) as a package. Alternatively, the following instructions will let you build your own mplayer with VAAPI video acceleration: http://linux-tipps.blogspot.com/2009/12/vaapi-accelerated-hd-video-on-msi-wind.html

Kernel parameters (in grub).

If you have a Vaio-P or if you are experiencing extremely slow performance (less than 14 fps running "/usr/bin/xscreensaver/glblur -fps -window") add "mem=2000mb" to /etc/default/grub, at the end of GRUB_CMDLINE_LINUX_DEFAULT, if using grub2, or at the end of the "# defoptions=" line in /boot/grub/menu.lst. For both grub versions run update-grub after editing those files. This reserves memory for the video driver and should improve your 3D performance.

Attention: For machines with only 1GB ram, the entry should be "mem=980mb"

Intrepid (8.10) and Jaunty (9.04)

The drivers for the Poulsbo chipset are shipped in the ubuntu-mobile PPA.

Add the ubuntu-mobile PPA

Edit a file called /etc/apt/sources.list/psb.list, and add the following line to it: deb http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu YOUR RELEASE HERE main

You may also wish to add the key to the keyring by following the instructions here.

Which kernel are you running?

If you are using a kernel that you have compiled yourself, or are not using the latest kernel provided by either Intrepid or Jaunty, install the psb-kernel-source package (and make sure the headers for your kernel are available!) and then remove psb-modules.

Install packages

Install poulsbo-driver-2d if you only require 2D, and poulsbo-driver-3d if you also require 3D acceleration to work. Make sure your user is a member of the video group before using 3D.

Hardy (8.04)

The Poulsbo hardware is not supported in the community version of Ubuntu. However, it is reputed to "just work" on Hardy version shipped by a netbook manufacturer.

For example, the support for GMA 500 hardware by Dell Ubuntu Hardy 8.04 is provided by the following repository

deb http://dell-mini.archive.canonical.com/updates hardy-dell-mini public

Common problems

X doesn't start

Double check that the psb kernel module can be loaded into the running kernel by running modprobe psb.

3D Graphics (OpenGL) does not work after suspend and resume

This is a known bug with psb kernel driver. Due to partial close nature of the driver, because Intel has not released an open source driver, the bug fix is currently no available. There are reports1 that a new driver will be available shortly.

Additional Reading

Why GMA 500 hardware doesn't work out of the box? Read "Blaming Intel for how the world is" by Henry Kingman

Other problems?

If you're still having problems, please mail ubuntu-mobile@lists.ubuntu.com, and do not submit bug reports.

HardwareSupportComponentsVideoCardsPoulsbo (last edited 2013-11-11 16:58:16 by 157)