Need my Mac to run in clamshell mode.
printf "HandleLidSwitch=ignore\n" >> /etc/systemd/logind.conf
systemctl restart systemd-logind.service
# do not suspend
printf "AllowSuspend=no\n" >> /etc/systemd/sleep.conf
Need my Mac to run in clamshell mode.
printf "HandleLidSwitch=ignore\n" >> /etc/systemd/logind.conf
systemctl restart systemd-logind.service
# do not suspend
printf "AllowSuspend=no\n" >> /etc/systemd/sleep.conf