276 Commits

Author SHA1 Message Date
Maxim Devaev
f277160396 using usb codes instead of arduino cinstants 2022-07-22 05:46:57 +03:00
Maxim Devaev
867412a6cd renamed otg key to usb key 2022-07-22 04:36:54 +03:00
Maxim Devaev
508a6e9b58 refactoring 2022-07-21 01:44:44 +03:00
Maxim Devaev
734ee8a4ed vulture fix 2022-07-16 23:10:55 +03:00
Maxim Devaev
ac06ef62fc fixed tests 2022-07-16 22:32:19 +03:00
Maxim Devaev
cef5f4ff23 lint fixes 2022-06-24 19:10:38 +03:00
Maxim Devaev
9f4c241204 shellcheck 2022-06-24 16:05:10 +03:00
Maxim Devaev
53e64fe151 pst server 2022-06-15 15:58:29 +03:00
Maxim Devaev
3ee0c41726 more options to edid editing 2022-06-08 15:19:32 +03:00
Maxim Devaev
293490298c report a serial number 2022-04-25 15:44:00 +03:00
Maxim Devaev
d83e32fc51 using dbus_next 2022-04-23 18:28:13 +03:00
Maxim Devaev
e566364b75 fixed keyring in testenv 2022-04-23 16:04:50 +03:00
Maxim Devaev
970c341519 added dir 2022-04-10 08:13:33 +03:00
Maxim Devaev
486f1be986 get rid of the otg-unlock helper 2022-04-10 06:00:10 +03:00
Maxim Devaev
66e5aa49e0 fixed dockerfile 2022-04-01 06:18:05 +03:00
Maxim Devaev
6dc1b758b5 refactoring 2022-03-27 03:50:11 +03:00
Maxim Devaev
6922f70dcd test fix 2022-03-26 02:25:17 +03:00
Maxim Devaev
d4c307b804 vcgencmd measure_temp and thermal_zone0 are the same 2022-03-19 23:08:11 +03:00
Maxim Devaev
a140f11b1b max h264 kbps is 2000 2022-03-15 19:26:37 +03:00
Maxim Devaev
bdc2a317e5 refactoring 2022-01-20 09:59:05 +03:00
Maxim Devaev
3ab43edeb9 pikvm/kvmd#66: OCR API 2022-01-18 09:25:17 +03:00
Maxim Devaev
1b3a2cc3f7 copyright bump 2022-01-07 16:39:02 +03:00
Maxim Devaev
aef7a5a094 python update 2021-12-23 18:44:34 +03:00
Maxim Devaev
b27b4f1491 changed h264 range to actual values 2021-11-25 06:37:32 +03:00
Maxim Devaev
9c56f94332 testenv https redirect 2021-11-12 06:22:45 +03:00
Maxim Devaev
97bb4e46b3 disable vns memsinks in testenv 2021-10-28 01:14:22 +03:00
Maxim Devaev
434acc5de5 pikvm/pikvm#457: custom commands driver 2021-10-24 12:00:45 +03:00
Maxim Devaev
c585dfc483 parse yes/no/on/off as string 2021-09-26 08:51:37 +03:00
Maxim Devaev
e38c65f181 lint fix 2021-09-20 02:52:10 +03:00
Maxim Devaev
8f11fa3b91 small rebranding 2021-09-08 06:47:54 +03:00
Maxim Devaev
2db0656df3 unified udc code and automatic driver detection 2021-08-28 19:01:13 +03:00
Maxim Devaev
89c8a0cb49 lint fix 2021-08-21 12:39:07 +03:00
Maxim Devaev
df098bd075 win95 runtime switching 2021-08-15 20:16:48 +03:00
Maxim Devaev
7d89a54572 refactoring 2021-08-14 02:01:37 +03:00
Shantur Rathore
e4903c5184
Implement button push using servo motors controlled via pwm (#55)
1. Add to /boot/config.txt
```
dtoverlay=pwm
```

2. Create /etc/udev/rules.d/99-kvmd-pwm.rules
```
SUBSYSTEM=="pwm*", ACTION=="add", RUN+="/bin/chgrp -R kvmd /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
SUBSYSTEM=="pwm*", ACTION=="change", ENV{TRIGGER}!="none", RUN+="/bin/chgrp -R kvmd /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
```

3. Connect Servo motor like SG90 PWM connection to RPi GPIO18, +5V and GND to a 5V and GND pin on header

4. Add to /etc/kvmd/override.yaml
```
kvmd:
    gpio:
        drivers:
            servo1:
                type: pwm
                pwm_chip: 0                  # PWM Chip Number
                pwm_period: 20000000         # Servo Motor SG90 Period in nano-seconds
                duty_cycle_push: 1500000     # Servo Motor SG90 duty_cycle for pushing button
                duty_cycle_release: 1000000  # Servo Motor SG90 duty_cycle for releasing button
        scheme:
            short_press:
                driver: servo1
                pin: 0                       # Pin number is the PWM channel number on the PWM Chip
                mode: output
                switch: false
                pulse:
                    delay: 0.5
                    max_delay: 2
            long_press:
                driver: servo1
                pin: 0                       # Pin number is the PWM channel number on the PWM Chip
                mode: output
                switch: false
                pulse:
                    delay: 2
                    max_delay: 2
            extra_long_press:
                driver: servo1
                pin: 0                       # Pin number is the PWM channel number on the PWM Chip
                mode: output
                switch: false
                pulse:
                    delay: 10
                    max_delay: 20
        view:
            header:
                title: Controls
            table:
                - ["#Servo - Short Press", "short_press|Press"]
                - ["#Servo - Long Press", "long_press|Press"]
                - ["#Servo - Extra Long Press", "extra_long_press|Press"]
```
2021-08-14 01:14:22 +03:00
Devaev Maxim
7c68b6b406 lint fixes 2021-07-08 16:52:51 +03:00
Devaev Maxim
240f3e095b lint fix 2021-06-08 22:22:28 +03:00
Devaev Maxim
19a68887e4 janus runner draft 2021-05-24 05:08:53 +03:00
Devaev Maxim
5eb0d71cfd dynamic import 2021-05-16 23:47:16 +03:00
Devaev Maxim
bbf6529510 janus stubs 2021-05-14 05:48:49 +03:00
Devaev Maxim
19c4c7d1e3 clean yaml error message 2021-04-17 17:44:48 +03:00
Devaev Maxim
be012fd38d terminal window 2021-04-17 15:41:05 +03:00
Devaev Maxim
1ca341069d ipmi gpio driver uses ipmitool 2021-04-09 06:20:51 +03:00
Devaev Maxim
99a6e1644a npm workaround 2021-03-07 15:32:24 +03:00
Devaev Maxim
1a4b8edfcd ustreamer == 3.17 2021-02-18 06:39:41 +03:00
Devaev Maxim
70fb46d428 otgnet forwarding 2021-02-16 08:10:10 +03:00
Devaev Maxim
36e3013f18 fixed Makefile for vnc ssl 2021-02-15 05:51:42 +03:00
Devaev Maxim
63aa4a07a7 refactored streamer params, added h264 gop 2021-02-06 19:27:00 +03:00
Devaev Maxim
83184952f6 h264_bitrate streamer param 2021-01-28 08:12:04 +03:00
Devaev Maxim
13057e7d48 using archlinux/archlinux:base-devel 2021-01-25 12:19:38 +03:00