You are not logged in.

#1 2019-01-20 09:09:20

jacopastorius
Member
From: Italy
Registered: 2006-05-01
Posts: 134

Can't run steam with primusrun steam

Hi all. I have a laptop with bumblebee; it is running and i am using it setting the launch options in steam games

 primusrun %command%. 
[root@du du]# pacman -Qs nvidia-*
local/bumblebee 3.2.1-20
    NVIDIA Optimus support for Linux through VirtualGL
local/lib32-libvdpau 1.1.1-3
    Nvidia VDPAU library
local/lib32-nvidia-390xx-utils 390.87-2
    NVIDIA drivers utilities (32-bit), 390xx legacy branch
local/libvdpau 1.1.1+3+ga21bf7a-1
    Nvidia VDPAU library
local/libxnvctrl 415.27-1
    NVIDIA NV-CONTROL X extension
local/nvidia-390xx 390.87-28
    NVIDIA drivers for linux, 390xx legacy branch
local/nvidia-390xx-utils 390.87-1
    NVIDIA drivers utilities
local/nvidia-settings 415.27-1
    Tool for configuring the NVIDIA graphics driver
[root@du du]# optirun glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GTX 860M/PCIe/SSE2
180.317589 frames/sec - 201.234429 Mpixels/sec

But i can't run civilization 6 with both launch options primusrun and LD_PRELOAD=/usr/lib/libfreetype.so so i am trying to running steam with

primusrun steam-runtime

but a little steam window with the text glxchooseVisual Error appears and in the shell:

[du@du ~]$ primusrun steam-runtime   
/home/du/.local/share/Steam/steam.sh: line 106: VERSION_ID: unbound variable
/home/du/.local/share/Steam/steam.sh: line 106: VERSION_ID: unbound variable
Running Steam on arch  64-bit
/home/du/.local/share/Steam/steam.sh: line 106: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1546909276)
Installing breakpad exception handler for appid(steam)/version(1546909276)
/usr/share/themes/Breeze/gtk-2.0/widgets/entry:70: error: unexpected identifier `direction', expected character `}'

(steam:2803): Gtk-WARNING **: Unable to locate theme engine in 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:2803): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Breeze/gtk-2.0/widgets/styles:36: error: invalid string constant "combobox_entry", expected valid string constant
Installing breakpad exception handler for appid(steam)/version(1546909276)
Fontconfig warning: line 5: unknown element "its:rules"
Fontconfig warning: line 6: unknown element "its:translateRule"
Fontconfig warning: line 9: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 8: unknown element "description"
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 76: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 76: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 84: saw unknown, expected number
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown element "its:translateRule"
[2019-01-20 11:05:03] Startup - updater built Jan  4 2019 23:23:22
[2019-01-20 11:05:04] Verifying installation...
[2019-01-20 11:05:04] Verification complete
glXChooseVisual failed
glXChooseVisual failedMain.cpp (332) : Assertion Failed: Fatal Error: glXChooseVisual failed
Main.cpp (332) : Assertion Failed: Fatal Error: glXChooseVisual failed
Installing breakpad exception handler for appid(steam)/version(1546909276)
crash_20190120110504_5.dmp[2829]: Uploading dump (out-of-process)
/tmp/dumps/crash_20190120110504_5.dmp
[0120/110504.900269:INFO:crash_reporting.cc(216)] Crash reporting enabled for process: browser
[0120/110504.919695:WARNING:crash_reporting.cc(255)] Failed to set crash key: UserID with value: 0
[0120/110504.919763:WARNING:crash_reporting.cc(255)] Failed to set crash key: BuildID with value: 1546644248
[0120/110504.919767:WARNING:crash_reporting.cc(255)] Failed to set crash key: SteamUniverse with value: Public
[0120/110504.919770:WARNING:crash_reporting.cc(255)] Failed to set crash key: Vendor with value: Valve
[0120/110504.926846:ERROR:gpu_process_transport_factory.cc(1026)] Lost UI shared context.
crash_20190120110504_5.dmp[2829]: Finished uploading minidump (out-of-process): success = yes
crash_20190120110504_5.dmp[2829]: response: CrashID=bp-bc0d3ff0-3d09-4f01-be44-832fa2190120
crash_20190120110504_5.dmp[2829]: file ''/tmp/dumps/crash_20190120110504_5.dmp'', upload yes: ''CrashID=bp-bc0d3ff0-3d09-4f01-be44-832fa2190120''

EDIT:
I can run steam with dedicated nvidia graphic car with

optirun -b primus steam-runtime

i checked that by

[root@du GameGuide]# cat /proc/acpi/bbswitch 
0000:01:00.0 ON

but civilization 6 wants to run only with intel graphic card (the options menu let choose which graphic card choose and only intel is present. Also,game performance are not corresponding to a 860M graphic card

Last edited by jacopastorius (2019-01-20 10:18:16)

Offline

#2 2019-03-08 20:38:20

bluetechgirl
Member
Registered: 2019-01-14
Posts: 18

Re: Can't run steam with primusrun steam

Have you tried switching the order between the two launch options?

Offline

#3 2019-03-10 12:58:26

almandin
Member
Registered: 2014-02-23
Posts: 31

Re: Can't run steam with primusrun steam

Hi,
I just bought the game and I have the same issue :

I can run the game with the "LD_PRELOAD=/usr/lib/libfreetype.so" trick. The game works fine but seems to be using the integrated INTEL graphics. In the options, I can't select anything else than the integrated graphics (the only option).
I launch steam with "primusrun steam" and the other games use my nvidia card correctly.

Offline

#4 2019-03-10 21:32:30

bluetechgirl
Member
Registered: 2019-01-14
Posts: 18

Re: Can't run steam with primusrun steam

try:

LD_PRELOAD=/usr/lib/libfreetype.so exec primusrun %command%

IDK if it will work at all, but its worth a try and I typically find options like that have to go first followed by 'exec primusrun'

Offline

#5 2019-03-11 18:56:03

almandin
Member
Registered: 2014-02-23
Posts: 31

Re: Can't run steam with primusrun steam

bluetechgirl wrote:

try:

LD_PRELOAD=/usr/lib/libfreetype.so exec primusrun %command%

IDK if it will work at all, but its worth a try and I typically find options like that have to go first followed by 'exec primusrun'

The game launches but it's still not possible to choose anything else than integrated graphics when changing video settings in game :'( .

Offline

#6 2019-03-11 19:15:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: Can't run steam with primusrun steam

Yes this is technically normal. Your game only "sees" the intel card, because that's where the display is. If the primusrun command actually works the rendering should be done by the nvidia card.

Offline

#7 2019-03-11 20:03:16

almandin
Member
Registered: 2014-02-23
Posts: 31

Re: Can't run steam with primusrun steam

Yay you are actually right !
Running 'nvidia-smi' while playing the game actually show a process running on the gpu : './GameGuide/Civ6' !

Offline

#8 2019-03-11 20:56:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: Can't run steam with primusrun steam

Great, please mark as [SOLVED] by editing the title in your initial post.

Offline

Board footer

Powered by FluxBB