Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
It sounds like you set it to shutdown instead. – psusi Dec 24 '11 at 20:14

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):

 * Create a file /etc/pm/sleep.d/50_custom with the following content:

 --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<--

 # Action script to shutdown modules before suspending.
 # before a hibernate
 # Copyright: Copyright (c) 2009 Ernesto Revilla
 # License: GPL-2


 case "${1}" in
        rmmod uvcvideo
        rmmod usbhid
        rmmod psmouse

        modprobe uvcvideo
        modprobe usbhid
        modprobe psmouse


 --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<--

Now the script has to be made executable:

 sudo chmod +x /etc/pm/sleep.d/50_custom
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.