rhys-the-davies
Posts: 3
Joined: Wed Mar 31, 2021 8:50 am

LGPIO to control GPIO in Ubuntu 21.04

Mon Apr 26, 2021 3:28 pm

As of Linux kernel 5.11, the old methods of communicating with header pins on the Raspberry Pi no longer work. This means packages such as RPi.GPIO no longer function properly with newer kernels. This post by Dave Jones explains the reasons for the changes. But there is a new package in Ubuntu 21.04 called LGPIO that allows full control over the header pins with the latest kernel version.

This marks the first Ubuntu release with GPIO support for the Raspberry Pi. There's a tutorial over on Ubuntu dot com to try it out and leave feedback for the devs, though I expect they’re lurking here too. :D

https://discourse.ubuntu.com/t/how-to-u ... y-pi/22009
Last edited by rhys-the-davies on Mon Apr 26, 2021 3:39 pm, edited 1 time in total.

User avatar
joan
Posts: 16257
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: LGPIO to control GPIO in Ubuntu 21.04

Mon Apr 26, 2021 3:38 pm

Might be useful to emphasise the GPIO part (as I have in the amended subject). Might not be obvious from LGPIO alone.

rhys-the-davies
Posts: 3
Joined: Wed Mar 31, 2021 8:50 am

Re: LGPIO to control GPIO in Ubuntu 21.04

Mon Apr 26, 2021 3:41 pm

joan wrote:
Mon Apr 26, 2021 3:38 pm
Might be useful to emphasise the GPIO part (as I have in the amended subject). Might not be obvious from LGPIO alone.
Good shout, thanks Joan

Return to “Ubuntu”