Tuesday, September 21, 2010

xf86-video-psb (GMA 500 / Poulsbo on Xorg 1.7

I was finally able to get Xorg 1.7 working with the xf86-video-psb, including 3D acceleration and va-api.  The overall performance of the driver seems better than Xorg 1.6 was.  I am running XFCE with a composite desktop, which works well.

After shamelessly stealing the patches from http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/x11-driver-video-psb/current/SOURCES/, and some slight modifications to the ebuild, I was able to get everything working.  Basic steps:

Apply the following patches (in addition to the ones already included in current ebuild):
  • xserver-xorg-video-psb-0.31.0-assert.patch
  • xserver-xorg-video-psb-0.31.0-comment_unused.patch
  • xserver-xorg-video-psb-0.31.0-greedy.patch
  • xserver-xorg-video-psb-0.31.0-loader.patch
  • xserver-xorg-video-psb-0.31.0-xf86AddModuleInfo.patch
When building, you also need to set the CFLAGS to include -fvisibility=default.

Once this is done, just emerge like normal and your full Poulsbo graphics card will work with the latest stable Xorg 1.7.  To make things easier, I have submitted a patch to Gentoo, you can download everything you need there into your own local overlay.

2 comments:

  1. This is exactly what I was looking for. However, although I am quite experienced with gentoo, I do not really know what to do. Would it be possible to describe the steps a little more in detail. An ebuild would be nice, too, wink wink...

    Besides that, I cannot even emerge psb-kmod. Portage from 2010-10-07 and kernel 2.6.34-r6.

    cu
    Alexander

    ReplyDelete
  2. I attached the e-build and patches to the bug link http://bugs.gentoo.org/show_bug.cgi?id=338330. You can just put those files in an overlay and emerge like normal. I will check with the latest kernel and report back, it has been a month or so since my last merge.

    ReplyDelete