Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Beginners • How to Blank Screen on Pi 4

$
0
0
Hi
I'm a beginner and looking for advice.
I have a project for a Museum for a Video Display.
It consists of a Search light and video monitor.
The Spotlight has to come on pointing at the Monitor and then a Video plays and then after a delay of 5 mins it repeats.
I have a relay board in the Pi 4 and using a .sh file the spot light comes on and video plays and repeats , so that all works, but when waiting for delay it returns back to the command screen but the prompt and cursor are showing.
The museum would like a completely blank screen.
I have tried adding the clear cmd in the script but it ignores it and just runs rest of script
Here is script I'm using.

##!/#!/bin/bash
while
do
clear > /dev/tty1
setterm -cursor off > /dev/tty1
stty -echo
python3 ./Documents/relay1on.py> /dev/null 2>&1
sleep 2s
python3 ./Documents/relay1off.py> /dev/null 2>&1;cvlc -q --no-video-title-show --play-and-exit ./Documents/video.mp4> /dev/null 2>&1
sleep 300s
done

And advice greatly appreciated

Regards

Graham

Statistics: Posted by gwoods — Thu Jan 22, 2026 2:59 pm — Replies 6 — Views 71



Viewing all articles
Browse latest Browse all 7503

Trending Articles