Ubuntu 16 reboots seconds after shutdown
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:
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.
Related videos on Youtube
Xico Sim
Updated on September 18, 2022Comments
-
Xico Sim over 1 year
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.
-
Admin about 8 yearsYou tired this?: askubuntu.com/questions/132143/stuck-on-reboot-and-shutdown/…
-
Admin about 8 yearsI did. Didn't work...
-
Admin about 8 yearsMe too, hp probook g0 450, a have to remove my batery and remove cable to prevent cold start after shutdown. Hate this after update...
-
Admin about 8 yearsDo you have the same issue when running on live media?
-
Admin about 8 yearsI don't know what you mean by running on live media..
-
Admin almost 8 yearsdo you meen live session? run ubuntu from usb without install?
-
Admin almost 8 yearsI have disable all wake from bius, I have remove all usb/cables conected to my laptop, I have try and this method askubuntu.com/questions/452750/…, but not luck at all, my laptop is turning on after 5 secounds after shutdown.
-
Admin almost 8 yearsThis problem was not happened in 15.10, issue start after update to 16.04
-
Admin almost 8 yearstry to shut down using the command
sudo poweroff -f
-
-
Xico Sim about 8 yearsI already tried that. However, I found no such thing in my BIOS...
-
Xico Sim about 8 yearsI've tried with no mouse or keyboard plugged in, but it still happens...
-
Anake almost 8 yearsWeirdly, this worked for me even though I connect to the internet over ethernet (there is still a WiFi module present though)
-
Peterling over 7 yearsSome people mentioned turning off USB 3.0 legacy mode in BIOS. Others added acpi=force to grub menu. Which for myself was ab bad idea cuz the PC then takes ages to boot. Others tried: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=bios" others had reboot=pci which I cannot test right now cuz I have a new pc and it is working now for me. Hope this was of help.
-
Soap about 7 yearsStill happens to me. Is it safe to use that workaround?
-
H2ONaCl about 6 years@XicoSim, You said you have an HP. Look in the advanced menu for "built-in device options" for "wake on LAN".
-
Ale over 5 yearsThis command updates the GRUB configuration, however if you don't edit any GRUB settings file, this command alone will hardly solve anything. Some people suggest adding
acpi=force
to theGRUB_CMDLINE_LINUX_DEFAULT
in/etc/default/grub
-- in this case, an invocation ofupdate-grub
will be indeed needed after editing the file. -
bomben about 5 yearsI have this problem with an ASUS F751LDV laptop. I use openmediavault (debian). If I shutdown it restarts. Only way it does not do this is by enabling a power saving option in BIOS that as a side effect does prevent this. But then WOL does not work of course. I also had this problem with pressing the physical power button. But it is not always the case.
-
adamc almost 5 yearsworked for me on a Lenovo M73 Tiny with Ubuntu 19.04