nasty
This commit is contained in:
@@ -43,6 +43,7 @@ USE_FB: bool = _args.framebuffer or bool(os.environ.get('JARVIS_FB'))
|
||||
if USE_FB:
|
||||
# SDL2 env vars must be set before pygame.display.init()
|
||||
os.environ.setdefault('SDL_VIDEODRIVER', 'kmsdrm')
|
||||
os.environ.setdefault('SDL_RENDER_DRIVER', 'software')
|
||||
os.environ.setdefault('SDL_FBDEV', os.environ.get('JARVIS_FBDEV', '/dev/fb0'))
|
||||
# Prevent SDL trying to open a mouse device on the framebuffer
|
||||
os.environ.setdefault('SDL_NOMOUSE', '1')
|
||||
|
||||
Reference in New Issue
Block a user