You are not logged in.

#1 2019-10-06 16:06:32

Pena
Member
Registered: 2019-10-04
Posts: 107

[SOLVED]Optirun TF2(or any other steam game) isn't working

I've got a 80WK Lenovo Y520-15IKBN, it has both  a intel integrated graphic card and a nvidia GTX 1050 and decided to upgrade it by buying a new nvme m2 ssd on which i installed arch linux and a 8 gb of ram (to replace the 2gb stick so ive got 12gb now)
Had some problems but after scaveging hours on this forum ive managed to solve them all, after telling xorg that the nvidia's card wasn't the primary one it all worked fine, until i installed steam and a few games of my library
As predicted the integrated graphics card cant run games as well as the nvidias one so after playing a bit on a fluctuating 15-60 fps i decided to configure it by downloading bumblebee's and all the package's it comes with, started glxgears and watched as the mesa animation runs well
then i decided to try to do the same with tf2.
Unfortunately it didnt work, so i scavanged again for the forum and wiki for answers, but to no avail, so i ended up installing nvtop to test out if the game was actually running on the nvidias card but just not showing the performance i imagined it to be, it showed that no task was running on the card so i decided to install bbswitch and it didnt worked and worsen the problem since nvtop stopped working saying nvidias drivers werent loaded, then when i uninstalled it and decided to run nvtop again, it worked plus discovered that optirun is working when i try to run a mesa simulation/demo and that it also works with Steam(but not the games)
I've tried a bunch of things on set launch options(steam):
optirun %command%
-optirun %command
optirun -b primus %command%
vblank_mode=0 LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' optirun -b primus %command%

ive also tried launching it manually with optirun hl2-linux
but it replies:
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
./hl2_linux: error while loading shared libraries: libtcmalloc_minimal.so.4: cannot open shared object file: No such file or directory

im a bit of a newbie in linux since it is the first time im using linux as a every day OS instead of using it on raspberry or for "dev envs"

Last edited by Pena (2019-10-07 19:37:56)

Offline

#2 2019-10-06 17:19:35

Fulgen
Member
Registered: 2017-08-11
Posts: 7

Re: [SOLVED]Optirun TF2(or any other steam game) isn't working

I've got a GTX 1050 in my HP Pavilion as well - Steam games like Garry's Mod and TF2 (which are both Source based) work fine with Optimus manager, you might wanna give that one a try.

Last edited by Fulgen (2019-10-06 17:19:43)

Offline

#3 2019-10-06 17:48:31

loqs
Member
Registered: 2014-03-06
Posts: 19,099

Re: [SOLVED]Optirun TF2(or any other steam game) isn't working

What is the output without setting LD_PRELOAD?  Please use code tags from commands and their outputs.

Offline

#4 2019-10-06 17:54:54

Pena
Member
Registered: 2019-10-04
Posts: 107

Re: [SOLVED]Optirun TF2(or any other steam game) isn't working

Fulgen wrote:

I've got a GTX 1050 in my HP Pavilion as well - Steam games like Garry's Mod and TF2 (which are both Source based) work fine with Optimus manager, you might wanna give that one a try.

I was about to thank you but then:

Running Steam on arch rolling 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1570046470)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Installing breakpad exception handler for appid(steam)/version(1570046470)
/usr/share/themes/Breeze/gtk-2.0/widgets/entry:70: error: unexpected identifier 'direction', expected character '}'

(steam:2007): Gtk-WARNING **: 18:51:04.966: Incapaz de localizar motor de temas na module_path: "adwaita",
/usr/share/themes/Breeze/gtk-2.0/widgets/styles:36: error: invalid string constant "combobox_entry", expected valid string constant
/usr/share/themes/Breeze/gtk-2.0/widgets/entry:70: error: unexpected identifier 'direction', expected character '}'

(steam:2007): Gtk-WARNING **: 18:51:04.970: Incapaz de localizar motor de temas na module_path: "adwaita",
/usr/share/themes/Breeze/gtk-2.0/widgets/styles:36: error: invalid string constant "combobox_entry", expected valid string constant
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Steam: An X Error occurred
X Error of failed request:  GLXBadContext
Major opcode of failed request:  152
Serial number of failed request:  54
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  152
Value in failed request:  0x0
Serial number of failed request:  53
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadMatch (invalid parameter attributes)
Major opcode of failed request:  152
Serial number of failed request:  55
xerror_handler: X failed, continuing
crash_20191006185104_1.dmp[2020]: Uploading dump (out-of-process)
/tmp/dumps/crash_20191006185104_1.dmp
/home/micron/.local/share/Steam/steam.sh: linha 720:  2007 Segmentation fault      (núcleo despejado) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
crash_20191006185104_1.dmp[2020]: Finished uploading minidump (out-of-process): success = yes
crash_20191006185104_1.dmp[2020]: response: CrashID=bp-0e2c50fc-d205-4a0e-bf42-dae692191006
crash_20191006185104_1.dmp[2020]: file ''/tmp/dumps/crash_20191006185104_1.dmp'', upload yes: ''CrashID=bp-0e2c50fc-d205-4a0e-bf42-dae692191006''

Some debugging is in portuguese(european, not "brasilian")
Also i would prefer something that would be a seemless transition like bumblebee seems to be(at least on mesa simulations and other programs)

Offline

#5 2019-10-06 22:03:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,408

Re: [SOLVED]Optirun TF2(or any other steam game) isn't working

You have to a completely remove bumblebee if you opt for that approach and if you haven't yet (also applicable to the Bumblebee method) install lib32-nvidia-utils

Offline

#6 2019-10-07 10:51:05

Pena
Member
Registered: 2019-10-04
Posts: 107

Re: [SOLVED]Optirun TF2(or any other steam game) isn't working

V1del wrote:

You have to a completely remove bumblebee if you opt for that approach and if you haven't yet (also applicable to the Bumblebee method) install lib32-nvidia-utils

Thanks, it worked perfectly(running at 120-200fps) but what about the bumblebee option? Also how do i Solved this thread (im new to this forum)

Offline

#7 2019-10-07 11:24:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,408

Re: [SOLVED]Optirun TF2(or any other steam game) isn't working

If that was missing it's unsurprising bumblebee/optirun didn't work either. If you want to use bumblebee as opposed to keeping the nvidia card active and having to restart your session to enable it, you could also switch back to bumblebee (but again, in that case you have to remove optimus-manager)

To mark as [SOLVED] edit the title in your first posts' subject line.

Offline

#8 2019-10-10 16:39:56

Fulgen
Member
Registered: 2017-08-11
Posts: 7

Re: [SOLVED]Optirun TF2(or any other steam game) isn't working

Bumblebee isn't that performant either, so I don't see why you should use it in 2019.

Offline

Board footer

Powered by FluxBB