Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

error when trying to monitor gpio events with `gpiomon gpiochip0 40` - `error waiting for events: No such device`

Featured Replies

  • Author

Just checked the info there, but don't see how is this helpful with the issue I mentioned?
`gpiomon gpiochip0 40`  returns an error `error waiting for events: No such device` and I think that this is due to some issue with the kernel.
 

This is my situation, but i am using gpios for driving relays with this simple script:
 

Spoiler
#!/bin/bash
task(){
	gp=$1
        [[ ! -d /sys/class/gpio/gpio${gp} ]] && echo ${gp} > /sys/class/gpio/export
        echo "out" > /sys/class/gpio/gpio${gp}/direction
        echo "0" > /sys/class/gpio/gpio${gp}/value
        sleep 10
        echo "1" > /sys/class/gpio/gpio${gp}/value

}

task "$1"

 


 

ls -l /sys/class/gpio 
total 0
--w------- 1 root root 4096 Jan  1  1970 export
lrwxrwxrwx 1 root root    0 Jan  1  1970 gpiochip0 -> ../../devices/platform/soc/1c20800.pinctrl/gpio/gpiochip0
lrwxrwxrwx 1 root root    0 Jan  1  1970 gpiochip352 -> ../../devices/platform/soc/1f02c00.pinctrl/gpio/gpiochip352
lrwxrwxrwx 1 root root    0 Oct 20 11:22 gpiochip412 -> ../../devices/platform/soc/1c1c000.usb/usb2/2-1/2-1.4/2-1.4.4/2-1.4.4.1/2-1.4.4.1:1.0/gpio/gpiochip412
--w------- 1 root root 4096 Jan  1  1970 unexport

 

If this can help you in some way ...

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.