某次更新后Primusrun不能启动Dota2

昨天滚完系统发现Dota2不能启动了,去除启动命令的vblank_mode=0 primusrun %command% 之后发现竟然可以启动,当然只能用集成显卡启动了。 原来的启动命令为:

vblank_mode=0 primusrun  %command% -novid  -perfectworld

Google一番之后发现Primusrun doesn’t work for a few games after yesterdays update - ArchLinux Forum这个贴子。 只要用系统的libstdc++.so.6共享库替换steam原来的运行库即可。此方法可以解决Steam中要用Primusrun启动的游戏不能启动的问题。

ln -fs /usr/lib/libstdc++.so.6 ~/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
ln -fs /usr/lib/libstdc++.so.6 ~/.steam/steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6

Published At
This site is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Permissions beyond the scope of this license may be available at https://wayjam.me.