I recently switched from Fedora 39 to Debian 12 as the main distro on my computer (as I’m more comfortable with it), and have been able to work through most of the issues I’ve faced, except for one.
Whenever I close the laptop lid, the screen stays on, and the laptop neither locks nor suspends. I have tried to go into
/etc/systemd/logind.conf and change the lid switch settings, as well as
/etc/systemd/sleep.conf to manually activate suspend by allowing with YES.
Unfortunately, nothing seems to be working. I can confirm that the laptop does suspend when going into the Gnome menu → Power → Suspend, but not when the lid is closed. Any suggestions would be greatly appreciated.