LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 12-22-2019, 01:41 AM   #1
anon120
LQ Newbie
 
Registered: Dec 2019
Posts: 1

Rep: Reputation: Disabled
Can't get Vulkan to work on a new user through sudo or SSH X11 Forwarding .


Scenario and the problem:

I'm running two instances of the same Steam game on my main user X. To do that, I'm launching first instance on my main user and the other instance on another user. This works as I intended, but I can't get Vulkan to work on my second instance.

I'm running a second Steam instance from a different user with:
Code:
xhost local:remoto && sudo -u remoto /usr/games/steam -applaunch 1041320
This works great using WINED3D. I'm trying to run it with Vulkan, because the game process will consumption about 50% less CPU with it.

Troubleshooting:

To state that vulkan isn't working running through another user with sudo, I do:
Code:
xhost local:remoto && sudo -u remoto VK_LOADER_DEBUG=all vulkaninfo
The output:
Code:
error: XDG_RUNTIME_DIR not set in the environment.
ERROR: setupLoaderTermPhysDevs: *Failed to detect any valid GPUs in the current config 
ERROR: setupLoaderTrampPhysDevs: *Failed during dispatch call of 'vkEnumeratePhysicalDevices' to lower layers or loader to get count.
I tried to do the scenario above with SSH X11 Forwarding instead of sudo, but I got the exact same result.
The problem isn't Direct Rendering, since I'm running the game just fine with WINED3D with the above scenario.

Output of
Code:
xhost local:remoto && sudo -u remoto glxinfo | grep "OpenGL renderer string"
Code:
non-network local connections being added to access control list
OpenGL renderer string: Mesa DRI Intel(R) Haswell Desktop

Vulkan works fine if I run VK_LOADER_DEBUG=all vulkaninfo at the 'remoto' user Xsession.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Vulkan at GDC videos now up, with Valve talking about porting Source 2 to Vulkan LXer Syndicated Linux News 0 03-19-2016 11:53 AM
LXer: Vulkan 1.0 and Vulkan SDK Announced for Linux and Windows LXer Syndicated Linux News 0 02-17-2016 02:43 AM
ssh X11 Forwarding works, but I cannot view webcam through it. - testing with spcagui Anithen Linux - Software 4 06-13-2008 03:47 AM
Unable to get X11 port forwarding to work in SSH Windowns Solaris / OpenSolaris 19 09-28-2006 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 11:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration