I am using a DELL Inspiron 1525.
I have setup close-lid to sleep mode. On waking up from sleep, all my previously open processes have been closed and I am shown a blank desktop.
Any known solutions to this?
Perhaps you are suffering from this issue. The solution provided in the comments works for me (also a Inspiron 1525) so far.
The solution from erny(erevilla):
Now the script has to be made executable: