summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-03-27 23:58:29 +0300
committerMaxim Devaev <[email protected]>2022-03-27 23:58:29 +0300
commit267aef7790741694fade25766c6cc1cd4de61be1 (patch)
tree0e2ad7b3460b29f2e69f7350ecc968a5eaeb4616
parent8e2688d82007698bafee0aed77db679029df9cb8 (diff)
default values for the otg hid plugin
-rw-r--r--configs/kvmd/main/v2-hdmi-rpi3.yaml4
-rw-r--r--configs/kvmd/main/v2-hdmi-rpi4.yaml4
-rw-r--r--configs/kvmd/main/v2-hdmi-zero2w.yaml4
-rw-r--r--configs/kvmd/main/v2-hdmi-zerow.yaml4
-rw-r--r--configs/kvmd/main/v2-hdmiusb-generic.yaml4
-rw-r--r--configs/kvmd/main/v2-hdmiusb-rpi4.yaml4
-rw-r--r--configs/kvmd/main/v3-hdmi-rpi4.yaml4
-rw-r--r--kvmd/plugins/hid/otg/__init__.py4
8 files changed, 2 insertions, 30 deletions
diff --git a/configs/kvmd/main/v2-hdmi-rpi3.yaml b/configs/kvmd/main/v2-hdmi-rpi3.yaml
index f1bfaede..630247b9 100644
--- a/configs/kvmd/main/v2-hdmi-rpi3.yaml
+++ b/configs/kvmd/main/v2-hdmi-rpi3.yaml
@@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
- keyboard:
- device: /dev/kvmd-hid-keyboard
- mouse:
- device: /dev/kvmd-hid-mouse
atx:
type: gpio
diff --git a/configs/kvmd/main/v2-hdmi-rpi4.yaml b/configs/kvmd/main/v2-hdmi-rpi4.yaml
index 60167883..acbba973 100644
--- a/configs/kvmd/main/v2-hdmi-rpi4.yaml
+++ b/configs/kvmd/main/v2-hdmi-rpi4.yaml
@@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
- keyboard:
- device: /dev/kvmd-hid-keyboard
- mouse:
- device: /dev/kvmd-hid-mouse
atx:
type: gpio
diff --git a/configs/kvmd/main/v2-hdmi-zero2w.yaml b/configs/kvmd/main/v2-hdmi-zero2w.yaml
index 60167883..acbba973 100644
--- a/configs/kvmd/main/v2-hdmi-zero2w.yaml
+++ b/configs/kvmd/main/v2-hdmi-zero2w.yaml
@@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
- keyboard:
- device: /dev/kvmd-hid-keyboard
- mouse:
- device: /dev/kvmd-hid-mouse
atx:
type: gpio
diff --git a/configs/kvmd/main/v2-hdmi-zerow.yaml b/configs/kvmd/main/v2-hdmi-zerow.yaml
index 1528ab39..f52af3e9 100644
--- a/configs/kvmd/main/v2-hdmi-zerow.yaml
+++ b/configs/kvmd/main/v2-hdmi-zerow.yaml
@@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
- keyboard:
- device: /dev/kvmd-hid-keyboard
- mouse:
- device: /dev/kvmd-hid-mouse
atx:
type: gpio
diff --git a/configs/kvmd/main/v2-hdmiusb-generic.yaml b/configs/kvmd/main/v2-hdmiusb-generic.yaml
index c0aff7c2..874ee2c0 100644
--- a/configs/kvmd/main/v2-hdmiusb-generic.yaml
+++ b/configs/kvmd/main/v2-hdmiusb-generic.yaml
@@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
- keyboard:
- device: /dev/kvmd-hid-keyboard
- mouse:
- device: /dev/kvmd-hid-mouse
atx:
type: disabled
diff --git a/configs/kvmd/main/v2-hdmiusb-rpi4.yaml b/configs/kvmd/main/v2-hdmiusb-rpi4.yaml
index f03f6de1..dc25e5d0 100644
--- a/configs/kvmd/main/v2-hdmiusb-rpi4.yaml
+++ b/configs/kvmd/main/v2-hdmiusb-rpi4.yaml
@@ -11,10 +11,6 @@ kvmd:
hid:
type: otg
- keyboard:
- device: /dev/kvmd-hid-keyboard
- mouse:
- device: /dev/kvmd-hid-mouse
atx:
type: gpio
diff --git a/configs/kvmd/main/v3-hdmi-rpi4.yaml b/configs/kvmd/main/v3-hdmi-rpi4.yaml
index 4e954710..e9fcd492 100644
--- a/configs/kvmd/main/v3-hdmi-rpi4.yaml
+++ b/configs/kvmd/main/v3-hdmi-rpi4.yaml
@@ -15,10 +15,6 @@ kvmd:
hid:
type: otg
- keyboard:
- device: /dev/kvmd-hid-keyboard
- mouse:
- device: /dev/kvmd-hid-mouse
atx:
type: gpio
diff --git a/kvmd/plugins/hid/otg/__init__.py b/kvmd/plugins/hid/otg/__init__.py
index 6f6be802..e4fca123 100644
--- a/kvmd/plugins/hid/otg/__init__.py
+++ b/kvmd/plugins/hid/otg/__init__.py
@@ -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),