You are viewing bgoglin

Brice Goglin's Blog - Debian/X.org notes - Howto get DRI2 on Debian?

Feb. 14th, 2009

10:41 - Debian/X.org notes - Howto get DRI2 on Debian?

Previous Entry Share Next Entry

Now that the final Mesa 7.3 is available in experimental (and built on most architectures), it is actually easy to get DRI2 in Debian if you have an Intel board.

First, make sure you have a recent kernel, otherwise it may fail miserably. I am running 2.6.29-rc here, and I am not even sure 2.6.28 would be enough. Hopefully, one day the driver/server will properly detect and report problems when it runs on a old kernel :)

Enable the new UXA acceleration architecture with Option "AccelMethod" "UXA" in the device section of your xorg.conf. Restart X. You should see DRI2 enabled in the log. Now start Compiz and it works. You can see a wobbly glxgears!

Well, on my i945, Compiz was very slow by default. I add to disable Sync to-VBlank in the display settings in Compiz' general options. If you don't want Compiz, you may also try running xcompmgr and then play with transset to put transparency on 3D applications.

Update: Added kernel requirements, added how to make Compiz not slow, removed -a from xcompmgr.

(Permanent link

Comments:

From:(Anonymous)
Date:February 14th, 2009 10:25 (UTC)
(Link)
If I do this, Xorg starts, but gives a blue screen with strange artefacts (also affecting console before a refresh!).

Cheers,
Julien
(Reply) (Thread)
From:bgoglin
Date:February 14th, 2009 12:47 (UTC)

upgrade your kernel?

(Link)
I forgot to say that you need a recent kernel. I updated the blog entry accordingly. Last time I tried on Lenny's 2.6.26 kernel, X totally failed to start, without any clear explanation of the problem in the X log if I remember correctly.
(Reply) (Parent) (Thread)
From:(Anonymous)
Date:February 14th, 2009 10:33 (UTC)
(Link)
Try disabling vblank sync in compiz, that made compiz usable here.
(Reply) (Thread)
From:bgoglin
Date:February 14th, 2009 12:51 (UTC)

thanks!!

(Link)
Yeah it works, thanks a lot! I am updating the blog entry accordingly.

Any idea how this is supposed to be solved properly in the end? I guess there's a reason why sync-to-vblank is enabled by default :)
(Reply) (Parent) (Thread)
From:(Anonymous)
Date:February 14th, 2009 19:55 (UTC)

Re: thanks!!

(Link)
That does help, but compiz makes disappear my "close-minimize-maximize" buttons. Any ideas?
(Reply) (Parent) (Thread)
From:(Anonymous)
Date:February 14th, 2009 20:13 (UTC)

Re: thanks!!

(Link)
You mean you have decorations (windows have a border) but not buttons in there? Strange...
(Reply) (Parent) (Thread)
From:(Anonymous)
Date:February 15th, 2009 13:21 (UTC)

Re: thanks!!

(Link)
Exactly, I have decorations but no buttons.
I know, it's weird, and I can't seem to find any configuration item for xorg.conf related to Intel hardware.

I will try and post on the compiz boards.
(Reply) (Parent) (Thread)
From:(Anonymous)
Date:February 14th, 2009 15:07 (UTC)
(Link)
I'm using it right now with 2.6.28 and was incidentally writing a post about that as well...
The only problem with my 4500MHD seems to be this[0] bug report, messing with transparency.

Interestingly enough, using UXA was the only way to make suspend work on my laptop, since EXA+intel was consistently hanging X

Cheers
Leo "costela" Antunes

[0] https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/324854 (giving the Ubuntu bug report cause it has more info than the freedesktop one)
(Reply) (Thread)
From:(Anonymous)
Date:February 14th, 2009 16:29 (UTC)

gma950

(Link)
I want only to say that new Xorg 7.4 and xorg-video-intel-2.6.1 from experimental works flawlessly. I've had some problems using the previous versions from experimental (problems with kde4 tray icons using exa accel.), but with the new version and uxa enabled every thing works well. The only problem is disabled XvMC (it was disabled due to some issues in 2.6.0 and 2.6.1).

Regards from Poland ;)
(Reply) (Thread)
[User Picture]
From:jasondclinton
Date:February 14th, 2009 17:39 (UTC)

Metacity and XFCE's window manager

(Link)
Metacity and XFCE's compositing managers from experimental both have XRender-based compositors based on xcompmgr's old code base. They are much more stable and compatible that running xcompmgr directly.

Another 3D compositor to try would be KWin4 from experimental.
(Reply) (Thread)
[User Picture]
From:kellyclowers
Date:February 15th, 2009 02:18 (UTC)
(Link)
I have had mesa 7.3, xserver 1.5.99 and intel 2.6.1 for a while now, and it has been working great. However, I am waiting for 2.6.29 debs on buildserver. When I tried uxa/gem/dri2 with 2.6.28, X did not start correctly (X3100).
(Reply) (Thread)
From:(Anonymous)
Date:May 13th, 2009 01:37 (UTC)

Getting HAL to enable UXA

(Link)
What do I have to put in /etc/hal/fdi/policy to get UXA enabled if I don't want xorg.conf to do it?
(Reply) (Thread)
From:bgoglin
Date:May 13th, 2009 05:01 (UTC)

Re: Getting HAL to enable UXA

(Link)
Upstream does not plan to support the configuration of non-input devices through hal.
(Reply) (Parent) (Thread)