我试图弄清楚为什么在终端中加载以下内容时出现错误:
$ mame
libGL error: failed to create dri screen
libGL error: failed to load driver: i915
$ locate *i915*
/usr/lib/i386-linux-gnu/dri/i915_dri.so
$ lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller:
Intel Corporation 82865G Integrated Graphics Controller (rev 02)
Subsystem: Dell Dimension 3000
Kernel driver in use: i915
$ inxi -Fxz
System: Host: lubuntucarecomplex-Dimension-3000 Kernel: 4.2.0-30-generic i686 (32 bit gcc: 5.2.1)
Desktop: LXDE (Openbox 3.6.1) Distro: Ubuntu 15.10 wily
Machine: System: Dell product: Dimension 3000
Mobo: Dell model: 0N6381 Bios: Dell v: A03 date: 01/05/2006
CPU: Single core Intel Celeron (-UP-) cache: 256 KB
flags: (pae sse sse2 sse3) bmips: 4788 speed: 2394 MHz (max)
Graphics: Card: Intel 82865G Integrated Graphics Controller bus-ID: 00:02.0
Display Server: X.Org 1.17.2 drivers: intel (unloaded: fbdev,vesa)
Resolution: [email protected]
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.8, 128 bits)
GLX Version: 3.0 Mesa 11.3.0-devel (git-aa3b85f 2016-02-28 wily-oibaf-ppa) Direct Rendering: Yes
$ fglrxinfo
libGL error: failed to create dri screen
libGL error: failed to load driver: i915
display: :0.0 screen: 0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.8, 128 bits)
OpenGL version string: 3.0 Mesa 11.3.0-devel (git-aa3b85f 2016-02-28 wily-oibaf-ppa)
$ LIBGL_DEBUG=verbose glxgears
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/i915_dri.so
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/i915_dri.so
libGL error: failed to create dri screen
libGL error: failed to load driver: i915
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/swrast_dri.so
379 frames in 5.0 seconds = 75.693 FPS
618 frames in 5.0 seconds = 123.481 FPS
621 frames in 5.0 seconds = 124.021 FPS
620 frames in 5.0 seconds = 123.817 FPS
^C
$ sudo apt-get install xserver-xorg-video-intel
Reading package lists... Done
Building dependency tree
Reading state information... Done
**xserver-xorg-video-intel is already the newest version.**
xserver-xorg-video-intel set to manually installed.
The following package was automatically installed and is no longer required:
libllvm3.6v5
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
答案1
解决方案:
这是我找到并消除错误的解决方案:
sudo apt-get remove libgl1-mesa-dri:i386
这样做会显示一些未满足的依赖项 [我需要的线索],并且不允许我在不删除 ppa 的情况下卸载此包。我想我会开始删除驱动程序以查看问题所在,这是解决此问题的下一步。
葡萄酒必须当你执行 oibaf PPA 时需要安装它才能正常工作
我删除了以下两个 ppa 存储库:
ppa:ubuntu-x-swat/x-updates [我在 LXDE 开始菜单 > 偏好设置 > 附加驱动程序 > 其他软件 [TAB] 中执行了此操作
$ sudo ppa-purge ppaibaf/graphics-drivers [Terminal]
**The following packages will be DOWNGRADED:**
libdrm-amdgpu1 libdrm-dev libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
libdrm2 libegl1-mesa libegl1-mesa-dev libgbm1 libgl1-mesa-dri
libgl1-mesa-glx libglapi-mesa libosmesa6 libva-x11-1 libva1 libvdpau1
libvorbis0a libvorbisenc2 libvorbisfile3 libwayland-egl1-mesa
libxatracker2 mesa-utils mesa-vdpau-drivers xserver-xorg-video-ati
xserver-xorg-video-intel xserver-xorg-video-nouveau
xserver-xorg-video-radeon
The following NEW packages will be installed:
libllvm3.6v5{a}
The following packages will be REMOVED:
libllvm3.8{u} libomxil-bellagio-bin{u} libomxil-bellagio0{u}
vdpau-driver-all{u}
The following packages are RECOMMENDED but will NOT be installed:
i965-va-driver va-driver-all vdpau-va-driver
0 packages upgraded, 1 newly installed, 27 downgraded, 4 to remove and 1 not upgraded.
dpkg: warning: downgrading libgl1-mesa-dri:i386 from 11.3~git1602290730.07ed00~gd~w to 11.0.2-1ubuntu4
Preparing to unpack .../libgl1-mesa-dri_11.0.2-1ubuntu4_i386.deb ...
Unpacking libgl1-mesa-dri:i386 (11.0.2-1ubuntu4) over (11.3~git1602290730.07ed00~gd~w) ...
由于 Lubuntu 15.10 最近再次对所有 mesa 驱动程序包进行了一些更新,因此是时候从我最初从那些 ppa 存储库中使用的驱动程序恢复了。
我仍然保留了上面的以下包,并从删除提示中显示的未满足的依赖项中添加了这个包:
sudo apt-get install kde-runtime
[由于系统现在运行良好,因此保留它]
我添加了sudo apt-get install pulseaudio
删除 ALSA pcm 错误的功能,当安装其他 ppa 驱动程序时我遇到了该错误,只是把它额外添加进去而已。
我之前安装的所有其他应用程序(如 mesa-utils 等)都降级为官方 Ubuntu 软件包,现在问题已解决!
$ dpkg --get-selections | grep mesa
libegl1-mesa:i386 install
libegl1-mesa-dev:i386 install
libgl1-mesa-dri:i386 install
libgl1-mesa-glx:i386 install
libglapi-mesa:i386 install
libglu1-mesa:i386 install
libosmesa6:i386 install
libwayland-egl1-mesa:i386 install
mesa-utils install
mesa-vdpau-drivers:i386 install
$ mame -mt -video opengl -rs -speed 1.00
Average speed: 68.03% (185 seconds)
现在 MAME 可以正确地使用 -Video OpenGL 选项 [不再需要 -Video Soft!] 错误消失了!
DRICONF 显示 Mesa 驱动程序正在运行:Mesa 驱动程序已加载/激活
最后编辑:重新启动后,问题再次出现。
最终修复:我重复了错误/修复
[intel_do_flush_locked_failed:input output error/libGL error: failed to create dri screen
libGL error: failed to load driver: i915
重新添加 oibaf ppa,然后执行LXDE 开始菜单 > 系统工具 > 软件更新程序获取所需的 PPA 软件更新,然后再次执行 ppa purge 来确定它是我需要的英特尔驱动程序!
使用此链接: https://启动板.net/~oibaf/+archive/ubuntu/graphics-drivers/+packages
从上面的链接安装了这两个,现在一切都完成/正常工作了!
xserver-xorg-video-intel-dbg_2.99.917+git1602241932.d16728~gd~w_i386.deb
(2.6MB)xserver-xorg-video-intel_2.99.917+git1602241932.d16728~gd~w_i386.deb
(1.6MB)
希望这能帮助那些尝试让 MAME 工作但在从终端运行安装/配置时遇到此问题的人。