You are not logged in.

#1 2024-12-16 19:15:36

wooden_allen
Member
Registered: 2024-12-16
Posts: 3

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

#2 2024-12-17 11:06:54

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,236

Re: Long Delay in starting Hyprland using UWSM.

uwsm is https://aur.archlinux.org/packages/uwsm ?

Have you tried starting hyperland directly from a tty login ?
See https://wiki.archlinux.org/title/Hyprland#Starting


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-12-18 18:47:04

tdtooke
Member
Registered: 2023-04-11
Posts: 202

Re: Long Delay in starting Hyprland using UWSM.

I 'literally' installed Hyprland yesterday.  I use SDDM and find that it works just fine if like me you like having a nice windows-ish greeter when you log in.

Offline

#4 2024-12-19 05:06:22

wooden_allen
Member
Registered: 2024-12-16
Posts: 3

Re: Long Delay in starting Hyprland using UWSM.

This https://www.reddit.com/r/hyprland/comme … are_button post on reddit helped a bit. So I think I got my answer.

Offline

#5 2024-12-19 08:38:21

seth
Member
Registered: 2012-09-03
Posts: 60,776

Re: Long Delay in starting Hyprland using UWSM.

https://www.reddit.com/r/hyprland/comme … t/m2gpbc9/ and it seems this had nothing to do w/ hyprland but slow network and waiting for reflector which some insane derivate or youtube instruction seems to have enable people at boot.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB