diff options
author | Maxim Devaev <[email protected]> | 2021-11-20 01:35:39 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-11-20 01:35:39 +0300 |
commit | 2e779177859800fd815322972658a44afb521546 (patch) | |
tree | 4c7eacbfa06b7daca252ac6914de3fe16a6632e6 /configs/kvmd | |
parent | 6f423cb7dad593d58ad41a82b41ab8a07ae1444f (diff) |
added zero 2 w support
Diffstat (limited to 'configs/kvmd')
-rw-r--r-- | configs/kvmd/main/v0-hdmi-zero2w.yaml | 81 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-zero2w.yaml | 85 | ||||
-rw-r--r-- | configs/kvmd/main/v2-hdmi-zero2w.yaml | 83 |
3 files changed, 249 insertions, 0 deletions
diff --git a/configs/kvmd/main/v0-hdmi-zero2w.yaml b/configs/kvmd/main/v0-hdmi-zero2w.yaml new file mode 100644 index 00000000..ddca06c3 --- /dev/null +++ b/configs/kvmd/main/v0-hdmi-zero2w.yaml @@ -0,0 +1,81 @@ +# Don't touch this file otherwise your device may stop working. +# Use override.yaml to modify required settings. +# You can find a working configuration in /usr/share/kvmd/configs.default/kvmd. + +override: !include [override.d, override.yaml] + +logging: !include logging.yaml + +kvmd: + server: + unix: /run/kvmd/kvmd.sock + + auth: !include auth.yaml + + hid: + type: serial + reset_pin: 4 + device: /dev/kvmd-hid + + atx: + type: gpio + power_led_pin: 24 + hdd_led_pin: 22 + power_switch_pin: 23 + reset_switch_pin: 27 + + msd: + type: disabled + + streamer: + unix: /run/kvmd/ustreamer.sock + h264_bitrate: + default: 5000 + cmd: + - "/usr/bin/ustreamer" + - "--device=/dev/kvmd-video" + - "--persistent" + - "--dv-timings" + - "--format=uyvy" + - "--encoder=omx" + - "--workers=3" + - "--quality={quality}" + - "--desired-fps={desired_fps}" + - "--drop-same-frames=30" + - "--last-as-blank=0" + - "--unix={unix}" + - "--unix-rm" + - "--unix-mode=0660" + - "--exit-on-parent-death" + - "--process-name-prefix={process_name_prefix}" + - "--notify-parent" + - "--no-log-colors" + - "--sink=kvmd::ustreamer::jpeg" + - "--sink-mode=0660" + - "--h264-sink=kvmd::ustreamer::h264" + - "--h264-sink-mode=0660" + - "--h264-bitrate={h264_bitrate}" + - "--h264-gop={h264_gop}" + +ipmi: + kvmd: + unix: /run/kvmd/kvmd.sock + +vnc: + kvmd: + unix: /run/kvmd/kvmd.sock + + streamer: + unix: /run/kvmd/ustreamer.sock + + memsink: + jpeg: + sink: "kvmd::ustreamer::jpeg" + h264: + sink: "kvmd::ustreamer::h264" + + server: + tls: + x509: + cert: /etc/kvmd/vnc/ssl/server.crt + key: /etc/kvmd/vnc/ssl/server.key diff --git a/configs/kvmd/main/v0-hdmiusb-zero2w.yaml b/configs/kvmd/main/v0-hdmiusb-zero2w.yaml new file mode 100644 index 00000000..3182efb7 --- /dev/null +++ b/configs/kvmd/main/v0-hdmiusb-zero2w.yaml @@ -0,0 +1,85 @@ +# Don't touch this file otherwise your device may stop working. +# Use override.yaml to modify required settings. +# You can find a working configuration in /usr/share/kvmd/configs.default/kvmd. + +override: !include [override.d, override.yaml] + +logging: !include logging.yaml + +kvmd: + server: + unix: /run/kvmd/kvmd.sock + + auth: !include auth.yaml + + hid: + type: serial + reset_pin: 4 + device: /dev/kvmd-hid + + atx: + type: gpio + power_led_pin: 24 + hdd_led_pin: 22 + power_switch_pin: 23 + reset_switch_pin: 27 + + msd: + type: disabled + + streamer: + quality: 0 + resolution: + default: 1920x1080 + available: + - 1920x1080 + - 1600x1200 + - 1360x768 + - 1280x1024 + - 1280x960 + - 1280x720 + - 1024x768 + - 800x600 + - 720x576 + - 720x480 + - 640x480 + unix: /run/kvmd/ustreamer.sock + cmd: + - "/usr/bin/ustreamer" + - "--device=/dev/kvmd-video" + - "--persistent" + - "--format=mjpeg" + - "--resolution={resolution}" + - "--desired-fps={desired_fps}" + - "--drop-same-frames=30" + - "--last-as-blank=0" + - "--unix={unix}" + - "--unix-rm" + - "--unix-mode=0660" + - "--exit-on-parent-death" + - "--process-name-prefix={process_name_prefix}" + - "--notify-parent" + - "--no-log-colors" + - "--sink=kvmd::ustreamer::jpeg" + - "--sink-mode=0660" + +ipmi: + kvmd: + unix: /run/kvmd/kvmd.sock + +vnc: + kvmd: + unix: /run/kvmd/kvmd.sock + + streamer: + unix: /run/kvmd/ustreamer.sock + + memsink: + jpeg: + sink: "kvmd::ustreamer::jpeg" + + server: + tls: + x509: + cert: /etc/kvmd/vnc/ssl/server.crt + key: /etc/kvmd/vnc/ssl/server.key diff --git a/configs/kvmd/main/v2-hdmi-zero2w.yaml b/configs/kvmd/main/v2-hdmi-zero2w.yaml new file mode 100644 index 00000000..1ab8dda9 --- /dev/null +++ b/configs/kvmd/main/v2-hdmi-zero2w.yaml @@ -0,0 +1,83 @@ +# Don't touch this file otherwise your device may stop working. +# Use override.yaml to modify required settings. +# You can find a working configuration in /usr/share/kvmd/configs.default/kvmd. + +override: !include [override.d, override.yaml] + +logging: !include logging.yaml + +kvmd: + server: + unix: /run/kvmd/kvmd.sock + + auth: !include auth.yaml + + hid: + type: otg + keyboard: + device: /dev/kvmd-hid-keyboard + mouse: + device: /dev/kvmd-hid-mouse + + atx: + type: gpio + power_led_pin: 24 + hdd_led_pin: 22 + power_switch_pin: 23 + reset_switch_pin: 27 + + msd: + type: otg + + streamer: + unix: /run/kvmd/ustreamer.sock + h264_bitrate: + default: 5000 + cmd: + - "/usr/bin/ustreamer" + - "--device=/dev/kvmd-video" + - "--persistent" + - "--dv-timings" + - "--format=uyvy" + - "--encoder=omx" + - "--workers=3" + - "--quality={quality}" + - "--desired-fps={desired_fps}" + - "--drop-same-frames=30" + - "--last-as-blank=0" + - "--unix={unix}" + - "--unix-rm" + - "--unix-mode=0660" + - "--exit-on-parent-death" + - "--process-name-prefix={process_name_prefix}" + - "--notify-parent" + - "--no-log-colors" + - "--sink=kvmd::ustreamer::jpeg" + - "--sink-mode=0660" + - "--h264-sink=kvmd::ustreamer::h264" + - "--h264-sink-mode=0660" + - "--h264-bitrate={h264_bitrate}" + - "--h264-gop={h264_gop}" + +ipmi: + kvmd: + unix: /run/kvmd/kvmd.sock + +vnc: + kvmd: + unix: /run/kvmd/kvmd.sock + + streamer: + unix: /run/kvmd/ustreamer.sock + + memsink: + jpeg: + sink: "kvmd::ustreamer::jpeg" + h264: + sink: "kvmd::ustreamer::h264" + + server: + tls: + x509: + cert: /etc/kvmd/vnc/ssl/server.crt + key: /etc/kvmd/vnc/ssl/server.key |