Ubuntu Version:
Xubuntu 22.04 LTS
Desktop Environment (if applicable):
XFCE
Problem Description:
After waking from suspend (or after closing/opening laptop lid), the system freezes: mouse cursor moves but clicks don’t work. All windows and applications are unresponsive. Only hard reboot worked before the fix.
Relevant System Information:
Laptop: Clevo N650DU (Why! brand), 7+ years old
Graphics: Intel integrated
Screenshots or Error Messages:
System just freezes on resume
What I’ve Tried:
Manual fix from TTY worked: Ctrl+Alt+F2 then sudo systemctl restart lightdm
Solution:
Create an auto-restart script for lightdm:
sudo nano /lib/systemd/system-sleep/fix-lightdm-resume
Paste this:
#!/bin/bash
case "$1" in
post)
sleep 4
if ! systemctl is-active --quiet lightdm; then
systemctl restart lightdm
fi
;;
esac
Make it executable:
sudo chmod +x /lib/systemd/system-sleep/fix-lightdm-resume