summaryrefslogtreecommitdiff
path: root/py/trans-test.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/trans-test.py')
-rwxr-xr-xpy/trans-test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/trans-test.py b/py/trans-test.py
index e80802b..8c1f964 100755
--- a/py/trans-test.py
+++ b/py/trans-test.py
@@ -9,10 +9,10 @@ card = pykms.Card()
card = 0
card = pykms.Card()
-
-conn = card.get_first_connected_connector()
+res = pykms.ResourceManager(card)
+conn = res.reserve_connector()
+crtc = res.reserve_crtc(conn)
mode = conn.get_default_mode()
-crtc = get_crtc_for_connector(conn)
planes = []
for p in card.planes: