I'm running Ubuntu 17.10 on an HP Revolve 810, and I'm having some trouble with getting the machine to go into Suspend when the lid is closed. I've tried doing some digging, found a command that supposedly worked on 17.04, which was this:
sudo apt install gksu && gksudo gedit /etc/systemd/logind.conf
The only thing I get from this is an error that says:
Failed to run gedit '/etc/systemd/logind.conf' as user root.
Unable to copy the user's Xauthorization file.
I'm still new to the inner workings of Ubuntu, so I'm not quite sure where to go from here. Any help is appreciated.