I'm using a HP EliteDesk 800 35W G3 Desktop Mini PC (2018) as a server in my home network.
But I can't keep the stupid thing from apparently going to sleep after I turn the monitor off or switch the KVM to another computer. I get up every morning and my ssh from my desktop is gone and it's not pinging until I go into the computer room, turn on the monitor, wait for it to wake up, and start poking around from there.
I have disabled sleep and screensaver in the console.
I have masked sleep.target
, suspend.target
, hibernate.target
and hybrid-sleep.target
.
What else do I need to do?
Google is not super helpful, because the search is poisoned by about a zillion pages asking how to disable display sleep, or questions about laptops that end up being answered by laptop-specific details.
No, I have no lid switch. I have no lid.
Possibly related: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2015314
@matigo: I turned off all the Power Management options in the BIOS. Will see how this works. If I use a dummy plug in one port will the other port still work or is that just useful for a headless install? I've only used them for headless installs in the past.
Update: This seems to have solved it.
@matigo YES please do mark your comment as a correct answer, because it is a correct answer. People will thank you for it even if only in the silence of their skulls.
@user68186: I already noted I tried that in my original post.
AskUbuntu: why are you asking me about @user68186's suggestion AGAIN? As noted in the above edit the suggested question is not relevant because I had already as masked all the sleep-related targets. AND mentioned that in my question.
See @matigo's comment for the correct answer.