-- Leo's gemini proxy

-- Connecting to envs.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

how to disable suspend-on-lid-closed on void linux


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.

-- Response ended

-- Page fetched on Sun Jun 2 12:05:11 2024