Score:0

Ubuntu 22.04 stuck on shutdown screen

tk flag

When I shutdown my Dell XPS 15 (9510) laptop, it hangs on the shutdown screen. This is the black screen with the Dell logo in the middle and the Ubuntu logo along the bottom. For a few seconds it shows the "spinning circle" as if it is doing something. But it just never shuts down.

This box is dual-boot Ubuntu/Windows 11 and was working fine for almost two years. However, recently I had felt like the box was getting hotter than I was comfortable with. So I sought out a way to control the fans, hoping I could turn them up. So I followed the instructions from this post: https://askubuntu.com/a/1094617. That said, not all the way through. When I got to the third block where the third line overwrites /etc/modules I took a pause. I had the suspicion I might have been too trusting.

Knowing there was really nothing I could do - I didn't know the previous contents of that file - I rebooted and hoped for the best. It rebooted and although there were log messages that flashed by, things looked ok. I probably should have stopped there.

But in my searches, I had found a second post (https://askubuntu.com/a/46135) that seemed promising. I started to follow those instructions. This post had a fair amount of caution baked into the instructions, so I actually only did step 1. And even there, I only said "yes" to the first two options. I did not receive any output that implied I would be able to control the fans. Weary, I decided to cut my losses.

I know it could be coincidental, but this is when the issue began. When Ubuntu suggests software and/or driver updates, I tend to take them. So it is totally possible I installed an update that is causing my issue, and the above is unrelated. But I thought I would mention the above, since it could be relevant.

Since it had been almost 2 years, I figured a re-install of the OS wouldn't go amiss. As a dev environment, it gets a little "dirty." I reinstalled Ubuntu 22.04.3 last night. As part of that installation, I reset the BIOS to all of the defaults. For this laptop, I did need to do the "Windows-safe-boot" switch between RAID and AHCI, but that seemed to go successfully (Windows is still accessible). Unfortunately, the issue persists.

Having searched forums on the issue, it was suggested that I use the NVIDIA drivers instead of the generic in ones. The drivers were already installed, so I did a sudo prime-select nvidia, which ran successfully. Then I attempted a reboot and could not. All of the solutions I have come across seem to blame display drivers. But I seem to be at a dead end on that front.

Is there a chance I have gotten a piece of hardware into a configuration state that would cause the issue to persist between OS installations? Maybe there are Dell diagnostics I can do, either in Windows or Ubuntu, to check that the hardware is healthy? Perhaps my problem really started when I noticed the laptop getting so hot, and the timing is coincidental? I'm happy to take any fresh ideas folks have.

Thanks in advance.

aq flag
Your second link has multiple solutions, the accepted answer generally works with desktops. The first 2 options were checking for thermal sensors on the cpu, memory, and motherboard, nothing harmful. If you scrolled down to other answers, you would have seen the same `i8kutils` answer as the other link for Dell Laptops. Entries in `/etc/modules` tell it to load specific drivers (it doesn't sound like you even did this, plus your reinstalled Ubuntu). Your recent heat issues could be a dusty fan which you can blow out with compressed air. Is the fan even spinning?
Edward Petersen avatar
tk flag
Sorry if I gave too much information and it clouded the question I had. I have moved on from trying to do anything about the heat/fans. I am really only concerned about being able to gracefully shutdown my computer. At present, a hard shutdown is only possible.
Score:0
ly flag

I got exactly the same problem as yours (sigh, too many issues with XPS 15 dual boot...). Finally, this answer helped me out: https://askubuntu.com/a/1483375/1726667 If I understood correctly, it was related to the graphics driver. We should use the Nvidia driver instead of the Ubuntu default X.org one. To my surprise, this issue has occurred as early as Ubuntu 18.04 era... according to one of the sources cited in that answer: https://askubuntu.com/a/1049971

Edward Petersen avatar
tk flag
Yes, unfortunately, as I mentioned above, one of the steps I took was to switch over to using the NVIDIA driver (it was already installed). And that did not work. In fact it was that that lead me to believe I have a much more complex issue. Especially since the problem spanned before and after a re-installation of the OS. And the moment this became an issue was not one I could pinpoint as a driver change.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.