Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Display raspberry camera video on HDMI screen using Raspberry OS Lite (no desktop, no X Window)
  • sudo nano /boot/cmdline.txt and change console=tty1 to console=tty2
  • sudo nano /etc/rc.local and add /home/pi/autostart.sh &
cd
touch autostart.sh
chmod a+x autostart.sh
nano autostart.sh
raspivid -t 0 &
setterm -cursor off > /dev/tty1
while sleep 2; do 
  dd if=/dev/zero of=/dev/fb0 2> /dev/null
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment