blob: 624f3202c2753fbefb08661f8eaea60f986e3584 [file] [log] [blame]
#!/usr/bin/python3
import pykms
card = pykms.Card()
conn = card.get_first_connected_connector()
mode = conn.get_default_mode()
fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
pykms.draw_test_pattern(fb);
crtc = conn.get_current_crtc()
crtc.set_mode(conn, fb, mode)
print("OK")