Here's what I use for handling the lid switch and power button. Closing the lid activates and locks xscreensaver, and the power button is self-explanatory. systemd is supposed to handle these cases, but for whatever reason, it's not working on these machines.
Here's what I use for handling the lid switch and power button. Closing the lid activates and locks xscreensaver, and the power button is self-explanatory. systemd is supposed to handle these cases, but for whatever reason, it's not working on these machines.
http://home.ix.netcom.com/~jjingber/acpid-scripts.tar.gz