Raspberry Pi - GLPA Video Racks v2

instructions to build rpi image for GLPA video front-of-room racks

  • two video outputs (HDMI for info display, HDMI-to-VGA for paper timer)
  • MQTT broker and control program for Extron VGA + HDMI matrix
  • web interface to restart browsers and websocket interface to matrices
  • code tarball: rpi-video.tar.bz2

Part 1: General setup

  • run raspbian-ua-netinst on SD card (default install - server packages of debian buster)
  • SSH in as root…
passwd
> /etc/motd
HOSTNAME=rpi-video1
#HOSTNAME=rpi-video2
#HOSTNAME=rpi-video3
echo $HOSTNAME > /etc/hostname
sed -i s/pi/$HOSTNAME/g /etc/hosts
apt-get update && apt-get --no-install-recommends install aptitude

systemctl disable ssh.service && systemctl enable ssh.socket

ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
sed -i -e 's/^# en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
dpkg-reconfigure -f noninteractive locales

aptitude full-upgrade

aptitude install netcat-traditional screen rsync psmisc file patch ethtool strace tcpdump vim bzip2 xz-utils
aptitude --without-recommends install dnsutils

aptitude install watchdog
sed -i -e 's/^#watchdog-device/watchdog-device/g' /etc/watchdog.conf
sed -i -e 's/^#max-load-1\t/max-load-1\t/g' /etc/watchdog.conf
echo "# Raspberry Pi doesn't work with the default timeout of 60; set it to 10 instead" >> /etc/watchdog.conf
echo $'watchdog-timeout\t= 10' >> /etc/watchdog.conf

adduser tdobes
adduser tdobes adm
adduser tdobes systemd-journal

aptitude install firmware-brcm80211 # rpi3 wifi firmware
aptitude install ifmetric iw wireless-tools ifplugd wpasupplicant
sed -i -e 's/^REGDOMAIN=$/REGDOMAIN=US/g' /etc/default/crda
sed -i -e 's/^INTERFACES=""/INTERFACES="eth0"/g' /etc/default/ifplugd
sed -i -e 's/^allow-hotplug eth0/#allow-hotplug eth0/g' /etc/network/interfaces
systemctl restart ifplugd

echo >> /etc/network/interfaces
echo 'allow-hotplug wlan0' >> /etc/network/interfaces
echo 'iface wlan0 inet manual' >> /etc/network/interfaces
echo '  wpa-driver nl80211,wext' >> /etc/network/interfaces
echo '  wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf' >> /etc/network/interfaces
echo >> /etc/network/interfaces
echo 'iface wifi inet dhcp' >> /etc/network/interfaces
echo '  metric 1' >> /etc/network/interfaces

cat > /etc/wpa_supplicant/wpa_supplicant.conf <<EOF
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

#network={
#  ssid="mcp-5.8"
#  scan_ssid=1
#  psk="**PASSWORD**"
#  priority=10
#  id_str="wifi"
#}
EOF
chmod -x /etc/wpa_supplicant/action_wpa.sh # ensures that ifplugd doesn't disconnect wifi - see http://raspberrypi.stackexchange.com/questions/31780/wpa-supplicant-conf-with-two-network-cards-not-working-when-wpa-roam

# Clean-up and optimization

systemctl disable rsyslog.service
systemctl disable rsync.service
systemctl disable sshswitch.service
systemctl stop rsyslog.service
rm /var/log/auth.log* /var/log/daemon.log* /var/log/debug /var/log/kern.log* /var/log/messages /var/log/user.log* /var/log/syslog

Part 2: Matrix Control

# VGA Matrix + MQTT Control
aptitude install mosquitto mosquitto-clients python-serial picocom
wget http://http.us.debian.org/debian/pool/main/m/mosquitto/python-mosquitto_1.3.4-2+deb8u1_all.deb
dpkg -i python-mosquitto_1.3.4-2+deb8u1_all.deb

echo 'listener 1883' > /etc/mosquitto/conf.d/listen-mqtt.conf
echo 'protocol mqtt' >> /etc/mosquitto/conf.d/listen-mqtt.conf
echo 'listener 8000' > /etc/mosquitto/conf.d/listen-websockets.conf
echo 'protocol websockets' >> /etc/mosquitto/conf.d/listen-websockets.conf
systemctl restart mosquitto

aptitude --without-recommends install mini-httpd
sed -i -e 's/^START=0$/START=1/g' /etc/default/mini-httpd
sed -i -e 's/^host=localhost$/#host=localhost/g; s/^user=nobody$/user=www-data/g' /etc/mini-httpd.conf

echo '[Unit]' > /etc/systemd/system/mini-httpd.service
echo 'Description=mini_httpd - small HTTP server' >> /etc/systemd/system/mini-httpd.service
echo 'After=network.target' >> /etc/systemd/system/mini-httpd.service
echo >> /etc/systemd/system/mini-httpd.service
echo '[Service]' >> /etc/systemd/system/mini-httpd.service
echo 'ExecStart=/usr/sbin/mini_httpd -C /etc/mini-httpd.conf' >> /etc/systemd/system/mini-httpd.service
echo 'Type=forking' >> /etc/systemd/system/mini-httpd.service
echo 'Restart=always' >> /etc/systemd/system/mini-httpd.service
echo 'RestartSec=1' >> /etc/systemd/system/mini-httpd.service
echo >> /etc/systemd/system/mini-httpd.service
echo '[Install]' >> /etc/systemd/system/mini-httpd.service
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/mini-httpd.service

systemctl enable mini-httpd.service
systemctl restart mini-httpd.service

aptitude install sudo
echo >> /etc/sudoers
echo 'www-data ALL=(ALL:ALL) NOPASSWD:/bin/systemctl' >> /etc/sudoers

adduser --system --home /nonexistent --no-create-home matrix
adduser matrix dialout

echo '[Unit]' > /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'Description=MQTT Matrix Bridge for VGA' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'After=network.target' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'Requires=mosquitto.service' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'After=mosquitto.service' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo '[Service]' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'ExecStart=/opt/mqtt_matrix_bridge/vga.py' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'WorkingDirectory=/opt/mqtt_matrix_bridge' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'User=matrix' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'Environment=PYTHONUNBUFFERED=1' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'Restart=always' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'RestartSec=1' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'StartLimitInterval=10s' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'StartLimitBurst=10' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo '[Install]' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/mqtt_matrix_bridge_vga.service
systemctl enable mqtt_matrix_bridge_vga.service

echo '[Unit]' > /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'Description=MQTT Matrix Bridge for HDMI' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'After=network.target' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'Requires=mosquitto.service' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'After=mosquitto.service' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo '[Service]' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'ExecStart=/opt/mqtt_matrix_bridge/hdmi.py' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'WorkingDirectory=/opt/mqtt_matrix_bridge' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'User=matrix' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'Environment=PYTHONUNBUFFERED=1' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'Restart=always' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'RestartSec=1' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'StartLimitInterval=10s' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'StartLimitBurst=10' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo '[Install]' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/mqtt_matrix_bridge_hdmi.service
systemctl enable mqtt_matrix_bridge_hdmi.service

wget https://wiki.mcpstars.org/_media/computer/rpi-video.tar.bz2
tar -xjf rpi-video.tar.bz2
mv opt-mqtt_matrix_bridge /opt/mqtt_matrix_bridge
chown -R tdobes:tdobes /opt/mqtt_matrix_bridge
chmod -R 755 /opt/mqtt_matrix_bridge

rm /var/www/html/index.mini-httpd.html
mv var-www-html/* /var/www/html/
rmdir var-www-html
chown -R tdobes:tdobes /var/www/html/*
chmod -R 755 /var/www/html/*
chmod 644 /var/www/html/index.html /var/www/html/matrix/*

# Browser
aptitude install xserver-xorg-video-omap xserver-xorg-input-libinput
aptitude install xinit evilwm xdotool x11vnc unclutter x11-xserver-utils
sed -i -e 's/^allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config

aptitude install python-pyside.qtwebkit
# argh - also have to use chromium due to lack of certain features in webkit:
aptitude --without-recommends install chromium-browser
aptitude install libgles2 # chromium wants this
aptitude install fonts-symbola # takes care of emoji

chmod 644 windows7_fonts/*
mv windows7_fonts/* /usr/local/share/fonts/
rmdir windows7_fonts
fc-cache -s -v

sed -i 's/START_UNCLUTTER="true"/START_UNCLUTTER="false"/g' /etc/default/unclutter
sed -i -e 's/^use-ssh-agent$/#use-ssh-agent/g' /etc/X11/Xsession.options

adduser --shell /bin/false --gecos "Browser" --disabled-password browser
adduser browser video # needed for OpenGL acceleration in chromium

echo '#!/usr/bin/env python' > /usr/local/bin/simplebrowser.py
echo >> /usr/local/bin/simplebrowser.py
echo 'import sys' >> /usr/local/bin/simplebrowser.py
echo 'from PySide.QtCore import *' >> /usr/local/bin/simplebrowser.py
echo 'from PySide.QtGui import *' >> /usr/local/bin/simplebrowser.py
echo 'from PySide.QtWebKit import *' >> /usr/local/bin/simplebrowser.py
echo >> /usr/local/bin/simplebrowser.py
echo 'app = QApplication(sys.argv)' >> /usr/local/bin/simplebrowser.py
echo >> /usr/local/bin/simplebrowser.py
echo 'if len(sys.argv) == 2:' >> /usr/local/bin/simplebrowser.py
echo '  url = QUrl(sys.argv[1])' >> /usr/local/bin/simplebrowser.py
echo 'else:' >> /usr/local/bin/simplebrowser.py
echo "  url = QUrl('http://www.google.com/')" >> /usr/local/bin/simplebrowser.py
echo >> /usr/local/bin/simplebrowser.py
echo 'web = QWebView()' >> /usr/local/bin/simplebrowser.py
echo 'web.load(url)' >> /usr/local/bin/simplebrowser.py
echo 'web.show()' >> /usr/local/bin/simplebrowser.py
echo >> /usr/local/bin/simplebrowser.py
echo 'sys.exit(app.exec_())' >> /usr/local/bin/simplebrowser.py
chmod +x /usr/local/bin/simplebrowser.py

echo '#!/bin/sh' > /usr/local/bin/browser-xsession.sh
echo >> /usr/local/bin/browser-xsession.sh
echo 'pkill -9 evilwm' >> /usr/local/bin/browser-xsession.sh
echo 'pkill -9 x11vnc' >> /usr/local/bin/browser-xsession.sh
echo >> /usr/local/bin/browser-xsession.sh
echo 'x11vnc -q -usepw -N -ncache 0 -shared -forever &' >> /usr/local/bin/browser-xsession.sh
echo >> /usr/local/bin/browser-xsession.sh
echo 'xset s off #disable screensaver' >> /usr/local/bin/browser-xsession.sh
echo 'xset dpms 0 0 0 #disable automatic power saving' >> /usr/local/bin/browser-xsession.sh
echo 'unclutter -grab -idle 2 & #daemon to auto-hide mouse' >> /usr/local/bin/browser-xsession.sh
echo >> /usr/local/bin/browser-xsession.sh
echo '#SHELL=/bin/bash xterm &' >> /usr/local/bin/browser-xsession.sh
echo >> /usr/local/bin/browser-xsession.sh
echo "exec evilwm -fn '*-clean-*'" >> /usr/local/bin/browser-xsession.sh
chmod +x /usr/local/bin/browser-xsession.sh
ln -s /usr/local/bin/browser-xsession.sh /home/browser/.xsession

mkdir ~browser/.vnc
x11vnc -storepasswd **PASSWORD** ~browser/.vnc/passwd
chown -R browser:browser ~browser/.vnc
chmod 0600 ~browser/.vnc/passwd

echo '#!/bin/sh' > /usr/local/bin/browser1.sh
echo >> /usr/local/bin/browser1.sh
echo 'NETWORK_CHECK=router' >> /usr/local/bin/browser1.sh
echo 'URL=http://glpa.org:9090/bundles/glpa-infodisplay/graphics/info-display.html?cartID=1' >> /usr/local/bin/browser1.sh
# TODO: update above parameter based on hostname instead of hardcoding.  For now, video1 => stream=1, video2 => stream=2, etc.
echo >> /usr/local/bin/browser1.sh
echo '# get rid of cache and settings' >> /usr/local/bin/browser1.sh
echo 'rm -r ~/.cache/chromium ~/.cache/google-chrome 2> /dev/null' >> /usr/local/bin/browser1.sh
echo 'rm -r ~/.config/chromium ~/.config/google-chrome 2> /dev/null' >> /usr/local/bin/browser1.sh
echo >> /usr/local/bin/browser1.sh
echo '# to get --disable-web-security to work (which allows cross-origin requests), you have to specify a user-data-dir' >> /usr/local/bin/browser1.sh
echo "# also, chrome segfaults if it's not an absolute path" >> /usr/local/bin/browser1.sh
echo 'chrome_data_dir=`realpath ~/.chromedata1`' >> /usr/local/bin/browser1.sh
echo 'rm -r $chrome_data_dir 2> /dev/null' >> /usr/local/bin/browser1.sh
echo >> /usr/local/bin/browser1.sh
echo 'echo -n waiting for network' >> /usr/local/bin/browser1.sh
echo 'while ! ping -c 1 $NETWORK_CHECK > /dev/null 2> /dev/null ; do' >> /usr/local/bin/browser1.sh
echo '  echo -n .' >> /usr/local/bin/browser1.sh
echo '  sleep 1' >> /usr/local/bin/browser1.sh
echo 'done' >> /usr/local/bin/browser1.sh
echo 'echo done!' >> /usr/local/bin/browser1.sh
echo >> /usr/local/bin/browser1.sh
echo 'echo -n waiting for server' >> /usr/local/bin/browser1.sh
echo 'while ! wget -q -O /dev/null $URL ; do' >> /usr/local/bin/browser1.sh
echo '  echo -n .' >> /usr/local/bin/browser1.sh
echo '  sleep 1' >> /usr/local/bin/browser1.sh
echo 'done' >> /usr/local/bin/browser1.sh
echo 'echo done!' >> /usr/local/bin/browser1.sh
echo >> /usr/local/bin/browser1.sh
echo '# avoid race with Xorg startup' >> /usr/local/bin/browser1.sh
echo 'sleep 1' >> /usr/local/bin/browser1.sh
echo >> /usr/local/bin/browser1.sh
echo '# move the window to appropriate location' >> /usr/local/bin/browser1.sh
echo 'xdotool search --sync --onlyvisible --class chromium-browser windowmove 0 0 windowsize 1920 1080 &' >> /usr/local/bin/browser1.sh
echo >> /usr/local/bin/browser1.sh
echo '# start chromium' >> /usr/local/bin/browser1.sh
echo 'exec nice -n 1 /usr/lib/chromium-browser/chromium-browser --disable-preconnect --disable-breakpad --disable-sync --no-sandbox --disable-plugins --disable-translate --dns-prefetch-disable --data-reduction-proxy-server-experiments-disabled --disable-bundled-ppapi-flash --no-pings --no-first-run --chrome-frame --disable-session-crashed-bubble --disable-web-security --user-data-dir=$chrome_data_dir --enable-logging=stderr --window-size=1920,1080 --window-position=0,0 --app=$URL' >> /usr/local/bin/browser1.sh
chmod +x /usr/local/bin/browser1.sh

echo '#!/bin/sh' > /usr/local/bin/browser2.sh
echo >> /usr/local/bin/browser2.sh
echo 'NETWORK_CHECK=router' >> /usr/local/bin/browser2.sh
echo 'URL=http://live.glpa.org/timer/' >> /usr/local/bin/browser2.sh
echo >> /usr/local/bin/browser2.sh
echo 'echo -n waiting for network' >> /usr/local/bin/browser2.sh
echo 'while ! ping -c 1 $NETWORK_CHECK > /dev/null 2> /dev/null ; do' >> /usr/local/bin/browser2.sh
echo '  echo -n .' >> /usr/local/bin/browser2.sh
echo '  sleep 1' >> /usr/local/bin/browser2.sh
echo 'done' >> /usr/local/bin/browser2.sh
echo 'echo done!' >> /usr/local/bin/browser2.sh
echo >> /usr/local/bin/browser2.sh
echo 'echo -n waiting for server' >> /usr/local/bin/browser2.sh
echo 'while ! wget -q -O /dev/null $URL ; do' >> /usr/local/bin/browser2.sh
echo '  echo -n .' >> /usr/local/bin/browser2.sh
echo '  sleep 1' >> /usr/local/bin/browser2.sh
echo 'done' >> /usr/local/bin/browser2.sh
echo 'echo done!' >> /usr/local/bin/browser2.sh
echo >> /usr/local/bin/browser2.sh
echo '# avoid race with Xorg startup' >> /usr/local/bin/browser2.sh
echo 'sleep 1' >> /usr/local/bin/browser2.sh
echo >> /usr/local/bin/browser2.sh
echo '# move the window to appropriate location' >> /usr/local/bin/browser2.sh
echo 'xdotool search --sync --onlyvisible --name simplebrowser.py windowmove 1920 0 windowsize 1920 1080 &' >> /usr/local/bin/browser2.sh
echo >> /usr/local/bin/browser2.sh
echo '# start simplebrowser' >> /usr/local/bin/browser2.sh
echo 'exec nice -n 1 simplebrowser.py $URL' >> /usr/local/bin/browser2.sh
chmod +x /usr/local/bin/browser2.sh

echo '[Unit]' > /etc/systemd/system/startx.service
echo 'Description=Start Xorg' >> /etc/systemd/system/startx.service
echo >> /etc/systemd/system/startx.service
echo '[Service]' >> /etc/systemd/system/startx.service
echo 'ExecStart=-/usr/bin/startx -- :0 -nolisten tcp vt2' >> /etc/systemd/system/startx.service
echo 'ExecStopPost=-/usr/bin/pkill -9 -U browser evilwm' >> /etc/systemd/system/startx.service
echo 'User=browser' >> /etc/systemd/system/startx.service
echo 'Restart=always' >> /etc/systemd/system/startx.service
echo 'RestartSec=1' >> /etc/systemd/system/startx.service
echo 'StartLimitInterval=10s' >> /etc/systemd/system/startx.service
echo 'StartLimitBurst=10' >> /etc/systemd/system/startx.service
echo >> /etc/systemd/system/startx.service
echo '[Install]' >> /etc/systemd/system/startx.service
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/startx.service

systemctl enable startx.service

echo '[Unit]' > /etc/systemd/system/browser1.service
echo 'Description=Browser 1' >> /etc/systemd/system/browser1.service
echo 'After=startx.service' >> /etc/systemd/system/browser1.service
echo 'Requires=startx.service' >> /etc/systemd/system/browser1.service
echo >> /etc/systemd/system/browser1.service
echo '[Service]' >> /etc/systemd/system/browser1.service
echo 'ExecStart=-/usr/local/bin/browser1.sh' >> /etc/systemd/system/browser1.service
echo 'User=browser' >> /etc/systemd/system/browser1.service
echo 'Environment=DISPLAY=:0' >> /etc/systemd/system/browser1.service
echo 'Restart=always' >> /etc/systemd/system/browser1.service
echo 'RestartSec=1' >> /etc/systemd/system/browser1.service
echo 'StartLimitInterval=10s' >> /etc/systemd/system/browser1.service
echo 'StartLimitBurst=10' >> /etc/systemd/system/browser1.service
echo >> /etc/systemd/system/browser1.service
echo '[Install]' >> /etc/systemd/system/browser1.service
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/browser1.service

systemctl enable browser1.service

echo '[Unit]' > /etc/systemd/system/browser2.service
echo 'Description=Browser 2' >> /etc/systemd/system/browser2.service
echo 'After=startx.service' >> /etc/systemd/system/browser2.service
echo 'Requires=startx.service' >> /etc/systemd/system/browser2.service
echo >> /etc/systemd/system/browser2.service
echo '[Service]' >> /etc/systemd/system/browser2.service
echo 'ExecStart=-/usr/local/bin/browser2.sh' >> /etc/systemd/system/browser2.service
echo 'User=browser' >> /etc/systemd/system/browser2.service
echo 'Environment=DISPLAY=:0' >> /etc/systemd/system/browser2.service
echo 'Restart=always' >> /etc/systemd/system/browser2.service
echo 'RestartSec=1' >> /etc/systemd/system/browser2.service
echo 'StartLimitInterval=10s' >> /etc/systemd/system/browser2.service
echo 'StartLimitBurst=10' >> /etc/systemd/system/browser2.service
echo >> /etc/systemd/system/browser2.service
echo '[Install]' >> /etc/systemd/system/browser2.service
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/browser2.service

systemctl enable browser2.service

echo >> /boot/config.txt
echo '### GLPA Settings ###' >> /boot/config.txt
echo '[HDMI:0]' >> /boot/config.txt # info slate output
echo 'hdmi_drive=2' >> /boot/config.txt # HDMI mode (allow sound)
echo 'hdmi_group=1' >> /boot/config.txt # CEA
echo 'hdmi_mode=16' >> /boot/config.txt # 1080p
echo 'hdmi_force_hotplug=1' >> /boot/config.txt # activate output even if hotplug is not asserted
echo 'hdmi_force_mode=1' >> /boot/config.txt # removes all mode options except the one we picked
echo 'hdmi_ignore_edid=0xa5000080' >> /boot/config.txt # apparently the VGA input often likes to assert 1024x768... argh
echo 'disable_overscan=1' >> /boot/config.txt # no black border of dead pixels, please
echo '[HDMI:1]' >> /boot/config.txt # paper timer output
echo 'hdmi_drive=2' >> /boot/config.txt # HDMI mode (allow sound)
echo 'hdmi_group=1' >> /boot/config.txt # CEA
echo 'hdmi_mode=16' >> /boot/config.txt # 1080p
echo 'hdmi_force_hotplug=1' >> /boot/config.txt # activate output even if hotplug is not asserted
echo 'hdmi_force_mode=1' >> /boot/config.txt # removes all mode options except the one we picked
echo 'hdmi_ignore_edid=0xa5000080' >> /boot/config.txt # apparently the VGA input often likes to assert 1024x768... argh
echo 'disable_overscan=1' >> /boot/config.txt # no black border of dead pixels, please
computer/raspberry_pi_video_setup_v2.txt · Last modified: 2019/10/19 13:48 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS