Pi 5 ES coming up on local LCD not HDMI
-
Lot's of old posts about configuring a Pi system with an LCD and HDMI. None of which applies to the Pi 5 on bookworm. Seems control was turned over to the kernel in Bullseye/bookworm, so I've yet to find anything that works for manual control. Looking for insight/thoughts/advice.
This Pi 5 was done as a Raspberry Pi OS light install with retropi manually installed. And its worked perfectly until I added the official 7" Pi touch screen. Now ES loads on the LCD and not the attached HDMI TV.
But here's the thing, my Retro Pi 5 does fine until emulationstation loads. By fine, I mean it does all its output to the HDMI during boot (loading output, RetroPi splash screen, etc) then it switches to the LCD with ES on it once ES loads. If I shut down, the text notification comes up on the TV (HDMI) with ES still up on the LCD. And it will even start running the down output on the HDMI, with ES still up on the LCD. Of course, only until ES shuts down. Then all output is on the HDMI.
So, in short, all output from the Pi, aside from ES, is correctly on the HDMI screen. The behavior I want is ALL output on the TV (HDMI) when it's hooked up, and all output on the LCD when no HDMI is hooked up. All that is working as expected, aside from ES it seems.
I don't think the problem is Pi 5 specific so much as bookworm/KMS specific. But I'm finding next to nothing about how to control displays on a PI under bookworm not running X. And since I have no desktop, just RetroPi, no X server is running (from what I understand).
EDIT: I've found a way to kinda manually force what I want "display_auto_detect=0" (instead of =1) in /boot/firmware/config.txt. With this set, the Pi display never even powers up, and it all works as it did before I hooked up the display (everything is 100% on the HDMI output). But what I RELLY want is this behavior (LCD off) when HDMI is connected, and LCD on if no HDMI is connected. So that's the real answer I'm now looking for.
-
Unless you're running under X/Desktop/Wayland, there's no control over the which display comes 'first' at runtime. You can use
config.txt
to enable/disable the LCD (is it a DSI display ?) or HDMI, but that requires a reboot.
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.