nano /etc/systemd/logind.conf
HandleLidSwitch=ignoreHandleLidSwitchDocked=ignore
systemctl restart systemd-logind