summaryrefslogtreecommitdiff
path: root/configs/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-23 21:27:34 +0300
committerMaxim Devaev <[email protected]>2022-11-23 21:27:34 +0300
commit0c25e89f466f5ddfb1263b793cc193382954dcb4 (patch)
tree8326a8ff90ebbfadb0af7f2197ac969fbf72ad88 /configs/kvmd
parent41c8c41e4d6eb52a92b8aaf66245c410e5fb9618 (diff)
nextgen
Diffstat (limited to 'configs/kvmd')
-rw-r--r--configs/kvmd/edid/v0-hdmi.hex (renamed from configs/kvmd/tc358743-edid.hex)0
-rw-r--r--configs/kvmd/edid/v2-hdmi.hex16
-rw-r--r--configs/kvmd/edid/v3-hdmi.hex16
-rw-r--r--configs/kvmd/edid/v4mini-hdmi.hex16
-rw-r--r--configs/kvmd/edid/v4plus-hdmi.hex16
-rw-r--r--configs/kvmd/fan/v4mini-hdmi.ini8
-rw-r--r--configs/kvmd/fan/v4plus-hdmi.ini8
-rw-r--r--configs/kvmd/main/v4mini-hdmi-rpi4.yaml90
-rw-r--r--configs/kvmd/main/v4plus-hdmi-rpi4.yaml90
9 files changed, 260 insertions, 0 deletions
diff --git a/configs/kvmd/tc358743-edid.hex b/configs/kvmd/edid/v0-hdmi.hex
index d870783e..d870783e 100644
--- a/configs/kvmd/tc358743-edid.hex
+++ b/configs/kvmd/edid/v0-hdmi.hex
diff --git a/configs/kvmd/edid/v2-hdmi.hex b/configs/kvmd/edid/v2-hdmi.hex
new file mode 100644
index 00000000..d870783e
--- /dev/null
+++ b/configs/kvmd/edid/v2-hdmi.hex
@@ -0,0 +1,16 @@
+00FFFFFFFFFFFF0031D8888800888888
+1C150103800000780AEE91A3544C9926
+0F50543FCD0001000101010101010101
+010101010101011D007251D01E206E28
+5500C48E2100001E8C0AD08A20E02D10
+103E9600138E2100001E000000FC0050
+694B564D0A20202020202020000000FD
+003B3D0F2E0F1E0A202020202020013C
+02031D034E041303021211012021A23C
+3D3E1F66030C00300080E2007F8C0AD0
+8A20E02D10103E9600C48E210000188C
+0AD08A20E02D10103E9600138E210000
+189729A0D051842230509816009A0111
+00001800000000000000000000000000
+00000000000000000000000000000000
+0000000000000000000000000000006E
diff --git a/configs/kvmd/edid/v3-hdmi.hex b/configs/kvmd/edid/v3-hdmi.hex
new file mode 100644
index 00000000..d870783e
--- /dev/null
+++ b/configs/kvmd/edid/v3-hdmi.hex
@@ -0,0 +1,16 @@
+00FFFFFFFFFFFF0031D8888800888888
+1C150103800000780AEE91A3544C9926
+0F50543FCD0001000101010101010101
+010101010101011D007251D01E206E28
+5500C48E2100001E8C0AD08A20E02D10
+103E9600138E2100001E000000FC0050
+694B564D0A20202020202020000000FD
+003B3D0F2E0F1E0A202020202020013C
+02031D034E041303021211012021A23C
+3D3E1F66030C00300080E2007F8C0AD0
+8A20E02D10103E9600C48E210000188C
+0AD08A20E02D10103E9600138E210000
+189729A0D051842230509816009A0111
+00001800000000000000000000000000
+00000000000000000000000000000000
+0000000000000000000000000000006E
diff --git a/configs/kvmd/edid/v4mini-hdmi.hex b/configs/kvmd/edid/v4mini-hdmi.hex
new file mode 100644
index 00000000..7022e34d
--- /dev/null
+++ b/configs/kvmd/edid/v4mini-hdmi.hex
@@ -0,0 +1,16 @@
+00FFFFFFFFFFFF0031D8888800888888
+1C150103800000780AEE91A3544C9926
+0F50543FCF0001010101010101010101
+010101010101011D007251D01E206E28
+5500C48E2100001E8C0AD08A20E02D10
+103E9600138E2100001E000000FC0050
+694B564D0A20202020202020000000FD
+003B3D0F2E0F1E0A2020202020200139
+02031E044F841303021211012021223C
+3D3E101F66030C00300080E2007F8C0A
+D08A20E02D10103E9600C48E21000018
+8C0AD08A20E02D10103E9600138E2100
+00188C0AA01451F01600267C4300138E
+21000098000000000000000000000000
+00000000000000000000000000000000
+00000000000000000000000000000094
diff --git a/configs/kvmd/edid/v4plus-hdmi.hex b/configs/kvmd/edid/v4plus-hdmi.hex
new file mode 100644
index 00000000..7022e34d
--- /dev/null
+++ b/configs/kvmd/edid/v4plus-hdmi.hex
@@ -0,0 +1,16 @@
+00FFFFFFFFFFFF0031D8888800888888
+1C150103800000780AEE91A3544C9926
+0F50543FCF0001010101010101010101
+010101010101011D007251D01E206E28
+5500C48E2100001E8C0AD08A20E02D10
+103E9600138E2100001E000000FC0050
+694B564D0A20202020202020000000FD
+003B3D0F2E0F1E0A2020202020200139
+02031E044F841303021211012021223C
+3D3E101F66030C00300080E2007F8C0A
+D08A20E02D10103E9600C48E21000018
+8C0AD08A20E02D10103E9600138E2100
+00188C0AA01451F01600267C4300138E
+21000098000000000000000000000000
+00000000000000000000000000000000
+00000000000000000000000000000094
diff --git a/configs/kvmd/fan/v4mini-hdmi.ini b/configs/kvmd/fan/v4mini-hdmi.ini
new file mode 100644
index 00000000..68c1fe7d
--- /dev/null
+++ b/configs/kvmd/fan/v4mini-hdmi.ini
@@ -0,0 +1,8 @@
+[server]
+unix = /run/kvmd/fan.sock
+unix_rm = 1
+unix_mode = 666
+
+[main]
+pwm_pin = 13
+hall_pin = 16
diff --git a/configs/kvmd/fan/v4plus-hdmi.ini b/configs/kvmd/fan/v4plus-hdmi.ini
new file mode 100644
index 00000000..68c1fe7d
--- /dev/null
+++ b/configs/kvmd/fan/v4plus-hdmi.ini
@@ -0,0 +1,8 @@
+[server]
+unix = /run/kvmd/fan.sock
+unix_rm = 1
+unix_mode = 666
+
+[main]
+pwm_pin = 13
+hall_pin = 16
diff --git a/configs/kvmd/main/v4mini-hdmi-rpi4.yaml b/configs/kvmd/main/v4mini-hdmi-rpi4.yaml
new file mode 100644
index 00000000..5f38f7c1
--- /dev/null
+++ b/configs/kvmd/main/v4mini-hdmi-rpi4.yaml
@@ -0,0 +1,90 @@
+# 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:
+ auth: !include auth.yaml
+
+ info:
+ fan:
+ unix: /run/kvmd/fan.sock
+
+ hid:
+ type: otg
+ mouse_alt:
+ device: /dev/kvmd-hid-mouse-alt
+
+ atx:
+ type: gpio
+ power_led_pin: 4
+ hdd_led_pin: 5
+ power_switch_pin: 23
+ reset_switch_pin: 27
+
+ msd:
+ type: otg
+
+ streamer:
+ 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}"
+
+ gpio:
+ drivers:
+ __v4_locator__:
+ type: locator
+
+ scheme:
+ __v3_usb_breaker__:
+ pin: 22
+ mode: output
+ initial: true
+ pulse:
+ delay: 0
+
+ __v4_locator__:
+ driver: __v4_locator__
+ pin: 12
+ mode: output
+ pulse:
+ delay: 0
+
+
+vnc:
+ memsink:
+ jpeg:
+ sink: "kvmd::ustreamer::jpeg"
+ h264:
+ sink: "kvmd::ustreamer::h264"
+
+
+otg:
+ remote_wakeup: true
diff --git a/configs/kvmd/main/v4plus-hdmi-rpi4.yaml b/configs/kvmd/main/v4plus-hdmi-rpi4.yaml
new file mode 100644
index 00000000..5f38f7c1
--- /dev/null
+++ b/configs/kvmd/main/v4plus-hdmi-rpi4.yaml
@@ -0,0 +1,90 @@
+# 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:
+ auth: !include auth.yaml
+
+ info:
+ fan:
+ unix: /run/kvmd/fan.sock
+
+ hid:
+ type: otg
+ mouse_alt:
+ device: /dev/kvmd-hid-mouse-alt
+
+ atx:
+ type: gpio
+ power_led_pin: 4
+ hdd_led_pin: 5
+ power_switch_pin: 23
+ reset_switch_pin: 27
+
+ msd:
+ type: otg
+
+ streamer:
+ 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}"
+
+ gpio:
+ drivers:
+ __v4_locator__:
+ type: locator
+
+ scheme:
+ __v3_usb_breaker__:
+ pin: 22
+ mode: output
+ initial: true
+ pulse:
+ delay: 0
+
+ __v4_locator__:
+ driver: __v4_locator__
+ pin: 12
+ mode: output
+ pulse:
+ delay: 0
+
+
+vnc:
+ memsink:
+ jpeg:
+ sink: "kvmd::ustreamer::jpeg"
+ h264:
+ sink: "kvmd::ustreamer::h264"
+
+
+otg:
+ remote_wakeup: true