diff options
Diffstat (limited to 'kvmd/plugins/hid')
-rw-r--r-- | kvmd/plugins/hid/__init__.py | 4 | ||||
-rw-r--r-- | kvmd/plugins/hid/otg/__init__.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/hid/serial.py | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/kvmd/plugins/hid/__init__.py b/kvmd/plugins/hid/__init__.py index 8f4cb02c..e81ea168 100644 --- a/kvmd/plugins/hid/__init__.py +++ b/kvmd/plugins/hid/__init__.py @@ -32,8 +32,8 @@ from .. import get_plugin_class # ===== class BaseHid(BasePlugin): - def start(self) -> None: - pass + def sysprep(self) -> None: + raise NotImplementedError async def get_state(self) -> Dict: raise NotImplementedError diff --git a/kvmd/plugins/hid/otg/__init__.py b/kvmd/plugins/hid/otg/__init__.py index 95566d34..575190e5 100644 --- a/kvmd/plugins/hid/otg/__init__.py +++ b/kvmd/plugins/hid/otg/__init__.py @@ -74,7 +74,7 @@ class Plugin(BaseHid): "noop": Option(False, type=valid_bool), } - def start(self) -> None: + def sysprep(self) -> None: self.__keyboard_proc.start() self.__mouse_proc.start() diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py index cee0048d..5abab1f5 100644 --- a/kvmd/plugins/hid/serial.py +++ b/kvmd/plugins/hid/serial.py @@ -175,7 +175,7 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst multiprocessing.Process.__init__(self, daemon=True) - self.__reset_pin = gpio.set_output(reset_pin) + self.__reset_pin = gpio.set_output(reset_pin, False) self.__reset_delay = reset_delay self.__device_path = device_path @@ -217,9 +217,9 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst "noop": Option(False, type=valid_bool), } - def start(self) -> None: + def sysprep(self) -> None: get_logger(0).info("Starting HID daemon ...") - multiprocessing.Process.start(self) + self.start() async def get_state(self) -> Dict: state = await self.__state_flags.get() |