I am having this weird problem in Ubuntu 18.04. My laptop gets stuck at the shutdown screen every time I use shutdown and I have to manually press the power button for 5 seconds to turn the machine off.
Before 18.04, I was using Ubuntu 16.04 and it never got stuck at shutdown.
Any fix for this?
While none of the other answers here helped for me (encountering the same problem), I fixed it by switching from the X.org graphics driver to the propietary nvidia driver that is recommended under software&updates. Since then, reboot works flawlessly.
My setup: Asus G Series Laptop G501VW, with Nvidia 960M graphics card.
To do this:
Same problem here on my laptop. After some observation, I found out that it has something to do with power saving mode specially automatic suspend.
Go to
Settings > Power
then turn off allAutomatic Suspend
options. Also chooseBlank screen
toNever
.Till Ubuntu team will figure out why suspend mode is interfering with shutdown process, this solved my problem.
Hope this helps
Try a couple of sudo reboots from terminal to see if it clears things up: 1st to try, reboot without writing wtmp file:
If that reboots successfully then try your natural close down. If it doesn't reboot, try forced reboot:
If this was an upgrade from 16.04 to 18.04, it may be worth considering a clean install.
I had this problem and in my case it seems to be related to the Intel Bay trail CPU which is causing some firmware bugs.
Anyway I have a solution which isn't the best but good enough for now
Solution:
Open the terminal and run
Edit
GRUB_CMDLINE_LINUX_DEFAULT="quite splash"
so that it saysSave and exit, and write the changes to GRUB's actual config file:
Let me know if it worked or when you have a better solution
There are scores of scripts that run when you shutdown. I'm still on 16.04 and for me these are the ones in
/etc/rc0.d
(which are really links to/etc/init.d
). One of them may have a long delay set in what it does forstop
.AFAIK these scripts are run in alphabetical order, so you can insert a few that would just log their execution somewhere, helping you spot where the delay is.
Had the same problem on a brand new ASUS N705u. Found had to do with how the video driver installs which causes a conflict with the "secure boot" function of the BIOS. Solution: Turn the "secure boot" function off until other solution will become available.
For my Lenovo E580 the solution was adding the open ubuntu graphics drivers from https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
Imad's suggestion: change
into
This is the only solution that works consistently for me. Will take that back. Nothing on this page works for me. AMD Turion X64 Duo Core Toshiba A215
I had the same issue after a kernel upgrade. Shutdown/restart command was working smoothly before the upgrade. But started freezing after the upgrade. I attempted all fixes that are mentioned here and various other forums but nothing seemed to work. So I started installing various versions kernels and checked up shutdown command with different kernels and found that my machine freezes for all kernels greater than the following version:
My PC has the following specifications:
I had the same issue when I installed Kali along with Ubuntu. Searching for its solutions I found it was probably a GPU issue and disabling the generic nouveau driver might fix it.
I applied the solution given below for kali:
https://forums.kali.org/showthread.php?27173-Solution-for-Reboot-Issues
and it worked for my kali. Applied the same for my Ubuntu, and it worked.
that's it ... it worked for me