You are not logged in.
After recent updates my screen share has been broken for almost three weeks, I reinstalled xdg portals, made changes to the env variables and installed many missing dependencies and could get it to work 2-3 times but after a reboot it wasn't working again, it's stuck on an endless loop of building modifiers for the dma which I have no idea how I managed to get it to unstuck the times that it did work. I'm at a dead end and I might be missing something but how can it be when it used to work for 6-7 months before breaking?
Log:
```
❯ 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-09-23 23:11:46 CEST; 27s ago
Invocation: 791e02250f144bd4bb96878cd6b89612
Main PID: 1267 (xdg-desktop-por)
Tasks: 6 (limit: 17807)
Memory: 16.5M (peak: 61.7M)
CPU: 1.952s
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal-hyprland.service
└─1267 /usr/lib/xdg-desktop-portal-hyprland
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Sep 23 23:12:11 BoltThrower xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
```
Envs:
```
Cursor Settings
env = XCURSOR_THEME,McMojave-cursors
env = XCURSOR_SIZE,24
Desktop Environment Identification
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = MOZ_ENABLE_WAYLAND,1
NVIDIA GPU Configuration
env = __NV_PRIME_RENDER_OFFLOAD,1
env = CLUTTER_BACKEND,wayland
env = __VK_LAYER_NV_optimus,NVIDIA_only
env = WLR_NO_HARDWARE_CURSORS,1
env = LIBVA_DRIVER_NAME,nvidia
env = WLR_EGL_NO_MODIFIERS,1
env = WLR_RENDERER,vulkan
env = WLR_BACKEND,vulkan
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = GBM_BACKEND,nvidia-drm
env = __GL_VRR_ALLOWED,0
env = WLR_DRM_DEVICES,/dev/dri/card1
env = NVD_BACKEND,direct
env = __GL_GSYNC_ALLOWED,1
env = ___GL_YIELD,USLEEP
env = LIBVA_DRIVER_NAME,nvidia
env = GDK_BACKEND,wayland
Toolkit Backends
env = QT_QPA_PLATFORM,wayland;xcb
env = SDL_VIDEODRIVER,wayland
env = ELECTRON_OZONE_PLATFORM_HINT,auto
UI Styling and Themes
env = GTK_THEME,wildberries
env = GTK_APPLICATION_PREFER_DARK_THEME,1
env = QT_QPA_PLATFORMTHEME,qt6ct
env = QT_STYLE_OVERRIDE,Adwaita-dark
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_QPA_PLATFORM,wayland
```
xdph.conf:
```
screencopy {
max_fps = 60
allow_token_by_default = true
}
```
Autostarts:
```
exec-once = systemctl --user start hyprpolkitagent
exec-once = waybar
exec-once = swaync
exec-once = hypridle
exec-once = hyprpaper
exec-once = hyprsunset
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
```
Last edited by lordworm1996 (2025-10-02 07:55:45)
Offline
Sep 25 14:09:26 BoltThrower systemd[1060]: Starting Portal service (Hyprland implementation)...
Sep 25 14:09:26 BoltThrower systemd[1060]: Started Portal service (Hyprland implementation).
Sep 25 15:23:43 BoltThrower xdg-desktop-portal-hyprland[1280]: [LOG] Initializing xdph...
From the logs I noticed that it takes an hour to start initializing stuff which is extremely weird...
Offline
after reconsidering some enivars and config files i've managed to fix it
Offline
I'm facing the same issue. Could you please share the changes you made to env vars that fixed it for you?
I've tried a sys upgrade, tweaking bitdepth in monitor.conf, but none worked.
journalctl keeps showing this
xdg-desktop-portal-hyprland[1267]: [LOG] [pw] Building modifiers for dma
Offline
yeah i changed my envs to these ones
# Cursor Settings
env = XCURSOR_THEME,McMojave-cursors
env = XCURSOR_SIZE,24
# Desktop Environment Identification
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = MOZ_ENABLE_WAYLAND,1
# NVIDIA GPU Configuration
env = WLR_RENDERER,gles2
env = WLR_NO_HARDWARE_CURSORS,1
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = LIBVA_DRIVER_NAME,nvidia
# Toolkit Backends
env = QT_QPA_PLATFORM,wayland
env = SDL_VIDEODRIVER,wayland
env = ELECTRON_OZONE_PLATFORM_HINT,auto
# UI Styling and Themes
env = GTK_THEME,wildberries
env = GTK_APPLICATION_PREFER_DARK_THEME,1
env = QT_QPA_PLATFORMTHEME,qt6ct
env = QT_STYLE_OVERRIDE,Adwaita-dark
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
and i added a pipewire config to ~/.config/pipewire/pipewire.conf.d/no-modifiers.conf
context.properties = {
support.dmabuf = true
support.dmabuf.modifiers = false
}
Offline
Thanks, lordworm1996.
I figured out which env var was the culprit in my case (for anyone stumbling across this thread in the future):
env = __NV_PRIME_RENDER_OFFLOAD,1
I'd earlier set a lot of Nvidia env vars to force Hyprland to use Nvidia GPU, but after going through the recommended approach again mentioned in hyprland's wiki for multi-gpu, I ended up removing most of these env vars.
Offline