This guide provides step-by-step instructions on setting up the Game-HAT from Waveshare.
Its basically a setup-guide for the installation of a headless RetroPie-build but also contains additional
instructions / settings / recommondations to greatly enhance the handheld-aspect of the system.
This steps are necessary to get the rpi up and running properly.
- Assemble WaveShares Game-HAT
- Download the latest RetroPie image to your computer
- Flash the image to the sdcard via etcher / dd / win32diskimager
- (Optional) Create a ssh file on sdcard/boot to enable the secure shell server
- (Optional) Create a wpa_supplicant.conf within the same directory to enable headless wifi
- Insert the sdcard into the raspberry pi and power it on
This is an example configuration for the wpa_supplicant application - change it to your needs.
country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="set ssid here"
psk="set pre-shared key here"
}
These steps are required to get the Game-HAT hardware working properly.
ssh pi@<ip-adress> (the default RetroPie-password is "raspberry")
Download the drivers from www.waveshare.com
wget https://www.waveshare.com/w/upload/b/b4/Game-HAT-180720.tar.gz
tar -xvzf Game-HAT-180720.tar.gz
cd Game_HAT
sudo ./Game-HAT
... and thats it - now you've got a properly working game-hat handheld. If you're interested in further steps in order to optimize some aspects of the device, follow this guide until the end.
These steps enhance the overall experience of the system. The previous steps are targeted towards increased usability, boot- update- and compile-times, etc:
passwd
Launch raspi-config
select advanced options
and expand filesystem
sudo apt-get update sudo apt-get upgrade sudo reboot
Open fstab file using sudo nano /etc/fstab
- append the following line:
/dev/sda1 /media/usb1 auto defaults 0 0
In retropie setup script > Configuration / tools > autostart > Start EmulationStation at Boot
In retropie setup script > Configuration / tools > esthemes > Install ruckage/famicom-mini
sudo apt-get install --no-install-recommends xserver-xorg sudo apt-get install --no-install-recommends xinit sudo apt-get install xfce4 xfce4-terminal
The themes are stored in: /etc/emulationstation/themes/
systemd-analyze blame
- sudo nano /boot/config.txt
- add "dtoverlay=pi3-disable-bt" to the bottom of the file
- add "dtoverlay=disable-bt" for newer versions
- save and close your editor of choice
- sudo systemctl disable hciuart.service
- sudo systemctl disable bluealsa.service
- sudo systemctl disable bluetooth.service
- sudo systemctl stop smbd
- sudo systemctl disable smbd
- sudo systemctl stop nmbd
- sudo systemctl disable nmbd