rust-sysfs-gpio icon indicating copy to clipboard operation
rust-sysfs-gpio copied to clipboard

Permission denied on first run

Open Kixunil opened this issue 8 years ago • 3 comments

Hello, I've a problem in Heimdall. When I first run it, I get permission denied, but second time it works. I guess this is because export doesn't show up in /sys/ immediately. (I tried to unexport instead of rebooting and it panics too.)

Did you encounter this problem too? Is there any plan to fix it?

Kixunil avatar Dec 12 '16 18:12 Kixunil

There's some discussion here: https://github.com/rust-embedded/rust-sysfs-gpio/issues/5. I don't think there are any plans to handle this directly in this library.

posborne avatar Dec 12 '16 18:12 posborne

OK, thank you. It might be useful to mention it in the API documentation though since I expect many people use the library with Raspberry Pi. (I didn't look at blinky example, just the API.) Also, it seems to be missing in README (which might be starting point for some people).

What do you think?

Kixunil avatar Dec 17 '16 11:12 Kixunil

Yeah, would you be willing to open a PR with notes on possibly having to work around udev?

posborne avatar Dec 17 '16 16:12 posborne