retroflag / gpicase2-script Goto Github PK
View Code? Open in Web Editor NEWRetroFlag GPiCase 2 CM4 Safeshutdown with automatically switch LCD and HDMI display script
License: MIT License
RetroFlag GPiCase 2 CM4 Safeshutdown with automatically switch LCD and HDMI display script
License: MIT License
I have no way of connecting a keyboard and tether on my no wireless cm4 so I am working through the recalbox install script and performing each step manually. I also don't have a dock, can I skip the lcdfirst and lcdnext scripts if I am only using the gpi built in screen? Or are these scripts required?
This is running on a Raspberry Pi Zero 2W, RetroPie, and GPi Case 2W.
The config.txt
is edited per the official display patch.
$ raspi-gpio get 18,19
GPIO 18: level=0 fsel=2 alt=5 func=PWM0
GPIO 19: level=0 fsel=2 alt=5 func=PWM1
Installing retropielcdfirst.sh
, retropielcdnext.sh
will remove speaker functionality on the GPi Case 2W, which seems to pull on pin 18. Plugging in headphones with the Raspberry Pi installed in the case will result in the right speaker being non-functional.
Are the LCD scripts even necessary here? We would assume once someone puts the Pi into the case, it is very likely they will keep the Pi there; if they were to remove the Pi, it seems very likely they will reflash the SD card anyways.
Removing all references to the LCD scripts in retropie_SafeShutdown_gpi2.py
and retropie_install_gpi2.sh
works fine.
I am using GPi Case 2 with recalbox 8 flashed on eMMC.
Everything is working like expected except Audio on HDMI while the case is connected to dock.
Replicated Recalbox 8.0, Replicated RetroPie 4.7.1, clean installs.
Process:
Install Distro
Install Case Patch.
Confirm Dock is working while using config_HDMI file. displays and runs correctly without any issue
Install Safe Shutdown script from github
Dock no longer displays output once Emulationstation is running. Bootup and Shutdown messages display correctly. Removing gpi from dock displays video and sound on the LCD.
Dock does not display any image apart from bootup image when shut down / powering on when connected. All testing has been done from a complete shutdown and power cycle while connected.
Config Files are stock included with the Case Patch, no alterations made.
Safe shutdown script has been installed both when using the config_hdmi as the configuration file and when the standard config.txt is used. Testing has been done on fresh installs of RecalBox and Retropie
Issue still occurs when changing the config files between config.txt, config_hdmi and config_lcd.
I don't. Have max or windows so how do I run the script using Linux?
i added all config.txt in /boot/ i installed the script, moved on from my rpi3 to CM4, that has no wifi, started up, and see " * failed to add service - already in use? "
im a regular guy, just want to start my GPiCase2 with RetroPie, but that seems to be hard to do?
Recalbox is easy becase script is already added in the installation but RetroPie...?!
i might be stupid but, i need to download a patch, and add the files to /boot (no linux how-to, just windows and max so i assume it is just to add in boot folder), then install the script for automatic shutdown.
Yes automatic shotdown works, but i cant enter/start Emulationstation.... how hard should it be?!?! Someone?!
A few days ago Recalbox 8.1 was released, is it compatible with the GPI case 2 script or do I need to wait for the update?
Sorry i am not very famialiar with the audio system, when i run this script i lose audio capability
wget -O - "https://raw.githubusercontent.com/RetroFlag/GPiCase2-Script/main/retropie_install_gpi2.sh" | sudo bash
after batocera v33
start_x.elf and fixup_x.dat files don't exist
You need to edit all config files (config, lcd config, hdmi config)
If not modified, booting will fail
add this ↓
start_file=start4x.elf
fixup_file=fixup4x.dat
Like switching the LCD to HDMI it would be nice to have a switch from internal speaker to HDMI speaker.
Hi,
thanks for this phenomenal package. (Case + dock)
I would like to have my own software running on a Compute Module 4 in GPI Case 2, and be able to access DPad, have sound over the speakers, and output to the display.
Can you please provide a short howto what needs to be done? Can the patches available for Retropie just be used?
Judging on reddit posts this could be also interesting for many others, and a doc could make the GPI Case 2 more interesting than other cases for those people.
Thank you,
Ray
I've installed recalbox 9.2.2 in cm4 with emmc, but didnt get built in screen output. I can hear sound but the retroflag scripts in Recalbox 9.2.2 are not switching from hdmi to builtin screen.
Is it possible for the gpi case 2 to report the current battery level?
Hi,
i have a gpi case 2 installed with cm4. i installed raserry bullseye.
i created a program written in python3 that i can use the case as mp3 player.
After 15 mins the device disables display and audio if no input.
Is it possible to disable the powersave-feature of the case with kernel overlay or gpio config?
Thanks
Gunnar
I've seen this happen twice now with two different CM4 modules. I'm working with Retropie v.4.7.1 on a CM4001000 and a CM4102032.
CM4001000
While on the official IO board, copied and installed the patch, installed the safe shutdown script, installed the CM4 into the GPiCase2 and everything worked great. Removed the CM4 from the case, removed the SD card and mounted it to turn off the patch to switch it back to HDMI output, put it back on the official IO board, started the CM4 and then was stuck in an endless reboot loop. Mounted the SD card on another machine and examined the boot partition and saw the config.txt was missing.
CM4102032
While on the official IO board, copied the patch over but did not run the install batch file yet as I was still working on some stuff connected to a TV, installed the safe shutdown script, did a reboot and got stuck in an endless reboot loop before I could put it in the GPiCase2. Was able to put the the CM4 in usb boot mode, looked at the boot partition and again the config.txt was missing. Restored the config.txt from a backup, ran the install batch for the patch, put it in the GPiCase2 and it is working again.
Am I doing something wrong here or out of order? I've followed the steps outlined in README.md:
"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."
Should I be able to move the CM4 back and forth between the 2 devices as long as I'm installing and uninstalling the patch which sets up the display output? I'm not blocked by this but I'm basically in a spot where I can't throw the CM4 back onto the official IO board without this happening. Luckily I don't plan on doing this now in the future since I'm using a CM4102032 with wifi, but anyone with a non wifi compute module 4 I worry will run into this when they need to go back to an IO board to do some maintenance or file management.
I haven't had a chance to dig into it and try to debug it but clearly something about this safe shutdown script or the way I'm using it and booting up on an IO board is causing something to fail and wipe out the config.txt after having it happen twice on 2 different modules.
I'd be interested to hear if anyone else has experienced this. I'm willing to provide any additional info needed and I still have the CM4001000 and SD setup in a way were I can reproduce this again fairly easily.
GPI Patch and Safe Shutdown Script break a fresh installation of Recalbox 8.1.1 - figured out that recalbox now natively supports the GPI Case 2 + CM4. Patch and the Safe Shutdown Script are no longer needed.
With the Retropie Image I have no Audio.
I installed the Patch and later the Safe Shutdown.
What should it do?
Batocera V33 and V34 are having no HMDI audio, when the script is installed.
Only showing USB analog audio when it is connected to the dock
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.