Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIOD on Ubuntu requires sudo #423

Open
thetechnician94 opened this issue Nov 25, 2024 · 2 comments
Open

GPIOD on Ubuntu requires sudo #423

thetechnician94 opened this issue Nov 25, 2024 · 2 comments

Comments

@thetechnician94
Copy link

When starting Pi4J with GpioD on Ubuntu, you get
'com.pi4j.library.gpiod.internal.GpioDException: gpiod_chip_iter_new failed! (Permission denied)
at com.pi4j.library.gpiod.internal.GpioD.chipIterNew(GpioD.java:344
..
..'

Running as root/sudo works as expected.

Adding the user to the 'dialout' group as described here: https://askubuntu.com/questions/1230947/gpio-for-raspberry-pi-gpio-group
does not seem to work either.

@dariuszzbyrad
Copy link
Member

Please double-check that your user has been successfully added to the correct group. You can verify this by running the command:

groups <your_username>

Make sure the gpio group (or dialout, depending on your setup) appears in the output. If it’s not listed, you may need to log out and log back in, or restart your system for the group membership to take effect."

@thetechnician94
Copy link
Author

thetechnician94 commented Dec 19, 2024

@dariuszzbyrad
Pasted image
Everything appears correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants