💾 Archived View for envs.net › ~binarycat › gemlog › 2022-06-18_nosuspend.gmi captured on 2024-08-25 at 00:26:58. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
the file that handles this sort of thing is /etc/acpi/handler.sh
you will need to open it as root. locate the button/lid case and edit it to remove the zzz command. i edited mine to look like this:
button/lid) case "$3" in close) # suspend-to-ram # disabled by binarycat logger "LID closed, not suspending..." # zzz ;; open) logger "LID opened" ;; *) logger "ACPI action undefined (LID): $2";; esac ;;
once you save this file, you should be able to close your laptop without messing with whatever program you have running. i use this because i am often downloading files overnight.