You are not logged in.

#1 2025-08-26 15:46:11

Kokuse
Member
Registered: 2025-08-26
Posts: 1

Having problem with screensharing in Archlinux|Hyprland

Linux kernel : 6.16.3-arch1-1

So im having issue with screen recording.I have installed:

  • pipewire, wireplumber families installed === all working

  • xdg-desktop-portal & xdg-desktop-portal-hyprland & GTK ===  all working

The result was OBS, discord, Kooha screenshare didnt work... Blank Screen.... even tho the XDP and XDPH and screen selector prompt shows.So i tried

  • hyprland from pacman then -git via AUR

  • downgrading pipewire-wireplumber families

  • yay -Syu again

still didnt work.... and Kooha shows this

An error occurred while recording
Caused by:
    0: ../pipewire/src/gst/gstpipewiresrc.c(748): on_state_changed (): /GstPipeline:pipeline0/GstBin:kooha-pipewiresrc-bin/GstPipeWireSrc:pipewiresrc0
    1: stream error: unhandled format

Pipewire & wireplumber status

$ systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/sys
temd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Tue 2025-08-26 15:26:26 UTC; 9min ago
Invocation: d026378101b6492e904428a4ee033e1c
TriggeredBy: ● pipewire.socket
   Main PID: 21779 (pipewire)
      Tasks: 3 (limit: 38010)
     Memory: 7.3M (peak: 10M)
        CPU: 87ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─21779 /usr/bin/pipewire

Aug 26 15:26:26 archkokuse systemd[666]: Started PipeWire Multimedia Service.

$ systemctl --user status wireplumber
● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/
systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Tue 2025-08-26 15:26:33 UTC; 9min ago
Invocation: bee73b8e2ebd48349b90b7324590f578
   Main PID: 21815 (wireplumber)
      Tasks: 7 (limit: 38010)
     Memory: 14M (peak: 14.7M)
        CPU: 412ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─21815 /usr/bin/wireplumber

Aug 26 15:26:33 archkokuse systemd[666]: Started Multimedia Service Session Manager.
Aug 26 15:26:33 archkokuse wireplumber[21815]: [2:41:13.936064132] [21815]  INFO Camera camer
a_manager.cpp:330 libcamera v0.5.2
Aug 26 15:26:33 archkokuse wireplumber[21815]: [2:41:13.939445129] [21824]  INFO Camera camer
a_manager.cpp:220 Adding camera '\_SB_.PCI0.XHC_.RHUB.HS06-6:1.0-174f:244c' for pipeline hand
ler uvcvideo

XDP and XDPH status

$ systemctl --user status xdg-desktop-portal
● xdg-desktop-portal.service - Portal service
     Loaded: loaded (/u
sr/lib/systemd/user/xdg-desktop-portal.service; static)
     Active: active (running) since Tue 2025-08-26 12:45:51 UTC; 2h 52min ago
Invocation: 590f7f5beab9457eb95d071880cf03d9
   Main PID: 892 (xdg-desktop-por)
      Tasks: 6 (limit: 38010)
     Memory: 4.7M (peak: 6M)
        CPU: 211ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.s
ervice
             └─892 /usr/lib/xdg-desktop-portal

Aug 26 13:51:20 archkokuse xdg-desktop-por[892]: Realtime
error: Could not get pidns for pid 10590: Could not fstatat ns/pid: Not a directory
Aug 26 13:51:31 archkokuse xdg-desktop-por[892]: Realtime
error: Could not get pidns for pid 10641: Could not fstatat ns/pid: Not a directory
Aug 26 15:26:26 archkokuse xdg-desktop-por[892]: Caught P
ipeWire error: connection error
Aug 26 15:26:26 archkokuse xdg-desktop-por[892]: Realtime
error: Could not get pidns for pid 21781: Could not fstatat ns/pid: Not a directory
Aug 26 15:26:26 archkokuse xdg-desktop-por[892]: Realtime
error: Could not get pidns for pid 21779: Could not fstatat ns/pid: Not a directory
Aug 26 15:26:26 archkokuse xdg-desktop-por[892]: Realtime
error: Could not get pidns for pid 21779: Could not fstatat ns/pid: Not a directory
Aug 26 15:26:26 archkokuse xdg-desktop-por[892]: Realtime
error: Could not get pidns for pid 21781: Could not fstatat ns/pid: Not a directory
Aug 26 15:26:33 archkokuse xdg-desktop-por[892]: Realtime
error: Could not get pidns for pid 21815: Could not fstatat ns/pid: Not a directory
Aug 26 15:26:33 archkokuse xdg-desktop-por[892]: Realtime
error: Could not get pidns for pid 21815: Could not fstatat ns/pid: Not a directory
Aug 26 15:27:16 archkokuse xdg-desktop-por[892]: Failed t
o close session implementation: Timeout was reached

$ 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 Tue 2025-08-26 12:45:51 UTC; 2h 52min ago
Invocation: fe62a7a9a12443c29e3a266d355aa289
   Main PID: 988 (xdg-desktop-por)
      Tasks: 6 (limit: 38010)
     Memory: 7.6M (peak: 99.3M)
        CPU: 11min 38.378s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal-h
yprland.service
             └─988 /usr/lib/xdg-desktop-portal-hyprland

Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma
Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma
Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma
Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma
Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma
Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma
Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma
Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma
Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma
Aug 26 15:24:30 archkokuse xdg-desktop-portal-hyprland[988]: [LOG] [pw] Building modifiers fo
r dma

Packages

$ yay -Qs pipewire
local/gst-plugin-pipewire 1:1.4.7-1
    Multimedia graph framework - pipewire plugin
local/lib32-libpipewire 1:1.4.7-1
    Low-latency audio/video router and processor - 32-bit - client library
local/lib32-pipewire 1:1.4.7-1
    Low-latency audio/video router and processor - 32-bit
local/libpipewire 1:1.4.7-1
    Low-latency audio/video router and processor - client library
local/libwireplumber 0.5.10-1
    Session / policy manager implementation for PipeWire - client library
local/pipewire 1:1.4.7-1
    Low-latency audio/video router and processor
local/pipewire-alsa 1:1.4.7-1
    Low-latency audio/video router and processor - ALSA configuration
local/pipewire-audio 1:1.4.7-1
    Low-latency audio/video router and processor - Audio support
local/pipewire-jack 1:1.4.7-1
    Low-latency audio/video router and processor - JACK replacement
local/pipewire-libcamera 1:1.4.7-1
    Low-latency audio/video router and processor - Libcamera support
local/pipewire-pulse 1:1.4.7-1
    Low-latency audio/video router and processor - PulseAudio replacement
local/pipewire-v4l2 1:1.4.7-1
    Low-latency audio/video router and processor - V4L2 interceptor
local/wireplumber 0.5.10-1
    Session / policy manager implementation for PipeWire

what should i do next?

Offline

#2 2025-08-29 23:25:09

killertofus
Member
Registered: 2025-02-10
Posts: 113

Re: Having problem with screensharing in Archlinux|Hyprland

you will need need grim+slurp, since you use hyprland, a hypr* package will pull those in so no need to install them

also link/check your hyprland config to see if dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP is in your startups, if not you need to add it
then reboot

you could also use xdg-desktop-portal-wlr with the gtk version and in your ~/.config/xdg-desktop-portal/portals.conf add this

[preferred]
default=gtk
org.freedesktop.impl.portal.Screenshot=wlr
org.freedesktop.impl.portal.ScreenCast=wlr 

then making sure as above seeing if dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP is added to your startups in your hyprland config, then reboot



side note you don't need to use yay that way, if you want to query a package just use pacman -Qs

Offline

Board footer

Powered by FluxBB