一、查看显卡相关信息
glxinfo | grep -i rend
direct rendering: Yes
运行这个命令,如果显示不是“Yes”,说明还需要自己去安装一下驱动(显卡)。
1、在linux的终端上执行:
[root@localhost ~]# glxinfo | grep -i rend
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa GLX Indirect
2、在txt模式下:
[root@localhost ~]# glxinfo | grep -i rend
Error:unable to open display
两者显示结果不一样,原因:是X终端与文本模式(console)下区分,在console下,显卡驱动还没有启用,所以无法得到信息。