hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
307 stars 49 forks source link

Screenshare does not work #110

Closed MarkusTieger closed 1 year ago

MarkusTieger commented 1 year ago

I am using Arch Linux with Hyprland (+ nvidia patch) and the proprietary nvidia driver with pipewire (wireplumber).

After the selection of the screen in obs, there is the following log: OBS:

info: [pipewire] Screencast session created
info: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: Desktop Audio)

info: [pipewire] Asking for desktop
info: [pipewire] desktop selected, setting up screencast
info: [pipewire] Server version: 0.3.80
info: [pipewire] Library version: 0.3.80
info: [pipewire] Header version: 0.3.72
info: [pipewire] Created stream 0x55ada94e6df0
info: [pipewire] Stream 0x55ada94e6df0 state: "connecting" (error: none)
info: [pipewire] Playing stream 0x55ada94e6df0
info: [pipewire] Stream 0x55ada94e6df0 state: "paused" (error: none)
info: [pipewire] Negotiated format:
info: [pipewire]     Format: 8 (Spa:Enum:VideoFormat:BGRx)
info: [pipewire]     Modifier: 0x0
info: [pipewire]     Size: 1920x1080
info: [pipewire]     Framerate: 0/1
info: [pipewire] Negotiated format:
info: [pipewire]     Format: 8 (Spa:Enum:VideoFormat:BGRx)
info: [pipewire]     Modifier: 0x0
info: [pipewire]     Size: 1920x1080
info: [pipewire]     Framerate: 0/1
info: [pipewire] Stream 0x55ada94e6df0 state: "streaming" (error: none)
info: [pipewire] Stream 0x55ada94e6df0 state: "paused" (error: none)

Journalctl -xef:

Oct 07 17:17:27 ms7c56 xdg-desktop-portal-hyprland[18750]: [LOG] [sc] Selection: /screen:DP-3
Oct 07 17:17:27 ms7c56 xdg-desktop-portal-hyprland[18750]: [LOG] [screencopy] SHAREDATA returned selection 0
Oct 07 17:17:27 ms7c56 xdg-desktop-portal-hyprland[18750]: [LOG] [screencopy] Start:
Oct 07 17:17:27 ms7c56 xdg-desktop-portal-hyprland[18750]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_82/obs3
Oct 07 17:17:27 ms7c56 xdg-desktop-portal-hyprland[18750]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_82/obs1
Oct 07 17:17:27 ms7c56 xdg-desktop-portal-hyprland[18750]: [LOG] [screencopy]  | appid:
Oct 07 17:17:27 ms7c56 xdg-desktop-portal-hyprland[18750]: [LOG] [screencopy]  | parent_window:
Oct 07 17:17:27 ms7c56 xdg-desktop-portal-hyprland[18750]: [ERR] [screencopy] Couldn't obtain a format from dma
Oct 07 17:17:27 ms7c56 xdg-desktop-portal-hyprland[18750]: [ERR] [core] Terminated

It isn't related to obs because it doesn't work with the browser (chromium based with the "enable-webrtc-pipewire-capturer" flag enabled) or webcord (has screenshare support on wayland) either.

And it worked already at some point, so i think a update musst have broke it.

Edit: xdg-desktop-portal-hyprland and xdg-desktop-portal-hyprland-git do not work.

vaxerski commented 1 year ago

possibly related to https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/99

but this looks like an nvidia issue