如何使用nvidia-optimus笔记本电脑玩Steam游戏?


11

在安装了Ubuntu 12.04和最新版本的bumblebee的NVIDIA Optimus笔记本电脑上启动Steam游戏的最佳方法是什么?

如果我致电Steam,optirun steam然后选择我要玩的游戏,则会收到以下错误:

The program 'hl2_linux' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 125 error_code 9 request_code 14 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Missing shutdown function for DevShotGenerator_Init() : DevShotGenerator_Shutdown()
Missing shutdown function for MapReslistGenerator_Init() : MapReslistGenerator_Shutdown()
Missing shutdown function for COM_InitFilesystem( m_StartupInfo.m_pInitialMod ) : COM_ShutdownFileSystem()
Missing shutdown function for Steam3Client().Activate() : Steam3Client().Shutdown()
/home/user/.local/share/Steam/SteamApps/user/Team Fortress 2/hl2.sh: line 72: 20567 Segmentation fault      (core dumped) ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Game removed: AppID 440 "Team Fortress 2", ProcID 20567 
saving roaming config store to 'sharedconfig.vdf'
roaming config store 2 saved successfully
^C[68042.116376] [WARN]Received Interrupt signal.

如果steam没有optirun选项,我可以进一步运行游戏,在黑屏上听到开始的音乐,但稍后仍会失败。

我应该使用特殊optirun命令而不是我想玩的游戏optirun steam吗?

Answers:



10

检查这些链接-您需要更改游戏属性,如下所示

  • 右键单击库中的TF2
  • 单击属性
  • 单击设置启动选项
  • 如果只有optirun,请输入: optirun %command%

以上对我不起作用,我必须将启动选项设置为

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

查看以下讨论:

如果这样不起作用,请下载hl2-optirun.sh到以下位置并运行它。

/home/user/Steam/SteamApps/'account_name'/Team Fortress 2/

LD_PRELOAD…方案适用于我,一样hl2-optirun.sh。两种官方选项均无效。(我使用的是Dell XPS 17 L702X。)
Sparhawk

您的第二个命令也对我有用(使用Dota 2)。谢谢!
Salvatorelab 2013年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.