Re: Resume from Suspend when triggered by Lid

From: Oleksandr Kryvulia <shuriku_at_shurik.kiev.ua>
Date: Mon, 16 Mar 2026 19:13:05 UTC
16.03.26 09:29, Ben Hutton:
> Hi,
>
> I have a suspend/resume issue with KDE Plasma that appears on both my 
> FreeBSD powered laptops. When I suspend by closing the lid and I 
> resume by opening the lid the laptop will go back into suspend mode, 
> usually shortly after the desktop has resumed. I usually have just 
> enough time to enter my lock screen password before it goes back into 
> suspend. I can resume again by pressing the power button and 
> everything works as expected after that.
>
> The suspend on both laptops is triggered by KDE. I have it configured 
> to go into sleep on closing the lid within the power management 
> settings. I do not have it configured using sysctl.
>
> Note that when using Xfce and using the equivalent power management 
> settings within the desktop environment it works as expected.
>
> My questions are, do I have this configured correctly or do I have to 
> use the sysctl way of triggering suspend? Also why does it behave 
> differently on KDE as opposed to Xfce?
>
> This issue has occurred over multiple versions of FreeBSD and KDE so I 
> don't know what to detail about my system. One is with hybrid graphics 
> and the other not. They are both Intel Thinkpads and 10 years 
> difference in age. It's not a show stopper at present, just annoying.
>
> Any ideas on how I can debug this? 

I had this situation on my previous laptop too. To avoid this I disabled 
suspend on lid close in the KDE settings, instead configuring it via 
hw.acpi.lid_switch_state sysctl.