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
```

### 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.


### Other References

*  [cmdline.txt](https://www.raspberrypi.org/documentation/configuration/cmdline-txt.md)


