Misc. Notes === ###### 2019-11-01 * [Raspberry Pi Configuration](https://www.raspberrypi.org/documentation/configuration/) Custom Splash Screen --- [src](https://yingtongli.me/blog/2016/12/21/splash.html) In `/boot/config.txt`, add: ``` disable_spash=1 ``` optionally: ``` disable_overscan=1 ``` --- In `/boot/cmdline.txt`, add: ``` logo.nologo consoleblank=0 loglevel=1 quiet ``` --- By hand run ``` systemctl disable getty@tty1 ``` --- ``` apt install fbi ``` Create `/etc/systemd/system/splashscreen.service`: ``` [Unit] Description=Splash screen DefaultDependencies=no After=local-fs.target [Service] ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /opt/splash.png StandardInput=tty StandardOutput=tty [Install] WantedBy=sysinit.target ``` With `/opt/splash.png` --- Might need to kill `fbi` when starting the kiosk. ### Packages ``` sudo apt install -y sox espeak mplayer ffmpeg alsa-utils ``` ### Sound Use `raspi-config` to force audio through the 3.5mm audio jack. There's an issue with the HDMI 'going to sleep' and cutting off the first two seconds of the audio if nothing is being played through it. The 3.5mm jack seems to not have that issue. --- The 3.5mm jack has a lot of noise on the line. The fix looks to be using a USB speaker. For now we'll go with the 3.5mm jack but this will eventually need replacement. ### Monitor To get monitor resolution: ``` fbset -s ``` ### System Setup Make sure the following are installed: ``` apt install -y espeak mplayer ``` --- Enable ssh server (for debugging and setup): ``` systemctl enable ssh systemctl start ssh ``` --- Run `raspi-config` and select option `4` for the screen (640x480 @ 60Hz): ``` raspi-config ``` --- Make sure to manually set volume on the waveshare screen (default is set at 50) from the buttons provided on the left. --- Remove `libreoffice` to free up space (around 0.5Gb): ``` apt remove -y libreoffice libreoffice-base-core libreoffice-common libreoffice-core libreoffice-help-common libreoffice-help-en-gb libreoffice-help-en-us libreoffice-l10n-en-gb libreoffice-style-colibre libreoffice-style-tango apt autoremove -y --purge ``` ### Other References * [raspberrypi.org: cmdline.txt](https://www.raspberrypi.org/documentation/configuration/cmdline-txt.md) * [raspberrypi.org: 'How do I find out the display resolution?'](https://www.raspberrypi.org/forums/viewtopic.php?t=19817) * [elinux.com: RPiconfig](https://elinux.org/RPiconfig)