summaryrefslogtreecommitdiff
path: root/py/functest.py
blob: 24a9a859d71c5abb01ac0c7152d2e43ad0acf28a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python3.4

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")