diff options
author | Maxim Devaev <[email protected]> | 2022-03-27 23:44:11 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-03-27 23:44:11 +0300 |
commit | f474fd6453698c4dd96164db0993e0013a6dd0d8 (patch) | |
tree | df8455eea6e470ef1424fd295c078f58a010e028 | |
parent | 92ebe93bacbf99451c211da209aec318b7eef561 (diff) |
default atx gpio values
-rw-r--r-- | configs/kvmd/main/v0-hdmi-rpi.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmi-rpi2.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmi-rpi3.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmi-zero2w.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmi-zerow.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-rpi.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-rpi2.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-rpi3.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-zero2w.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-zerow.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v2-hdmi-rpi3.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v2-hdmi-rpi4.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v2-hdmi-zero2w.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v2-hdmi-zerow.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v2-hdmiusb-rpi4.yaml | 4 | ||||
-rw-r--r-- | configs/kvmd/main/v3-hdmi-rpi4.yaml | 4 | ||||
-rw-r--r-- | kvmd/plugins/atx/gpio.py | 8 |
17 files changed, 4 insertions, 68 deletions
diff --git a/configs/kvmd/main/v0-hdmi-rpi.yaml b/configs/kvmd/main/v0-hdmi-rpi.yaml index 1e5ef45b..3daa2384 100644 --- a/configs/kvmd/main/v0-hdmi-rpi.yaml +++ b/configs/kvmd/main/v0-hdmi-rpi.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v0-hdmi-rpi2.yaml b/configs/kvmd/main/v0-hdmi-rpi2.yaml index 1e5ef45b..3daa2384 100644 --- a/configs/kvmd/main/v0-hdmi-rpi2.yaml +++ b/configs/kvmd/main/v0-hdmi-rpi2.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v0-hdmi-rpi3.yaml b/configs/kvmd/main/v0-hdmi-rpi3.yaml index 2c8b58b9..4a309712 100644 --- a/configs/kvmd/main/v0-hdmi-rpi3.yaml +++ b/configs/kvmd/main/v0-hdmi-rpi3.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v0-hdmi-zero2w.yaml b/configs/kvmd/main/v0-hdmi-zero2w.yaml index 58d1e512..53983e9f 100644 --- a/configs/kvmd/main/v0-hdmi-zero2w.yaml +++ b/configs/kvmd/main/v0-hdmi-zero2w.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v0-hdmi-zerow.yaml b/configs/kvmd/main/v0-hdmi-zerow.yaml index 8863741a..14c07ec6 100644 --- a/configs/kvmd/main/v0-hdmi-zerow.yaml +++ b/configs/kvmd/main/v0-hdmi-zerow.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v0-hdmiusb-rpi.yaml b/configs/kvmd/main/v0-hdmiusb-rpi.yaml index b8c33043..5dc3f278 100644 --- a/configs/kvmd/main/v0-hdmiusb-rpi.yaml +++ b/configs/kvmd/main/v0-hdmiusb-rpi.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v0-hdmiusb-rpi2.yaml b/configs/kvmd/main/v0-hdmiusb-rpi2.yaml index b8c33043..5dc3f278 100644 --- a/configs/kvmd/main/v0-hdmiusb-rpi2.yaml +++ b/configs/kvmd/main/v0-hdmiusb-rpi2.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v0-hdmiusb-rpi3.yaml b/configs/kvmd/main/v0-hdmiusb-rpi3.yaml index 2ac74cc1..6f3268e7 100644 --- a/configs/kvmd/main/v0-hdmiusb-rpi3.yaml +++ b/configs/kvmd/main/v0-hdmiusb-rpi3.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v0-hdmiusb-zero2w.yaml b/configs/kvmd/main/v0-hdmiusb-zero2w.yaml index 2ac74cc1..6f3268e7 100644 --- a/configs/kvmd/main/v0-hdmiusb-zero2w.yaml +++ b/configs/kvmd/main/v0-hdmiusb-zero2w.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v0-hdmiusb-zerow.yaml b/configs/kvmd/main/v0-hdmiusb-zerow.yaml index b8c33043..5dc3f278 100644 --- a/configs/kvmd/main/v0-hdmiusb-zerow.yaml +++ b/configs/kvmd/main/v0-hdmiusb-zerow.yaml @@ -16,10 +16,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: disabled diff --git a/configs/kvmd/main/v2-hdmi-rpi3.yaml b/configs/kvmd/main/v2-hdmi-rpi3.yaml index 5bb1a626..f1bfaede 100644 --- a/configs/kvmd/main/v2-hdmi-rpi3.yaml +++ b/configs/kvmd/main/v2-hdmi-rpi3.yaml @@ -18,10 +18,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: otg diff --git a/configs/kvmd/main/v2-hdmi-rpi4.yaml b/configs/kvmd/main/v2-hdmi-rpi4.yaml index a670bd6a..60167883 100644 --- a/configs/kvmd/main/v2-hdmi-rpi4.yaml +++ b/configs/kvmd/main/v2-hdmi-rpi4.yaml @@ -18,10 +18,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: otg diff --git a/configs/kvmd/main/v2-hdmi-zero2w.yaml b/configs/kvmd/main/v2-hdmi-zero2w.yaml index a670bd6a..60167883 100644 --- a/configs/kvmd/main/v2-hdmi-zero2w.yaml +++ b/configs/kvmd/main/v2-hdmi-zero2w.yaml @@ -18,10 +18,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: otg diff --git a/configs/kvmd/main/v2-hdmi-zerow.yaml b/configs/kvmd/main/v2-hdmi-zerow.yaml index ad6675f5..1528ab39 100644 --- a/configs/kvmd/main/v2-hdmi-zerow.yaml +++ b/configs/kvmd/main/v2-hdmi-zerow.yaml @@ -18,10 +18,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: otg diff --git a/configs/kvmd/main/v2-hdmiusb-rpi4.yaml b/configs/kvmd/main/v2-hdmiusb-rpi4.yaml index 351b749f..f03f6de1 100644 --- a/configs/kvmd/main/v2-hdmiusb-rpi4.yaml +++ b/configs/kvmd/main/v2-hdmiusb-rpi4.yaml @@ -18,10 +18,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: otg diff --git a/configs/kvmd/main/v3-hdmi-rpi4.yaml b/configs/kvmd/main/v3-hdmi-rpi4.yaml index 6f8d0609..4e954710 100644 --- a/configs/kvmd/main/v3-hdmi-rpi4.yaml +++ b/configs/kvmd/main/v3-hdmi-rpi4.yaml @@ -22,10 +22,6 @@ kvmd: atx: type: gpio - power_led_pin: 24 - hdd_led_pin: 22 - power_switch_pin: 23 - reset_switch_pin: 27 msd: type: otg diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py index 6332f5e0..a4dabdfc 100644 --- a/kvmd/plugins/atx/gpio.py +++ b/kvmd/plugins/atx/gpio.py @@ -95,16 +95,16 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes return { "device": Option("/dev/gpiochip0", type=valid_abs_path, unpack_as="device_path"), - "power_led_pin": Option(-1, type=valid_gpio_pin), + "power_led_pin": Option(24, type=valid_gpio_pin), "power_led_inverted": Option(False, type=valid_bool), "power_led_debounce": Option(0.1, type=valid_float_f0), - "hdd_led_pin": Option(-1, type=valid_gpio_pin), + "hdd_led_pin": Option(22, type=valid_gpio_pin), "hdd_led_inverted": Option(False, type=valid_bool), "hdd_led_debounce": Option(0.1, type=valid_float_f0), - "power_switch_pin": Option(-1, type=valid_gpio_pin), - "reset_switch_pin": Option(-1, type=valid_gpio_pin), + "power_switch_pin": Option(23, type=valid_gpio_pin), + "reset_switch_pin": Option(27, type=valid_gpio_pin), "click_delay": Option(0.1, type=valid_float_f01), "long_click_delay": Option(5.5, type=valid_float_f01), } |