The RetroFlag GPiCase 2 CM4 safe shutdown script will automatically switch between the LCD display and HDMI output when using the dock.
Make sure that the GPiCase2 patch is installed.
If the patch file is not installed and you install the script first, you will lose the “config.txt” file, which will cause the CM4 to fail to boot.
Click the link to download the patch:Download GPiCase2 patch.
- Safe shutdown: Directly turning off the power switch will trigger the script for safe shutdown.
- If the device is not connected to the dock when it is powered on, the video signal will display on the 3-inch LCD. When the device is connected to the base when it is powered on, the video signal will switch to HDMI output.
- Make sure you are connected to the internet.
- Make sure your keyboard is connected.
- Press F4 to enter the terminal.
- In the terminal, type the command below (This is case sensitive):
wget -O - "https://raw.githubusercontent.com/RetroFlag/GPiCase2-Script/main/retropie_install_gpi2.sh" | sudo bash
- Make sure you are connected to the internet.
- Make sure your keyboard is connected.
- Press F4, and then press ALT-F2 to enter the terminal.
- User: root Password: recalboxroot
- In the terminal, type the command below (This is case sensitive):
wget -O - "https://raw.githubusercontent.com/RetroFlag/GPiCase2-Script/main/recalbox_install_gpi2.sh" | bash
- Make sure you are connected to the internet.
- Make sure your keyboard is connected.
- Enter terminal. For information on how to access the termina, visit this link: https://wiki.batocera.org/access_the_batocera_via_ssh
- User: root Password: linux
- In the terminal, type the command below (This is case sensitive):
wget -O - "https://raw.githubusercontent.com/RetroFlag/GPiCase2-Script/main/batocera_install_gpi2.sh" | bash
Example for lakkatv: https://github.com/marcelonovaes/lakka_nespi_power