Edit /etc/systemd/logind.conf and change the HandleLidSwitch to the following:
Then you could try to restart the systemd-logind service with:
systemctl restart systemd-logind
BUT it crashed my machine when I did, so perhaps just a reboot for it to take effect would be the best option.
Every time I’d put my LMDE-running machine to sleep the wireless wouldn’t come up for maybe a minute or so, which isn’t ideal. This could be caused by a variety of conditions, but in my case it turned out that the IPv6 “Automatic” setting was trying to use IPv6 DHCP, and was waiting for this to time-out before accepting the IPv4 DHCP lease.
To change this behaviour, you can modify the IPv6 settings from Automatic to Ignore, like this:
If you’re not using Gnome Shell (like in the above screenshot), then maybe try modifying /etc/network/interfaces – really, it’ll depend on your Linux distro where the config is located.
Once IPv6 was disabled the IPv4 DHCP lease was accepted immediately on resume – and it could be the case that if you’ve got the same symptom that it’s caused by the same issue. Regardless, it’s certainly one of the easier things worth trying before you go looking into more involved solutions.