HACKER Q&A
📣 juanse

Prevent monitor turning on during restart?


Hi guys, I'm tinkering trying to do a real-life smartTV/Kiosk for commercials.

I have no problem turning on/off the screen, however given that I do a daily restart, I would like to do it when the screen is off, and keep the monitor of during the restart. The problem is that every time I restart, the monitor turns on automatically.

Is it possible to prevent this behaviour?

Context: I have a script in autoload that decides when turn on/ff based on API call to a backend api. HW is Raspberry.


  👤 tony-allan Accepted Answer ✓

👤 layer8
I don’t think you can directly prevent it. Some BIOSs allow to preselect the video output, so you could set that to an unused output and switch the output later programmatically. It’s probably easier when you have both integrated graphics and separate a graphics card (between which you can switch). A simpler possibility may be to attach the monitor to a power strip with IP control, which you can switch off before the restart and switch on again after the restart.