I've been using my Pi now for a couple months without any issues but this latest problem has me baffled. I'm trying to connect my Pi / Python / Pygame to an existing display using the composite out. When I start my program the display goes black (like its supposed to) but no graphics ever appear. I waited a good minute or so to see if it just needed to catch up. When I finally gave up on it I pressed CTRL + C and my graphics appeared! Anyone have thoughts as to why I have to "jump start" my program? I'm using the code from Adafruit to select the frame buffer
http://learn.adafruit.com/pi-video-outp ... ramebuffer
Code: Select all
drivers = ['fbcon', 'directfb', 'svgalib']
found = False
for driver in drivers:
# Make sure that SDL_VIDEODRIVER is set
if not os.getenv('SDL_VIDEODRIVER'):
os.putenv('SDL_VIDEODRIVER', driver)
try:
pygame.display.init()
except pygame.error:
print 'Driver: {0} failed.'.format(driver)
continue
found = True
break
Scott