关机时,计算机在通过LAN唤醒启动时重新启动

这是情况:

我通过唤醒lan“wakeonlan”从另一台电脑启动我的主电脑。 一切正常。 当我完成了我所做的事情后,我运行“sudo shutdown -h now”(在我正在工作的ssh终端中)关闭计算机。 但它没有关闭,而是重新启动。 然后我必须通过ssh重新连接到它并再次运行shutdown命令,然后它关闭并保持关闭状态。 我可以通过唤醒lan再次启动它…

有没有人知道,为什么我的计算机实际上重新启动时,我通过唤醒lan启动时键入“sudo shutdown -h now”?

有关计算机的一些信息:

Ubuntu 13.04
Moterboard:技嘉GA-Z77X-UD3H
以太网控制器(由“lspci”报道):Qualcomm Atheros AR8151 v2.0千兆以太网(rev c0)

有一个肮脏的解决方案

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 

我也有这个问题,使用Intel DQ77MK主板,它有2个板载Intel GB醚。 我通过启用power bios条目“Native ACPI OS PCIe Support”来修复它,我想允许Ubuntu重置标志,说WOL已被触发,可能是因为它被禁用Ubuntu不允许BIOS重置标志。

尝试sudo poweroff

对我来说,它对WOL更好。