STEAM GROUP
Linux Nvidia Optimus Users LinuxOptimus
STEAM GROUP
Linux Nvidia Optimus Users LinuxOptimus
2
IN-GAME
39
ONLINE
Founded
19 November, 2012
All Discussions > Issues > Topic Details
Radwulf 20 Dec, 2012 @ 8:54am
Steam Community doesn't work with Optimus/Primus
Workaround works with Cogs but Steam Community doesn't work in-game (it works with integrated graphics). Steam is running on the OS. Is this expected behaviour?

cd ~/.steam/steam/SteamApps/common/Cogs; LD_LIBRARY_PATH=~/Steam/ubuntu12_32:$LD_LIBRARY_PATH primusrun ./Cogs

Result:
~/.steam/steam/SteamApps/common/Cogs$ cd ~/.steam/steam/SteamApps/common/Cogs; LD_LIBRARY_PATH=~/Steam/ubuntu12_32:$LD_LIBRARY_PATH primusrun ./Cogscd ~/.steam/steam/SteamApps/common/Cogs; LD_LIBRARY_PATH=~/Steam/ubuntu12_32:$LD_LIBRARY_PATH primusrun ./Cogs
/usr/bin/primusrun: line 38: /home/radwulf/.steam/steam/SteamApps/common/Cogs/Cogscd: No such file or directory
Cogs: Installed in '/home/radwulf/.local/share/Steam/SteamApps/common/Cogs'.
Cogs: Using x86 version.
[S_API FAIL] SteamAPI_Init() failed; Sys_LoadModule failed to load: /home/radwulf/.steam/bin32/steamclient.so
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
[S_API FAIL] SteamAPI_Init() failed; Sys_LoadModule failed to load: /home/radwulf/.steam/bin32/steamclient.so
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.

Ubuntu 12.10
Gnome Shell
Nvidia 304.51

Thanks for your attention.
< >
Showing 1-5 of 5 comments
Radwulf 20 Dec, 2012 @ 9:17am 
Same problem with Trine 2 but different output.

cd ~/.steam/steam/SteamApps/common/Trine\ 2; LD_LIBRARY_PATH=~/Steam/ubuntu12_32:$LD_LIBRARY_PATH primusrun sh trine2.sh

nohup: redirecting stderr to stdout
CyberXZT 20 Dec, 2012 @ 9:46am 
This is a known issue unfortunately. 'gamoverlayui' in the 'Steam/ubuntu12_32/' directory needs to run under the Nvidia card. I personally have not found a way of launching it without it quitting out only a few seconds later. Kudos to anyone who can come up with a workaround though it may just not be possible at the moment.
Last edited by CyberXZT; 20 Dec, 2012 @ 9:48am
Notakas 21 Dec, 2012 @ 4:57pm 
Bump

I need it with TF2 and Trine 2.
If I run TF2 without Steam overlay i cant join friends, and if I run Trine 2 without Steam i cant play online
Radwulf 22 Dec, 2012 @ 5:41am 
A couple of other potential solutions:
http://gtm.steamproxy.vip/app/221410/discussions/6/846939854395110175/

Neither of these methods work for me. Games don't launch with either optirun or primusrun when doing the first and I'm getting constant black screen flickering with the second. Perhaps you guys can get it working?

"
1. Open /etc/environment in your favorite editor.
2. Add a new variable with a value of primusrun (e.g. OPTIMUS_PREFIX=”primusrun”) and save your changes.
3. Select a game - that you want to run using your discrete Nvidia card - from the Library page of the Steam client, right-click, and select Properties.
4. Click the SET LAUNCH OPTIONS... button and specify $OPTIMUS_PREFIX %command% for the command line.
5. Save your changes.
This method allows you to pick when the discrete NVidia GPU should be used on a per-game basis. Use of the OPTIMUS_PREFIX environment variable allows easy modification of the command in the future if changes happen in the underlying Bumblebee project.

The second method is not as efficient (in terms of power consumption) but quicker by running the Steam client and all games using Optimus. From the command line, enter primusrun steam instead of steam. This is inefficient because all games do not require the power of an NVidia card and power consumption is greatly increased during a Steam client/game session.
"
Notakas 22 Dec, 2012 @ 9:54am 
Originally posted by Radwulf:
A couple of other potential solutions:
http://gtm.steamproxy.vip/app/221410/discussions/6/846939854395110175/

Neither of these methods work for me. Games don't launch with either optirun or primusrun when doing the first and I'm getting constant black screen flickering with the second. Perhaps you guys can get it working?

"
1. Open /etc/environment in your favorite editor.
2. Add a new variable with a value of primusrun (e.g. OPTIMUS_PREFIX=”primusrun”) and save your changes.
3. Select a game - that you want to run using your discrete Nvidia card - from the Library page of the Steam client, right-click, and select Properties.
4. Click the SET LAUNCH OPTIONS... button and specify $OPTIMUS_PREFIX %command% for the command line.
5. Save your changes.
This method allows you to pick when the discrete NVidia GPU should be used on a per-game basis. Use of the OPTIMUS_PREFIX environment variable allows easy modification of the command in the future if changes happen in the underlying Bumblebee project.

The second method is not as efficient (in terms of power consumption) but quicker by running the Steam client and all games using Optimus. From the command line, enter primusrun steam instead of steam. This is inefficient because all games do not require the power of an NVidia card and power consumption is greatly increased during a Steam client/game session.
"
Oh ty, it worked to me :D
< >
Showing 1-5 of 5 comments
Per page: 1530 50

All Discussions > Issues > Topic Details