You are not logged in.

#1 2019-02-28 08:47:06

ameba
Member
Registered: 2019-02-28
Posts: 2

[SOLVED] libGL error: No matching fbConfigs or visuals found

Hi eveerybody,

I am installing Arch Linux on a Asus Zenbook UX433FN. I want to use the nvidia card that it comes with, so I am following the steps at the NVIDIA Optimus page on the ArchWiki. The Nvidia driver is loading alright and there are no errors in the Xorg.log, but when running glxgears I get:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

Even though the gears display fine. The background of the desktop is also not loading properly, so I guess I am missing something. The journalctl is also not showing any errors, other than the CPU temperature being above threshold while glxgears runs (if there was a way to avoid this I would appreciate it, but I'm guessing it's how it is).

This is the output of pacman -Qs libgl:

local/lib32-libglvnd 1.1.0-1
    The GL Vendor-Neutral Dispatch library
local/lib32-mesa 18.3.4-1
    An open-source implementation of the OpenGL specification (32-bit)
local/lib32-nvidia-utils 418.43-2
    NVIDIA drivers utilities (32-bit)
local/libglade 2.6.4-6
    Allows you to load glade interface files in a program at runtime
local/libglvnd 1.1.0-1
    The GL Vendor-Neutral Dispatch library
local/mesa 18.3.4-1
    An open-source implementation of the OpenGL specification
local/nvidia-utils 418.43-2
    NVIDIA drivers utilities

Should I remove mesa drivers? Currently on my xorg.conf file I have two devices and two screens defined, but I am using xrandr to load the nvidia one on startup.

Thanks in advance!

Last edited by ameba (2019-02-28 10:09:32)

Offline

#2 2019-02-28 09:15:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,650

Re: [SOLVED] libGL error: No matching fbConfigs or visuals found

Welcome to the boards.

Move your xorg.conf file out of the way, and retry, post the xrandr commands used and where you are using them, and the xorg.conf you intend to use. And that xorg.log. Don't remove mesa it is integral to a lot of things.

Right now you have broken acceleration which explains the CPU usage and general brokeness, as you have not posted your configuration it is impossible to say what is the cause, in general, you should simply try what's written on the wiki as is, and if that worked try to check what you'd have to do for further configuring a multi monitor setup.

Last edited by V1del (2019-02-28 09:18:45)

Offline

#3 2019-02-28 09:44:09

ameba
Member
Registered: 2019-02-28
Posts: 2

Re: [SOLVED] libGL error: No matching fbConfigs or visuals found

Thanks for the welcome, I removed the xorg.conf file and it worked without problems. I have some tearing but I read on the wiki it can be solved, and I will try later.

I had followed the instructions on the wiki, but before that I had gotten Xorg running using modesetting. I will paste my xorg.conf (for now xorg.conf.bk) and xrandr commands just in case:

xorg.conf:

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/TTF"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/75dpi"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
EndSection

Section "Device"
        Identifier  "nvidia"
        Driver      "nvidia"
        BusID       "PCI:2:0:0"
        Option      "AllowEmptyInitialConfiguration"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "nvidia"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

My xrandr commands on /usr/share/sddm/scripts/Xsetup

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

I will solve the tearing and from here get to work on the multi-monitor. Thanks a lot!

Offline

#4 2019-02-28 10:02:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,650

Re: [SOLVED] libGL error: No matching fbConfigs or visuals found

You're welcome.

That config looks nvidia-xconfig generated. That will never produce the correct file on an optimus system. In general it might be easier to simply add the relevant xrandr line to add another monitor after the two necessary (though you might be able to replace the --auto definition with a correct call in the first place) commands (at least the --setprovideroutputsource is vital, and afaik there's no way to really handle that in a static xorg.conf way) as after the outputsource call the relevant monitor identifiers might be different.

If the original error is solved, please mark the topic as such by prepending [SOLVED] to the thread title by editing your initial post.

Offline

Board footer

Powered by FluxBB