298 Commits

Author SHA1 Message Date
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
Devaev Maxim
573d622a44 systemd-tmpfiles hangs 2021-01-24 12:20:59 +03:00
Devaev Maxim
ebe40697a5 sink source for vnc 2021-01-22 04:26:04 +03:00
Devaev Maxim
8a45ce9146 v3 usb breaker 2021-01-14 23:29:52 +03:00
Devaev Maxim
c169f55204 update copy 2021-01-07 10:33:02 +03:00
Devaev Maxim
0adfe17f70 configurable gpio devices 2020-12-25 11:08:56 +03:00
Devaev Maxim
5bc868662a stop signals propagation in 3.9 2020-12-02 15:07:08 +03:00
Devaev Maxim
2b064a3bee basic python 3.9 support 2020-12-02 14:37:48 +03:00
Devaev Maxim
9e92a403c0 refactoring 2020-11-23 23:51:26 +03:00
Devaev Maxim
6a8ee1a114 refactoring 2020-11-22 04:54:03 +03:00
Devaev Maxim
0140cba0dc software cs 2020-11-12 18:33:35 +03:00
Devaev Maxim
a8a075c203 another try 2020-11-11 22:24:25 +03:00
Devaev Maxim
aaef672ac2 kvmd spi driver 2020-11-11 22:24:25 +03:00
Devaev Maxim
e54449fd8e renamed serial keymap codes to mcu 2020-11-11 22:24:25 +03:00
Maxim Devaev
544f4b3fec
Relative (#18)
* refactoring

* basic relative mouse mode
2020-11-03 04:50:08 +03:00
Devaev Maxim
ada307c624 fixed missing package 2020-10-17 19:10:22 +03:00
Devaev Maxim
751305828e use packages from the repo 2020-10-17 02:32:06 +03:00
Devaev Maxim
fd008fcda1 new attempt 2020-10-16 18:01:08 +03:00
Devaev Maxim
0e069de389 attempt to fix github actions 2020-10-16 17:01:00 +03:00
Devaev Maxim
923320da5f PR #15: https for local run 2020-10-16 14:10:15 +03:00
Devaev Maxim
d96478b209 Merge branch 'confirm' into master 2020-10-15 09:56:52 +03:00
Devaev Maxim
c6524fc7ac typing fixes 2020-10-13 13:50:01 +03:00
Devaev Maxim
a7f3773e0b service --run 2020-10-11 04:46:50 +03:00
Devaev Maxim
f6ea1eda45 kvmd-otgnet 2020-10-10 16:06:06 +03:00
Devaev Maxim
5bfde6ceae otgnet stubs 2020-10-09 03:51:19 +03:00
Devaev Maxim
39e0336268 lint fix 2020-10-08 10:36:55 +03:00
Devaev Maxim
cccf44655a common env variables 2020-10-03 05:02:14 +03:00
Devaev Maxim
2b684caaeb added tests 2020-10-02 04:07:16 +03:00
Devaev Maxim
630593492a ignored protected-access for _unpack() 2020-09-30 07:25:52 +03:00