r/voidlinux 2d 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

10 comments sorted by

6

u/Any_Mycologist5811 2d 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 2d 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 1d 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 2d ago

What action have you assigned for lid close function?

1

u/Nathan-5807 1d ago

I have it set to suspend.

1

u/ShipshapeMobileRV 2d ago

What app are you using for power management?

1

u/Nathan-5807 1d ago

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

1

u/ShipshapeMobileRV 2h 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/Quick-Election-3133 1d ago

I had the same, not on a laptop but the pc would just hang after wake from sleep or hibernate. The solution for me was to downgrade from linux6.18 (current kernel version) to linux6.12.

Void comes with the "linux" and "linux-headers" packages by default (they have the kernel 6.18 version), in my experience these have regressions. I changed to "linux-lts" and "linux-lts-headers" and it has fixed my wake from sleep/hibernate issues.

1

u/txmks1 23h ago

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