!/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.
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: sleep.d/ 20_custom- ehci_hcd
/etc/pm/
and add this:
!/bin/sh sleep.d/ 20_custom- ehci_hcd" .
hibernate| suspend) pci/drivers/ ehci_hcd/ unbind pci/drivers/ ehci_hcd/ unbind
resume| thaw) pci/drivers/ ehci_hcd/ bind pci/drivers/ ehci_hcd/ bind
# File: "/etc/pm/
case "${1}" in
# Unbind ehci_hcd for first device 0000:00:1a.7:
echo -n "0000:00:1a.7" | tee /sys/bus/
# Unbind ehci_hcd for second device 0000:00:1d.7:
echo -n "0000:00:1d.7" | tee /sys/bus/
;;
# Bind ehci_hcd for first device 0000:00:1a.7:
echo -n "0000:00:1a.7" | tee /sys/bus/
# Bind ehci_hcd for second device 0000:00:1d.7:
echo -n "0000:00:1d.7" | tee /sys/bus/
;;
esac
Then suspend to ram on lenovo y530 should working. So the problem is usb related.