Comment 5 for bug 882956

Revision history for this message
erny (erevilla) wrote : Re: [Oneiric] [Dell XPS M1330] Gnome session dies at resume

Hi.

Could you please try the following:

 * 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
                ;;

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

Regards