There is such a switch in Tweaks in the Power section, but you need to install the gnome-tweaks-tool package to make Tweaks available.
** Bug watch added: GNOME Bug Tracker #790043 https://bugzilla.gnome.org/show_bug.cgi?id=790043 ** Also affects: gnome-control-center via https://bugzilla.gnome.org/show_bug.cgi?id=790043 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1730871 Title: Close lid action missing in Ubuntu 17.10 To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1730871/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs