Sometimes..

Hardware may be to old, i guess...

In keep-the-notebook-running-when-the-lid-is-closed I've written about repurposing my P50 as my personal proxmox server. Turns out - it's a little bit to old for that....

Tried - yea, i know - 2 VMs running Windows Server 2022, each 2 Cores, 16 GB RAM - was no fun to work with them. Tried several other constellations - all in all way to laggy.

So for now it's running voidlinux with the mate as UI, still installing some software, configuring some stuff and services.

Keep the notebook running when the lid is closed

Recently i repurposed my old Lenovo P50 (2 x 1TB SSD, i7-6820, 64 GB RAM) to become my 'personal' proxmox-cluster.

Had one little annoyance: closing the lid causes the P50 to go into sleep mode - not that helpful, because you usually don't work directly on the prox..

Long story short - after searching the web a very simple and smart solution:

First let's look at the acpi table

root@pve:~# cat /proc/acpi/wakeup | grep "LID"
LID       S4    *enabled   platform:PNP0C0D:00

Nice, now let's disable this one - dry run in the shell:

echo 'PNP0C0D:00' | tee /sys/bus/acpi/drivers/button/unbind

And close the lid. Your prox is still available? Goood!
Final step: Create a file (if it does not exist..) /etc/rc.local, add the command from above with a little yada.

#!/bin/bash
echo 'PNP0C0D:00' | tee /sys/bus/acpi/drivers/button/unbind
exit 0

Save it, make it x-able - reboot, test - should work.

Scroll to top