diff options
-rwxr-xr-x | tests/kmstest.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/kmstest.py b/tests/kmstest.py index 62f0376..e528b90 100755 --- a/tests/kmstest.py +++ b/tests/kmstest.py @@ -234,6 +234,15 @@ class KMSTest(object): else: return req.commit(0) + def atomic_plane_disable(self, plane, sync=True): + req = pykms.AtomicReq(self.card) + req.add(plane, { "FB_ID": 0, 'CRTC_ID': 0 }) + + if sync: + return req.commit_sync() + else: + return req.commit(0) + def atomic_planes_disable(self, sync=True): req = pykms.AtomicReq(self.card) for plane in self.card.planes: |