gpiod_line_event_get_fd() function is returning -1 and the last error occured is Operation Not Permitted.
How to make it work?
gpiod_line_event_get_fd() function is returning -1 and the last error occured is Operation Not Permitted.
How to make it work?
gpio or dialout on many Linux systems. You can add a user to the gpio group with a command like sudo usermod -a -G gpio yourusername, then log out and back in for the changes to take effect.sudo to provide it with root access. If the function works as expected when run as root, this confirms that the issue is related to user permissions.