Installed Ubuntu server on a tablet. But the screen always stays on.
Can do a command:
echo -ne "\033[9;5]" > /dev/tty1
It does turn it off or at least it then goes to black. If I press a key on the keyboard it comes back on - that's what I want.
But that command doesn't stay. Sometimes in a week or so it can turn back on and I did not touch the keyboard.
There are all sorts of things can find for the desktop but not the server to turn the screen off when not using the keyboard on it.