My laptop has recently started suspending of its own accord every 30
seconds, interrupting whatever I’m doing. When I wake it from suspend,
it’s often the case that the built-in keyboard is not working (not sure
if this is related to the issue or if my suspend is just broken). Even
hitting Ctrl-Alt-F1 to access a tty does not work from the built-in
keyboard. USB keyboards still have full functionality. The issue occurs
even when no other USB devices are plugged in.
This was helpful, thanks! I ran acpi_listen to diagnose and closed and
opened my laptop screen twice, and the log was
$ acpi_listen
button/lid LID open
button/lid LID close
button/lid LID open
which suggests that it did in fact think that the screen was closed to
begin with. This also seems to have stopped it from suspend-looping.
I’ll look into poking at Grub, but for now I think this is enough of a
lead/fix. Thank you!
For posterity, my logind.conf doesn’t have any non-comment lines:
/etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the logind.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#HandleRebootKey=reboot
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
This has been happening to Me since I bought the 11th Gen DIY machine. I have since upgraded to 12th gen in hopes it would go away (but it continues). When I’m docked with external monitor and the lid shut, these events do not occur. They seem to only happen when the lid is actually open.
Mine isn’t every 30 seconds but it is random. Sometimes while typing other times it seems like all I do is touch the side to move it.
$ acpi_listen
button/lid LID open
button/lid LID close
button/lid LID open
Every time it happens. No magnets near the sides or anything, just sitting on my lap in the middle of a couch. (no watches, jewelry, metal implants, etc). 4 USB-C modules & not charging.
To be clear, this has happened on two separate laptops, and acpi_listen shows similar results?
Which applications are running and does this happen when sitting in other locations? Extremely odd that it would affect both 11th and 12th with nothing else attached or nearby.
It is 1 laptop, a 11th Gen DIY i7 upgraded to a 12th Gen i7 motherboard and the issue has been around since I got the original 11th Gen laptop in Feb, 2022. I upgraded to the 12th Gen the day 12th Gen motherboards were released and also upgraded to the CNC Top Cover
The issue has happened sitting at the kitchen table (antique wood), couch, lap, coffee shop, work, in the car… I can’t think of a place that it doesn’t happen.
It happens on the Ubuntu installer boot cd (20.04 and 22.04), it happens in Windows 10/11 (I have no acpi logs for windows). It happened for the year I ran Manjaro (Feb 2022-Jan 2023), and it happened about 20 times this last weekend running Kubuntu 22.04.
Once the laptop is plugged in, it seems to stop getting these false lid closed acpi_listen messages.
I think this may be part of the issue. This is affecting two motherboards, multiple operating systems (including Windows and Linux) at multiple locations. Something with the hardware is clearly not correct.
Please open a ticket and link to this post. Let support know that something is likely triggering lid suspend mechanism.
I think this may have been it. I was keeping my laptop on top of its
soft-shell case, which has a metal zipper. And, intuitively, “magnet
tripping the lid sensor” feels very consistent with the symptoms that I
experienced.
Reminds me of decades ago thinking that I had broken the mic on my USB
headset, when actually it was just getting more noise due to ground loop
when the power adapter was plugged in.