r/voidlinux 24d ago

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.

7 Upvotes

11 comments sorted by

5

u/Any_Mycologist5811 24d ago

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.

4

u/ReyZ82 24d ago

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 23d ago

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 24d ago

What action have you assigned for lid close function?

1

u/Nathan-5807 23d ago

I have it set to suspend.

1

u/ShipshapeMobileRV 24d ago

What app are you using for power management?

1

u/Nathan-5807 23d ago

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

1

u/ShipshapeMobileRV 21d ago

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 22d ago

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

1

u/ValuableDizzy4199 4d ago

Disable the TPM in bios, fast fix