4

I have an old laptop (Asus n56v) that I turned into a home lab by installing Proxmox hypervisor, it works well and also WOL (wake on LAN) work.

I need to store it lid-closed because I only manage it through the terminal from another host anyway.

I have edited /etc/systemd/logind.conf and set HandleLidSwitch=ignore so now when I close the lid nothing happens which is good.

I can't seem to be able to have it wake on LAN when the lid is closed, only when it's opened.

the Proxmox is running under Debian stretch, running kernel 4.15.17-1-pve.

8
  • Perhaps because its in sleep-mode?
    – Sam
    Commented Oct 11, 2018 at 10:44
  • It's not in sleep mode in any stage, only turn on and then when work is done it's turned off completely (shutdown -h now) Commented Oct 11, 2018 at 11:28
  • Im sorry, but I don’t fully understand your sentence.
    – Sam
    Commented Oct 12, 2018 at 9:22
  • It is not in sleep mode, not in any way. It's only turned on and turned off. No sleep mode. Commented Oct 12, 2018 at 10:46
  • So it’s completely off?
    – Sam
    Commented Oct 12, 2018 at 11:27

1 Answer 1

2

I needed to so the same, and yes it can be done.

Debian's wiki provides two options:

  1. For systems which should never attempt any type of suspension, these targets can be disabled at the systemd level with the following:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

  1. If you just want to prevent suspending when the lid is closed you can set the following options in /etc/systemd/logind.conf:
[Login]
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore

I've tested with two laptops.

  • one laptop I set both 1. & 2.
  • the other laptop I only set 2.

WOL works in both cases, (laptops are powered off, their lids closed, WOL triggered --> both laptops (aka. proxmox nodes) boot up)

Very cool ;)

source: https://wiki.debian.org/Suspend

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .