Note that while gnome-tweak-tool seems to produce expected results for me under gnome-shell/xorg, it doesn't on gnome-shell/wayland. Under wayland, no configuration in gnome-tweak-tool seems to stop the machine from sleeping if the lid is/started closed.
I was trying to report that Wayland specific bug, and it got marked as a duplicate of this, but I'm not convinced it actually is the same problem.
Note that while gnome-tweak-tool seems to produce expected results for me under gnome-shell/xorg, it doesn't on gnome-shell/ wayland. Under wayland, no configuration in gnome-tweak-tool seems to stop the machine from sleeping if the lid is/started closed.
I was trying to report that Wayland specific bug, and it got marked as a duplicate of this, but I'm not convinced it actually is the same problem.