You are not logged in.

#1 2012-04-21 10:35:05

marijus
Member
Registered: 2012-03-12
Posts: 20

Samsung 530U3B A01 - Sleep Fix

on the mentioned machine sleep doesn't work out of the box.
to fix it add a custom sleep script to /etc/pm/sleep.d/

you can call it "20_custom-ehci" for example:

#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".

# Found matsching adresses using "lspci |grep USB":
#00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
#00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
#03:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller


case "${1}" in
hibernate|suspend)
# Unbind ehci_hcd/xhci_hcd devices
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
echo -n "0000:03:00.0" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
;;
resume|thaw)
# Bind ehci_hcd/xhci_hcd devices
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
echo -n "0000:03:00.0" | tee /sys/bus/pci/drivers/xhci_hcd/bind
;;
esac
#EoF 

source:
http://community.linuxmint.com/hardware/view/8922

i hope this will save somebody some time searching the web smile
best regards,
marijus

EDIT: typo

Last edited by marijus (2012-04-21 17:53:51)

Offline

#2 2012-04-21 16:45:43

marijus
Member
Registered: 2012-03-12
Posts: 20

Re: Samsung 530U3B A01 - Sleep Fix

probably better and more native way is to add:

SUSPEND_MODULES="ehci_hcd xhci_hcd"

to /etc/pm/config.d/module

source: https://wiki.archlinux.org/index.php/Pm … end_to_RAM

If the file doesn't exist you can just create it wink

regards, marijus

EDIT: typo

Last edited by marijus (2012-04-21 17:55:46)

Offline

Board footer

Powered by FluxBB