default values for the otg hid plugin

This commit is contained in:
Maxim Devaev 2022-03-27 23:58:29 +03:00
parent 8e2688d820
commit 267aef7790
8 changed files with 2 additions and 30 deletions

View File

@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
keyboard:
device: /dev/kvmd-hid-keyboard
mouse:
device: /dev/kvmd-hid-mouse
atx:
type: gpio

View File

@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
keyboard:
device: /dev/kvmd-hid-keyboard
mouse:
device: /dev/kvmd-hid-mouse
atx:
type: gpio

View File

@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
keyboard:
device: /dev/kvmd-hid-keyboard
mouse:
device: /dev/kvmd-hid-mouse
atx:
type: gpio

View File

@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
keyboard:
device: /dev/kvmd-hid-keyboard
mouse:
device: /dev/kvmd-hid-mouse
atx:
type: gpio

View File

@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
keyboard:
device: /dev/kvmd-hid-keyboard
mouse:
device: /dev/kvmd-hid-mouse
atx:
type: disabled

View File

@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
keyboard:
device: /dev/kvmd-hid-keyboard
mouse:
device: /dev/kvmd-hid-mouse
atx:
type: gpio

View File

@ -15,10 +15,6 @@ kvmd:
hid:
type: otg
keyboard:
device: /dev/kvmd-hid-keyboard
mouse:
device: /dev/kvmd-hid-mouse
atx:
type: gpio

View File

@ -88,13 +88,13 @@ class Plugin(BaseHid): # pylint: disable=too-many-instance-attributes
def get_plugin_options(cls) -> Dict:
return {
"keyboard": {
"device": Option("", type=valid_abs_path, unpack_as="device_path"),
"device": Option("/dev/kvmd-hid-keyboard", type=valid_abs_path, unpack_as="device_path"),
"select_timeout": Option(0.1, type=valid_float_f01),
"queue_timeout": Option(0.1, type=valid_float_f01),
"write_retries": Option(150, type=valid_int_f1),
},
"mouse": {
"device": Option("", type=valid_abs_path, unpack_as="device_path"),
"device": Option("/dev/kvmd-hid-mouse", type=valid_abs_path, unpack_as="device_path"),
"select_timeout": Option(0.1, type=valid_float_f01),
"queue_timeout": Option(0.1, type=valid_float_f01),
"write_retries": Option(150, type=valid_int_f1),