Hi,
I’m trying to set up a BPI-R2 with frank-w Debian Bullseye image and frank-w Kernel bpi-r2.5.10. A TFT touch panel is connected to the SPI port which works fine (Adafruit, HX8357D, fbtbt).
Problem: A HDMI monitor is connected sometimes for maintenance purposes. If it is connected at boot time, it gets fb0 and the SPI display gets fb1. Always. Everything OK. If HDMI monitor is not connected at boot time, the SPI display gets fb0 and the console is writing to that display.
What I want is pygame to have exclusive access to the SPI display framebuffer and the console grab the HDMI monitor only if it’s connected. And if it’s not connected, I don’t want a local console at all (headless).
I already tried
- to compile one or the other framebuffers as a module and tried to load that modules at apropriate time in boot progress.
- different settings on the start line (fbcon:mode=1…)
- assignments of framebuffers to devices in device tree
Nothing worked. Does anybody have an idea how to prevent the console from messing up my SPI display? Thanks for every hint.
Stephan