Repository navigation
Commit b6d71c9
committed
Preload system SDL2 to use muOS mali driver
pygame-ce's PyPI wheel bundles a headless SDL2 that only has the
offscreen/dummy video drivers. On muOS devices, this results in an
invisible app — pygame renders to memory, the framebuffer never updates,
and users are stuck on the muOS "Loading Application" splash.
muOS devices ship their own SDL2 2.28.5 at /usr/lib/libSDL2-2.0.so.0
with a custom mali video driver for the Mali GPU. On some setups
(e.g. RG35XXH) a SETUP_APP hook LD_PRELOADs libmustage.so which pulls
in this system SDL2, making it work by accident. On others (RG35XX Pro,
RG40XXH) libmustage.so is missing, so the bundled headless SDL2 gets
used and the screen stays blank.
Fix: explicitly LD_PRELOAD /usr/lib/libSDL2-2.0.so.0 from the launch
script when present. pygame then uses muOS's mali-capable SDL2
regardless of libmustage.so availability.
Also bundles libdrm.so.2/libgbm.so.1 (belt-and-braces — if a device
ever needs kmsdrm instead of mali, SDL can dlopen them from the
PyInstaller temp dir) and logs the active SDL video driver at startup
to make future display issues easier to diagnose.
Bumps version to 4.0.5. Fixes #53 — confirmed on RG35XXH, RG35XX Pro,
and RG40XXH.1 parent 312a0f7 commit b6d71c9
4 files changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | | - | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
0 commit comments