Ubuntu 16 reboots seconds after shutdown

32,003

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:

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.

Share:
32,003

Related videos on Youtube

Xico Sim
Author by

Xico Sim

Updated on September 18, 2022

Comments

  • Xico Sim
    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
      Admin about 8 years
    • Admin
      Admin about 8 years
      I did. Didn't work...
    • Admin
      Admin about 8 years
      Me 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
      Admin about 8 years
      Do you have the same issue when running on live media?
    • Admin
      Admin about 8 years
      I don't know what you mean by running on live media..
    • Admin
      Admin almost 8 years
      do you meen live session? run ubuntu from usb without install?
    • Admin
      Admin almost 8 years
      I 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
      Admin almost 8 years
      This problem was not happened in 15.10, issue start after update to 16.04
    • Admin
      Admin almost 8 years
      try to shut down using the command sudo poweroff -f
  • Xico Sim
    Xico Sim about 8 years
    I already tried that. However, I found no such thing in my BIOS...
  • Xico Sim
    Xico Sim about 8 years
    I've tried with no mouse or keyboard plugged in, but it still happens...
  • Anake
    Anake almost 8 years
    Weirdly, this worked for me even though I connect to the internet over ethernet (there is still a WiFi module present though)
  • Peterling
    Peterling over 7 years
    Some 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
    Soap about 7 years
    Still happens to me. Is it safe to use that workaround?
  • H2ONaCl
    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
    Ale over 5 years
    This 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 the GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub -- in this case, an invocation of update-grub will be indeed needed after editing the file.
  • bomben
    bomben about 5 years
    I 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
    adamc almost 5 years
    worked for me on a Lenovo M73 Tiny with Ubuntu 19.04