时间:2023-06-09 来源:网络 人气:
Ubuntu18.04是一款非常流行的Linux操作系统,它能够运行在各种不同的硬件设备上。如果你想要在Ubuntu18.04上体验更流畅的图形效果,那么开启3D加速就是一个非常好的选择。本文将介绍如何在Ubuntu18.04上开启3D加速。
首先,我们需要检查我们的计算机是否支持3D加速。要检查Ubuntu18.04是否支持3D加速,请打开终端并输入以下命令:
/usr/lib/nux/unity_support_test-p
如果计算机支持3D加速,你将看到以下输出:
OpenGLvendorstring:NVIDIACorporation
OpenGLrendererstring:GeForceGT650M/PCIe/SSE2
OpenGLversionstring:4.5.0NVIDIA367.57
Notsoftwarerendered:yes
Notblacklisted:yes
GLXfbconfig:yes
GLXtexturefrompixmap:yes
GLnpotorrecttextures:yes
GLvertexprogram:yes
GLfragmentprogram:yes
GLvertexbufferobject:yes
GLframebufferobject:yes
GLversionis1.4+:yes
Unity3Dsupported:yes
如果计算机不支持3D加速,则会看到类似于以下内容的输出:
OpenGLvendorstring:MesaProject
OpenGLrendererstring:SoftwareRasterizer
OpenGLversionstring:3.0Mesa17.2.8
Notsoftwarerendered:no
Notblacklisted:yes
GLXfbconfig:yes
GLXtexturefrompixmap:yes
GLnpotorrecttextures:yes
GLvertexprogram:yes
GLfragmentprogram:yes
GLvertexbufferobject:yes
GLframebufferobject:yes
GLversionis1.4+:yes
Unity3Dsupported:no
如果你的计算机不支持3D加速,那么你需要考虑升级显卡或更换硬件设备。
如果你的计算机支持3D加速,那么我们可以开始配置Ubuntu18.04以开启3D加速。首先,我们需要安装mesa-utils软件包。打开终端并输入以下命令:
sudoapt-getinstallmesa-utils
安装完成后,我们可以使用glxinfo命令来检查OpenGL是否已经正确安装。打开终端并输入以下命令:
glxinfo|grep"OpenGLversion"
如果OpenGL已经正确安装,则会看到以下输出:
OpenGLversionstring:4.5(CompatibilityProfile)Mesa17.2.8
现在,我们需要编辑/etc/X11/xorg.conf文件以启用3D加速。打开终端并输入以下命令:
sudonano/etc/X11/xorg.conf
在文件的末尾添加以下内容:
Section"Device"
Identifier"ConfiguredVideoDevice"
Driver"intel"#changeto"nvidia"ifyouhaveannvidiacard
Option"NoLogo""True"
EndSection
Section"Monitor"
Identifier"ConfiguredMonitor"
EndSection
Section"Screen"
Identifier"DefaultScreen"
Monitor"ConfiguredMonitor"
Device"ConfiguredVideoDevice"
EndSection
保存并关闭文件。重新启动计算机,3D加速应该已经成功启用。
在本文中,我们介绍了如何在Ubuntu18.04上开启3D加速。如果你的计算机支持3D加速,那么这是一个非常好的选择,可以让你更流畅地体验图形效果。
tokenpocket钱包:https://cjge-manuscriptcentral.com/software/7215.html