How to prevent Ubuntu 25.10 from waking up from suspend when I close the laptop lid?
https://askubuntu.com/questions/1560258/how-to-prevent-ubuntu-25-10-from-waking-up-from-suspend-when-i-close-the-laptopI think this is a new feature, I can enter suspend on my Lenovo ThinkPad P14s either via GUI menu or:
sudo systemctl suspend -f
I know it is suspended because when in suspend the LED blinks slowly.
But then if I close the lid it wakes up! So if I suspend and close to put it into my backup, it wakes up.
I think I have tried everything from How can I tell Ubuntu to do nothing when I close my laptop lid? but nothing helped including:
sed -i '/HandleLidSwitch/d' /etc/systemd/logind.conf >/dev/null 1&>2
echo 'HandleLidSwitch=ignore' >> /etc/systemd/logind.conf >/dev/null 1&>2
sed -i '/IgnoreLid/d' /etc/UPower/UPower.conf >/dev/null 1&>2
echo 'IgnoreLid=true'>> /etc/UPower/UPower.conf
followed by reboot.
Logs after I start suspend: https://gist.github.com/cirosantilli/dfe4082c1cfd2b50d92638732cc84ce5
Shame that after all these years they still haveng figured out how to add a working setting for this on the main settings GUI...
Related:
- Laptop wake up from suspend when lid is closed old, closed as dupe but it's not clear that it's an actual dupe






