GPIOMON does not work on a Le Potato running your suggested Ubuntu image

GPIOMON does not work on a Le Potato running your suggested Ubuntu image but does work fine running Armbian, (do not want to use unless I have too) what am I doing wrong.

sudo gpiomon -r -n20 gpiochip1 82
gpiomon: error waiting for events: No such device

sudo gpiomon -v
gpiomon (libgpiod) v1.6.3
Copyright (C) 2017-2018 Bartosz Golaszewski
License: LGPLv2.1
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

sudo gpiodetect
gpiochip0 [aobus-banks] (11 lines)
gpiochip1 [periphs-banks] (100 lines)

sudo gpioinfo 1
gpiochip1 - 100 lines:
line 0: unnamed unused input active-high
line 1: unnamed unused input active-high
line 2: unnamed unused input active-high
line 3: unnamed unused input active-high
line 4: unnamed unused input active-high
line 5: unnamed unused input active-high
line 6: unnamed unused input active-high
line 7: unnamed unused input active-high
line 8: unnamed unused input active-high
line 9: unnamed unused input active-high
line 10: unnamed unused input active-high
line 11: unnamed unused input active-high
line 12: unnamed unused input active-high
line 13: unnamed unused input active-high
line 14: “Eth Link LED” unused input active-high
line 15: “Eth Activity LED” unused input active-high
line 16: “HDMI HPD” unused input active-high
line 17: “HDMI SDA” unused input active-high
line 18: “HDMI SCL” unused input active-high
line 19: “HDMI_5V_EN” “regulator-hdmi-5v” output active-high [used]
line 20: “9J1 Header Pin2” unused input active-high
line 21: “Analog Audio Mute” “enable” output active-high [used]
line 22: “2J3 Header Pin6” unused input active-high
line 23: “2J3 Header Pin5” unused input active-high
line 24: “2J3 Header Pin4” unused input active-high
line 25: “2J3 Header Pin3” unused input active-high
line 26: “eMMC D0” unused input active-high
line 27: “eMMC D1” unused input active-high
line 28: “eMMC D2” unused input active-high
line 29: “eMMC D3” unused input active-high
line 30: “eMMC D4” unused input active-high
line 31: “eMMC D5” unused input active-high
line 32: “eMMC D6” unused input active-high
line 33: “eMMC D7” unused input active-high
line 34: “eMMC Clk” unused input active-high
line 35: “eMMC Reset” “reset” output active-low [used]
line 36: “eMMC CMD” unused input active-high
line 37: “ALT BOOT MODE” unused input active-high
line 38: unnamed unused input active-high
line 39: unnamed unused input active-high
line 40: unnamed unused input active-high
line 41: “eMMC Data Strobe” unused input active-high
line 42: “SDCard D1” unused input active-high
line 43: “SDCard D0” unused input active-high
line 44: “SDCard CLK” unused input active-high
line 45: “SDCard CMD” unused input active-high
line 46: “SDCard D3” unused input active-high
line 47: “SDCard D2” unused input active-high
line 48: “SDCard Det” “cd” input active-low [used]
line 49: unnamed unused input active-high
line 50: unnamed unused input active-high
line 51: unnamed unused input active-high
line 52: unnamed unused input active-high
line 53: unnamed unused input active-high
line 54: unnamed unused input active-high
line 55: unnamed unused input active-high
line 56: unnamed unused input active-high
line 57: unnamed unused input active-high
line 58: unnamed unused input active-high
line 59: unnamed unused input active-high
line 60: unnamed unused input active-high
line 61: unnamed unused input active-high
line 62: unnamed unused input active-high
line 63: unnamed unused input active-high
line 64: unnamed unused input active-high
line 65: unnamed unused input active-high
line 66: unnamed unused input active-high
line 67: unnamed unused input active-high
line 68: unnamed unused input active-high
line 69: unnamed unused input active-high
line 70: unnamed unused input active-high
line 71: unnamed unused input active-high
line 72: unnamed unused input active-high
line 73: “Green LED” “librecomputer:system-status” output active-high [used]
line 74: “VCCK Enable” unused input active-high
line 75: “7J1 Header Pin27” unused input active-high
line 76: “7J1 Header Pin28” unused input active-high
line 77: “VCCK Regulator” unused input active-high
line 78: “VDDEE Regulator” unused input active-high
line 79: “7J1 Header Pin22” unused input active-high
line 80: “7J1 Header Pin26” unused input active-high
line 81: “7J1 Header Pin36” unused input active-high
line 82: “7J1 Header Pin38” unused input active-high
line 83: “7J1 Header Pin40” unused input active-high
line 84: “7J1 Header Pin37” unused input active-high
line 85: “7J1 Header Pin33” unused input active-high
line 86: “7J1 Header Pin35” unused input active-high
line 87: “7J1 Header Pin19” unused input active-high
line 88: “7J1 Header Pin21” unused input active-high
line 89: “7J1 Header Pin24” “spi0 CS0” output active-low [used]
line 90: “7J1 Header Pin23” unused input active-high
line 91: “7J1 Header Pin8” unused input active-high
line 92: “7J1 Header Pin10” unused input active-high
line 93: “7J1 Header Pin16” unused input active-high
line 94: “7J1 Header Pin18” unused input active-high
line 95: “7J1 Header Pin32” unused input active-high
line 96: “7J1 Header Pin29” unused input active-high
line 97: “7J1 Header Pin31” unused input active-high
line 98: “7J1 Header Pin7” unused input active-high
line 99: unnamed unused input active-high

sudo /home/pi/libretech-wiring-tool/ldto list
#Available Overlays:
i2c-ao-at24c32
i2c-ao-ds3231
i2c-ao
i2c-b-at24c32
i2c-b-ds3231
i2c-b
pwm-e
rpi-sense
sdio
spicc-cs1
spicc-cs1-ili9486-xpt2046
spicc-cs1-spidev
spicc
spicc-ili9341
spicc-ili9486
spicc-mki3501
spicc-spidev
spigpio-cs1
spigpio-cs1-spidev
uarta
#Active Overlays:
i2c-ao
spicc
uarta

just to show you it works in Armbian .


| | ___ _ __ ___ | |_ __ | | ___
| | / _ \ | '_ \ / _ | / ` | / _
| |
| __/ | |
) | () | || (| | || (_) |
|
_| | ./ _/ __,|___/
|_|
Welcome to Armbian 22.08.1 Jammy with Linux 5.10.139-meson64

System load: 26% Up time: 1 min
Memory usage: 20% of 1.89G IP: 10.0.0.56
CPU temp: 48°C Usage of /: 20% of 29G

[ 0 security updates available, 6 updates total: apt upgrade ]
Last check: 2022-09-20 17:10

[ General system configuration (beta): armbian-config ]

Last login: Sun Sep 18 19:44:22 2022 from 10.0.0.102
pi@lepotato:~$ sudo gpiomon -r -n20 gpiochip1 82
[sudo] password for pi:
event: RISING EDGE offset: 82 timestamp: [ 100.456054936]
event: RISING EDGE offset: 82 timestamp: [ 101.455898767]
event: RISING EDGE offset: 82 timestamp: [ 102.455748598]
event: RISING EDGE offset: 82 timestamp: [ 103.455592928]
event: RISING EDGE offset: 82 timestamp: [ 104.455436717]
event: RISING EDGE offset: 82 timestamp: [ 105.455281131]
event: RISING EDGE offset: 82 timestamp: [ 106.455125212]
event: RISING EDGE offset: 82 timestamp: [ 107.454968334]
event: RISING EDGE offset: 82 timestamp: [ 108.454811998]
event: RISING EDGE offset: 82 timestamp: [ 109.454656829]

Replicated the issue. There has been a lot of GPIO IRQ updates since 5.10 so this will take some digging.

Thank you for letting me know I am not going crazy. I will be happy to bata test any changes you have.

I am sorry to be a pain in your rear, but have you been able to get some process to monitor a gpio port to count the pluses on anemometer to find the wind speed?

No worries, there’s two options:

  • patch your kernel with the gpio_to_irq patch mentioned before
  • write a script to poll the gpio continuously and do your own counting in software

@Brad_Wigton I just tested w/ Le Potato running armbian with that command

sudo gpiomon -r -n20 gpiochip1 82

gpiomon: error waiting for events: No such devicele

Also on gpiomon (libgpiod) v 1.6.3. Not sure why this is. I’ve actually tested all the other pins too.