Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@premek
Last active October 29, 2020 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save premek/81dbfa4a5954fd3ece009d55bc2d04c6 to your computer and use it in GitHub Desktop.
Save premek/81dbfa4a5954fd3ece009d55bc2d04c6 to your computer and use it in GitHub Desktop.
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