Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

Thanks.

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

1 Answer

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<--
 #!/bin/sh

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

 PATH=/sbin:/usr/sbin:/bin:/usr/bin

 case "${1}" in
    suspend|suspend_hybrid|hibernate)
        rmmod uvcvideo
        rmmod usbhid
        rmmod psmouse
            ;;

    resume|thaw)
        modprobe uvcvideo
        modprobe usbhid
        modprobe psmouse
            ;;

 esac

 --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
add comment

Your Answer

 
discard

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.