I just had this weird experience where the screen on my laptop suddenly went bla...

@kasperd@westergaard.social

I just had this weird experience where the screen on my laptop suddenly went black. My first thought was it must have run low on battery and suspended without me realizing in advance.

So I closed the lid and started walking towards my charger. Then I could hear on my headset, which I was still wearing, that the laptop had resumed.

So I sat down and opened the laptop to figure out what had happened. The battery was still at 67%, so nowhere near the point where it was supposed to suspend due to low battery.

Looking at logs I discovered this:

Aug 08 14:25:49 galaxy-book systemd-logind[1019]: Lid closed.
Aug 08 14:25:49 galaxy-book systemd-logind[1019]: Suspending...

It’s true I had closed the lid, but only because the laptop had already suspended.

Then I realized what had happened. The laptop had been leaning against another laptop and somehow the lid detectors on the two laptops had interacted in a way to erroneously produce a lid closed event.