pikvm/pikvm#1501: Switch: Option to disable HDMI dummy plug

This commit is contained in:
Maxim Devaev
2025-05-03 03:54:05 +03:00
parent 69d254d80e
commit 7d7edb1c03
10 changed files with 139 additions and 17 deletions

View File

@@ -41,6 +41,7 @@ from .proto import BodySetBeacon
from .proto import BodyAtxClick
from .proto import BodySetEdid
from .proto import BodyClearEdid
from .proto import BodySetDummy
from .proto import BodySetColors
from .proto import BodySetQuirks
@@ -164,6 +165,9 @@ class Device:
return self.__send_request(Header.SET_EDID, unit, BodySetEdid(ch, edid))
return self.__send_request(Header.CLEAR_EDID, unit, BodyClearEdid(ch))
def request_set_dummy(self, unit: int, ch: int, on: bool) -> int:
return self.__send_request(Header.SET_DUMMY, unit, BodySetDummy(ch, on))
def request_set_colors(self, unit: int, ch: int, colors: Colors) -> int:
return self.__send_request(Header.SET_COLORS, unit, BodySetColors(ch, colors))