Ubuntu 16 reboots seconds after shutdown
I've just updated my ubuntu 15 to ubuntu 16. Now, every time I shutdown, the computer reboots after a few seconds! I've already googled for solutions but nothing worked. My computer is a HP probook 4540s.
Thank you
EDIT: One more piece of information: when I restart instead of shutting down, I can no longer access the internet (via wi-fi). Also, I can get my computer to shutdown without rebooting if a press ( a long time) the (hardware) power button.
Solution 1:
Try to turn off your wifi from shortcut button for wifi / or from settings and your pc will not start itself.
Solution 2:
I had this problem once with a HP Probook 840 or something of the sort. You should try disabling "Wake on LAN" or "Wake on WLAN" in your BIOS.
Solution 3:
A workaround I am using is to push the power button while on the grub screen. Also there is a related bug at ubuntu-mate bug tracker.
EDIT (2017_02_14): Some time ago I've found the same problem reported in a bug report for ubuntu-mate (as this is what I've used).
And just recently the bug seems to be SOLVED after the last kernel upgrade!!! I am not very sure about though. Need additional testing. But today with all the rest in the setup unchanged the laptop (HP probook) started to poweroff normally.
Current kernel is:
$ uname -a
Linux uhp 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
What about the other affected people?
PS seems to be similar to THIS thread
Solution 4:
Same issue happens with me. The same sympthom happed with standard 16.04 installation and the current Ubuntu Mate:
gnagy@hp-pb-4340s:~$ uname -a
Linux hp-pb-4340s 4.8.0-46-generic #49~16.04.1-Ubuntu SMP Fri Mar 31 14:51:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
It's important that it did not happen immediately. Couple of weeks passed - roughly a month - then this started to come again and again.
What worked for me as a workaround: - disable networking before you turn off the machine - reinstall
Just to confirm that it is still an issue.
Solution 5:
For me, it helped to add xhci_hcd.quirks=270336
into GRUB_CMDLINE_LINUX_DEFAULT
variable defined in /etc/default/grub
and run sudo update-grub
.
Here are some links to bug reports:
- https://bugzilla.redhat.com/show_bug.cgi?id=1257131
- https://bugzilla.kernel.org/show_bug.cgi?id=66171
And here is some information about that xhci quirk:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=e95829f474f0db3a4d940cae1423783edd966027
The Intel desktop boards DH77EB and DH77DF have a hardware issue that can be worked around by BIOS. If the USB ports are switched to xHCI on shutdown, the xHCI host will send a spurious interrupt, which will wake the system. Some BIOS will work around this, but not all.
The bug can be avoided if the USB ports are switched back to EHCI on shutdown. The Intel Windows driver switches the ports back to EHCI, so change the Linux xHCI driver to do the same.
Unfortunately, we can't tell the two effected boards apart from other working motherboards, because the vendors will change the DMI strings for the DH77EB and DH77DF boards to their own custom names. One example is Compulab's mini-desktop, the Intense-PC. Instead, key off the Panther Point xHCI host PCI vendor and device ID, and switch the ports over for all PPT xHCI hosts.
The only impact this will have on non-effected boards is to add a couple hundred milliseconds delay on boot when the BIOS has to switch the ports over from EHCI to xHCI.
The only thing I have to add that I have ASRock Fatal1ty z97 professional motherboard with i5-4690k installed but the quirk still helped me, so I guess it worth a try.