fbcp stopped working (solved)
-
Since my last update somewhere last week, I need to restart fbcp after starting a game to see game output on my adafruit PiTFT (on fb1). I tried using "killall fbcp; fbcp &" in runcommand-onstart.sh but that doesn't do the trick, no output until I manually restart the fbcp process after the game has loaded.
Did something recently change in the way RetroPie addresses the fb0/fb1 device on gameload? Do I need to reconfigure RetroArch for my fb1 device?
-
One thing that changed is by default the framebuffer is now 32bit (Raspbian Kernel change). RetroPie only messes with the framebuffer if you switch video mode or framebuffer res, so if you were not doing that it wouldn't have been retropie. If you were, it could be related to the fact we switched back to 16 bit depth after, which possibly could cause an issue. This is changed now in runcommand and it will return to the depth it was before launching.
Your problem could be related to either of these - update retropie-setup and see if that changes anything. if not, you could try forcing the framebuffer depth to 16 in /boot/config.txt in case it's related to that. It could also be related to another upstream Kernel change.
-
Thx for your quick reply. I forgot to mention that emulationstation works like a charm, so whatever fb0 is set to, fbcp is able to copy for es. The problem starts as soon as I launch a (any) game. The screen turns black and only after restarting fbcp I see the game. I updated all retropie packages, including retropie setup (it says I'm on 4.1.4, last commit 3 hours ago) and I tried setting framebuffer_depth to 16 in config.txt but neither resolved the problem.
-
Perhaps it's related to a kernel/firmware change - you can rollback kernel/firmware manually to see if you can find where it broke (If it is related to this - it could be a number of things)
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=19415
Backup first of course.
-
Reverting as far as end of august 818a860 doesn't resolve the problem. Will try reverting RetroPie next. I have a gut feeling it was introduced in the update to 4.1.x, 4.0.x all worked fine.
I checked out tag 4.0.2 in ~pi/RetroPie-Setup, but how do I downgrade the contents of /opt/retropie? Running sudo ./retropie_setup updates all packages to latest version, including retropie_setup :/
-
@mrvanes said in fbcp stopped working:
I have a gut feeling it was introduced in the update to 4.1.x, 4.0.x all worked fine.
I had the same problem after this update, I have been trying to solve it without success. I'm using a custom LCD board so didn't ask as the hardware is unique to me, but if this problem is generic for all LCDs maybe is due to the update.
For me the LCD works fine in console, in the emulationstation menu and in the X11 desktop, the problem only appears when I try to run an emulator. For me restarting the fbcp also doesn't help.
What I have found is that if I force the HDMI resolution to 320x240 I lose image on both the LCD and the HDMI, but if I force the resolution to 640x480 I only lose the image on the LCD and the HDMI is fine...
edit, SOLUTION: as BuZz said it was related to the video mode switch. I solved it by editing the runcommand.sh script so the mode_switch() function doesn't do anything, the easiest way was to just put a "return 1" at the beginning of the function. Anyway, I'm sure there is a more elegant and premanent solution to this
-
I can confirm that ballanux' fix solves my problem. Thx!!
Eagerly anticipating a more elegant and durable fix.edit: Problem permanently fixed: https://github.com/RetroPie/RetroPie-Setup/issues/1767
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.