You will need to restart the browser or the whole system after changing the "default sink" with pactl.
Remember that later when you unhook the HDMI monitor this number can change, so you may need to
repeat these steps later on.
Install the kiosk-mode script
Using the browser on the Pi , download the kiosk mode script from GitHub (https://adafru.it/PfE). Then,
open up a terminal window and run bash Downloads/kiosk-mode.sh to set up the Chromium browser in
kiosk mode.
(Alternatively, you can run wget
https://github.com/adafruit/Adafruit_Learning_System_Guides/raw/master/Raspberry_Pi_Braincraft_Radio/setupkiosk.sh in a Pi terminal to download the script, then bash setup-kiosk.sh in the same directory)
Restart the Pi, either via the desktop shutdown menu or sudo reboot in a terminal.
When you restart, you should get a full screen YouTube window showing the lofi hip hop radio in the
upper left corner, and hear the music streaming on your speakers. However, the display will still be on
your HDMI monitor. Check that the controls work (left/right to change station, up/down to adjust volume)
before moving on to the next steps.
If you don't hear anything, make sure you have the audio on/off switch set to "on" and double-check
the sound card number for pacmd.
Configure the BrainCraft HAT, part 2
It's time to set up the display. After performing this step, you won't be able to connect your Pi to a HDMI
monitor. Don't worry, you can reverse this step if you need to!
Head back to the main guide's Display Module Install page (https://adafru.it/Pfa) and follow the "1.54 inch
TFT kernel module" steps.
Before restarting, unplug the HDMI monitor cable.
When you restart, the heroine and her cat should appear on the LCD of the HAT. If the sound stops after
this step, use aplay -l to check the sound card index again and pacmd set-default-sink # (where # is the