from https://forums.freebsd.org/threads/how-to-stop-laptop-from-sleeping-when-lid-is-closed.37822/
Check the value from sysctl hw.acpi.lid_switch_state
ex it's S3
change sysctl hw.acpi.lid_switch_state from "S3" to "NONE"
sudo nano /etc/sysctl.conf
add to /Applications/Autostart:
benq.sh
#!/bin/sh xrandr --output LVDS-1 --off --output VGA-1 --off --output HDMI-1 --primary --mode 1920x1080 --pos 1366x0 --rotate normal --output DP-1 --off