Ubuntu 24.04 Desktop often freezes during shutdown. This has happened after both GUI operation or command shutdown -h now. I have to force shutdown by holding the power button.
Relevant System Information:
Additional information:
I have Win11 installed on a separate SSD (installed before Ubuntu 24.04). Both systems share a common HDD.
The freeze occurs both when shutting down locally and via SSH.
The HDD activity light remains on during most freezes, indicating disk I/O operations.
Screenshots or Error Messages:
This is the system error logs related to the most recent freezing issue.
Jun 06 17:31:54 chan-MS-7C83 gnome-shell[308341]: X connection to :1 broken (explicit kill or server shutdown).
Jun 06 17:31:54 chan-MS-7C83 systemd[1]: snapd.system-shutdown.service - Ubuntu core (all-snaps) system shutdown helper setup service was skipped because no trigger condition checks were met.
Jun 06 17:31:54 chan-MS-7C83 tailscaled[1473]: control: client.Shutdown ...
Jun 06 17:31:54 chan-MS-7C83 tailscaled[1473]: control: Client.Shutdown done.
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Reached target gnome-session-shutdown.target - Shutdown running GNOME Session.
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Starting gnome-session-restart-dbus.service - Restart DBus after GNOME Session shutdown...
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Stopped target gnome-session-shutdown.target - Shutdown running GNOME Session.
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Started gnome-session-restart-dbus.service - Restart DBus after GNOME Session shutdown.
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Reached target shutdown.target - Shutdown.
Jun 06 17:31:57 chan-MS-7C83 systemd[1]: Requested transaction contradicts existing jobs: Transaction for NetworkManager-dispatcher.service/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jun 06 17:31:57 chan-MS-7C83 dbus-daemon[1014]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Transaction for NetworkManager-dispatcher.service/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jun 06 17:31:58 chan-MS-7C83 systemd[1]: Stopping systemd-update-utmp.service - Record System Boot/Shutdown in UTMP...
Jun 06 17:31:58 chan-MS-7C83 systemd[1]: Stopped systemd-update-utmp.service - Record System Boot/Shutdown in UTMP.
Jun 06 17:32:00 chan-MS-7C83 systemd[1]: Reached target shutdown.target - System Shutdown.
Jun 06 17:32:00 chan-MS-7C83 systemd[1]: Reached target final.target - Late Shutdown Services.
Jun 06 17:32:00 chan-MS-7C83 systemd-shutdown[1]: Syncing filesystems and block devices.
Jun 06 17:32:00 chan-MS-7C83 systemd-shutdown[1]: Sending SIGTERM to remaining processes...
What Iβve Tried:
Iβve been dealing with this issue for over a month and have tried numerous solutions without success. Any help would be greatly appreciated!
Thanks for your quick reply!
Here are all the logs returned by journalctl -b -2 | grep shutdown where the system froze during shutdown.
Jun 05 23:08:30 chan-MS-7C83 systemd[1566]: Reached target shutdown.target - Shutdown.
Jun 06 17:25:43 chan-MS-7C83 systemd[2262]: Reached target gnome-session-shutdown.target - Shutdown running GNOME Session.
Jun 06 17:25:43 chan-MS-7C83 systemd[2262]: Starting gnome-session-restart-dbus.service - Restart DBus after GNOME Session shutdown...
Jun 06 17:25:43 chan-MS-7C83 systemd[2262]: Stopped target gnome-session-shutdown.target - Shutdown running GNOME Session.
Jun 06 17:25:43 chan-MS-7C83 systemd[2262]: Started gnome-session-restart-dbus.service - Restart DBus after GNOME Session shutdown.
Jun 06 17:25:43 chan-MS-7C83 at-spi-bus-launcher[307316]: X connection to :1 broken (explicit kill or server shutdown).
Jun 06 17:26:08 chan-MS-7C83 systemd[307519]: Reached target shutdown.target - Shutdown.
Jun 06 17:31:54 chan-MS-7C83 gnome-shell[308341]: X connection to :1 broken (explicit kill or server shutdown).
Jun 06 17:31:54 chan-MS-7C83 systemd[1]: snapd.system-shutdown.service - Ubuntu core (all-snaps) system shutdown helper setup service was skipped because no trigger condition checks were met.
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Reached target gnome-session-shutdown.target - Shutdown running GNOME Session.
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Starting gnome-session-restart-dbus.service - Restart DBus after GNOME Session shutdown...
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Stopped target gnome-session-shutdown.target - Shutdown running GNOME Session.
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Started gnome-session-restart-dbus.service - Restart DBus after GNOME Session shutdown.
Jun 06 17:31:55 chan-MS-7C83 systemd[2262]: Reached target shutdown.target - Shutdown.
Jun 06 17:31:57 chan-MS-7C83 systemd[1]: Requested transaction contradicts existing jobs: Transaction for NetworkManager-dispatcher.service/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jun 06 17:31:57 chan-MS-7C83 dbus-daemon[1014]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Transaction for NetworkManager-dispatcher.service/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jun 06 17:32:00 chan-MS-7C83 systemd[1]: Reached target shutdown.target - System Shutdown.
Jun 06 17:32:00 chan-MS-7C83 systemd-shutdown[1]: Syncing filesystems and block devices.
Jun 06 17:32:00 chan-MS-7C83 systemd-shutdown[1]: Sending SIGTERM to remaining processes...
And these are some normal logs returned by journalctl -b -1 | grep shutdown where the system was shutdown successfully.
Jun 06 17:33:32 chan-MS-7C83 systemd[1506]: Reached target shutdown.target - Shutdown.
Jun 06 18:20:49 chan-MS-7C83 gnome-shell[2617]: X connection to :1 broken (explicit kill or server shutdown).
Jun 06 18:20:49 chan-MS-7C83 systemd[1]: snapd.system-shutdown.service - Ubuntu core (all-snaps) system shutdown helper setup service was skipped because no trigger condition checks were met.
Jun 06 18:20:49 chan-MS-7C83 systemd[1]: Requested transaction contradicts existing jobs: Transaction for bluetooth.service/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jun 06 18:20:49 chan-MS-7C83 dbus-daemon[964]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Transaction for bluetooth.service/start is destructive (shutdown.target has 'start' job queued, but 'stop' is included in transaction).
Jun 06 18:20:50 chan-MS-7C83 systemd[2267]: Reached target gnome-session-shutdown.target - Shutdown running GNOME Session.
Jun 06 18:20:50 chan-MS-7C83 systemd[2267]: Starting gnome-session-restart-dbus.service - Restart DBus after GNOME Session shutdown...
Jun 06 18:20:50 chan-MS-7C83 systemd[2267]: Stopped target gnome-session-shutdown.target - Shutdown running GNOME Session.
Jun 06 18:20:50 chan-MS-7C83 systemd[2267]: Started gnome-session-restart-dbus.service - Restart DBus after GNOME Session shutdown.
Jun 06 18:20:50 chan-MS-7C83 systemd[2267]: Reached target shutdown.target - Shutdown.
Jun 06 18:20:53 chan-MS-7C83 systemd[1]: Reached target shutdown.target - System Shutdown.
Jun 06 18:20:53 chan-MS-7C83 systemd-shutdown[1]: Syncing filesystems and block devices.
Jun 06 18:20:53 chan-MS-7C83 systemd-shutdown[1]: Sending SIGTERM to remaining processes...
And it hung there.
My normal power off from the menu works a treat!
Iβm going to hand off to @ogra our in house dbus expert.
You have my interest peaked on this one.
systemctl status systemd-logind.service
β systemd-logind.service - User Login Management
Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static)
Drop-In: /usr/lib/systemd/system/systemd-logind.service.d
ββdbus.conf
Active: active (running) since Fri 2025-06-06 11:05:45 MDT; 1h 35min ago
Invocation: 96a989e6c398457281d6084d3df6b5a2
Docs: man:sd-login(3)
man:systemd-logind.service(8)
man:logind.conf(5)
man:org.freedesktop.login1(5)
Main PID: 2166 (systemd-logind)
Status: "Processing requests..."
Tasks: 1 (limit: 16287)
FD Store: 14 (limit: 768)
Memory: 4M (peak: 5.8M)
CPU: 304ms
CGroup: /system.slice/systemd-logind.service
ββ2166 /usr/lib/systemd/systemd-logind
Jun 06 11:05:49 me-Legion-5-15ACH6-zfs systemd-logind[2166]: New session 1 of user sddm.
Jun 06 11:05:49 me-Legion-5-15ACH6-zfs systemd-logind[2166]: New session 2 of user sddm.
Jun 06 11:05:58 me-Legion-5-15ACH6-zfs systemd-logind[2166]: New session 3 of user me.
Jun 06 11:08:32 me-Legion-5-15ACH6-zfs systemd-logind[2166]: Watching system buttons on /dev/input/event18 (p>
Thanks! Iβm not quite following whatβs going on but Iβll try this command later.
But as an Ubuntu user, I still think this may be an issue since Iβve met it even with menu operations.
Iβll come back if the system freezes again. Thanks a lot!
Not sure where that check comes from but loginctl show-seat does not have (and I think never had) an βactive=β keyβ¦ so it must always return false β¦