shutdown cause system reboot

Hello everyone, I just installed FreeBSD-13.1-release on my Lenovo m93p desktop computer.
QQ截图20220810152854.png

I found shutdown -p now cause system to reboot.

I have refer to these threads:
Handbook: 12.13.2.5. System Powers Up After Suspend or Shutdown
and set:
hw.efi.poweroff=0 in /etc/sysctl.conf
hw.acpi.disable_on_poweroff="0"(also test "1") in /boot/loader.conf
but not work.

Today I found that turning off the Wake-on-LAN in bios can shut down normally.

If do not turn off the Wake-on-LAN , system can also shut down normally by inserting a USB flash drive.

I need the Wake-on-LAN function, how can I troubleshoot the problem?
 
If you need wake on lan then wake on lan is doing what it's supposed to do.
I'm unclear as to what you are referring, could you please elaborate?

Normally Wake-on-LAN or wol(1) is technology based on a low-level network packet known as the magic packet that is being broadcast from a source with a specific MAC address as target. That MAC address is the unique MAC address of the NIC of the target device. When that device is capable and has its Wake-on-LAN property enabled accordingly for that NIC, it will then "awake" the device in response to that broadcast. Just being on a local network where there is traffic should not awake such a device.
 
Also check BIOS for Watchdog Timer. Disable if found.

What you need to be doing is finding the WOL server sending these magic packets.
Why is it constantly sending magic packets.
This is the root problem. A WOL server you need to reconfigure or control.
I am slighly doubtful WOL is the culprit. Especially when you mention USB stick solves it.
 
Thank you for all kind reply.
Today, when I unplug the network cable, set WOL to "primary" or "automatic", and it will restart automatically. Only when WOL is set to "disable", can be shut down normally, which eliminates the possibility of the host being woken up by magic packets from the intranet.
I will try to upgrade the bios, if the problem still occurs, it may only be a system problem.
 
"Today, when I unplug the network cable, [...]"
That is a good test, however, be sure that wifi is also disabled/disconnected. Do you know the exact type of your Lenovo? Try to search for the official User Guide if you don't have one; it may have some useful information about WOL settings (it is at least covered in a laptop P50 User Guide).

I don't know if you've dedicated your PC to FreeBSD or still have a Windows or other OS available; I'm curious what behaviour your system will show when another OS shuts down. I'm also somewhat doubtful, as Phishfry, that the WOL setting is the culprit, we'll see.
 
Back
Top