如何查看ubuntu下显卡驱动是否已经成功安装

首先得安装 mesa-utils,在终端输入命令: sudo apt-get install mesa-utils
然后再运行命令: glxinfo | grep rendering

如果结果是“yes”,证明显卡 驱动已经成功安装。



补充:显示显卡3D信息:glxinfoglxgears

如果在ubuntu下进行OpenGL开发,glxinfo是一个非常有用的终端命令行工具,可以获得显卡对OpenGL的支持信息。同时,笔记本双显卡的话,也可以获得当前使用的显卡信息。

1. 获得显卡OpenGL版本信息。

glxinfo | grep OpenGL

注意大小写。

顺利的话可以得到如下信息:

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

从上面显示的信息,可以看出当前使用的是Intel的集成显卡,最高支持的OpenGL版本为3.0.


2. 附送一个不错的glxinfo网站。

https://dri.freedesktop.org/wiki/glxinfo/


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值