Comment 43 for bug 557072

Revision history for this message
Jacob Zimmermann (jacob) wrote :

The following script works for me (saved as /etc/pm/sleep.d/5_quick-fix-drivers)
NB: The atl1c module is there because otherwise the ethernet controller didn't work after a resume. Remove it from the list if you aren't experiencing that problem.

-----
#!/bin/sh

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

MODS="xhci_hcd atl1c"

case "${1}" in
        suspend|hibernate)
                for m in $MODS
                do
                        modprobe -r $m
                done
                ;;
        resume|thaw)
                for m in $MODS
                do
                        modprobe $m
                done
                ;;
esac