HAOS on LapTop, Ignore Lid Close

New to the community. Apologize in advance if I missed this somewhere. I did search the docs and the community, but did not find an exact match (this problem is discussed relative to installs under PROXMOX, but I did not find for stand alone HAOS).

Problem: I repurposed an old laptop to run HAOS. Its working fine, but I have not been successful in getting HAOS to ignore lid closure. I modified logind.conf and set “HandleLidSwitch=ignore”. No joy.

Suggestions?

I ran HA on a laptop once and it was a HP.
On that one I could actually disable the lid sensor in the BIOS, so check if you have that option.

Untested because my laptop is on proxmox, but try this https://www.reddit.com/r/openSUSE/comments/1c4k9n3/systemdlogind_handlelidswitchignore_not_working/

No options I know of in a UEFI bios to disable lid sensor.

Checked the settings in logind.conf. All good. Rebooted. Issue appears to be resolved now. Thanks.

I installed a fresh instance of HAOS on an Asus laptop which does not have any lid settings in BIOS execept for “Wake when lid is open”. The laptop goes to sleep when I close the lid. I have read about editing the logind.conf file, but that file does not exist when you install HAOS as its own operating system apparently. Is there any way to accomplish keep the laptop awake while lid is closed with the standard HAOS stand-alone build?

EDIT: So, I just manually created /usr/lib/systemd/logind.conf and added the following to it:

[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

LidSwitchIgnoreInhibited=no

After restarting HAOS, it seems to be working now. Yay!