Okay got somewhere, I think.
When I try to lid close suspend I get these messages in dmesg
[ 917.065478] atkbd serio0: Unknown key pressed (translated set 2, code 0x97 on isa0060/serio0).
[ 917.065483] atkbd serio0: Use 'setkeycodes e017 <keycode>' to make it known.
[ 917.069499] atkbd serio0: Unknown key released (translated set 2, code 0x97 on isa0060/serio0).
[ 917.069504] atkbd serio0: Use 'setkeycodes e017 <keycode>' to make it known.
Doing a bit of searching it seems to be related to hardware specific rfkill, I think.
Anyway if I disconnect wifi, then attempt a lid close suspend, it now works for me.
Standard onboard intel wifi adapter.
$ inxi -Nx
Network: Card-1: Intel Wireless 3160 driver: iwlwifi v: kernel bus ID: 03:00.0
$ hwinfo --wlan
11: PCI 300.0: 0282 WLAN controller
Model: "Intel Dual Band Wireless AC 3160"
Vendor: pci 0x8086 "Intel Corporation"
Device: pci 0x08b3 "Wireless 3160"
SubVendor: pci 0x8086 "Intel Corporation"
SubDevice: pci 0x8070 "Dual Band Wireless AC 3160"
Driver Modules: "iwlwifi"
Device File: wlp3s0
The wifi adapter in my other laptop, where lid close suspend works, is
$ inxi -Nx
Network: Card-1: Broadcom Limited BCM4352 802.11ac Wireless Network Adapter driver: wl v: kernel bus ID: 07:00.0
@zongo, do you get the same behaviour if you disable wifi before lid close ?
I always power button suspend so I have no idea if this issue was recently introduced or something that has been around for a while on my system.
Power button suspend does not trigger the
atkbd serio0 dmesg errors.
Don't know enough to explain why one suspend trigger (ie power button) works, and another suspend trigger (ie lid close) seemingly works differently and fails.