Steam Counter Strike 1.6 Linux beta with optimus (optirun/primusrun)

I was able to run Sam 3 on nvidia card before. Now they added CS 1.6 but they changed paths. I modified the original command I was using for sam3 but it doesnt work.

cd ~/.steam/steam/SteamApps/common/Half-Life/ && export LD_LIBRARY_PATH=~/.steam/steam/ubuntu12_32 && primusrun ./hl_linux -game cstrike -console -dev -numericping -noipx

Its giving me this error:

Error:libsteam_api.so: cannot open shared object file: No such file or directory Could not load hw.so.

1 Answer

After few hours I found it. You need to add game root path to the LD_LIBRARY_PATH:

cd ~/.steam/steam/SteamApps/common/Half-Life/ &&
export LD_LIBRARY_PATH=~/.steam/steam/ubuntu12_32:~/.steam/steam/SteamApps/common/Half-Life/ &&
primusrun ./hl_linux -game cstrike -console -dev -numericping -noipx

Also you need to be running Steam before you run the game.

Plus if you want to disable vertical sync you need to run

export vblank_mode=0

before running the game. So this is full bash script:

#!/bin/bash
export vblank_mode=0
cd ~/.steam/steam/SteamApps/common/Half-Life/ && export LD_LIBRARY_PATH=~/.steam/steam/ubuntu12_32:~/.steam/steam/SteamApps/common/Half-Life/ && primusrun ./hl_linux -game cstrike -nosync
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like