Gentoo Archives: gentoo-user

From: Daniel Frey <djqfrey@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Update to newer kernel completely hoses suspend
Date: Thu, 13 Sep 2012 00:20:52
Message-Id: CA+ZgY1FR_S+wpns4-0zYv93Kqc3wAL=iqxGQ0PHz5cD=tcgURg@mail.gmail.com
1 So about a month ago I decided to update my kernel to the dreaded 3.x
2 series. My old 2.6.x kernel was working fine, but of course I decided
3 to try to update it anyway, knowing there were problems with suspend
4 and a few other things.
5
6 I've always used gentoo-sources. So I tried 3.3.8.
7
8 Hrm. Suspend doesn't work. I tried 3.4.5, 3.4.9 and 3.0.35 (older
9 versions are no longer available.) If I'd known it would completely
10 kill my suspend and make it useless, I wouldn't have bothered.
11
12 Here's the problem:
13
14 I can suspend fine. It appears to work. It powers off and goes into
15 its suspend state. I press the space bar. Nothing. So, then I
16 discovered that as of 3.2 USB wakeup had completely changed in the
17 kernel, and you need to set hubs and devices in /proc/acpi/wakeup
18 (which is normally done for you) *and* in /sys/devices. No biggie, I
19 wrote a script to do just that at
20 http://forums.gentoo.org/viewtopic-t-933934.html. So now I can wake
21 with the keyboard as before. Or can I?
22
23 If I suspend and wake up the PC within about 10 minutes it works.
24 After that, all hell breaks loose. The PC is dead. Completely. Waking
25 up no longer works, not with the keyboard, or even the power button.
26 The *only* way is to pull the power plug and leave it unplugged for a
27 few seconds. Then the PC comes to life.
28
29 I've never seen an issue quite like this one...
30
31 I use mdraid in my kernel with IMSM to dual boot Windows. I've been
32 using it for a long time, so that's not it. The only thing that's
33 changed are the kernel versions I've tried. So far, every 3.x kernel
34 has done this. Now, this could very well be a kernel problem, heres my
35 ACPI config:
36
37 # Power management and ACPI options
38 CONFIG_ACPI=y
39 CONFIG_ACPI_SLEEP=y
40 # CONFIG_ACPI_PROCFS is not set
41 # CONFIG_ACPI_PROCFS_POWER is not set
42 # CONFIG_ACPI_EC_DEBUGFS is not set
43 CONFIG_ACPI_PROC_EVENT=y
44 CONFIG_ACPI_AC=y
45 CONFIG_ACPI_BATTERY=y
46 CONFIG_ACPI_BUTTON=y
47 CONFIG_ACPI_FAN=y
48 # CONFIG_ACPI_DOCK is not set
49 CONFIG_ACPI_PROCESSOR=y
50 CONFIG_ACPI_HOTPLUG_CPU=y
51 # CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
52 CONFIG_ACPI_THERMAL=y
53 # CONFIG_ACPI_CUSTOM_DSDT is not set
54 CONFIG_ACPI_BLACKLIST_YEAR=0
55 # CONFIG_ACPI_DEBUG is not set
56 # CONFIG_ACPI_PCI_SLOT is not set
57 CONFIG_ACPI_CONTAINER=y
58 # CONFIG_ACPI_SBS is not set
59 # CONFIG_ACPI_HED is not set
60 # CONFIG_ACPI_APEI is not set
61 CONFIG_X86_ACPI_CPUFREQ=y
62 CONFIG_PNPACPI=y
63 CONFIG_ATA_ACPI=y
64 # CONFIG_PATA_ACPI is not set
65 # ACPI drivers
66 # ACPI drivers
67 # CONFIG_SENSORS_ACPI_POWER is not set
68
69 Suspend stuff:
70 CONFIG_ARCH_SUSPEND_POSSIBLE=y
71 CONFIG_SUSPEND=y
72 CONFIG_SUSPEND_FREEZER=y
73 CONFIG_USB_SUSPEND=y
74
75
76 Here's output from my script (usbwakeup -l): (USB4 is where my keyboard is)
77 ~ # usbwakeup -l
78 Listing USB hubs/devices and their wakeup status...
79
80 USB ID :: Device* :: Status :: Device Description
81 ----------------------------------------------------
82 1d6b:0001 :: usb3 :: enabled :: UHCI Host Controller
83 051d:0002 :: 3-1 :: disabled :: Back-UPS RS 1200 FW:8.g1 .D USB FW:g1
84 1d6b:0001 :: usb4 :: enabled :: UHCI Host Controller
85 046d:c508 :: 4-1 :: disabled :: USB Receiver
86 046d:c221 :: 4-2.1 :: enabled :: Gaming Keyboard
87 1d6b:0001 :: usb5 :: enabled :: UHCI Host Controller
88 1d6b:0002 :: usb1 :: enabled :: EHCI Host Controller
89 1d6b:0001 :: usb6 :: enabled :: UHCI Host Controller
90 1d6b:0001 :: usb7 :: enabled :: UHCI Host Controller
91 1d6b:0001 :: usb8 :: enabled :: UHCI Host Controller
92 1d6b:0002 :: usb2 :: enabled :: EHCI Host Controller
93
94 *Use the Device column to identify hubs/devices to be toggled.
95
96 11 USB hubs/devices listed.
97
98 Output from acpitool -w:
99 osoikaze ~ # acpitool -w
100 Device S-state Status Sysfs node
101 ---------------------------------------
102 1. P0P1 S3 *disabled pci:0000:00:01.0
103 2. UAR1 S3 *disabled pnp:00:03
104 3. P0P2 S4 *disabled pci:0000:00:1e.0
105 4. USB0 S3 *disabled pci:0000:00:1d.0
106 5. USB1 S3 *disabled pci:0000:00:1d.1
107 6. USB2 S3 *disabled pci:0000:00:1d.2
108 7. USB5 S3 *disabled
109 8. USB6 S3 *disabled pci:0000:00:1a.2
110 9. EUSB S3 *disabled pci:0000:00:1d.7
111 10. USB3 S3 *disabled pci:0000:00:1a.0
112 11. USB4 S3 *enabled pci:0000:00:1a.1
113 12. USBE S3 *disabled pci:0000:00:1a.7
114 13. PEX0 S4 *disabled pci:0000:00:1c.0
115 14. PEX1 S4 *disabled pci:0000:00:1c.1
116 15. PEX2 S4 *disabled pci:0000:00:1c.2
117 16. PEX3 S4 *disabled pci:0000:00:1c.3
118 17. PEX4 S4 *disabled pci:0000:00:1c.4
119 18. PEX5 S4 *disabled pci:0000:00:1c.5
120 19. SLPB S4 *enabled
121 20. PWRB S3 *enabled
122
123 Does anyone have any idea what could be wrong here? This is driving me
124 crazy, I hate shutting down my PC when I'm not using it. I could live
125 without the keyboard if the damn power button would work, but even if
126 I don't set the USB wakeup (through /proc/acpi/wakeup or my script) it
127 still gets stuck in the 'eternal' sleep. The whole kernel config is at
128 http://pastebin.com/2G9vWD0R
129
130 The only thing I haven't tried yet is installing something like Ubuntu
131 and see if it has the same problem.

Replies

Subject Author
Re: [gentoo-user] Update to newer kernel completely hoses suspend "Canek Peláez Valdés" <caneko@×××××.com>
Re: [gentoo-user] Update to newer kernel completely hoses suspend Chris Stankevitz <chrisstankevitz@×××××.com>
Re: [gentoo-user] Update to newer kernel completely hoses suspend Volker Armin Hemmann <volkerarmin@××××××××××.com>