linux-surface icon indicating copy to clipboard operation
linux-surface copied to clipboard

[SP5] Wakes up from Suspend on lid closing (but not on opening)

Open ceever opened this issue 2 years ago • 16 comments

Issue

Whenever I turn my Surface into suspend mode, it will wake up on lid (aka Typecover) closing, but not on lid opening.

This way unfortunately I can never put my Surface into Suspend and then close the lid. Therefore currently, I am running Suspend with a 5 seconds delay, so the lid can be closed before Suspend is executed. When the lid is closed before Suspend is initiated, the Surface remains in Suspend afterwards.

However, the Suspend mode is not interrupted on lid opening either, even though the Typecover (aka lid) starts illuminating the keys after a few seconds delay. No key will wake the device, only the Power Button will do this.

My current workaround is to deactivate the Surface GPE: "sudo modprobe -r surface_gpe" ... after which I can close and open the lid without affecting the Suspend mode of device. I have blacklisted the module for now.

Expected behaviour

Surface does not wakeup at all on closing the lid/Typecover.

Environment

  • Hardware model: Surface Pro 5 (2017)
  • Kernel version: 5.19.13-surface
  • Distribution: Ubuntu / LXQt / 20.04
`dmesg` output
[304232.588710] PM: suspend entry (s2idle)
[304232.704155] Filesystems sync: 0.115 seconds
[304232.853405] Freezing user space processes ... (elapsed 0.005 seconds) done.
[304232.858440] OOM killer disabled.
[304232.858444] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[304232.860030] printk: Suspending console(s) (use no_console_suspend to debug)
[304232.882933] ipts 0000:00:16.4-3e8d0870-271a-4208-8eb5-9acb9402ae04: Stopping IPTS
[304233.204481] intel_pch_thermal 0000:00:14.2: CPU-PCH is cool [35C]
[304238.700076] OOM killer enabled.
[304238.700080] Restarting tasks ... 
[304238.700180] ipts 0000:00:16.4-3e8d0870-271a-4208-8eb5-9acb9402ae04: Starting IPTS
[304238.700295] usb 1-7: USB disconnect, device number 26
[304238.703891] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[304238.706328] done.
[304238.714049] ipts 0000:00:16.4-3e8d0870-271a-4208-8eb5-9acb9402ae04: Device 1B96:001F ready
[304238.730492] PM: suspend exit
[304240.171717] usb 1-7: new full-speed USB device number 27 using xhci_hcd
[304240.325215] usb 1-7: New USB device found, idVendor=045e, idProduct=09c0, bcdDevice= 0.07
[304240.325232] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[304240.325238] usb 1-7: Product: Surface Type Cover
[304240.325243] usb 1-7: Manufacturer: Microsoft
[304240.334708] input: Microsoft Surface Type Cover Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input348
[304240.392417] input: Microsoft Surface Type Cover Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input349
[304240.392999] input: Microsoft Surface Type Cover Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input350
[304240.393310] input: Microsoft Surface Type Cover UNKNOWN as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input351
[304240.393619] input: Microsoft Surface Type Cover Touchpad as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input352
[304240.394009] input: Microsoft Surface Type Cover UNKNOWN as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input353
[304240.394275] input: Microsoft Surface Type Cover UNKNOWN as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input354
[304240.394553] input: Microsoft Surface Type Cover UNKNOWN as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input355
[304240.394893] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input356
[304240.395130] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input357
[304240.395419] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input358
[304240.395708] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input359
[304240.395947] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input360
[304240.396173] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input361
[304240.396407] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input362
[304240.396620] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input363
[304240.396846] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input364
[304240.397040] input: Microsoft Surface Type Cover Tablet Mode Switch as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:045E:09C0.0013/input/input365
[304240.397446] hid-multitouch 0003:045E:09C0.0013: input,hiddev0,hidraw0: USB HID v1.11 Keyboard [Microsoft Surface Type Cover] on usb-0000:00:14.0-7/input0
[304243.702776] mwifiex_pcie 0000:01:00.0: info: trying to associate to bssid 00:e0:20:5e:2a:9d
[304243.725664] mwifiex_pcie 0000:01:00.0: info: associated to bssid 00:e0:20:5e:2a:9d successfully

ceever avatar Feb 18 '23 02:02 ceever