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