-
Notifications
You must be signed in to change notification settings - Fork 90
switch from libugpio to libgpiod #109
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 8000 privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
haraldg
added a commit
to haraldg/lcdproc
that referenced
this issue
Apr 18, 2019
libugpio used the legacy sysfs interface, which isn't safe to use on systems with multiple gpio controllers and has other shortcomings like needing root permission to "unexport" GPIOs. libgpiod OTOH uses the new official ioctl interface and thus expected to stay around for a long time. Also libgpiod is supported by more linux distributions. On systems with only one gpio controller only a single line (the gpiochip parameter) needs to be added to LCDd.conf. On systems with multiple gpio controllers the gpio numbers need to be edited carefully. However such systems weren't properly supported in the past anyway. This closes issue lcdproc#109. Signed-off-by: Harald Geyer <harald@ccbib.org>
haraldg
added a commit
to haraldg/lcdproc
that referenced
this issue
Aug 23, 2021
* Add a new connection type based on libgpiod. This should be the new standard for anything GPIO related. However the current implementation only supports gpio lines on the same chip. * Since this is a new restriction, use the new ugpio CT (previous commit) as fallback for the removed gpio CT. Closes lcdproc#109, lcdproc#119. Signed-off-by: Harald Geyer <harald@ccbib.org>
haraldg
added a commit
to haraldg/lcdproc
that referenced
this issue
Aug 23, 2021
* Add a new connection type based on libgpiod. This should be the new standard for anything GPIO related. However the current implementation only supports gpio lines on the same chip. * Since this is a new restriction, use the new ugpio CT (previous commit) as fallback for the removed gpio CT. * Rename some macros to avoid collisions. Closes lcdproc#109, lcdproc#119. Signed-off-by: Harald Geyer <harald@ccbib.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The old sysfs gpio interface of the linux kernel is deprecated in favor of a new ioctl based API. Thus libugpio is discontinued. There is a new library libgpiod that makes interfacing the new API easier. Thus we should switch from one library to the other.
Since the addressing scheme of GPIOs is entirely different now, also driver configuration well need changes, but since the libugpio based connection type never saw much use (likely my bad for pushing libugpio shortly before it was deprecated) this shouldn't be much of a problem.
I kind of feel responsible for this situation and will look into it during the cold season. But if somebody wants to work on it sooner, just leave a note here an feel free to take it over. Should be fairly easy and beginner friendly topic to work on!
The text was updated successfully, but these errors were encountered: