tinywrkb / org.freedesktop.Platform.VulkanLayer.GameScope

4 stars 0 forks source link

No image, just sound #1

Open cjuniorfox opened 1 year ago

cjuniorfox commented 1 year ago

I'm trying to use this "gamescope", but I got no image, just sound. Installing Gamescope natively on my OS (Fedora 38), everything works as intended, launching from Hyprland compositor or without any compositor running (straight from tty).

Now, with the Flatpak version of gamescope, I was not able to use it at all. If I try to launch from tty, without any compositor ou X window Manager, I get the error backend 'seatd' failed to open a seat, skipping followed by No backend was able to open a seat. At Hyprland, the application runs, but with no image. Just sound. some logging:

No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
wlserver: [backend/headless/backend.c:68] Creating headless backend
vulkan: selecting physical device 'NVIDIA GeForce RTX 3070': queue family 0
vulkan: physical device supports DRM format modifiers
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x3231564E (VkResult: 0)
vulkan: supported DRM formats for sampling usage:
vulkan:   0x34325241
vulkan:   0x34325258
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:16] Starting headless backend
wlserver: [xwayland/sockets.c:63] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
wlserver: [util/env.c:9] Loading WLR_NO_HARDWARE_CURSORS option: 1
wlserver: [types/output/output.c:382] WLR_NO_HARDWARE_CURSORS set, forcing software cursors
wlserver: [xwayland/server.c:108] Starting Xwayland on :1
MESA-LOADER: failed to open nvidia-drm: /usr/lib/x86_64-linux-gnu/GL/default/lib/gbm/nvidia-drm_gbm.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/GL/default/lib/gbm, suffix _gbm)
wlserver: [types/wlr_compositor.c:673] New wlr_surface 0x563d530be600 (res 0x563d530c3690)
wlserver: [xwayland/server.c:273] Xserver is ready
pipewire: pw_context_connect failed
Warning: failed to setup PipeWire, screen capture won't be available
steam.sh[15]: Running Steam on org.freedesktop.platform 22.08 64-bit

Command follows:

$ flatpak run   --command=gamescope   \
   --env=LD_LIBRARY_PATH=/usr/lib/extensions/vulkan/gamescope/lib \
   --env=PATH=/app/bin:/usr/bin:/usr/lib/extensions/vulkan/gamescope/bin/ \
   --socket=wayland   com.valvesoftware.Steam \
   -w 1920 -h 1080 -- \
  /app/bin/steam -tenfoot'

My GPU it's a Nvidia GTX 3070 with 535 version of proprietary drivers 535.54.03

travier commented 1 year ago

You should try https://github.com/flathub/org.freedesktop.Platform.VulkanLayer.gamescope now

cjuniorfox commented 1 year ago

Tnx @travier, but I already did. Same thing. Also, today Flatpak told me that this package got the end of like. I'm thinking I'll have to file a bug at the Freedesktop's Gamecope repository.

travier commented 1 year ago

No, this package is EOL https://github.com/flathub/com.valvesoftware.Steam.Utility.gamescope

and it should be replaced by https://github.com/flathub/org.freedesktop.Platform.VulkanLayer.gamescope

This is an older version of https://github.com/flathub/org.freedesktop.Platform.VulkanLayer.gamescope