pygameraspberry-pidirectfb

Strange Symbol on center of screen using PyGame with DirectFB


I am using pygame to draw a GUI on tiny SPI LCD mount as /dev/fb1 via directfb.

Whatever I draw, there is a strange symbol display in center of screen. pi logo with strange symbol

green lines with strange symbol

mark of symbol

If I run df_matrix, the strange symbol does not appear.

df_matrix without symbal

If I draw in pygame, then manually open /dev/fb1, write screen data, the strange symbol does not appear.

manual draw to fb without symbol

So, how to get rid of this annoying symbol?


Solution

  • To isolate the problem, I have tried many solutions, upgrade pygame from 1.9.6 to 2.0.0.dev12, invalid. upgrade sdl1 to sdl2, invalid. recompile and install directfb 1.7.7, invalid. invoke pygame.mouse.set_visible(False), invalid. export SDL_NOMOUSE=1, invalid.

    finally, as Kingsley and Cribber suggested, it must be a mouse cursor, so I dig out the right solution:

    add no-cursor to /etc/directfbrc