I'm experiencing an issue waking from sleep on Debian, on a laptop, running KDE. Some of the time when I try and wake it nothing happens - screen remains off and unresponsive. I'm forced to hard restart the laptop.
Power button shows as on throughout, implying that the issue occurs during the suspend i.e. it never properly goes into sleep but crashes at this point.
I'm running Debian Stable - Bookworm - KDE Plasma 5.27.5 but the problem has been going on for a month or two now.
Laptop is Lenovo YOGA 520-14IKB
Graphics processor: Mesa Intel® HD Graphics 610
I have tried switching from X to Wayland and the problem is reproduced on both. But it's intermittent, it doesn't happen every time.
I wonder if it happens more when an external monitor is connect via HDMI but this is not conclusive.
I've tried different options for sleep to see if this makes a difference - e.g. from the ctrl-alt-delete suspend button, closing laptop lid, etc. But problem seems to occur with all options (possibly less frequently with the ctrl-alt-delete logout screen and then pressing suspend).
I've tried several of the options suggested on this Reddit post, but it hasn't solved it: https://www.reddit.com/r/kde/comments/1 ... ck_screen/
[/offtopic][/offtopic]Try to disable systemd-logind's handler for handle lid close event.
Edit /etc/systemd/logind.conf file, change HandleLidSwitch and HandleLidSwitchExternalPower to ignore. Change LidSwitchIgnoreInhibited to no.
If these option is comment out(start with #), uncomment it then change the value.
Go to KDE's system setting panel → Power Management → Energy Saving, change Button events handling → When laptop lid closed to Do nothing. Change all the option in On AC, On battery and On low battery. Apply the setting, then change it back(Sleep, Hibernate or something else, depending on you default setting).
I've checked Debian and KDE bugtrackers but there is no clear match.
Grateful for any help to fix this!
Cheers