Manjaro启动steam异常:libGL error: failed to load driver: swrast

筅森魡賤 提交于 2020-02-26 09:12:07

Manjaro安装Nvidia驱动尝试启动steam出现闪退

博主遇到的问题是因为显卡的1个工具包没安装,在运行steam的时候提示如下:
libGL error: No matching fbConfigs or visuals found

libGL error: failed to load driver: swrast

Steam: An X Error occurred
解决方案(以下是Manjaro系统的操作指令):安装 “lib32-nvidia-440xx-utils-440.59-1” 显卡工具包

Step1 查看Nvidia驱动的版本,Driver Version是440.59 (v440.59,重点,考试要考 :)
#可以看到驱动版本是
[ligy@ligy-pc Desktop]$ nvidia-smi
Wed Feb 26 07:15:14 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.59       Driver Version: 440.59       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 166...  Off  | 00000000:29:00.0  On |                  N/A |
| 39%   32C    P8     8W / 125W |    156MiB /  5943MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1114      G   /usr/lib/Xorg                                147MiB |
|    0      1240      G   xfwm4                                          3MiB |
|    0      1709      G   /usr/lib/firefox/firefox                       2MiB |
+-----------------------------------------------------------------------------+

                                                                               

Step2 根据Nvidia驱动的版本选择相应版本的工具包安装: “lib32-nvidia-440xx-utils-440.59-1”
# 搜索工具包,执行指令:pacman -Ss lib32-nvidia-
[ligy@ligy-pc opt]$ pacman -Ss lib32-nvidia-

# 可以看到有多个版本可供安装
multilib/lib32-nvidia-340xx-utils 340.108-1
    NVIDIA drivers utilities (32-bit)
multilib/lib32-nvidia-390xx-utils 390.132-1
    NVIDIA drivers utilities (32-bit)
multilib/lib32-nvidia-418xx-utils 418.113-1
    NVIDIA drivers utilities (32-bit)
multilib/lib32-nvidia-430xx-utils 430.64-1
    NVIDIA drivers utilities (32-bit)
multilib/lib32-nvidia-435xx-utils 435.21-1
    NVIDIA drivers utilities (32-bit)
multilib/lib32-nvidia-440xx-utils 440.59-1 [installed]
    NVIDIA drivers utilities (32-bit)
multilib/lib32-nvidia-cg-toolkit 3.1-7
    NVIDIA Cg libraries
archlinuxcn/lib32-nvidia-utils-beta 440.59-1
    NVIDIA drivers utilities (32-bit) (Beta version)

# 执行安装,执行指令:pacman -S lib32-nvidia-440xx-utils
[ligy@ligy-pc opt]$ pacman -S lib32-nvidia-440xx-utils

Step3 重新启动Steam,没有闪退

在这里插入图片描述

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!