Elektrine lite

← Feed

@pglpm@lemmy.ca

How do *permanently* disable "resume from suspend" when opening lid?

2026-07-20 07:59 UTC

I have Kubuntu on a Thinkpad, and a S3-sleep state selected in the Bios. My setup has always been to not resume from sleep when the lid is open. I achieved this by running once echo "LID" | sudo tee /proc/acpi/wakeup which toggles the wakeup-on-lid state. The behaviour would be respected upon restart. Here’s my problem: since some recent update – I don’t know whether from apt or fwupd – I discovered that the laptop was waking up upon lid opening. So I issued the command above again. It works, but it gets reset upon restart, unlike before. Anyone has good tips on how to make this setting permanent? In the Bios I didn’t find any settings about this. Cheers!

Replies (2)

  • @timroerstroem@feddit.dk 2026-07-20 08:21

    Reading the arch wiki (a great resource regardless of your distro) suggests this is a bug (though where, it does not say). The easiest “fix” would probably be a systemd unit that does echo “LID” > /proc/acpi/wakeup on boot, as suggested in the linked troubleshooting.

    Open ##3954514

  • You could add a simple startup script that just issues this command when the system is booted.

    Open ##3954536