OpenGl 渲染器在 NVIDIA/INTEL GPU 配置上使用 prime-select intel 显示 N/A

OpenGl 渲染器在 NVIDIA/INTEL GPU 配置上使用 prime-select intel 显示 N/A

细节:

inxi -G
Graphics:  Card-1: Intel Device 5916
           Card-2: NVIDIA GM108M [GeForce 940MX]
           Display Server: x11 (X.Org 1.19.5 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: [email protected]
           OpenGL: renderer: N/A version: N/A

此外,跑步

glxinfo | grep "OpenGL renderer"
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  35
  Current serial number in output stream:  36

我不确定哪里出了问题。我没有安装 xserver-xorg-video-intel-hwe 包,因为我读到,在像我的新 Intel 卡(Intel 620 kabylake 显卡)上,模式设置是一个更好的选择

更多信息:

uname -a
Linux anup-X556UQK 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

我应该怎么做才能使 opengl 渲染器正常运行?

答案1

sudo inxi -G
Graphics:  Card-1: Intel Device 5916
       Card-2: NVIDIA GM108M [GeForce 940MX]
       Display Server: X.Org 1.19.5
       drivers: modesetting (unloaded: fbdev,vesa)
       Resolution: [email protected]
       OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2)
       version: 4.5 Mesa 17.2.4

由于某种原因,它可以与 sudo 一起使用。看来我的 openGL 确实运行正常。

相关内容