Comment 6 for bug 587457

Revision history for this message
tm (tmtm) wrote :

Hi. Thanks to this forum http://dug.net.pl/tekst/111/suspend___problemy_z_acpi_na_przykladzie_asus_k52jr/ there is solution. All you have to do is to make a file:
/etc/pm/sleep.d/20_custom-ehci_hcd
and add this:

!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".
case "${1}" in
        hibernate|suspend)
              # Unbind ehci_hcd for first device 0000:00:1a.7:
               echo -n "0000:00:1a.7" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
              # Unbind ehci_hcd for second device 0000:00:1d.7:
               echo -n "0000:00:1d.7" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
        ;;
        resume|thaw)
              # Bind ehci_hcd for first device 0000:00:1a.7:
              echo -n "0000:00:1a.7" | tee /sys/bus/pci/drivers/ehci_hcd/bind
              # Bind ehci_hcd for second device 0000:00:1d.7:
              echo -n "0000:00:1d.7" | tee /sys/bus/pci/drivers/ehci_hcd/bind
        ;;
esac

Then suspend to ram on lenovo y530 should working. So the problem is usb related.