#!/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") | |