How to set the close-laptop-lid-action?
Solution 1:
This appears to be bug in the gnome-settings-daemon.
A workaround has been proposed by Kim Nguyễn in the form of a python script, custom_suspend.py. He/she says:
The script should be launched as:
systemd-inhibit --who=me --why=because --mode=block --what=handle-lid-switch /path/to/custom_suspend.py
from the session startup (gnome-session-properties)
This is public domain and only lightly tested. It relies on existing gnome/systemd commands to perform the underlying action