uwsm: Hyprland - exiting the compositor with hyprctl dispatch exit problems

In response https://github.com/hyprwm/hyprland-wiki/pull/850#discussion_r1833823643

Namely, xdg-desktop-portal-hyprland.service, mpd-notification.service do not restart after exiting Hyprland with the compositor-side command as well, as xcursor doesn’t apply to flatpak firefox if it was started to early.

If there are other logs I should provide - please, let me know.

journalctl -xe

░ Subject: A start job for unit UNIT has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit UNIT has begun execution.
░░ 
░░ The job identifier is 1334.
Nov 08 14:36:03 archbtw systemd[1230]: Started Portal service (GTK/GNOME implementation).
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit UNIT has finished successfully.
░░ 
░░ The job identifier is 1334.
Nov 08 14:36:05 archbtw uwsm_hyprland.desktop[3879]: warn: client.c:381: /run/user/1000/foot-wayland-1.sock: failed to connect, will now try /run/user/1000/foot.sock
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5: AER: Multiple Correctable error message received from 0000:00:1d.5
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5:   device [8086:06b5] error status/mask=00000001/00002000
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5:    [ 0] RxErr                  (First)
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5: AER: Multiple Correctable error message received from 0000:00:1d.5
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5:   device [8086:06b5] error status/mask=00000001/00002000
Nov 08 14:36:05 archbtw kernel: pcieport 0000:00:1d.5:    [ 0] RxErr                  (First)
Nov 08 14:36:05 archbtw wpa_supplicant[967]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-63 noise=9999 txrate=117000
Nov 08 14:36:06 archbtw uwsm_hyprland.desktop[3897]: warn: client.c:381: /run/user/1000/foot-wayland-1.sock: failed to connect, will now try /run/user/1000/foot.sock
Nov 08 14:36:06 archbtw systemd[1230]: Started app-flatpak-org.telegram.desktop-3898.scope.
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit UNIT has finished successfully.
░░ 
░░ The job identifier is 1355.
Nov 08 14:36:06 archbtw kernel: pcieport 0000:00:1d.5: AER: Multiple Correctable error message received from 0000:00:1d.5
Nov 08 14:36:06 archbtw kernel: pcieport 0000:00:1d.5: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)
Nov 08 14:36:06 archbtw kernel: pcieport 0000:00:1d.5:   device [8086:06b5] error status/mask=00000001/00002000
Nov 08 14:36:06 archbtw kernel: pcieport 0000:00:1d.5:    [ 0] RxErr                  (First)
Nov 08 14:36:06 archbtw uwsm_hyprland.desktop[3925]: QPainter::begin: Paint device returned engine == 0, type: 2
Nov 08 14:36:06 archbtw uwsm_hyprland.desktop[3925]: QWidget::render: Cannot render with an inactive painter
Nov 08 14:36:07 archbtw uwsm_hyprland.desktop[3984]: warn: client.c:381: /run/user/1000/foot-wayland-1.sock: failed to connect, will now try /run/user/1000/foot.sock
Nov 08 14:36:08 archbtw kernel: pcieport 0000:00:1d.5: AER: Correctable error message received from 0000:07:00.0

systemctl --user status xdg-desktop-portal-hyprland.service

○ xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; static)
     Active: inactive (dead)

Nov 08 14:22:11 archbtw systemd[1230]: Starting Portal service (Hyprland implementation)...
Nov 08 14:22:11 archbtw systemd[1230]: Started Portal service (Hyprland implementation).
Nov 08 14:35:52 archbtw systemd[1230]: Stopping Portal service (Hyprland implementation)...
Nov 08 14:35:52 archbtw systemd[1230]: Stopped Portal service (Hyprland implementation).
Nov 08 14:35:53 archbtw systemd[1230]: Starting Portal service (Hyprland implementation)...
Nov 08 14:35:53 archbtw systemd[1230]: Started Portal service (Hyprland implementation).
Nov 08 14:35:53 archbtw systemd[1230]: Starting Portal service (Hyprland implementation)...
Nov 08 14:35:53 archbtw systemd[1230]: Started Portal service (Hyprland implementation).
Nov 08 14:35:53 archbtw systemd[1230]: Starting Portal service (Hyprland implementation)...
Nov 08 14:35:53 archbtw systemd[1230]: Started Portal service (Hyprland implementation).

systemctl --user status mpd-notification.service

○ mpd-notification.service - MPD Notification
     Loaded: loaded (/usr/lib/systemd/user/mpd-notification.service; enabled; preset: enabled)
    Drop-In: /home/arch-mage/.config/systemd/user/mpd-notification.service.d
             └─override.conf
     Active: inactive (dead) since Fri 2024-11-08 14:35:52 +05; 6min ago
   Duration: 13min 43.667s
 Invocation: 2b2fa072bedc43ab817ab6c700fa68ae
    Process: 1376 ExecStart=/usr/bin/mpd-notification -H localhost -p 6600 -m ${HOME}/Music c -s 150 -t 10 (code=exited, status=0/SUCCESS)
   Main PID: 1376 (code=exited, status=0/SUCCESS)
     Status: "Stopped. Bye!"
   Mem peak: 17.2M
        CPU: 37ms

Nov 08 14:22:08 archbtw systemd[1230]: Starting MPD Notification...
Nov 08 14:22:08 archbtw systemd[1230]: Started MPD Notification.
Nov 08 14:35:52 archbtw systemd[1230]: Stopping MPD Notification...
Nov 08 14:35:52 archbtw systemd[1230]: Stopped MPD Notification.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 37 (37 by maintainers)

Commits related to this issue

Most upvoted comments

After some more testing, I can say - flatpaks are the culprits, as xdph restarts normally if there are no flatpaks in autostart.

I think the problem is that xdg-desktop-portal-hyprland doesn’t have org.freedesktop.portal.Background implementation (see the related issue https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/177)

I don’t know why mpd-notification doesn’t restart, though. Probably, something wrong with the service? https://github.com/eworm-de/mpd-notification/blob/main/systemd/mpd-notification.service

It will behave close to systemctl --user stop wayland-wm@hyprland.desktop. Due to the way uwsm binds graphical session and login session together, that particular login session will end too.

loginctl terminalte-user "" is perfectly valid, but a bit of a nuclear-ish option. I just want to make sure that problems with plain graphical+login session deactivation method are resolved.