Bug 783032

Summary: Can't suspend to RAM when IR dongle is allowed to wake
Product: [Fedora] Fedora Reporter: Konstantin Svist <fry.kun>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: gansalmon, hughsient, itamar, jonathan, jskarvad, kernel-maint, madhu.chinakonda, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-04 15:48:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Konstantin Svist 2012-01-19 05:53:35 UTC
Description of problem:
I'm having a problem getting a machine (Foxconn nt-330i) to sleep/suspend when I set an IR receiver (073a:2230) to allow to wake it.

# for x in USB0 USB2 US12 US15; do echo $x > /proc/acpi/wakeup
# echo enabled > /sys/bus/usb/devices/3-1/power/wakeup

When I make it suspend to RAM, all I get is black VT screen with a blinking cursor. If I don't do either of the above commands, operation works just fine. I've already enable wake-from-USB in BIOS.

I've tried doing the same thing on my laptop and everything is working - both sleep and wake from IR dongle.

What do I need to do to debug/fix this?

Comment 1 Konstantin Svist 2012-01-19 07:51:27 UTC
Okay, some progress:
Removed "quiet" and "rhgb" from kernel string (in grub), and added no_console_suspend (helpful suggestion popped up after suspending without "quiet"). /var/log/pm-suspend.log doesn't show anything obvious, but I finally have a trace from the console :

(time codes stripped off since entering data by hand from a photo...)

PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
ohci_hcd 0000:00:06.0: PCI INT A disabled
pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16
pm_op(): pci_pm_suspend+0x0/0x130 returns -16
PM: Device 0000:00:04.0: failed to suspend async: error -16
ehci_hcd 0000:00:06.1: PCI INT B disabled
pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16
pm_op(): pci_pm_suspend+0x0/0x130 returns -16
PM: Device 0000:00:04.1 failed to suspend async: error -16
snd_hda_intel 0000:00:08.0: PCI INT A disabled
snd_hda_intel 0000:00:08.0: power state changed by ACPI to D3


[root@pancake ~]# ll /sys/bus/usb/devices/ |grep 04
lrwxrwxrwx 1 root root 0 Jan 18 14:54 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:04.1/usb1/1-0:1.0
lrwxrwxrwx 1 root root 0 Jan 18 14:54 1-2 -> ../../../devices/pci0000:00/0000:00:04.1/usb1/1-2
lrwxrwxrwx 1 root root 0 Jan 18 14:54 1-2:1.0 -> ../../../devices/pci0000:00/0000:00:04.1/usb1/1-2/1-2:1.0
lrwxrwxrwx 1 root root 0 Jan 18 14:54 3-0:1.0 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-0:1.0
lrwxrwxrwx 1 root root 0 Jan 18 14:54 3-1 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-1
lrwxrwxrwx 1 root root 0 Jan 18 14:54 3-1:1.0 -> ../../../devices/pci0000:00/0000:00:04.0/usb3/3-1/3-1:1.0
lrwxrwxrwx 1 root root 0 Jan 18 14:54 usb1 -> ../../../devices/pci0000:00/0000:00:04.1/usb1
lrwxrwxrwx 1 root root 0 Jan 18 14:54 usb3 -> ../../../devices/pci0000:00/0000:00:04.0/usb3

Comment 2 Jaroslav Škarvada 2012-02-13 14:04:52 UTC
It shouldn't freeze, reassigning to kernel.

Comment 3 Dave Jones 2012-03-22 16:46:40 UTC
[mass update]
kernel-3.3.0-4.fc16 has been pushed to the Fedora 16 stable repository.
Please retest with this update.

Comment 4 Dave Jones 2012-03-22 16:51:16 UTC
[mass update]
kernel-3.3.0-4.fc16 has been pushed to the Fedora 16 stable repository.
Please retest with this update.

Comment 5 Dave Jones 2012-03-22 17:01:30 UTC
[mass update]
kernel-3.3.0-4.fc16 has been pushed to the Fedora 16 stable repository.
Please retest with this update.