On shutdown, computer reboots when started via wake on lan
Solution 1
There's one dirty solution
a) create /etc/init.d/reshutdown with the contents
#!/bin/sh
# force shutdown (due to bug in wakeonlan)
#
case "$1" in
reshutdown)
touch /home/shutdown.chk
shutdown -r now
;;
start)
if [ -f /home/shutdown.chk ];
then
rm /home/shutdown.chk
shutdown -h now
fi
;;
esac
b) Execute: sudo chmod ugo+x /etc/init.d/reshutdown
b) Execute: sudo update-rc.d reshutdown start 1 1 2 3 4 5 6 .
c) Then to shutdown execute: sudo service reshutdown reshutdown
Solution 2
I had this issue too, using the Intel DQ77MK motherboard, which has 2 onboard Intel GB ethers. I fixed it by enabling the power bios entry "Native ACPI OS PCIe Support", which I guess allowed Ubuntu to reset the flag saying WOL has been triggered, probably with it disabled Ubuntu was not allowed by the BIOS to reset the flag.
Related videos on Youtube
patsee
Updated on September 18, 2022Comments
-
patsee over 1 year
Here's the situation:
I start my main computer from another pc via wake on lan "wakeonlan ". All works fine. When I'm done doing what I did, I run "sudo shutdown -h now" (in the ssh terminal in which I was working) to shutdown the computer. But instead of shutting down, it reboots. I then have to reconnect to it via ssh and run the shutdown command again, and then it shuts down and stays off. I can then start it again via wake on lan...
does anyone know, why my computer actually reboots when I type "sudo shutdown -h now" when started via wake on lan?
Some information about the computer:
Ubuntu 13.04
Moterboard: Gigabyte GA-Z77X-UD3H
Ethernet Controller (as reported by "lspci"): Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet (rev c0)-
Harshal Kshatriya about 11 yearspatsee, I'm facing the same issue. Any solutions?
-
Lekensteyn almost 11 yearsWhat (EFI?) BIOS version do you have? Others (including me) have reported the same issue with an Asus and GA-Z68X-UD3H-B3 board containing a Realtek card lists.debian.org/debian-user/2013/06/msg01280.html
-
Felipe over 10 yearsI'm having the same problem with the Asus P8H61-M LE/CSM with a Realtek Ethernet card. Has anybody come up with some workaround for this? I read the debian email, but I also don't have Windows installed to test this behaviour.
-
-
patsee about 11 yearsthanks for your suggestion. I just tried to shutdown via "sudo poweroff" but unfortunately it is the same behavior as written in my op.
-
gertvdijk almost 11 yearsThis is the same as
shutdown -h
, seriously. -
patsee almost 11 yearsThanks for your answer, but unfortunately my bios does not have this option nor was I able to find a similar one. The problem still persists.
-
Eliah Kagan over 9 years