hyprwm / xdg-desktop-portal-hyprland

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

Screenshare not working on openSUSE Tubleweed #229

Open juru1234 opened 3 months ago

juru1234 commented 3 months ago

Hi,

sadly I'm not able to do screen sharing with openSUSE Tubleweed. I removed all other xdg-desktop-portal implementation and get this output:

❯ systemctl --user status xdg-desktop-portal-hyprland

● xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; static)
     Active: active (running) since Sat 2024-06-29 12:28:45 CEST; 3min 36s ago
   Main PID: 4685 (xdg-desktop-por)
      Tasks: 5 (limit: 38315)
        CPU: 4.557s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal-hyprland.service
             └─4685 /usr/libexec/xdg-desktop-portal-hyprland

Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_12/webrtc_session4807>
Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy]  | appid:
Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy] SelectSources:
Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_12/webrtc1968730187
Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_12/webrtc_session4807>
Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy]  | appid:
Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy] option persist_mode to 1
Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy] unused option multiple
Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy] unused option types
Jun 29 12:28:45 localhost.localdomain xdg-desktop-portal-hyprland[4685]: [LOG] [screencopy] restore data invalid / missing, prompting

I don't have NVIDIA graphics, just Intel with integrated GPU. When starting screen sharing via WebRTC the window from hyprland appears to select screen/window/region but after selecting nothing happens. In OBS studio I just get a black screen. I'm using the Tumbleweed hyprland package in version 0.41.2

TheM1Stery commented 3 months ago

I have the same issue, the picker appears and after selecting the screen to share, nothing happens. I'm on NVIDIA, though

TheM1Stery commented 3 months ago

It works! The new tumbleweed snapshot released a new version of pipewire which fixed the issue with screenshare. Update it to the latest and the issue should be fixed

zeerayne commented 3 months ago

Same here, it started since I have upgraded xdg-desktop-portal-hyprland to 1.3.2. Downgrading to 1.3.1 working fine for me.

My setup is: Arch Linux Hyprland 0.41.2

Linux adam 6.9.7-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Fri, 28 Jun 2024 04:32:27 +0000 x86_64 GNU/Linux

My monitors

Monitor DP-1 (ID 0):
    1920x1080@60.00000 at 0x0
    description: Dell Inc. DELL U2312HM 59DJP1ADH2JL
    make: Dell Inc.
    model: DELL U2312HM
    serial: 59DJP1ADH2JL
    active workspace: 11 (11)
    special workspace: 0 ()
    reserved: 0 37 0 0
    scale: 1.00
    transform: 0
    focused: no
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false
    disabled: false
    currentFormat: XRGB8888
    availableModes: 1920x1080@60.00Hz 1680x1050@59.95Hz 1680x945@60.02Hz 1400x1050@74.87Hz 1400x1050@59.98Hz 1600x900@60.00Hz 1280x1024@75.03Hz 1280x1024@60.02Hz 1440x900@74.98Hz 1440x900@59.89Hz 1280x960@60.00Hz 1366x768@59.79Hz 1360x768@60.02Hz 1280x800@74.93Hz 1280x800@59.81Hz 1152x864@75.00Hz 1280x768@74.89Hz 1280x768@59.87Hz 1280x720@60.00Hz 1024x768@75.03Hz 1024x768@70.07Hz 1024x768@60.00Hz 1024x576@59.97Hz 800x600@75.00Hz 800x600@72.19Hz 800x600@60.32Hz 800x600@56.25Hz 848x480@60.00Hz 640x480@75.00Hz 640x480@72.81Hz 640x480@59.94Hz 720x400@70.08Hz

Monitor DP-2 (ID 1):
    1920x1080@60.00000 at 1920x0
    description: Dell Inc. DELL U2312HM 59DJP23DC72L
    make: Dell Inc.
    model: DELL U2312HM
    serial: 59DJP23DC72L
    active workspace: 8 (8)
    special workspace: 0 ()
    reserved: 0 37 0 0
    scale: 1.00
    transform: 0
    focused: yes
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false
    disabled: false
    currentFormat: XRGB8888
    availableModes: 1920x1080@60.00Hz 1680x1050@59.95Hz 1680x945@60.02Hz 1400x1050@74.87Hz 1400x1050@59.98Hz 1600x900@60.00Hz 1280x1024@75.03Hz 1280x1024@60.02Hz 1440x900@74.98Hz 1440x900@59.89Hz 1280x960@60.00Hz 1366x768@59.79Hz 1360x768@60.02Hz 1280x800@74.93Hz 1280x800@59.81Hz 1152x864@75.00Hz 1280x768@74.89Hz 1280x768@59.87Hz 1280x720@60.00Hz 1024x768@75.03Hz 1024x768@70.07Hz 1024x768@60.00Hz 1024x576@59.97Hz 800x600@75.00Hz 800x600@72.19Hz 800x600@60.32Hz 800x600@56.25Hz 848x480@60.00Hz 640x480@75.00Hz 640x480@72.81Hz 640x480@59.94Hz 720x400@70.08Hz
goldyfruit commented 3 months ago

Transformed as a dedicated issue https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/232

SarjyantShrestha commented 3 months ago

Same here, it started since I have upgraded xdg-desktop-portal-hyprland to 1.3.2. Downgrading to 1.3.1 working fine for me.

This fixed for me too!! I think the new version has some issues. OBS was working for me but vencord(discord client) wasn't working.

juru1234 commented 2 months ago

For me, the fix was adding bitdepth,10 to my monitor settings in hyprland.conf. E.g. monitor=,preferred,auto,auto,bitdepth,10

zeerayne commented 2 months ago

For me, the fix was adding bitdepth,10 to my monitor settings in hyprland.conf. E.g. monitor=,preferred,auto,auto,bitdepth,10

Yep, for me it fixes the problem too. How do you find it out?

juru1234 commented 2 months ago

Yep, for me it fixes the problem too. How do you find it out?

@zeerayne It is mentioned in #232