Ubuntu – Lubuntu 16.04 gets stuck at shutdown (nmi watchdog bug soft lockup – cpu#1 stuck for 22s)


Occasionally my computer(Lubuntu 16.04 64 Bit) gets stuck at shutdown. It shows the message
nmi watchdog bug soft lockup – cpu#1 stuck for 22s and never finishes shutdown.This message comes after the message Reached target shutdown..
What causes this error? How do I resolve this?

Best Answer

I had the same bug on my machine, I fixed it by appending nouveau.modeset=0 to the grub command line

To do so, when you're in grub menu, press e to edit the command line. Then append nouveau.modeset=0 at the end of the line beginning with linux. Then press F10 to continue to boot, login into your user session, then try to reboot the computer to see if the problem is gone or if you still have the issue.

If the problem is gone, you can make the change permanent by editing the grub config.

sudo nano /etc/default/grub, append nouveau.modeset=0 in the quotes of the line GRUB_CMDLINE_LINUX_DEFAULT="...". Then update your grub setup with sudo update-grub.

Related to

NMI watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [nvidia-smi:566]
Related Question