Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STEAM DECK] Can't use Vulkan #201

Open
ghost opened this issue Jul 13, 2024 · 13 comments
Open

[STEAM DECK] Can't use Vulkan #201

ghost opened this issue Jul 13, 2024 · 13 comments

Comments

@ghost
Copy link

ghost commented Jul 13, 2024

When I try to launch a game using Vulkan, it doesn't start. This only happens when I use Dolphin in gaming mode.

LOGS:
43:25:258 VideoBackends/Vulkan/VulkanLoader.cpp:247 E[Video]: (CreateVulkanSurface) vkCreateXlibSurfaceKHR failed: (-1000000000: VK_ERROR_SURFACE_LOST_KHR) 43:25:258 VideoBackends/Vulkan/VKMain.cpp:160 E[MASTER]: Warning: Failed to create Vulkan surface. 43:25:259 Core/Core.cpp:580 E[MASTER]: Warning: Failed to initialize Video backend!

@soccerboys2008
Copy link

does the same thing happen when you compile dolphin from source (since there is no official build of dolphin for linux)

(when building follow the global build instructions but omit sudo make install, this is so you don't have to figure out how to remove it from your system when your done testing it)

after building you'll find the binary in $HOME/dolphin/build/binaries/ (assuming that the terminal's cwd is the $HOME directory) and can be run when opening a terminal, navigating to that directory and typing ./dolphin-emu

instructions here: https://github.com/dolphin-emu/dolphin/wiki/Building-for-Linux

if it happens in the source build as well then an issue will need to be filed with the dolphin team, but the first thing is to figure out if its a dolphin issue or a flatpak issue

@cpba
Copy link
Collaborator

cpba commented Jul 14, 2024

When I try to launch a game using Vulkan, it doesn't start. This only happens when I use Dolphin in gaming mode.

LOGS: 43:25:258 VideoBackends/Vulkan/VulkanLoader.cpp:247 E[Video]: (CreateVulkanSurface) vkCreateXlibSurfaceKHR failed: (-1000000000: VK_ERROR_SURFACE_LOST_KHR) 43:25:258 VideoBackends/Vulkan/VKMain.cpp:160 E[MASTER]: Warning: Failed to create Vulkan surface. 43:25:259 Core/Core.cpp:580 E[MASTER]: Warning: Failed to initialize Video backend!

I don't know much about the steam deck, what is gaming mode?

Do you need to do anything specific to install this flatpak in gaming mode?

@epiccatt is it in any way possible that you have installed two different dolphins?

@ColinKinloch
Copy link
Contributor

The steam deck has a desktop mode which is KDE and a game mode which launches on gamescope via a big picture style UI.

I just tested it on mine from a fresh dolphins flatpak install, it works for me.

@ghost
Copy link
Author

ghost commented Jul 31, 2024

does the same thing happen when you compile dolphin from source (since there is no official build of dolphin for linux)

(when building follow the global build instructions but omit sudo make install, this is so you don't have to figure out how to remove it from your system when your done testing it)

after building you'll find the binary in $HOME/dolphin/build/binaries/ (assuming that the terminal's cwd is the $HOME directory) and can be run when opening a terminal, navigating to that directory and typing ./dolphin-emu

instructions here: https://github.com/dolphin-emu/dolphin/wiki/Building-for-Linux

if it happens in the source build as well then an issue will need to be filed with the dolphin team, but the first thing is to figure out if its a dolphin issue or a flatpak issue

I can't build dolphin from source because steam OS is too locked down.

@ghost
Copy link
Author

ghost commented Jul 31, 2024

When I try to launch a game using Vulkan, it doesn't start. This only happens when I use Dolphin in gaming mode.
LOGS: 43:25:258 VideoBackends/Vulkan/VulkanLoader.cpp:247 E[Video]: (CreateVulkanSurface) vkCreateXlibSurfaceKHR failed: (-1000000000: VK_ERROR_SURFACE_LOST_KHR) 43:25:258 VideoBackends/Vulkan/VKMain.cpp:160 E[MASTER]: Warning: Failed to create Vulkan surface. 43:25:259 Core/Core.cpp:580 E[MASTER]: Warning: Failed to initialize Video backend!

I don't know much about the steam deck, what is gaming mode?

Do you need to do anything specific to install this flatpak in gaming mode?

@epiccatt is it in any way possible that you have installed two different dolphins?

no i only have 1 dolphin installed.

@ColinKinloch
Copy link
Contributor

Could you post the output of

flatpak info org.DolphinEmu.dolphin-emu --show-permissions

@ghost
Copy link
Author

ghost commented Jul 31, 2024

Could you post the output of

flatpak info org.DolphinEmu.dolphin-emu --show-permissions

[Context]
shared=network;ipc;
sockets=x11;pulseaudio;
devices=all;
features=bluetooth;
filesystems=xdg-run/app/com.discordapp.Discord:create;home;xdg-config/kdeglobals:ro;host:ro;xdg-run/gamescope-0:ro;

[Session Bus Policy]
com.canonical.AppMenu.Registrar=talk
org.kde.kconfig.notify=talk
org.kde.KGlobalSettings=talk
org.freedesktop.ScreenSaver=talk

[Environment]
QT_QPA_PLATFORM=xcb

@ColinKinloch
Copy link
Contributor

Could you tell me what the "launch options" field for dolphin is set to in the steam menu?

@ColinKinloch
Copy link
Contributor

And which version of SteamOS you're on?

@ghost
Copy link
Author

ghost commented Jul 31, 2024

Could you tell me what the "launch options" field for dolphin is set to in the steam menu?

They're empty and my Steam OS version is 3.5.19

@ColinKinloch
Copy link
Contributor

You're on the same SteamOS version as me.
Your launch options should look something like this if it's running dolphin through flatpak:
downloadfile

@ghost
Copy link
Author

ghost commented Jul 31, 2024

You're on the same SteamOS version as me. Your launch options should look something like this if it's running dolphin through flatpak: downloadfile

I am using Emudeck and it launches dolphin differently.

@ColinKinloch
Copy link
Contributor

You should probably mention things when opening an issue report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants