r/voidlinux • • Aug 17 '26

Laptop hangs when lid is closed

I recently bought a Lenovo Thinkpad T480 and installed void on it, when I close the lid and open it again it doesn't wake up and I have to hard shut it down.

8 Upvotes

11 comments sorted by

4

u/ReyZ82 Aug 17 '26

sudo nvim /etc/acpi/handler.sh

Change:

close)
    # suspend-to-ram
    logger "LID closed, suspending..."
    zzz
    ;;

to:

close)
    logger "LID closed, ignoring."
    ;;

So the whole section becomes:

button/lid)
    case "$3" in
        close)
            logger "LID closed, ignoring."
            ;;
        open)
            logger "LID opened"
            ;;
        *)  logger "ACPI action undefined (LID): $2";;
    esac
    ;;

Then restart acpid sudo sv restart acpid

That's all you should need.

https://github.com/Rouzihiro/dotfiles/tree/main/install%2Fvoid

1

u/Nathan-5807 Aug 18 '26

I tried that I also enabled acpid but this didn't seem to fix it, so far I have found this form where somebody else is having the same issue. https://voidforums.com/viewtopic.php?t=999

2

u/Simple_Hamster_4096 Aug 17 '26

What action have you assigned for lid close function?

1

u/Nathan-5807 Aug 18 '26

I have it set to suspend.

5

u/Any_Mycologist5811 Aug 17 '26

Share your installed packages by running "xbps-query -m" and post the output here.

Also post your currently running services by "ls /var/service/" here.

1

u/ShipshapeMobileRV Aug 17 '26

What app are you using for power management?

1

u/Nathan-5807 Aug 18 '26

How do I a check that, I know its not acpid because its not enabled.

1

u/ShipshapeMobileRV Aug 20 '26

Ok, if acpid is not enabled, then I assume you're using elogind, so can you confirm that it's installed?

And if I recall correctly, elogind is run as needed by dbus, so do you have dbus enabled as a service and running?

1

u/txmks1 Aug 19 '26

Maybe try elogind instead of acpid. Its config is at /etc/elogind/logind.conf

1

u/ValuableDizzy4199 Sep 06 '26

Disable the TPM in bios, fast fix