I am trying to change my laptop's lid close behavior following this article: http://tipsonubuntu.com/2018/04/28/change-lid-close-action-ubuntu-18-04-lts/
When I get to run:
systemctl restart systemd-logind.service
my system freezes and gets stuck.
What am I doing wrong here? Is there a simpler solution?