Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5185

Raspberry Pi OS • Re: Pygame/KMSDRM driver problem on kernel 6.6.20

$
0
0
But how do I tell Pygame/SDL which card to use?
SDL has the SDL_HINT_KMSDRM_DEVICE_INDEX hint to let it choose which card/device to open.
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



Viewing all articles
Browse latest Browse all 5185

Trending Articles