使用 primus 运行 Steam 和 Dota 2

使用 primus 运行 Steam 和 Dota 2

我希望用 bumblebee 运行我的 steam,但遇到了一个问题:当我尝试使用 primusrun 运行 steam 时,出现了段错误。其他任何东西也无法用 primus 运行。以下是使用 运行的primusrun glxspheres64示例LIBGL_DEBUG=verbose

shy@shy-Inspiron-N5110:~$ LIBGL_DEBUG=verbose primusrun glxspheres64
libGL: screen 0 does not appear to be DRI3 capable
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: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: undefined symbol: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/shy/.drirc: No such file or directory.
libGL: Can't open configuration file /home/shy/.drirc: No such file or directory.
libGL error: failed to load driver: swrast
Polygons in scene: 62464
libGL: screen 0 does not appear to be DRI3 capable
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: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: undefined symbol: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/shy/.drirc: No such file or directory.
libGL: Can't open configuration file /home/shy/.drirc: No such file or directory.
libGL error: failed to load driver: swrast
Visual ID of window: 0x5f
Context is Direct
OpenGL Renderer: GeForce GT 525M/PCIe/SSE2
libGL: screen 0 does not appear to be DRI3 capable
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: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: undefined symbol: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/shy/.drirc: No such file or directory.
libGL: Can't open configuration file /home/shy/.drirc: No such file or directory.
libGL error: failed to load driver: swrast
primus: fatal: failed to acquire direct rendering context for display thread

如果我使用 运行 steam optirun,steam 本身可以正常工作,但在启动 Dota 时,它会给我一些其他错误。启动选项:

LD_PRELOAD=libpthread.so.0 libGL.so.1 __GL_THREADED_OPTIMIZATIONS=1 optirun %command%

记录本身:

Game update: AppID 570 "Dota 2", ProcID 10988, IP 0.0.0.0:0
ERROR: ld.so: object '/home/shy/.steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/bin/sh: 1: libGL.so.1: not found
Game removed: AppID 570 "Dota 2", ProcID 10988 

我尝试手动从我的/usr/lib32/nvidia-343to复制 libGL.so.1~/steamlibs并使用它。现在 Dota 给我一个段错误。

Game update: AppID 570 "Dota 2", ProcID 12567, IP 0.0.0.0:0
ERROR: ld.so: object '/home/shy/.steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Segmentation fault (core dumped)
Game removed: AppID 570 "Dota 2", ProcID 12567 

我究竟做错了什么?

相关内容