Shit They Didn’t tell You About DRI

11 11 2011

Extra-short post, stemming from my general annoyance at the difficulty with which I enabled DRI on my latest laptop. You see, there are MANY factors that all come into play, many of which are described in detail at the DRI wiki.. I, however, had to spend an annoyingly long time reading to get it working. Here’s a quick step-by-step for getting it working on a clean (with X) Arch install:

  1. Install drivers! Package names for X drivers are formatted as such: xf86-<class>-<driver>. For an Intel video driver, for example, it’d be xf86-video-intel. That should grab DRI packages for that driver as well. For Intel, that’d be intel-dri. In case you forgot or something, you’ll want to install it with pacman -Syu <package> as root.
  2. Break out the text editor! Run your editor of choice (nano, vi, gedit, mousepad, etc.) as root, then paste the following in:
    Section “DRI”
    Mode 0666
    EndSection
  3. Save that file as /etc/X11/xorg.conf.d/20-dri.conf, then quit your editor.
  4. Run gpasswd -a <user> video, where <user> is your username, as root.
  5. Reboot!
  6. Start X!
  7. Play Minecraft or similar, revel in the rendering!
  8. Profit?

Hope you enjoyed it, and I hope it got you working… leave feedback in the comments!

Advertisements