https://wiki.archlinux.org/index.php/Fo … bumping.22
Open a new topic and link back to this one if you think it's still relevant.
Closing.
]]>dmesg output just in case:
[ 167.549868] PM: Syncing filesystems ... done.
[ 167.778246] PM: Preparing system for mem sleep
[ 167.830423] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 167.831751] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 167.832878] PM: Entering mem sleep
[ 167.832925] Suspending console(s) (use no_console_suspend to debug)
[ 167.833661] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 167.833770] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 167.833839] sd 1:0:0:0: [sdb] Stopping disk
[ 167.836407] <6>[fglrx] IRQ 28 Disabled
[ 167.836499] <6>[fglrx] Preparing suspend fglrx in kernel.
[ 167.843036] sd 0:0:0:0: [sda] Stopping disk
[ 168.387728] <6>[fglrx] Suspending fglrx in kernel completed.
[ 168.387731] <6>[fglrx] Power down the ASIC .
[ 168.387925] PM: suspend of devices complete after 555.129 msecs
[ 168.389060] PM: late suspend of devices complete after 1.130 msecs
[ 168.389939] pcieport 0000:00:09.0: System wakeup enabled by ACPI
[ 168.390028] ohci-pci 0000:00:14.5: System wakeup enabled by ACPI
[ 168.390183] ehci-pci 0000:00:13.2: System wakeup enabled by ACPI
[ 168.390212] ohci-pci 0000:00:13.1: System wakeup enabled by ACPI
[ 168.390226] ohci-pci 0000:00:13.0: System wakeup enabled by ACPI
[ 168.390231] ehci-pci 0000:00:12.2: System wakeup enabled by ACPI
[ 168.390275] ohci-pci 0000:00:12.1: System wakeup enabled by ACPI
[ 168.390287] ohci-pci 0000:00:12.0: System wakeup enabled by ACPI
[ 168.403383] PM: noirq suspend of devices complete after 14.331 msecs
[ 168.403843] ACPI: Preparing to enter system sleep state S3
[ 168.406110] PM: Saving platform NVS memory
[ 168.406602] Disabling non-boot CPUs ...
[ 168.408026] kvm: disabling virtualization on CPU1
[ 168.408046] smpboot: CPU 1 is now offline
[ 168.410077] kvm: disabling virtualization on CPU2
[ 168.410106] smpboot: CPU 2 is now offline
[ 168.412002] kvm: disabling virtualization on CPU3
[ 168.412019] smpboot: CPU 3 is now offline
[ 168.413655] ACPI: Low-level resume complete
[ 168.413697] PM: Restoring platform NVS memory
[ 168.413842] PCI-DMA: Resuming GART IOMMU
[ 168.413842] PCI-DMA: Restoring GART aperture settings
[ 168.414039] LVT offset 1 assigned for vector 0x400
[ 168.414050] IBS: LVT offset 1 assigned
[ 168.414148] Enabling non-boot CPUs ...
[ 168.414194] x86: Booting SMP configuration:
[ 168.414195] smpboot: Booting Node 0 Processor 1 APIC 0x1
[ 168.425264] kvm: enabling virtualization on CPU1
[ 168.427476] cache: parent cpu1 should not be sleeping
[ 168.427653] CPU1 is up
[ 168.427668] smpboot: Booting Node 0 Processor 2 APIC 0x2
[ 168.438737] kvm: enabling virtualization on CPU2
[ 168.440904] cache: parent cpu2 should not be sleeping
[ 168.441029] CPU2 is up
[ 168.441043] smpboot: Booting Node 0 Processor 3 APIC 0x3
[ 168.452106] kvm: enabling virtualization on CPU3
[ 168.454272] cache: parent cpu3 should not be sleeping
[ 168.454410] CPU3 is up
[ 168.456803] ACPI: Waking up from system sleep state S3
[ 168.457968] ahci 0000:00:11.0: set SATA to AHCI mode
[ 168.458036] ohci-pci 0000:00:12.0: System wakeup disabled by ACPI
[ 168.458048] ohci-pci 0000:00:12.1: System wakeup disabled by ACPI
[ 168.458075] ohci-pci 0000:00:13.0: System wakeup disabled by ACPI
[ 168.458090] ohci-pci 0000:00:13.1: System wakeup disabled by ACPI
[ 168.458200] ohci-pci 0000:00:14.5: System wakeup disabled by ACPI
[ 168.471413] ehci-pci 0000:00:12.2: System wakeup disabled by ACPI
[ 168.471414] ehci-pci 0000:00:13.2: System wakeup disabled by ACPI
[ 168.471597] PM: noirq resume of devices complete after 13.823 msecs
[ 168.472216] PM: early resume of devices complete after 0.583 msecs
[ 168.472503] pcieport 0000:00:09.0: System wakeup disabled by ACPI
[ 168.474614] rtc_cmos 00:01: System wakeup disabled by ACPI
[ 168.479924] sd 0:0:0:0: [sda] Starting disk
[ 168.480163] sd 1:0:0:0: [sdb] Starting disk
[ 168.483905] <6>[fglrx] Power up the ASIC
[ 168.491888] <6>[fglrx] Preparing resume fglrx in kernel.
[ 168.499904] <6>[fglrx] Resuming fglrx in kernel completed.
[ 168.499976] <6>[fglrx] IRQ 28 Enabled
[ 168.526117] r8169 0000:02:00.0 eth0: link down
[ 168.757675] usb 1-4: reset high-speed USB device number 2 using ehci-pci
[ 168.780989] usb 2-4: reset high-speed USB device number 4 using ehci-pci
[ 168.794323] ata4: SATA link down (SStatus 0 SControl 300)
[ 168.794356] ata3: SATA link down (SStatus 0 SControl 300)
[ 168.881967] usblp0: removed
[ 169.017446] usb 5-1: reset low-speed USB device number 2 using ohci-pci
[ 169.600235] usb 5-2: reset low-speed USB device number 3 using ohci-pci
[ 169.914100] PM: resume of devices complete after 1443.230 msecs
[ 169.914632] usblp 1-4:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x06BC pid 0x01C7
[ 169.914879] PM: Finishing wakeup.
[ 169.914881] Restarting tasks ... done.
[ 170.154211] r8169 0000:02:00.0 eth0: link up
[ 170.346205] ata2: softreset failed (device not ready)
[ 170.346213] ata2: applying PMP SRST workaround and retrying
[ 170.516046] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 170.648572] ata2.00: configured for UDMA/133
[ 171.568381] ata1: softreset failed (device not ready)
[ 171.568391] ata1: applying PMP SRST workaround and retrying
[ 171.734882] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 171.737546] ata1.00: configured for UDMA/133
EDIT: OK, sorry, both solutions works. I just forgot to set the right permissions. Mea culpa...
]]>#!/bin/bash
# Disables echi / ohci / uhci ports on suspend and reenables them on resume.
# Place this script in /etc/pm/sleep.d
function unbind_usb {
for driver in ehci ohci uhci; do
cd "/sys/bus/pci/drivers/${driver}_hcd";
ids=$(ls | grep :);
echo $ids > /tmp/DISABLED_$driver;
for id in $ids; do
echo "Unbinding $id";
echo -n "$id" > unbind;
disabled="$disabled $id";
done;
done;
}
function bind_usb {
for driver in ehci ohci uhci; do
cd "/sys/bus/pci/drivers/${driver}_hcd";
for id in $(cat /tmp/DISABLED_$driver); do
echo "Binding $id";
echo -n "$id" > bind;
done;
rm /tmp/DISABLED_$driver;
done;
}
case "$1" in
hibernate|suspend)
unbind_usb;
;;
thaw|resume)
bind_usb;
# Uncomment the following two lines if USB devices stutter after resume
# unbind_usb;
# bind_usb;
;;
*)
exit 1;
;;
esac;
exit 0;
I hope it helps!
]]>I use Ubuntu, but I found this forum when I was searching for a solution.
Here is the solution that worked for me:
http://ubuntuforums.org/showthread.php?t=1168204
Download the second script posted on that forum and copy it to /etc/pm/sleep.d/
Make the file executable, and then try suspending. It worked right away for me...tested several times. Good luck!
Thanks, adibudeen, but could you please post the script here? Thank you very much!
]]>Here is the solution that worked for me:
http://ubuntuforums.org/showthread.php?t=1168204
Download the second script posted on that forum and copy it to /etc/pm/sleep.d/
Make the file executable, and then try suspending. It worked right away for me...tested several times. Good luck!
]]>I've found a workaround at the expense of not being able to wakeup via usb (ie keyboard or mouse). Create a file under /etc/pm/config.d/ containing the following line:
SUSPEND_MODULES="ehci_hcd uhci_hcd ohci_hcd usbcore"
To resume, you'll have to use you system's power button since USB will not work while in suspend.
Found this workaround via https://bugs.launchpad.net/ubuntu/+sour … bug/291300
It seems like there is an issue with the usb modules.
I guess I hoped to early. Just got home and finally tried, not working.
]]>SUSPEND_MODULES="ehci_hcd uhci_hcd ohci_hcd usbcore"
To resume, you'll have to use you system's power button since USB will not work while in suspend.
Found this workaround via https://bugs.launchpad.net/ubuntu/+sour … bug/291300
It seems like there is an issue with the usb modules.
Any ideas where problem can be ?
]]>The errors I get in the log are:
Sat Apr 17 14:18:46 EEST 2010: performing suspend
/usr/lib/pm-utils/pm-functions: line 295: echo: write error: Device or resource busy
Sat Apr 17 14:18:48 EEST 2010: Awake.
Sat Apr 17 14:18:48 EEST 2010: Running hooks for resume
/usr/lib/pm-utils/sleep.d/99video resume suspend:Function not supported
Function not supported
success.
Suspend/Resume worked fine on my Debian Sid before with xf86-video-ati
]]>