cmk*_*mks 11 server ssh xorg remote opengl
我正在一个中心位置运行一个用于 Qt 软件开发的 linux 主机。
在我的 Windows 机器中,我使用 Xming 作为本地 X 服务器,并使用腻子连接到该 linux 主机。通过这种配置,我可以在 linux 主机上使用所有 X(xclock、xterm)和 GLX(qtcreator、gxlinfo、glxgears...)程序。
我的主要工作站是带有 nvidia gfx 卡的 ubuntu 14.04 LTS。当我使用“ssh -p port# -YC my.dev.host.com”用我的 ubuntu 系统连接到 linux 主机时,我也可以使用所有 X 程序(xclock,xterm)程序,但我不能使用GLX 程序(qtcreator、gxlinfo、glxgears...)。
据我了解到这是因为X服务器不要支持间接GLX上下文默认情况下,年轻的版本1.16。
所以我的问题是:如何在我的 ubuntu 14.04 LTS 安装中启用间接 GLX 上下文(X 服务器和 nvidida 驱动程序)以使 X 服务器按预期工作。
感谢您的任何帮助!
厘米
这是 glxgears 的输出,也许有帮助:
root@my.dev.host.com:~# LIBGL_DEBUG=verbose glxgears
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 35
Current serial number in output stream: 37
Run Code Online (Sandbox Code Playgroud)
小智 9
我在通过 'ssh -X' 运行一些 GL 应用程序时遇到了类似的问题,并通过向 /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf 中的 xserver-command 添加“+iglx”解决了这个问题.
[SeatDefaults]
# Dump core
xserver-command=X -core +iglx
Run Code Online (Sandbox Code Playgroud)
之后,您重新启动或 Ctrl-Alt-F1、登录和“sudo service lightdm restart”。
我希望这有帮助!
添加选项的另一种(和显示管理器无关)方法是将以下部分添加到 /etc/X11/xorg.conf:
Section "ServerFlags"
Option "IndirectGLX" "on"
EndSection
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
29977 次 |
| 最近记录: |