13

After two days of installation, strangely my Ubuntu machine is restarting instead of shutdown from both desktop GUI and command line.

sudo shutdown -h now
sudo halt  # (doesn't shutdown, instead freezes on boot screen Plymouth)

I had force shutdown by powering off the machine.

This is not happening all the times.

I have been using Ubuntu for 6 months and never experienced this kind of problem.

galoget
  • 3,023

10 Answers10

4

I had the same issue with new acer aspre v5 notebook. It has been solved by enabling laptop-mode as running

sudo apt-get install laptop-mode-tools
galoget
  • 3,023
4

Go into your machines BIOS and check for an option called wake-on-lan or something similar and disable it.

This was what caused this problem on my machine.

3

I faced the same issue after I installed Ubuntu 12.04 on a newly built machine. This answer on another post helped me resolve it:

I resolved by adding acpi=noirq to the kernel arguments

sudo editor /etc/default/grub

Add

GRUB_CMDLINE_LINUX_DEFAULT="acpi=noirq quiet splash"

Then

sudo update-grub
Pablo Bianchi
  • 17,371
2

In my case it was a Wake On Lan motherboard (Gigabyte GA-Z77M-D3H) issue.

My solution:

Install ethtool:

sudo apt-get install ethtool

Set WOL off:

sudo ethtool -s eth0 wol d

If it works, then edit the /etc/rc.local file and add ethtool -s eth0 wol d, before the exit 0 line.

Hope it will help you.

Seth
  • 59,332
Nasara
  • 21
1

I have had exactly the same problem on my Acer V5-571G: the laptop shuts down, turns off its power LED, and then starts again after a few seconds. It occurs more often when working on battery.

The problem seems to arise from incorrect work of pm-utils. But if you write on into /sys/bus/*/devices/*/power/control, the kernel takes control over power management at the specified devices - and somehow this makes the hardware to shut down correctly.

So I have written a script:

#!/bin/bash

case "$1" in
  stop) for i in /sys/bus/*/devices/*/power/control ; do echo on > $i ; done 
  ;;
esac

exit 0

and to make it being executed every time before shutdown I've placed it under name K32power-control-on into /etc/rc0.d directory (don't forget to make the script executable, sudo chmod +x K32power-control-on). After that the laptop shuts down ok.

I think that there are only a few buses/devices which need to have 'on' value written to their power/control, so the list of devices in the script can be restricted, but I just didn't investigate further.

UPD: Here is a more refined solution of the same problem: https://www.behnke.io/fedora-17-on-an-aspire-v5-571-reboot-on-shutdown/

nullptr
  • 131
1

I had this problem on a Thinkpad X230 with Ubuntu 12.04, it always rebooted after shutdown when unplugged. I found the solution described here to work for me:

Install laptop-mode-tools (if it's not already installed):

sudo apt-get install laptop-mode-tools

Open grub's config in /etc/default/grub in a text editor and add (or change) this line:

GRUB_CMDLINE_LINUX_DEFAULT="acpi=noirq quiet splash"

Update grub using the following command:

sudo update-grub
Sparhawk
  • 6,969
fuenfundachtzig
  • 356
  • 3
  • 13
0

Don't follow the recommendation that says to set

GRUB_CMDLINE_LINUX_DEFAULT="acpi=noirq quiet splash"

unless you know how to repair a broken Ubuntu system!

It seems that

sudo shutdown -P now

works every time! Note -P not -h

A.M.
  • 11
0

For me I thought it was rebooting but it was just asking to decrypt so it can install updates before turning off. I could not even force it to shutdown - got lucky there :)

Lotus
  • 161
0

my solution:

  • disable internal wlan adapter
  • buy usb adapter
  • fix shutdown

example:

lspci found rt3290 wlan 
rt3290 use rt2800pci module

blacklist rt2800pci 

edit blacklist.conf

sudo nano /etc/modprobe.d/blacklist.conf

Add the line:

blacklist rt2800pci 

reboot linux

test shutdown :)

install wlan usb adapter RT2870/RT3070 work :)

Alvar
  • 17,038
0

In my case (Gigabyte H87N-WIFI) I disabled XHCI in BIOS - so I can still use WOL. I suspect a problem with the xhci_hcd kernel module.