Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Chromium webrtc wayland screencasting erroring
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
kris0
n00b
n00b


Joined: 10 Oct 2021
Posts: 16

PostPosted: Tue Jan 18, 2022 1:36 pm    Post subject: Chromium webrtc wayland screencasting erroring Reply with quote

Trying to screen share from chromium on wayland. I'm using sway as my window manager and I have a AMD video card.

When I screen share and select a screen I get:

Code:

MESA-LOADER: failed to open vgem: /usr/lib64/dri/vgem_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: vgem
[11619:11619:0118/061553.786870:ERROR:egl_dmabuf.cc(544)] Failed to query DMA-BUF modifiers.
[11619:11619:0118/061553.786886:ERROR:egl_dmabuf.cc(544)] Failed to query DMA-BUF modifiers.
[11619:11619:0118/061553.786892:ERROR:egl_dmabuf.cc(544)] Failed to query DMA-BUF modifiers.
[11619:11619:0118/061553.786898:ERROR:egl_dmabuf.cc(544)] Failed to query DMA-BUF modifiers.


Code:

> cat /etc/chromium/default
# Default settings for chromium. This file is sourced by /bin/bash from
# the chromium launcher.

# Options to pass to chromium.
CHROMIUM_FLAGS="--enable-gpu --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --enable-features=VaapiVideoDecoder --enable-webrtc-pipewire-capturer"

> lspci | grep VGA     
0c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c4)

> uname -r
5.16.1-gentoo-init

> cat /boot/config-5.16.1-gentoo-init | grep CONFIG_DRM_AMDGPU
CONFIG_DRM_AMDGPU=y

> eix xdg-desktop-portal
[?] gui-libs/xdg-desktop-portal-wlr
     Available versions:  0.4.0(0/9999) **9999(0/9999)*l {elogind systemd}
     Installed versions:  0.5.0(0/9999)(08:45:36 AM 01/03/2022)(systemd -elogind)
     Homepage:            https://github.com/emersion/xdg-desktop-portal-wlr
     Description:         xdg-desktop-portal backend for wlroots

> equery uses xdg-desktop-portal
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-apps/xdg-desktop-portal-1.12.1:
 U I
 - - geolocation : Enable physical position determination
 + + screencast  : Enable screencast portal using media-video/pipewire

> cat .config/sway/config.d/01-exec
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
Back to top
View user's profile Send private message
kris0
n00b
n00b


Joined: 10 Oct 2021
Posts: 16

PostPosted: Mon Jan 24, 2022 9:12 pm    Post subject: Reply with quote

This was solved by enabling wireplumber as stated in the wiki. https://wiki.gentoo.org/wiki/PipeWire

This error,
Code:

MESA-LOADER: failed to open vgem: /usr/lib64/dri/vgem_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)

is solved by setting
Code:

MESA_LOADER_DRIVER_OVERRIDE=radeonsi

seems to just be appending _dri.so and trying to load from /usr/lib64/dri.

The
Code:
ERROR:egl_dmabuf.cc(544)] Failed to query DMA-BUF modifiers.
error still exists but is not affecting screen casting.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum