Make a Game Console Using Your Raspberry Pi!
149
16/02/2022
Run PuTTY on your computer and enter in the raspberry pi IP address into the Host Name section. Click yes to acknowledge that you trust the IP address entered.
You will then be prompted to login. The default login credentials will be
Username: piPassword: raspberry
Once these credentials have been entered, you can now start modifying the pi. The first step is to download the drivers that will allow the 3.2 inch screen work.
Type the following commands; I recommend copying and pasting them into PuTTY using ctrl+C and right click.
git clonehttps://github.com/swkim01/waveshare-dtoverlays.gitsudo cp waveshare-dtoverlays/waveshare32b.dtbo /boot/overlays/Now to edit the boot config file:
sudo nano /boot/config.txtDelete the # before disable_overscan=1 and set it to
disable_overscan=0Then delete all the #'s before the overscan values and set them all to -20
overscan_left=-20overscan_right=-20overscan_top=-20overscan_bottom=-20Delete the # before hdmi_force_hotplug=1
hdmi_force_hotplug=1Navigate down to hdmi_mode=1 and delete the # before it. Underneath this line type hdmi_mode=87:
hdmi_mode=1hdmi_mode=87Next we will overclock the pi and adjust the settings to maximize performance.
WARNING: Changing some of these settings may void warranty and may cause your raspberry pi to overheat. I have used the following settings for a long time now and haven't had any issues but I can't guarantee the safety of your raspberry pi.
Navigate down to the arm_freq=800 line, remove the # and change the value to 1200. Add the following lines so it looks like this:
arm_freq=1200core_freq=500gpu_freq=500sdram_freq=500over_voltage=2temp_limit=85Next remove the # in front of
dtparam=spi=onNavigate down to the bottom of the file and add the following two lines:
dtoverlay=waveshare32b:rotate=270,speed=92000000,fps=60avoid_warnings=1Hit CTRL+X to exit the config file and hit 'Y' when prompted to save the changes. Hit Enter when prompted for what file name to write.
Now reboot the raspberry pi by typing the command:
sudo rebootOnce the pi has rebooted, run PuTTY again (the last session will disconnect) and enter in the IP address again. This IP might change, so double check it by navigating back to the 'SHOW IP' screen in the retropie configuration settings.
Once PuTTY is connected again, login using pi/raspberry and enter the following command:
ls /dev/fb*you should see dev/fb0 /dev/fb1
if you don't see /dev/fb1 , something has gone wrong and you will need to format the SD card and start again
If you do seedev/fb0 /dev/fb1, enter the following commands one at a time, giving sufficient time for each step to complete:
sudo apt-get install cmakegit clone https://github.com/tasanakorn/rpi-fbcpcd rpi-fbcp/mkdir buildcd build/cmake ..makesudo install fbcp /usr/local/bin/fbcpNow we need to edit one more file. Enter:
sudo nano /etc/rc.localNavigate down to the line above “exit 0” and enter the following:
/usr/local/bin/fbcp &Save the file by hitting CTRL+X, Y, then Enter.
Now reboot the device using:
sudo rebootWhen the pi reboots, the touchscreen should now be displaying Retropie. No need for an HDMI monitor anymore!