I'm using an HP laptop as a server, so the lid is almost always closed and it is the only display "plugged". I have configured Ubuntu to "do nothing" if the lid is closed and AC is plugged and this works just fine. However, if I remote in via SSH and trigger a reboot then the system does not reboot properly.
It's as if the laptop goes to sleep instead: if I open the lid with a narrow-angle I can see the Power button blinking as if the laptop was sleeping. If I completely open the lid the laptop display lights up and the laptop starts the reboot process normally.
I would like to be able to reboot normally via SSH, without having to manually open the lid.
Can't think of a reason to justify this, is it may be the Nvidia discrete GPU?