Ask Your Question

Issues with libGL on Fedora 20 - unable to load driver swrast?

asked 2013-12-31 22:02:03 -0500

jflory7 gravatar image

updated 2014-02-13 13:34:51 -0500

mether gravatar image


Firstly, before I explain my problem, I have referred to the question previously asked on Ask.Fedora about the libGL error, which is Question #29100 - I am unable to post links, sorry.

I have been trying to play the game "FTL", and I have been running into problems where the graphics perform extraordinarily poorly, and the sound keeps turning into a strange buzzing sound. Upon looking further, I noticed that my Terminal outputted the following message during the game's launch.

libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.

After doing some further research, it would appear that this issue has affected multiple people on numerous distributions of Linux, all with different solutions. Below, I have provided as much information as I can to help diagnose my specific issue.

This also seems to be similar to Bug 971437 on the Red Hat bug tracker (unable to post link).

When getting libGL debug info on glxinfo:

$ LIBGL_DEBUG=verbose glxinfo | grep direct
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib64/dri/tls/
libGL: OpenDriver: trying /usr/lib64/dri/
libGL: Can't open configuration file /home/jflory/.drirc: No such file or directory.
libGL: Can't open configuration file /home/jflory/.drirc: No such file or directory.
direct rendering: Yes

I have a feeling there is some sort of issue with my graphics card, because I am VERY new to Linux and I'm unsure about what I may need to properly be able to run games. Below, I have some of the numerous packages I have tried to install during this process.

$ cat /etc/
cat: /etc/ No such file or directory

$ cat /etc/
cat: /etc/ No such file or directory

$ sudo yum install mesa-libglapi
Loaded plugins: langpacks, refresh-packagekit
Package mesa-libglapi-9.2.5-1.20131220.fc20.x86_64 already installed and latest version
Nothing to do

$ sudo yum install xorg-x11-drv-nvidia-libs.i686
Loaded plugins: langpacks, refresh-packagekit
No package xorg-x11-drv-nvidia-libs.i686 available.
Error: Nothing to do

I have installed a few more things across the course of the night, but none of them seemed to have done any good, so I don't think they are relevant.

If any more information is needed, please let me know and I will provide. As a reminder, I am very new to Linux in general and I am still learning, so I am not the most familiar with all the different UNIX operations I am able to do.

Here's a quick rundown of my system specs:

$ uname -a
Linux localhost.localdomain 3.12.5-302.fc20.x86_64 #1 SMP Tue Dec 17 20:42:32 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

$ grep "model name" /proc/cpuinfo
model name      : Intel(R) Core(TM) i3-3120M CPU @ 2.50GHz


Edit #1

I ran sudo yum install ... (more)

edit retag flag offensive close merge delete


What's your graphic card?

yanglifu90 gravatar imageyanglifu90 ( 2014-01-04 02:20:34 -0500 )edit

@yanglifu90 I have added updated information about my graphics card in the second edit of my post. Let me know if you need more info!

jflory7 gravatar imagejflory7 ( 2014-01-04 16:42:10 -0500 )edit

will you list the link of fpaste --sysinfo

yanglifu90 gravatar imageyanglifu90 ( 2014-01-04 22:21:38 -0500 )edit

@yanglifu90 Certainly. Here's the link:

jflory7 gravatar imagejflory7 ( 2014-01-04 23:18:07 -0500 )edit


jflory7 gravatar imagejflory7 ( 2014-01-07 13:00:45 -0500 )edit

4 Answers

Sort by » oldest newest most voted

answered 2014-07-14 11:26:16 -0500

hedayat gravatar image

updated 2014-09-05 03:51:56 -0500

Original comment: Also, please try adding i915.modeset=1 to kernel command line when booting (you should edit Fedora line in grub and add it to the end of linux/linux16/linuxefi line in the boot config, and then press F10), and then run glxinfo when booted.

Also, I'd like to know what do you see when you boot Fedora? The Fedora logo which is being filled with white color, or 3 simple bars at the bottom of screen?

Update: As can be seen in your last glxinfo output after adding i915.modeset=1 to kernel boot command line, your graphics driver has been loaded and is working successfully. Previously, it did not load at all and you were using a generic driver.

However, this is actually a bug. Kernel should have been loading i915 driver automatically. Please report a bug about this issue with sufficient data at: If you don't, I can do it myself but they might need some data that I cannot provide. Thanks!

Update 2: To change kernel command line permanently, you can:

  1. If you don't want to run grub2-mkconfig to generate new configuration file, you should edit /boot/grub2/grub.cfg and add the command line option (the format is exactly like what you see when you edit boot entry on boot) to the Fedora menu entry items.
  2. Even if you go with the above solution, you might some day run grub2-mkconfig -o /boot/grub2/grub.cfg to create a new configuration file (which will completely overwrite /boot/grub2/grub.cfg so your changes to it will be lost). Therefore, I'd suggest to also edit /etc/default/grub and add i915.modeset=1 at the end of GRUB_CMDLINE_LINUX= line (but before the closing "); so that it'll become something like this:

GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rhgb quiet i915.modeset=1"

edit flag offensive delete link more



Bug report filed. #1121372

jflory7 gravatar imagejflory7 ( 2014-07-19 22:52:53 -0500 )edit

Thanks. You are helping Fedora to become better! :)

hedayat gravatar imagehedayat ( 2014-07-20 04:40:04 -0500 )edit

I am glad to help contribute to such an amazing operating system. :)

jflory7 gravatar imagejflory7 ( 2014-07-20 08:10:18 -0500 )edit

@hedayat Just noticed there's a typo in your answer with grun2-mkconfig — I think it needs to be grub2-mkconfig. Might be a helpful edit in case someone else has this issue and finds this question!

jflory7 gravatar imagejflory7 ( 2014-09-04 16:00:05 -0500 )edit

Yes, sorry for the typo. :P Thanks!

hedayat gravatar imagehedayat ( 2014-09-05 03:48:07 -0500 )edit

answered 2014-01-22 21:59:03 -0500

Have you enabled the repo rpmfusion-nonfree? I was able to install the package xorg-x11-drv-nvidia-libs.i686 from that repository and was receiving the same swrast error prior to installing it. has details for enabling the repositories that I believe you need.

edit flag offensive delete link more


I tried installing it, and I had an issue with the file name? I already had the repos installed prior to your answer, but is there something else I need to do? See my console output here.

jflory7 gravatar imagejflory7 ( 2014-02-05 22:34:28 -0500 )edit

answered 2014-01-06 21:34:16 -0500

yanglifu90 gravatar image

It may have expired.

edit flag offensive delete link more

answered 2014-06-15 11:47:57 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I have decided this problem on my AMD driver so: aticonfig –initial

Sometimes, after an mesa-* or xorg-* update, the linkage to the right gl libs are broken (or default to mesa). To fix this run: Code: $ su

/usr/lib/fglrx/switchlibGL amd

/usr/lib/fglrx/switchlibglx amd

edit flag offensive delete link more


Is this relevant to me even though I don't have an AMD graphics card? I use the Intel i3 integrated graphics.

jflory7 gravatar imagejflory7 ( 2014-07-09 13:29:57 -0500 )edit

Question Tools


Asked: 2013-12-31 22:02:03 -0500

Seen: 18,757 times

Last updated: Sep 05 '14