Laptop randomly hibernating (unexpected lid switch event)

My venerable FW13 11th Gen (now AMD) Batch 5 laptop has recently taken to suspending sometimes when I bump or move it, with the following in the system log:

Nov 17 18:36:16 framework-laptop systemd-logind[863]: Lid closed.
Nov 17 18:36:16 framework-laptop systemd-logind[863]: Hibernating.

I’ve not had time to do much debugging (busy season at work), but suspect it might be a hardware problem. Sometime soon I’ll d/l and boot into Ubuntu to confirm that’s the case.

In the meantime, can anyone tell me where the lid switch is on the inside, so I can take a quick look for a loose or broken connection?

The OS is Manjaro current with kernel 6.10.13-3

Unfortunately I do not know where the lid switch is, but the lid switch is controlled by magnets and some people have reported their computers turning off due to the lid switch sensor activating when they move there laptops on top of a Macbook.

Try to remove anything magnetic on your table that is placed under the Framework and could possibly activate the sensor.

Left side between the headphone port and the first expansion card slot.

The sensor is on the audio module. I believe it’s the small chip at the very top left corner.

Yeah. While a malfunction is possible. Quite a few people have posted about random lid sensor activations, and every one I’ve read so far have discovered it was something magnetic nearby. Having the Framework on top of another laptop is probably the top thing.

Thanks for the info and suggestion. I opened up and see the chip you’re likely referring to.

I can confirm there aren’t magnets nearby, as the machine is generally on my lap when it happens (nothing in pockets). Sometimes just lifting it off the table is enough. I was able to duplicate the behavior a few minutes ago by setting the laptop on a stone counter–no magnets anywhere nearby. Sounds a lot like a flaky connection or short circuit.

Not blaming FW for any of this–the machine’s been around awhile and not gently used.

Ordered a replacement audio card for $14USD. Let’s see if that fixes it.

Depending on which country you are in, you might have 1, 2 or 3 years warranty.
So you might get the part for free.