You are not logged in.

#1 2022-09-09 12:35:55

alba4k
Member
From: Switzerland
Registered: 2021-12-05
Posts: 52
Website

Issues with Wayland (xdg-desktop-portal and pipewire screen sharing).

I'll try to get this quick.

I'd like to try to give some wayland-based compositor a try (in my specific case, hyprland. I've had the same issues on sway and hyprland too on an old machine some months ago). What's really holding me back, tho, is that neither obs screen recording nor flameshot seem to work.

I am running `systemctl start --user xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk` when my compositor, hyprland, launches (even though this shouldn't be needed).

Launching `flameshot gui` gives the following output:

kf.windowsystem: Could not find any platform plugin
flameshot: error: Unable to detect desktop environment (GNOME? KDE? Sway? ...)
flameshot: error: Hint: try setting the XDG_CURRENT_DESKTOP environment variable.
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
flameshot: info: Screenshot aborted.

and using `XDG_CURRENT_DESKTOP=Sway flameshot gui`

kf.windowsystem: Could not find any platform plugin
** (flameshot:3284161): WARNING **: 14:25:50.894: AT-SPI: Could not obtain desktop path or name
** (flameshot:3284161): WARNING **: 14:25:50.903: AT-SPI: Could not obtain desktop path or name
** (flameshot:3284161): WARNING **: 14:25:50.903: atk-bridge: get_device_events_reply: unknown signature
** (flameshot:3284161): WARNING **: 14:25:50.903: atk-bridge: get_device_events_reply: unknown signature
** (flameshot:3284161): WARNING **: 14:25:50.903: atk-bridge: GetRegisteredEvents returned message with unknown signature
** (flameshot:3284161): WARNING **: 14:25:50.914: AT-SPI: Could not obtain desktop path or name
** (flameshot:3284161): WARNING **: 14:25:50.914: atk-bridge: get_device_events_reply: unknown signature
** (flameshot:3284161): WARNING **: 14:25:50.914: atk-bridge: get_device_events_reply: unknown signature
** (flameshot:3284161): WARNING **: 14:25:50.914: atk-bridge: GetRegisteredEvents returned message with unknown signature

But nothing happens.

As for OBS Studio, launching `obs` from a terminal gives:

Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/locale/it-IT.ini
Attempted path: /usr/share/obs/obs-studio/locale/it-IT.ini
info: Using preferred locale 'it-IT'
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
info: Platform: Wayland
info: CPU Name: 12th Gen Intel(R) Core(TM) i7-1260P
info: CPU Speed: 2044.062MHz
info: Physical Cores: 12, Logical Cores: 16
info: Physical Memory: 15608MB Total, 10106MB Free
info: Kernel Version: Linux 5.19.7-arch1-1
info: Distribution: "Arch Linux" Unknown
info: Session Type: wayland
info: Qt Version: 5.15.6 (runtime), 5.15.5 (compiled)
info: Portable mode: false
kf.windowsystem: Could not find any platform plugin
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
QMetaObject::connectSlotsByName: No matching signal for on_actionShowTransitionProperties_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_actionHideTransitionProperties_triggered()
info: OBS 27.2.4-2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
info: Using EGL/Wayland
info: Initialized EGL 1.5
info: Loading up OpenGL on adapter Intel Mesa Intel(R) Graphics (ADL GT2)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 22.1.7, shading language 4.60
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bicubic
    fps:               60/1
    format:            NV12
    YUV mode:          709/Partial
info: NV12 texture support not available
info: Audio monitoring device:
    name: Predefinito
    id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
info: [pipewire] No captures available
libDeckLinkAPI.so: impossibile aprire il file oggetto condiviso: File o directory non esistente
warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
info: No blackmagic support
warning: v4l2loopback not installed, virtual camera disabled
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: impossibile aprire il file oggetto condiviso: File o directory non esistente

info: FFMPEG VAAPI supported
error: os_dlopen(/usr//lib/obs-plugins/sndio.so->/usr//lib/obs-plugins/sndio.so): libsndio.so.7: impossibile aprire il file oggetto condiviso: File o directory non esistente

warning: Module '/usr//lib/obs-plugins/sndio.so' not loaded
info: ---------------------------------
info:   Loaded Modules:
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-jack.so
info:     linux-decklink.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info:     frontend-tools.so
info:     decklink-ouput-ui.so
info:     decklink-captions.so
info: ---------------------------------
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'PulseAudio (on PipeWire 0.3.57) 15.0.0'
info: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_2__sink.monitor'
info: [Loaded global audio device]: 'Audio del desktop'
info: pulse-input: Server name: 'PulseAudio (on PipeWire 0.3.57) 15.0.0'
info: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_4__source'
info: [Loaded global audio device]: 'Microfono/disp. ausiliario'
error: Source ID 'xshm_input' not found
error: Failed to create source 'Cattura dello schermo (XSHM)'!
error: Source ID 'xshm_input' not found
error: Failed to create source 'Cattura dello schermo (XSHM) 2'!
info: Switched to scene 'Scena'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scena':
info:     - source: 'Cattura dello schermo (XSHM)' (xshm_input)
info:     - source: 'Cattura dello schermo (XSHM) 2' (xshm_input)
info: ------------------------------------------------
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png

[...]

Where I put [...] I see the same warnings that flameshot reports when  launched using XDG_CURRENT_DESKTOP=sway and OBS works as expected, except I don't have an option for Screen Recording using PipeWire (I am already using PipeWire for audio)

version of some hopefully relevant software:
* obs-studio 27.2.4-2
* flameshot 12.1.0-1
* pipewire 1:0.3.57-1
* xdg-desktop-portal 1.15.0-1
* xdg-desktop-portal-wlr 0.6.0-1
* xdg-destkop-portal-gtk 1.14.0-1
* qt-wayland 5.15.6+kde+r43-2
* grim 1.4.0-2

according to the wiki pipewire article nothing else should be needed.

Hardware info:
* Intel Core i7-1260P
* Intel Iris Xe - Mesa drivers

Hardware info (old laptop, same issues):
* Intel Core i5-8265U
* Intel UHD Graphics 620

As far as I know, this should work, and I have seen it working. so hopefully anyone here can maybe help to get this solved, and/or share similar experices

Thanks a lot in advance : )

Last edited by alba4k (2022-09-09 13:15:20)

Offline

#2 2022-09-09 12:39:26

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Issues with Wayland (xdg-desktop-portal and pipewire screen sharing).

Please edit your post and use [ code ] tags (not quote tags) when posting output. This makes the output easier to read and provides a scroll box for long output. The forum does not support markdown.

https://wiki.archlinux.org/title/Genera … s_and_code
https://bbs.archlinux.org/help.php#bbcode

Also please change your title to something that actually describes your issue.

How to post wrote:

Choose clear, informative subjects. This is more likely to elicit response from experienced users who have knowledge about that particular topic. It also makes the topic easy to reference and find in forum searches by future users with similar problems. Further, avoid extraneous phrases such as [HELP!], [URGENT], etc.

Offline

#3 2022-09-09 13:14:18

alba4k
Member
From: Switzerland
Registered: 2021-12-05
Posts: 52
Website

Re: Issues with Wayland (xdg-desktop-portal and pipewire screen sharing).

Sorry, I had forgotten about the different syntax. It's been a little while since I posted something here. Thanks a lot for the suggestion : )

Last edited by alba4k (2022-09-09 13:15:40)

Offline

#4 2022-09-20 00:04:16

TroubleCore
Member
Registered: 2022-09-20
Posts: 3

Re: Issues with Wayland (xdg-desktop-portal and pipewire screen sharing).

Do you resolved it? i get the same issue

Offline

#5 2022-09-20 16:04:26

alba4k
Member
From: Switzerland
Registered: 2021-12-05
Posts: 52
Website

Re: Issues with Wayland (xdg-desktop-portal and pipewire screen sharing).

I just concluded that wayland is exactly how I had left it and went straight back to i3wm... sadly, in part

Offline

#6 2022-09-22 03:57:05

TroubleCore
Member
Registered: 2022-09-20
Posts: 3

Re: Issues with Wayland (xdg-desktop-portal and pipewire screen sharing).

I find this https://github.com/hyprwm/Hyprland/wiki … screenshot for screenshots and this https://gist.github.com/PowerBall253/2d … arch-linux for obs

Last edited by TroubleCore (2022-09-22 04:02:06)

Offline

#7 2022-09-22 04:32:43

TroubleCore
Member
Registered: 2022-09-20
Posts: 3

Re: Issues with Wayland (xdg-desktop-portal and pipewire screen sharing).

But sadly in hyprland its not possible make screenshare in discord and zoom

Offline

Board footer

Powered by FluxBB