Resume from Suspend closes applications

Solution 1:

Create the file /etc/acpi/local/lid.sh.post and add the following to it:

#!/bin/bash
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
/usr/sbin/pm-suspend
fi

Make the file executable with chmod +x lid.sh.post and your problem should be solved.