I did a clean install of Ubuntu 21.04, and I am using the default kernel, 5.11.0-16-generic. I am also using the Nvidia driver (nvidia-driver-460, version 460.73.01-0ubuntu1) with XOrg.
When I shut down, my laptop never actually shuts down.
How can I debug this issue?
When I shutdown, I usually see a black screen and the laptop stays on and the fans spin up. (A couple of times I saw the (plymouth?) shutdown splash screen which just froze).
I then have to hold the power button to shut down the device.
I suspect it is a process that is not stopping or failure during the shut down process.
I tried executing
journalctl -rb -1
But there is too much information, and I can't find the spot where the machine is supposed to shutdown.
Is there something I could look for in journalctl, or a better way to find out what is causing this behavior?
UPDATE 1
I created a bug report, Computer does not shut down, against the gdm3 package. If anyone else is experiencing this issue, please mark yourself as impacted for this bug report.
UPDATE 2
The GDM error in my journalctl log was not the cause of this shutdown problem. I've closed the above referenced bug.
I did figure out a work-around, posted in the bug report, if anyone is also experiencing this issue.
journalctl. Maybe configure GRUB to watch shutdown messages. – Pierre ALBARÈDE Apr 24 '21 at 23:20sudo journalctl -b -1 -ewill show you the end of the previous boot's logs. Check for "timeout" messages. – waltinator Apr 25 '21 at 01:27sudo journalctl -b -1 -eis quite useful. I'll run this on each reboot to see if I can find something unusual in the logs. (So far I've see the "timeout" message on snapd, but I'll try to verify with more tests). @David, I'll open a bug report if I can identify something more specific for the developers to work with and fix. – Enterprise Apr 25 '21 at 12:54journalctlcommand, which shows me everything before the journaling stopped during the last shutdown. – Enterprise Apr 26 '21 at 20:35sudo journalctl -b -1 -e. However, this issue has now gone away with the upgrade to kernel 5.11.0-18-generic. (Note that this kernel upgrade coincided with an upgrade of the Nvidia driver to version 460.80-0ubuntu0.21.04.2. So that may have contributed to the fix). – Enterprise Jun 06 '21 at 04:18