(In reply to Rafael J. Wysocki from comment #97) > (In reply to Patrik Kullman from comment #96) > > Actually it doesn't seem to suspend properly, I get a lot of these while > > suspended: > > Well, that's how the platform works, unfortunately. > > The EC needs to be enabled to wake up the system for the power button wakeup > to work, but if the EC is enabled to wake up the system, it will wake it up > every once a while, so either-or. "every once a while" being every 0.7 - 1.7 seconds? :) And I assume that it's no difference between the power button or the lid opening? (Looking for workarounds..) > I would argue that this is an EC firmware bug on the XPS13 9365. That it happens too frequently or at all? > > And on resume I get a, most likely completely unrelated and purely > cosmetic: > > > > [49569.968486] intel-vbtn INT33D6:00: unknown event index 0xcd > > I'm quite confident that this is not the event that woke you up, but can you > paste more lines from dmesg around this for more context? Here's a complete suspend/resume: [ 432.314171] wlp60s0: deauthenticating from 08:60:6e:cb:73:18 by local choice (Reason: 3=DEAUTH_LEAVING) [ 432.332499] wlp60s0: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-22) [ 432.344754] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready [ 432.367450] ACPI Error: Thread 334907008 cannot release Mutex [PATM] acquired by thread 196679552 (20170531/exmutex-416) [ 432.367461] ACPI Error: Method parse/execution failed \_SB.PCI0.LPCB.ECDV._Q66, AE_AML_NOT_OWNER (20170531/psparse-550) [ 433.755730] PM: Syncing filesystems ... done. [ 433.759972] PM: Preparing system for sleep (freeze) [ 433.761479] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 433.764445] OOM killer disabled. [ 433.764446] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 433.766170] PM: Suspending system (freeze) [ 433.766172] Suspending console(s) (use no_console_suspend to debug) [ 434.196204] psmouse serio1: Failed to disable mouse on isa0060/serio1 [ 435.796225] PM: suspend of devices complete after 1815.500 msecs [ 435.816250] PM: late suspend of devices complete after 20.016 msecs [ 435.864129] PM: noirq suspend of devices complete after 45.221 msecs [ 435.864133] PM: suspend-to-idle [ 436.223170] Suspended for 0.049 seconds [ 436.276728] PM: noirq resume of devices complete after 53.389 msecs [ 436.375016] PM: noirq suspend of devices complete after 92.109 msecs [ 436.431696] PM: noirq resume of devices complete after 56.675 msecs [ 436.491007] PM: noirq suspend of devices complete after 59.227 msecs [ 437.568679] Suspended for 0.732 seconds [ 437.622933] PM: noirq resume of devices complete after 54.114 msecs [ 437.720561] PM: noirq suspend of devices complete after 92.110 msecs [ 437.774979] PM: noirq resume of devices complete after 54.411 msecs [ 437.832567] PM: noirq suspend of devices complete after 57.513 msecs [ 438.908663] Suspended for 0.735 seconds [ 438.962854] PM: noirq resume of devices complete after 54.043 msecs [ 439.060527] PM: noirq suspend of devices complete after 92.103 msecs [ 439.114780] PM: noirq resume of devices complete after 54.247 msecs [ 439.172531] PM: noirq suspend of devices complete after 57.676 msecs [ 440.263427] Suspended for 1.736 seconds [ 440.317668] PM: noirq resume of devices complete after 54.102 msecs [ 440.415294] PM: noirq suspend of devices complete after 92.101 msecs [ 440.469416] PM: noirq resume of devices complete after 54.116 msecs [ 440.527303] PM: noirq suspend of devices complete after 57.812 msecs [ 441.594159] Suspended for 0.735 seconds [ 441.648044] PM: noirq resume of devices complete after 53.738 msecs [ 441.742030] PM: noirq suspend of devices complete after 88.107 msecs [ 441.796508] PM: noirq resume of devices complete after 54.472 msecs [ 441.854034] PM: noirq suspend of devices complete after 57.451 msecs [ 442.038178] PM: noirq resume of devices complete after 53.834 msecs [ 442.140105] PM: noirq suspend of devices complete after 96.037 msecs [ 442.216149] PM: noirq resume of devices complete after 76.036 msecs [ 442.216225] PM: resume from suspend-to-idle [ 442.280660] PM: early resume of devices complete after 62.146 msecs [ 442.286025] Suspended for 0.438 seconds [ 442.460394] PM: resume of devices complete after 179.731 msecs [ 442.460864] PM: Finishing wakeup. [ 442.460865] OOM killer enabled. [ 442.460866] Restarting tasks ... done. [ 442.552172] thermal thermal_zone11: failed to read out thermal zone (-5) [ 442.553302] [drm] RC6 on [ 442.630048] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready [ 442.690004] intel-vbtn INT33D6:00: unknown event index 0xcd [ 442.841939] ACPI Error: Thread 334907008 cannot release Mutex [PATM] acquired by thread 196679552 (20170531/exmutex-416) [ 442.841945] ACPI Error: Method parse/execution failed \_SB.PCI0.LPCB.ECDV._Q66, AE_AML_NOT_OWNER (20170531/psparse-550) [ 442.896705] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready [ 443.148883] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready [ 443.240308] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready [ 446.710455] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready [ 446.754511] wlp60s0: authenticate with 08:60:6e:cb:73:1c [ 446.763516] wlp60s0: send auth to 08:60:6e:cb:73:1c (try 1/3) [ 446.769219] wlp60s0: authenticated [ 446.771978] wlp60s0: associate with 08:60:6e:cb:73:1c (try 1/3) [ 446.772923] wlp60s0: RX AssocResp from 08:60:6e:cb:73:1c (capab=0x11 status=0 aid=2) [ 446.774490] wlp60s0: associated [ 446.774549] IPv6: ADDRCONF(NETDEV_CHANGE): wlp60s0: link becomes ready [ 446.795836] wlp60s0: Limiting TX power to 23 (23 - 0) dBm as advertised by 08:60:6e:cb:73:1c