SDL has the SDL_HINT_KMSDRM_DEVICE_INDEX hint to let it choose which card/device to open.But how do I tell Pygame/SDL which card to use?
You can automate some of it by using something like kmsxx, which lets you query the DRM Connectors that are present on the system and what is their names (so you could check which one is DSI vs. HDMI, see how kmsprint shows things in order to get an idea) and has Python bindings. kmsxx is already packaged for RaspiOS (latest) and the Python bindings are in the python3-kms++ package.
[1] https://github.com/tomba/kmsxx
Statistics: Posted by mitu — Mon Mar 18, 2024 4:31 pm