You are not logged in.

#1 Today 19:15:36

wooden_allen
Member
Registered: Today
Posts: 1

Long Delay in starting Hyprland using UWSM.

I posted about this on Arch subreddit. But I marked that as solved. However, now this problem has arisen again. Need to know what's happening and how to get it solved it.

These are the things are I think are essential: Distro: Archlinux DE: you guessed it.

This is my .zlogin

    export WAYLAND_DISPLAY=wayland-1
    if [ "$(tty)" = "/dev/tty1" ]; then
        if uwsm check may-start; then
            exec uwsm start hyprland.desktop
        fi
    fi

This is my uwsm-environments in ~/.config/uwsm/
```
# env
export UWSM_USE_SESSION_SLICE=true
export WAYLAND_DISPLAY=wayland-1
export XCURSOR_THEME=Bibata-Modern-Ice
export XCURSOR_SIZE=24
export MOZ_ENABLE_WAYLAND=1
export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland
export SDL_VIDEODRIVER=wayland
export CLUTTER_BACKEND=wayland
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export QT_QPA_PLATFORMTHEME=qt5ct
export GTK_THEME=Catppuccin-Dark
export LIBVA_DRIVER_NAME=iHD
```

```
# env-hyprland
export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=Hyprland
export HYPRCURSOR_THEME=Bibata-Modern-Ice
export HYPRCURSOR_SIZE=24
export HYPRLAND_TRACE=1
export HYPRLAND_NO_SD_NOTIFY=1
export HYPRLAND_NO_RT=1
export HYPRLAND_NO_SD_VARS=1
export AQ_TRACE=1
export AQ_DRM_DEVICES=/dev/dri/card0
export AQ_MGPU_NO_EXPLICIT=1
export AQ_NO_MODIFIERS=1
```

I have enabled the user level and system-wide dbus-broker.service, and there are somethings in log relating to that:
```
Dec 16 12:46:21 ArchBTW dbus-broker-launch[726]: Service file '/usr/share/dbus-1/services/fr.emersion.mako.service' is not named after the D-Bus name 'org.freedesktop.Notifications'.
Dec 16 12:46:21 ArchBTW dbus-broker-launch[726]: Missing 'D-Bus Service' section in service file '/usr/share/dbus-1/services/hyprpolkitagent.service'
Dec 16 12:46:21 ArchBTW dbus-broker-launch[726]: Service file '/usr/share/dbus-1/services/org.xfce.Thunar.FileManager1.service' is not named after the D-Bus name 'org.freedesktop.FileManager1'.
Dec 16 12:46:21 ArchBTW dbus-broker-launch[726]: Service file '/usr/share/dbus-1/services/org.xfce.Tumbler.Cache1.service' is not named after the D-Bus name 'org.freedesktop.thumbnails.Cache1'.
Dec 16 12:46:21 ArchBTW dbus-broker-launch[726]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +31: Eavesdropping is deprecated and ignored
Dec 16 12:46:21 ArchBTW dbus-broker-launch[726]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +33: Eavesdropping is deprecated and ignored
Dec 16 12:46:21 ArchBTW dbus-broker-launch[726]: Service file '/usr/share/dbus-1/services/org.xfce.Tumbler.Manager1.service' is not named after the D-Bus name 'org.freedesktop.thumbnails.Manager1'.
Dec 16 12:46:21 ArchBTW dbus-broker-launch[726]: Service file '/usr/share/dbus-1/services/org.xfce.Tumbler.Thumbnailer1.service' is not named after the D-Bus name 'org.freedesktop.thumbnails.Thumbnailer1'.
Dec 16 12:46:21 ArchBTW systemd[708]: Started D-Bus User Message Bus.
```
These are the logs. (My super noob super random guess: this is causing the delay). Earlier there was similar problem, and it was taking around 5 to 10 seconds to start Hyprland, said something like this:
`graphical.target is queued for start, waiting for 60s...`. I added the WAYLAND_DISPLAY variable in the $XDG_CONFIG_HOME/uwms/env file, and it worked.

After it was working, I enabled many user-level services, one of which was the dbus-broker services. And also a few system-wide services. And then it again it started waiting for around 5 to 10 seconds. What could be the problem. (One way which I tried was setting the WAYLAND_DISPLAY in my .zlogin as well).
[Here](https://pastebin.com/PKrv5B2A) is the full log for today, before uploading this post. This log was extracted by `journalctl --user`

Thank you.

Offline

Board footer

Powered by FluxBB