[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
in the /proc/acpi/wakeup file changing XHC from "enabled" to disabled does resolve this. To disable ‘XHC’, do: echo 'XHC' > /proc/acpi/wakeup with superuser privilege. Documented here >> https://ubuntu-mate.community/t/ubuntu-wakes-up-immediately-after-suspend-how-to-fix-it/26848 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [ 784.213897] thunderbolt :07:00.0: 0:b: hotplug: scanning [ 784.213901] thunderbolt :07:00.0: 0:b: hotplug: no switch found [ 784.213984] thunderbolt :07:00.0: resetting error on 0:c. [ 784.213995] thunderbolt :07:00.0: 0:c: hotplug: scanning [ 784.213999] thunderbolt :07:00.0: 0:c: hotplug: no switch found [ 785.225640] ACPI: EC: event unbloc
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
I have a similar issue, maybe the same. But I found out I can suspend my notebook by disabling bluetooth. If bluetooth is enabled, trying to suspend will immediately (2 - 3 seconds) make the notebook wake up again. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [ 784.213897] thunderbolt :07:00.0: 0:b: hotplug: scanning [ 784.213901] thunderbolt :07:00.0: 0:b: hotplug: no switch found [ 784.213984] thunderbolt :07:00.0: resetting error on 0:c. [ 784.213995] thunderbolt :07:00.0: 0:c: hotplug: scanning [ 784.213999] thunderbolt :07:00.0: 0:c: hotplug: no switch found [ 785.225640] ACPI: EC: event unblocked [ 785.226264] brcmfmac: brcmf_fil_cmd_data: bus is down. we have n
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
@Ole and @Feng. The normal methodology of `echo XHC > /proc/acpi/wakeup` had no effect whether `enabled` or `disabled`. By default `enabled` and all others are `disabled`. I also have `tlp` defaults which is probably USB_AUTOSUSPEND. I could go into console mode and type `pm_suspend` (it's set to deep / mem, if you set it to freeze all heck breaks loose). At this point I can see 5 or 6 repetitions of three line groups stating "USB 1-1, Port 2 does it have a bad cable?" Indeed there could be a cheap dollar store cable or Y cable from China with data / power only that went flaky on me. With the script I posted everything works reliably now although I suspect Resume takes a couple of seconds longer than necessary as I see `journalctl` spammed with every single USB device being unbound (powered off) and rebound (powered on). I've only tested with `4.14.78` so far because life is busy with other things... I'll try to keep you posted and try other options that you've mentioned and report back. Thank you for taking the time to float new ideas. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbo
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
You can also try applying USB_QUIRK_DISCONNECT_SUSPEND to USB device one by one. Boot with kernel parameter `usbcore.quirks=vid:pid:m` to apply the quirk. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [ 784.213897] thunderbolt :07:00.0: 0:b: hotplug: scanning [ 784.213901] thunderbolt :07:00.0: 0:b: hotplug: no switch found [ 784.213984] thunderbolt :07:00.0: resetting error on 0:c. [ 784.213995] thunderbolt :07:00.0: 0:c: hotplug: scanning [ 784.213999] thunderbolt :07:00.0: 0:c: hotplug: no switch found [ 785.225640] ACPI: EC: event unblocked [ 785.226264] brcmfmac: brcmf_fil_cmd_data: bus is down. we have nothing to do. [ 785.226273] ACPI: button: The lid device
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
Might be connected to this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1776266 Might a hardware issue. Sometimes the cable that connects the keyboard and touchpad to the mainboard is flaky. This causes the devices to stop working (see mentioned bug) or wake up the laptop (this bug). Opening up the laptop and wiggling said cable helped a bit for me, although it didn't completely solve the issue. A new cable is on the way, I'll report back after I exchanged it. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [ 784.213897] thunderbolt :07:00.0: 0:b: hotplug: scanning [ 784.213901] thunderbolt :07:00.0: 0:b: hotplug: no switch found [ 784.213984] thunderbolt :07:00.0: resetting e
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
If the workaround works for your system, that means some USB devices connected to the xHC wakes up the system during suspend. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [ 784.213897] thunderbolt :07:00.0: 0:b: hotplug: scanning [ 784.213901] thunderbolt :07:00.0: 0:b: hotplug: no switch found [ 784.213984] thunderbolt :07:00.0: resetting error on 0:c. [ 784.213995] thunderbolt :07:00.0: 0:c: hotplug: scanning [ 784.213999] thunderbolt :07:00.0: 0:c: hotplug: no switch found [ 785.225640] ACPI: EC: event unblocked [ 785.226264] brcmfmac: brcmf_fil_cmd_data: bus is down. we have nothing to do. [ 785.226273] ACPI: button: The lid device is not compliant to SW_LID.
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
@@Kai-Heng Feng (kaihengfeng) Everything seems to be fixed for both this old bug and for new problems I was having over last few days. I found a bug report from 2010 (link in script below) and used this: #!/bin/bash # Original script was using /bin/sh but shellcheck reporting warnings. # NAME: custom-xhci_hcd # PATH: /lib/systemd/system-sleep # CALL: Called from SystemD automatically # DESC: Suspend broken for USB3.0 as of Oct 25/2018 various kernels all at once # DATE: Oct 28 2018. # NOTE: From comment #61 at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/522998 TMPLIST=/tmp/xhci-dev-list # Original script was: case "${1}" in hibernate|suspend) case $1/$2 in pre/*) echo "$0: Going to $2..." echo -n '' > $TMPLIST for i in `ls /sys/bus/pci/drivers/xhci_hcd/ | egrep '[0-9a-z]+\:[0-9a-z]+\:.*$'`; do # Unbind xhci_hcd for first device :XX:XX.X: echo -n "$i" | tee /sys/bus/pci/drivers/xhci_hcd/unbind echo "$i" >> $TMPLIST done ;; post/*) echo "$0: Waking up from $2..." for i in `cat $TMPLIST`; do # Bind xhci_hcd for first device :XX:XX.X: echo -n "$i" | tee /sys/bus/pci/drivers/xhci_hcd/bind done rm $TMPLIST ;; esac -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbo
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
@Kai-Heng Feng (kaihengfeng) just an update... Suddenly my suspend totally broke down (wakes immediately from suspend) using same kernel I had for a few months (outdated `4.13.0-36-generic`). In order to update to newer kernels I had to install libssl1.1 to side- step linux-header installation errors. Either libsl1.1 or newer kernels broke dkms makefile's for nvidia, bbswitch, virtual box, etc. So I had to use: `sudo apt install libelf- dev` I ended up successfully upgrading to mainline kernel `4.14.78` but now suspend takes 30 seconds to break and goes to login screen instead. So I'm out of the frying pan and into the fire... -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [ 784.213897] thunderbolt 000
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
> I presume you want me to try the 9 rc's in the `4.15` kernel chain? I assume the 8 to 9 rc's in `4.13`, 4.14`, `4.16`, `4.17`, `4.18` and `4.19` rc's don't have to be installed? Try 4.14 first. If it's bad, then the regression starts in one of the v4.14-rc* kernel. If it's good, then the regression is in v4.15-rc* ~ v4.15. Find the good and bad (e.g. v4.15-rc1 and v4.15-rc2), then start a kernel bisect. Using stable kernel (or LTS kernel) doesn't help, it's not linear between each kernel releases. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [ 784.213897] thunderbolt :07:00.0: 0:b: hotplug: scanning [ 784.213901] thunderbolt :07:00.0: 0:b: hotplug: no switch found [ 784.213984] thunder
Re: [Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
Hi Kai-Heng Feng, I presume you want me to try the 9 rc's in the `4.15` kernel chain? I assume the 8 to 9 rc's in `4.13`, 4.14`, `4.16`, `4.17`, `4.18` and `4.19` rc's don't have to be installed? Also would it make sense to try the LTS kernel `4.14.78` first and see if it's already been fixed? Then crawl backwards through that chain to see when it was last broken? Another reason is `4.14` LTS kernels I would actually keep around where as the `rc` kernels I have to delete. Also `apt remove` has been broken for some kernels with bad symbolic links requiring editing the bash script `postinst` (or something like that) to force removal of unwanted kernels. Thank you for showing interest in this closed bug report. On Wed, Oct 17, 2018 at 10:00 PM Kai-Heng Feng wrote: > Would it be possible for you to do a kernel bisection? > > First, find the last good -rc kernel and the first bad -rc kernel from > http://kernel.ubuntu.com/~kernel-ppa/mainline/ > > Then, > $ sudo apt build-dep linux > $ git clone git:// > git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > $ cd linux > $ git bisect start > $ git bisect good $(the good version you found) > $ git bisect bad $(the bad version found) > $ make localmodconfig > $ make -j`nproc` deb-pkg > Install the newly built kernel, then reboot with it. > If the issue still happens, > $ git bisect bad > Otherwise, > $ git bisect good > Repeat to "make -j`nproc` deb-pkg" until you find the commit that causes > the regression. > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1774994 > > Title: > Laptop wakes up immediately after suspend or hibernation > > Status in linux package in Ubuntu: > Expired > > Bug description: > After going into suspend (via command line or lid close), the MacBook > Pro (early 2015) wakes up immediately again. Same for hibernation. > Running Ubuntu 18.04. > > extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open > cycle: > > [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) > (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 > 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) > [ ... ] > [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip > table err:-23 > [ 783.011399] PM: suspend entry (deep) > [ 783.011400] PM: Syncing filesystems ... done. > [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) > done. > [ 783.030844] OOM killer disabled. > [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 > seconds) done. > [ 783.032193] Suspending console(s) (use no_console_suspend to debug) > [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache > [ 783.054107] sd 1:0:0:0: [sda] Stopping disk > [ 783.146124] thunderbolt :07:00.0: suspending... > [ 783.146685] thunderbolt :07:00.0: suspend finished > [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 > [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register > 0x38200 bit 12 (0x1001 -> 0x1) > [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 > [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register > 0x38200 bit 0 (0x1 -> 0x0) > [ 783.146725] thunderbolt :07:00.0: control channel stopped > [ 783.246464] ACPI: Preparing to enter system sleep state S3 > [ 783.418015] ACPI: EC: event blocked > [ 783.418016] ACPI: EC: EC stopped > [ 783.418018] PM: Saving platform NVS memory > [ 783.418027] Disabling non-boot CPUs ... > [ 783.434574] IRQ 65: no longer affine to CPU1 > [ 783.435629] smpboot: CPU 1 is now offline > [ 783.454574] IRQ 66: no longer affine to CPU2 > [ 783.456378] smpboot: CPU 2 is now offline > [ 783.478405] IRQ 21: no longer affine to CPU3 > [ 783.478414] IRQ 43: no longer affine to CPU3 > [ 783.478435] IRQ 71: no longer affine to CPU3 > [ 783.479449] smpboot: CPU 3 is now offline > [ 783.481656] ACPI: Low-level resume complete > [ 783.481733] ACPI: EC: EC started > [ 783.481734] PM: Restoring platform NVS memory > [ 783.482160] Enabling non-boot CPUs ... > [ 783.482240] x86: Booting SMP configuration: > [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 > [ 783.558589] cache: parent cpu1 should not be sleeping > [ 783.687159] CPU1 is up > [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 > [ 783.687812] cache: parent cpu2 should not be sleeping > [ 783.688001] CPU2 is up > [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 > [ 783.783709] cache: parent cpu3 should not be sleeping > [ 783.978233] CPU3 is up > [ 783.982020] ACPI: Waking up from system sleep state S3 > [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to > reestablish PCI tunnels... > [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to > reestablish PCI tunnels..
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
Would it be possible for you to do a kernel bisection? First, find the last good -rc kernel and the first bad -rc kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/ Then, $ sudo apt build-dep linux $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $ cd linux $ git bisect start $ git bisect good $(the good version you found) $ git bisect bad $(the bad version found) $ make localmodconfig $ make -j`nproc` deb-pkg Install the newly built kernel, then reboot with it. If the issue still happens, $ git bisect bad Otherwise, $ git bisect good Repeat to "make -j`nproc` deb-pkg" until you find the commit that causes the regression. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
It's a kernel issue. Using Ubuntu 16.04.5 LTS with the 18.04.1 LTS's kernel `4.15.0-36` when you try to suspend it resumes after a dozen seconds or so. If you use kernel `4.13.0-36` the suspend/resume cycle is normal. I believe `4.13.0-36` was released for Ubuntu 17.10 which I've never installed and it is EOL but it works best for my AW17R3 Laptop so I'll keep using it until something newer comes along that works. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [ 784.213897] thunderbolt :07:00.0: 0:b: hotplug: scanning [ 784.213901] thunderbolt :07:00.0: 0:b: hotplug: no switch found [ 784.213984] thunderbolt :07:00.0: resetting error on 0:c. [ 784.213995] thunderbolt :07:00.0: 0:c:
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
I've experienced similar situations for years where when resuming from suspend, the system immediately completes uncompleted sleep and then wakes up. More of an annoyance and loss of a second or two of life than anything else. Today however the cycle has changed with advent of nVidia drivers. Now like OP system resumes when going to sleep. Key points from OP log are: [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up OP's log cuts off too early. Adding information from my own log today: Aug 06 17:27:02 alien kernel: CPU7 is up Aug 06 17:27:02 alien kernel: ACPI: Waking up from system sleep state S3 Aug 06 17:27:02 alien kernel: ACPI: EC: interrupt unblocked Aug 06 17:27:02 alien kernel: ACPI: EC: event unblocked Aug 06 17:27:02 alien kernel: usb usb3: root hub lost power or was reset Aug 06 17:27:02 alien kernel: usb usb4: root hub lost power or was reset Aug 06 17:27:02 alien kernel: sd 1:0:0:0: [sda] Starting disk -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :0
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
[Expired for linux (Ubuntu) because there has been no activity for 60 days.] ** Changed in: linux (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Expired Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0 [ 784.113249] thunderbolt :07:00.0: 0: resuming switch [ 784.144609] thunderbolt :07:00.0: resume finished [ 784.213878] thunderbolt :07:00.0: resetting error on 0:b. [ 784.213897] thunderbolt :07:00.0: 0:b: hotplug: scanning [ 784.213901] thunderbolt :07:00.0: 0:b: hotplug: no switch found [ 784.213984] thunderbolt :07:00.0: resetting error on 0:c. [ 784.213995] thunderbolt :07:00.0: 0:c: hotplug: scanning [ 784.213999] thunderbolt :07:00.0: 0:c: hotplug: no switch found [ 785.225640] ACPI: EC: event unblocked [ 785.226264] brcmfmac: brcmf_fil_cmd_data: bus is down. we have nothing to do. [ 785.226273] ACPI: button: The lid device is not co
[Kernel-packages] [Bug 1774994] Re: Laptop wakes up immediately after suspend or hibernation
Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem? Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.17 kernel[0]. If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'. If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'. Once testing of the upstream kernel is complete, please mark this bug as "Confirmed". Thanks in advance. [0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17 ** Package changed: linux-signed (Ubuntu) => linux (Ubuntu) ** Changed in: linux (Ubuntu) Importance: Undecided => Medium ** Changed in: linux (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1774994 Title: Laptop wakes up immediately after suspend or hibernation Status in linux package in Ubuntu: Incomplete Bug description: After going into suspend (via command line or lid close), the MacBook Pro (early 2015) wakes up immediately again. Same for hibernation. Running Ubuntu 18.04. extract from dmesg for a lid-close -> suspend -> wake-up -> lid-open cycle: [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [ ... ] [ 778.968982] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23 [ 783.011399] PM: suspend entry (deep) [ 783.011400] PM: Syncing filesystems ... done. [ 783.028538] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 783.030844] OOM killer disabled. [ 783.030844] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 783.032193] Suspending console(s) (use no_console_suspend to debug) [ 783.049960] sd 1:0:0:0: [sda] Synchronizing SCSI cache [ 783.054107] sd 1:0:0:0: [sda] Stopping disk [ 783.146124] thunderbolt :07:00.0: suspending... [ 783.146685] thunderbolt :07:00.0: suspend finished [ 783.146689] thunderbolt :07:00.0: stopping RX ring 0 [ 783.146698] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1) [ 783.146710] thunderbolt :07:00.0: stopping TX ring 0 [ 783.146718] thunderbolt :07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0) [ 783.146725] thunderbolt :07:00.0: control channel stopped [ 783.246464] ACPI: Preparing to enter system sleep state S3 [ 783.418015] ACPI: EC: event blocked [ 783.418016] ACPI: EC: EC stopped [ 783.418018] PM: Saving platform NVS memory [ 783.418027] Disabling non-boot CPUs ... [ 783.434574] IRQ 65: no longer affine to CPU1 [ 783.435629] smpboot: CPU 1 is now offline [ 783.454574] IRQ 66: no longer affine to CPU2 [ 783.456378] smpboot: CPU 2 is now offline [ 783.478405] IRQ 21: no longer affine to CPU3 [ 783.478414] IRQ 43: no longer affine to CPU3 [ 783.478435] IRQ 71: no longer affine to CPU3 [ 783.479449] smpboot: CPU 3 is now offline [ 783.481656] ACPI: Low-level resume complete [ 783.481733] ACPI: EC: EC started [ 783.481734] PM: Restoring platform NVS memory [ 783.482160] Enabling non-boot CPUs ... [ 783.482240] x86: Booting SMP configuration: [ 783.482241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 783.558589] cache: parent cpu1 should not be sleeping [ 783.687159] CPU1 is up [ 783.687212] smpboot: Booting Node 0 Processor 2 APIC 0x1 [ 783.687812] cache: parent cpu2 should not be sleeping [ 783.688001] CPU2 is up [ 783.688028] smpboot: Booting Node 0 Processor 3 APIC 0x3 [ 783.783709] cache: parent cpu3 should not be sleeping [ 783.978233] CPU3 is up [ 783.982020] ACPI: Waking up from system sleep state S3 [ 784.093246] pcieport :06:03.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093249] pcieport :06:04.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093362] pcieport :06:06.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.093475] pcieport :06:05.0: quirk: waiting for thunderbolt to reestablish PCI tunnels... [ 784.112655] thunderbolt :07:00.0: control channel starting... [ 784.112660] thunderbolt :07:00.0: starting TX ring 0 [ 784.112673] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 0 (0x0 -> 0x1) [ 784.112677] thunderbolt :07:00.0: starting RX ring 0 [ 784.112689] thunderbolt :07:00.0: enabling interrupt at register 0x38200 bit 12 (0x1 -> 0x1001) [ 784.112696] thunderbolt :07:00.0: resuming... [ 784.112699] thunderbolt :07:00.0: resetting switch at 0