Jump to content

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


Krasi Georgiev

Recommended Posts

trying to monitor a button press on GPIO19 which has an offset 40, but getting the error in the title.


Switched between kernels but made no difference.

 

 

http://ix.io/4cFr

 

After switching the kernel

http://ix.io/4cGd

Not sure if this is related, but might help with the troubleshooting

https://archlinuxarm.org/forum/viewtopic.php?f=65&t=14423

Link to comment
Share on other sites

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 ...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines