From 7a7783ced43ae87815832d8e7d084c66efb1cbf2 Mon Sep 17 00:00:00 2001 From: mofeng <3285338098@qq.com> Date: Fri, 22 Dec 2023 00:01:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/main.yaml | 3 +++ config/override.yaml | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/config/main.yaml b/config/main.yaml index a3dac126..664a0471 100644 --- a/config/main.yaml +++ b/config/main.yaml @@ -35,6 +35,7 @@ kvmd: - 800x600 - 720x576 - 720x480 + - 640x480 cmd: - "/usr/bin/ustreamer" - "--device=/dev/kvmd-video" @@ -51,6 +52,8 @@ kvmd: - "--process-name-prefix={process_name_prefix}" - "--notify-parent" - "--no-log-colors" + - "--sink=kvmd::ustreamer::jpeg" + - "--sink-mode=0660" vnc: diff --git a/config/override.yaml b/config/override.yaml index 63f664c2..4ee8e24e 100644 --- a/config/override.yaml +++ b/config/override.yaml @@ -20,6 +20,9 @@ kvmd: type: disabled gpio: drivers: + wol_server1: + type: wol + mac: 2c:56:dc:db:7c:1e short_press: type: cmd cmd: [/usr/bin/sudo, short_press_gpio420] @@ -27,6 +30,11 @@ kvmd: type: cmd cmd: [/usr/bin/sudo, long_press_gpio420] scheme: + wol_server1: + driver: wol_server1 + pin: 0 + mode: output + switch: false short_button: driver: short_press pin: 0 @@ -45,3 +53,6 @@ kvmd: - [] - ["#短按(开/关机):", short_button|按下] - ["#长按(强制关机):", long_button|按下] + - [] + - ["#网络唤醒"] + - ["#被控机设备", wol_server1|网络唤醒]