summaryrefslogtreecommitdiff
path: root/testenv/v2-hdmi-rpi4.override.yaml
blob: c848eb44e4d1ca31dfea9416435d8540428617bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
kvmd:
    server:
        unix_mode: 0666

    hid:
        keyboard:
            device: /dev/null
        mouse:
            device: /dev/null
        noop: true

    msd:
        remount_cmd: /bin/true
        unlock_cmd: /bin/true

    streamer:
        desired_fps: 30
        max_fps: 40
        cmd:
            - "/usr/bin/ustreamer"
            - "--device=/dev/kvmd-video"
            - "--quality={quality}"
            - "--desired-fps={desired_fps}"
            - "--resolution=800x600"
            - "--last-as-blank=0"
            - "--unix={unix}"
            - "--unix-rm"
            - "--unix-mode=0666"
            - "--exit-on-parent-death"
            - "--process-name-prefix={process_name_prefix}"
            - "--notify-parent"
            - "--no-log-colors"

    gpio:
        drivers:
            relay:
                type: hidrelay
                device: /dev/hidraw0

        scheme:
            led1:
                pin: 19
                mode: input

            led2:
                pin: 16
                mode: input

            button1:
                pin: 26
                mode: output
                switch: false

            button2:
                pin: 20
                mode: output
                switch: false

            relay1:
                pin: 0
                mode: output
                initial: null
                driver: relay

            relay2:
                pin: 1
                mode: output
                initial: null
                driver: relay
                pulse:
                    delay: 2
                    max_delay: 5

        view:
            header:
                title: Switches
            table:
                - ["#Generic GPIO leds"]
                - []
                - ["#Test 1:", led1, button1]
                - ["#Test 2:", led2, button2|confirm|Click]
                - []
                - ["#HID Relays /dev/hidraw0"]
                - []
                - ["#Relay #1:", "relay1|confirm|Boop 0.1"]
                - ["#Relay #2:", "relay2|Boop 2.0"]

vnc:
    keymap: /usr/share/kvmd/keymaps/ru

    auth:
        vncauth:
            enabled: true

otgnet:
    commands:
        post_start_cmd:
            - "/bin/true"
        pre_stop_cmd:
            - "/bin/true"