You are not logged in.

#1 2012-03-02 17:54:21

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

[SOLVED] Something automatically wakes PC from suspend to RAM

Hello,

for the last two days my desktop PC automatically and instantaneously wakes from suspend-to-RAM when I try to put it to sleep. I found https://bbs.archlinux.org/viewtopic.php?id=135543 and tried the script that solved the problem for the OP with no success.

Some info that might be relevant:
I have not made any hardware changes to my computer lately;
The only devices connected to my computer are the display (DVI) my TV (HDMI) and a mouse and keyboard and a router.
I use the stock Arch kernel and update regularly from a synced mirror in Norway;
I suspend my computer with

dbus-send --system --print-reply --dest="org.freedesktop.UPower" \
/org/freedesktop/UPower org.freedesktop.UPower.Suspend

All wake-up events like PCIe, mouse and keyboard are disabled in BIOS.

Does anybody experience these problems lately, or know if this is a known issue//bug? smile

Here is an exerpt from dmesg:

[  507.682162] ehci_hcd 0000:00:12.2: remove, state 4
[  507.682177] usb usb1: USB disconnect, device number 1
[  507.682600] ehci_hcd 0000:00:12.2: USB bus 1 deregistered
[  507.682668] ehci_hcd 0000:00:12.2: PCI INT B disabled
[  507.682847] ehci_hcd 0000:00:13.2: remove, state 4
[  507.682858] usb usb2: USB disconnect, device number 1
[  507.683206] ehci_hcd 0000:00:13.2: USB bus 2 deregistered
[  507.683260] ehci_hcd 0000:00:13.2: PCI INT B disabled
[  507.687630] ohci_hcd 0000:00:12.0: remove, state 4
[  507.687644] usb usb3: USB disconnect, device number 1
[  507.688134] ohci_hcd 0000:00:12.0: USB bus 3 deregistered
[  507.688170] ohci_hcd 0000:00:12.0: PCI INT A disabled
[  507.688392] ohci_hcd 0000:00:12.1: remove, state 4
[  507.688405] usb usb4: USB disconnect, device number 1
[  507.688909] ohci_hcd 0000:00:12.1: USB bus 4 deregistered
[  507.688936] ohci_hcd 0000:00:12.1: PCI INT A disabled
[  507.689078] ohci_hcd 0000:00:13.0: remove, state 4
[  507.689087] usb usb5: USB disconnect, device number 1
[  507.689524] ohci_hcd 0000:00:13.0: USB bus 5 deregistered
[  507.689549] ohci_hcd 0000:00:13.0: PCI INT A disabled
[  507.689680] ohci_hcd 0000:00:13.1: remove, state 1
[  507.689690] usb usb6: USB disconnect, device number 1
[  507.689697] usb 6-2: USB disconnect, device number 2
[  507.740528] ohci_hcd 0000:00:13.1: USB bus 6 deregistered
[  507.740563] ohci_hcd 0000:00:13.1: PCI INT A disabled
[  507.740762] ohci_hcd 0000:00:14.5: remove, state 4
[  507.740772] usb usb7: USB disconnect, device number 1
[  507.741335] ohci_hcd 0000:00:14.5: USB bus 7 deregistered
[  507.776761] ohci_hcd 0000:00:14.5: PCI INT C disabled
[  508.174446] PM: Syncing filesystems ... done.
[  508.423666] PM: Preparing system for mem sleep
[  508.766827] Freezing user space processes ... (elapsed 0.01 seconds) done.
[  508.780005] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[  508.793339] PM: Entering mem sleep
[  508.793357] Suspending console(s) (use no_console_suspend to debug)
[  508.793635] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[  508.793679] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  508.793696] sd 2:0:0:0: [sdb] Stopping disk
[  508.793776] sd 0:0:0:0: [sda] Stopping disk
[  508.801620] i8042 aux 00:09: wake-up capability disabled by ACPI
[  508.801788] serial 00:08: disabled
[  508.801791] serial 00:08: wake-up capability disabled by ACPI
[  508.801821] [drm] nouveau 0000:03:00.0: Disabling fbcon acceleration...
[  508.801824] [drm] nouveau 0000:03:00.0: Unpinning framebuffer(s)...
[  508.801851] [drm] nouveau 0000:03:00.0: Evicting buffers...
[  508.801971] pata_atiixp 0000:00:14.1: PCI INT A disabled
[  508.802040] r8169 0000:02:00.0: eth0: link down
[  508.804819] r8169 0000:02:00.0: eth0: link up
[  508.856993] [drm] nouveau 0000:03:00.0: Idling channels...
[  508.857226] [drm] nouveau 0000:03:00.0: Suspending GPU objects...
[  508.903407] snd_hda_intel 0000:00:14.2: PCI INT A disabled
[  509.653173] r8169 0000:02:00.0: eth0: link down
[  509.991371] [drm] nouveau 0000:03:00.0: And we're gone!
[  509.991397] nouveau 0000:03:00.0: PCI INT A disabled
[  510.003349] PM: suspend of devices complete after 1209.834 msecs
[  510.003501] r8169 0000:02:00.0: PME# enabled
[  510.003509] pcieport 0000:00:06.0: wake-up capability enabled by ACPI
[  510.016920] PM: late suspend of devices complete after 13.567 msecs
[  510.017438] ACPI: Preparing to enter system sleep state S3
[  510.046822] PM: Saving platform NVS memory
[  510.046980] Disabling non-boot CPUs ...
[  510.149983] CPU 1 is now offline
[  510.253310] CPU 2 is now offline
[  510.258098] CPU 3 is now offline
[  510.258336] Extended CMOS year: 2000
[  510.258336] ACPI: Low-level resume complete
[  510.258336] PM: Restoring platform NVS memory
[  510.258336] PCI-DMA: Resuming GART IOMMU
[  510.258336] PCI-DMA: Restoring GART aperture settings
[  510.258336] Extended CMOS year: 2000
[  510.258336] Enabling non-boot CPUs ...
[  510.293928] Booting Node 0 Processor 1 APIC 0x1
[  510.293929] smpboot cpu 1: start_ip = 9a000
[  510.048288] Calibrating delay loop (skipped) already calibrated this CPU
[  510.048288] [Firmware Bug]: cpu 1, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu
[  510.048288] perf: IBS APIC setup failed on cpu #1
[  510.048288] Switch to broadcast mode on CPU1
[  510.430265] NMI watchdog enabled, takes one hw-pmu counter.
[  510.433741] CPU1 is up
[  510.440522] Booting Node 0 Processor 2 APIC 0x2
[  510.440524] smpboot cpu 2: start_ip = 9a000
[  510.151487] Calibrating delay loop (skipped) already calibrated this CPU
[  510.151487] [Firmware Bug]: cpu 2, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu
[  510.151487] perf: IBS APIC setup failed on cpu #2
[  510.151487] Switch to broadcast mode on CPU2
[  510.471839] NMI watchdog enabled, takes one hw-pmu counter.
[  510.471978] CPU2 is up
[  510.472048] Booting Node 0 Processor 3 APIC 0x3
[  510.472049] smpboot cpu 3: start_ip = 9a000
[  510.258093] Calibrating delay loop (skipped) already calibrated this CPU
[  510.258093] [Firmware Bug]: cpu 3, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu
[  510.258093] perf: IBS APIC setup failed on cpu #3
[  510.258093] Switch to broadcast mode on CPU3
[  510.503352] NMI watchdog enabled, takes one hw-pmu counter.
[  510.503508] CPU3 is up
[  510.507795] ACPI: Waking up from system sleep state S3
[  510.596799] pcieport 0000:00:02.0: restoring config space at offset 0x1 (was 0x100107, writing 0x100507)
[  510.596824] pcieport 0000:00:06.0: restoring config space at offset 0x1 (was 0x100107, writing 0x40100507)
[  510.596845] ahci 0000:00:11.0: restoring config space at offset 0xf (was 0x100, writing 0x10b)
[  510.596863] ahci 0000:00:11.0: restoring config space at offset 0x2 (was 0x1018f00, writing 0x1060100)
[  510.596866] ahci 0000:00:11.0: restoring config space at offset 0x1 (was 0x2300107, writing 0x2300507)
[  510.596895] ahci 0000:00:11.0: set SATA to AHCI mode
[  510.597097] pata_atiixp 0000:00:14.1: restoring config space at offset 0x3 (was 0x0, writing 0x4000)
[  510.597131] snd_hda_intel 0000:00:14.2: restoring config space at offset 0x1 (was 0x4100006, writing 0x4100002)
[  510.597240] nouveau 0000:03:00.0: restoring config space at offset 0xf (was 0x100, writing 0x10a)
[  510.597244] nouveau 0000:03:00.0: restoring config space at offset 0xc (was 0x0, writing 0xfafe0000)
[  510.597249] nouveau 0000:03:00.0: restoring config space at offset 0x9 (was 0x1, writing 0xec01)
[  510.597252] nouveau 0000:03:00.0: restoring config space at offset 0x7 (was 0x4, writing 0xf8000004)
[  510.597256] nouveau 0000:03:00.0: restoring config space at offset 0x5 (was 0xc, writing 0xd000000c)
[  510.597259] nouveau 0000:03:00.0: restoring config space at offset 0x4 (was 0x0, writing 0xfb000000)
[  510.597262] nouveau 0000:03:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x10)
[  510.597266] nouveau 0000:03:00.0: restoring config space at offset 0x1 (was 0x100000, writing 0x100107)
[  510.597300] r8169 0000:02:00.0: restoring config space at offset 0xf (was 0x100, writing 0x10a)
[  510.597306] r8169 0000:02:00.0: restoring config space at offset 0xc (was 0x0, writing 0xf7fc0000)
[  510.597316] r8169 0000:02:00.0: restoring config space at offset 0x6 (was 0x4, writing 0xf7fff004)
[  510.597322] r8169 0000:02:00.0: restoring config space at offset 0x4 (was 0x1, writing 0xd801)
[  510.597326] r8169 0000:02:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x10)
[  510.597331] r8169 0000:02:00.0: restoring config space at offset 0x1 (was 0x100000, writing 0x100507)
[  510.597446] PM: early resume of devices complete after 0.696 msecs
[  510.597533] pata_atiixp 0000:00:14.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[  510.597552] snd_hda_intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[  510.597581] [drm] nouveau 0000:03:00.0: We're back, enabling device...
[  510.597586] nouveau 0000:03:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[  510.597589] pcieport 0000:00:06.0: wake-up capability disabled by ACPI
[  510.597594] nouveau 0000:03:00.0: setting latency timer to 64
[  510.597599] sd 0:0:0:0: [sda] Starting disk
[  510.597603] r8169 0000:02:00.0: PME# disabled
[  510.597605] [drm] nouveau 0000:03:00.0: POSTing device...
[  510.597607] [drm] nouveau 0000:03:00.0: Parsing VBIOS init table 0 at offset 0xC718
[  510.597690] sd 2:0:0:0: [sdb] Starting disk
[  510.598730] serial 00:08: activated
[  510.598867] Extended CMOS year: 2000
[  510.610107] r8169 0000:02:00.0: eth0: link down
[  510.621123] [drm] nouveau 0000:03:00.0: Parsing VBIOS init table 1 at offset 0xCC63
[  510.663986] [drm] nouveau 0000:03:00.0: Parsing VBIOS init table 2 at offset 0xDA58
[  510.664015] [drm] nouveau 0000:03:00.0: Parsing VBIOS init table 3 at offset 0xDB56
[  510.665114] [drm] nouveau 0000:03:00.0: Parsing VBIOS init table 4 at offset 0xDDBE
[  510.665116] [drm] nouveau 0000:03:00.0: Parsing VBIOS init table at offset 0xDE23
[  510.685128] [drm] nouveau 0000:03:00.0: Restoring GPU objects...
[  510.725417] [drm] nouveau 0000:03:00.0: Reinitialising engines...
[  510.725785] [drm] nouveau 0000:03:00.0: Restoring mode...
[  510.762015] ata5.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
[  510.762018] ata5.00: ACPI cmd ef/03:44:00:00:00:a0 (SET FEATURES) filtered out
[  510.762020] ata5.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[  510.773704] ata5.00: configured for UDMA/66
[  510.916691] ata4: SATA link down (SStatus 0 SControl 300)
[  510.916722] ata2: SATA link down (SStatus 0 SControl 300)
[  511.883355] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[  511.988643] ata1.00: configured for UDMA/133
[  512.681052] r8169 0000:02:00.0: eth0: link up
[  513.909989] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  513.920747] ata3.00: configured for UDMA/133
[  513.943983] PM: resume of devices complete after 3346.516 msecs
[  513.944116] PM: Finishing wakeup.
[  513.944117] Restarting tasks ... done.
[  515.507636] ehci_hcd 0000:00:12.2: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[  515.507721] ehci_hcd 0000:00:12.2: EHCI Host Controller
[  515.507789] ehci_hcd 0000:00:12.2: new USB bus registered, assigned bus number 1
[  515.507806] ehci_hcd 0000:00:12.2: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
[  515.507854] ehci_hcd 0000:00:12.2: debug port 1
[  515.507883] ehci_hcd 0000:00:12.2: irq 17, io mem 0xf7efe800
[  515.520050] ehci_hcd 0000:00:12.2: USB 2.0 started, EHCI 1.00
[  515.520407] hub 1-0:1.0: USB hub found
[  515.520417] hub 1-0:1.0: 6 ports detected
[  515.533786] ehci_hcd 0000:00:13.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[  515.533832] ehci_hcd 0000:00:13.2: EHCI Host Controller
[  515.533861] ehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 2
[  515.533877] ehci_hcd 0000:00:13.2: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
[  515.533922] ehci_hcd 0000:00:13.2: debug port 1
[  515.533951] ehci_hcd 0000:00:13.2: irq 19, io mem 0xf7efec00
[  515.543343] ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00
[  515.543684] hub 2-0:1.0: USB hub found
[  515.543694] hub 2-0:1.0: 6 ports detected
[  515.560288] ohci_hcd 0000:00:12.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[  515.560342] ohci_hcd 0000:00:12.0: OHCI Host Controller
[  515.560371] ohci_hcd 0000:00:12.0: new USB bus registered, assigned bus number 3
[  515.560410] ohci_hcd 0000:00:12.0: irq 16, io mem 0xf7ef6000
[  515.617252] hub 3-0:1.0: USB hub found
[  515.617260] hub 3-0:1.0: 3 ports detected
[  515.643394] ohci_hcd 0000:00:12.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[  515.643453] ohci_hcd 0000:00:12.1: OHCI Host Controller
[  515.643484] ohci_hcd 0000:00:12.1: new USB bus registered, assigned bus number 4
[  515.643527] ohci_hcd 0000:00:12.1: irq 16, io mem 0xf7ef7000
[  515.701535] hub 4-0:1.0: USB hub found
[  515.701550] hub 4-0:1.0: 3 ports detected
[  515.713826] ohci_hcd 0000:00:13.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[  515.713884] ohci_hcd 0000:00:13.0: OHCI Host Controller
[  515.713915] ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 5
[  515.713956] ohci_hcd 0000:00:13.0: irq 18, io mem 0xf7efc000
[  515.771259] hub 5-0:1.0: USB hub found
[  515.771273] hub 5-0:1.0: 3 ports detected
[  515.786918] ohci_hcd 0000:00:13.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[  515.786977] ohci_hcd 0000:00:13.1: OHCI Host Controller
[  515.787011] ohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 6
[  515.787052] ohci_hcd 0000:00:13.1: irq 18, io mem 0xf7efd000
[  515.844392] hub 6-0:1.0: USB hub found
[  515.844407] hub 6-0:1.0: 3 ports detected
[  515.857126] ohci_hcd 0000:00:14.5: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[  515.857157] ohci_hcd 0000:00:14.5: OHCI Host Controller
[  515.857169] ohci_hcd 0000:00:14.5: new USB bus registered, assigned bus number 7
[  515.857192] ohci_hcd 0000:00:14.5: irq 18, io mem 0xf7eff000
[  515.915097] hub 7-0:1.0: USB hub found
[  515.915111] hub 7-0:1.0: 2 ports detected
[  516.065641] EXT4-fs (sdb2): re-mounted. Opts: commit=0
[  516.089845] EXT4-fs (sdb4): re-mounted. Opts: commit=0
[  516.296726] usb 6-2: new low-speed USB device number 2 using ohci_hcd
[  516.465653] input: LITEON Technology USB Multimedia Keyboard as /devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.0/input/input6
[  516.465885] generic-usb 0003:046D:C312.0002: input,hidraw0: USB HID v1.10 Keyboard [LITEON Technology USB Multimedia Keyboard] on usb-0000:00:13.1-2/input0

This output is what I get right after a wake-up using the helper script from the other thread.

Thank you for any help! big_smile

Last edited by mariusmeyer (2012-03-03 15:57:16)

Offline

#2 2012-03-03 12:06:06

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: [SOLVED] Something automatically wakes PC from suspend to RAM

The bug in your dmesg reads like this
Maybe try to disable VT extensions in bios and check C-states settings there also.

edit:
Interestingly, just after replying I have something similar. Not that bug in dmesg, but the PC woke up when I touched the keyboard. Using pm-suspend here. I just double-checked: going to suspend, clicked a key and it woke up again.

Since I have not changed any config recently and that behaviour not the case before (I had to press the power button to invoke resume), you might want to check if keyboard/mouse does such in your case as well.

Last edited by Strike0 (2012-03-03 14:01:21)

Offline

#3 2012-03-03 15:21:24

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: [SOLVED] Something automatically wakes PC from suspend to RAM

I'll try changing some BIOS settings, thanks wink As of now, I can't test your suggestion regarding input devices and wake-up because it takes less then a second for the computer to auto-wake-up wink
Also, I doubt the keyboard sets this off, because the scripts unloads all USB modules before suspending. But the mouse (a PS/2) on the other hand...

EDIT: I found out that it was the network waking the computer wink After stopping the network daemon before suspending, I can suspend normally! On a side note, I can wake the computer by pressing a key on my keyboard, but I do not know whether I could before or not. Anyways, this is solved for me big_smile

Last edited by mariusmeyer (2012-03-03 15:56:52)

Offline

#4 2012-04-13 11:48:08

finidine
Member
Registered: 2010-05-24
Posts: 24

Re: [SOLVED] Something automatically wakes PC from suspend to RAM

I'm experiencing this bug since update from kernel 3.1 to kernel 3.2

Stopping network daemon does not work for me, the "[Firmware Bug]: cpu 1, try to use APIC500....." seems to be the issue. Only affects AMD (10h) CPUs.

For now, the solution is linux-lts (3.0) kernel, but we are users of Arch for a reason.

Of course this bug comes from kernel upstream.

Last edited by finidine (2012-04-13 11:51:13)

Offline

Board footer

Powered by FluxBB