How to put this command on boot of DietPi (turn-off screen)

Hi there,

There’s a way to put one of these commands:

setterm -blank force

Or:

sudo sh -c ‘TERM=linux setterm --blank force </dev/tty1’

On the start of DietPi?

They simply don’t work with Crontab (root).

It would be wonderful to use something like:

@reboot sleep 500 ;

Before or them.

PS: vbetool and other methods don’t work in this machine.

I guess you would need to run this when the system has fully booted and TTY is ready, the sleep 500 can work, should be enough time.
But better to you a systemd service, there you can define a condition for when the service should start:

After=getty.target

you could try running this as systemd unit using a timer to have it executed 30sec after boot process.

Or just put that script into /var/lib/dietpi/postboot.d. These are executed by dietpi-postboot.service which should run sufficiently late.