[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Running Steam Proton Games with primusrun



On 3/27/22 14:03, Jonathan Marquardt wrote:
> Hi!
> 
> I have a Dell XPS 15 with a dedicated NVIDIA GPU and I have a working
> bumblebee setup. It works with all kinds of games, except for steam ones.
> I'm trying to run Proton games with primusrun but it somehow doesn't work.
> Here's an example with Battlefield V:
> 
> Game process added : AppID 1238810 "primusrun /home/parckwart/.steam/debian-installation/ubuntu12_32/reaper SteamLaunch AppId=1238810 -- '/home/parckwart/.steam/debian-installation/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/parckwart/.steam/debian-installation/steamapps/common/Proton 7.0'/proton waitforexitandrun  'link2ea://launchgame/1238810?platform=steam&theme=bfv'", ProcID 30792, IP 0.0.0.0:0
> chdir /home/parckwart/.steam/debian-installation/steamapps/common/Battlefield V
> ERROR: ld.so: object '/home/parckwart/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
> ERROR: ld.so: object '/home/parckwart/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
> ERROR: ld.so: object '/home/parckwart/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
> GameAction [AppID 1238810, ActionID 1] : LaunchApp changed task to WaitingGameWindow
> with ""
> GameAction [AppID 1238810, ActionID 1] : LaunchApp changed task to Completed with ""
> ERROR: ld.so: object '/home/parckwart/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
> ERROR: ld.so: object '/home/parckwart/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
> ERROR: ld.so: object '/home/parckwart/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
> pid 30807 != 30804, skipping destruction (fork without exec?)
> primus: fatal: failed to load any of the libraries: /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1:/usr/lib/i386-linux-gnu/nvidia/libGL.so.1:/usr/lib/x86_64-linux-gnu/libGL.so.1:/usr/lib/i386-linux-gnu/libGL.so.1
> /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1: cannot open shared object file: No such
> file or directory
> /usr/lib/i386-linux-gnu/nvidia/libGL.so.1: cannot open shared object file: No such file or directory
> /usr/lib/x86_64-linux-gnu/libGL.so.1: cannot open shared object file: No such file or directory
> /usr/lib/i386-linux-gnu/libGL.so.1: cannot open shared object file: No such file or directory
> Game process removed: AppID 1238810 "primusrun /home/parckwart/.steam/debian-installation/ubuntu12_32/reaper SteamLaunch AppId=1238810 -- '/home/parckwart/.steam/debian-installation/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/parckwart/.steam/debian-installation/steamapps/common/Proton 7.0'/proton waitforexitandrun  'link2ea://launchgame/1238810?platform=steam&theme=bfv'", ProcID 30792
> ThreadGetProcessExitCode: no such process 30805
> ThreadGetProcessExitCode: no such process 30804
> ThreadGetProcessExitCode: no such process 30795
> 
> 
> This happens regardless if I run Steam with primusrun or set the launch
> options of the game itself in Steam to use primusrun.
> 
> I don't really know why Steam is complaining about these missing shared
> object files since two of them clearly exist on my system:
> 
> $ ls -al /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1 /usr/lib/i386-linux-gnu/nvidia/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so.1
> ls: cannot access '/usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1': No such file or directory
> ls: cannot access '/usr/lib/i386-linux-gnu/nvidia/libGL.so.1': No such file or directory
> lrwxrwxrwx 1 root root 48 Mar 23 13:06 /usr/lib/i386-linux-gnu/libGL.so.1 -> /etc/alternatives/glx--libGL.so.1-i386-linux-gnu
> lrwxrwxrwx 1 root root 50 Mar 23 12:49 /usr/lib/x86_64-linux-gnu/libGL.so.1 -> /etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu
> 
> Can someone tell me a solution?
> 
> Thank you very much!
> 

Hi Jonathan,

from the log and output of ls command it's obvious that the required
files in */nvidia/ folder are missing so it's some kind of installation,
configuration or compatibility problem.

Which Debian version are you using? How did you install Nvidia video
driver - from Debian repository or manually with Nvidia's installer?

Keep in mind that some MS Windows games require PROTON_HIDE_NVIDIA_GPU
parameter to be set in Proton. [1]

By the way, my experience with Proton is very positive but I thought of
to by an AMD video card.

Kind regards
Georgi

[1] https://github.com/ValveSoftware/Proton


Reply to: