Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

  1. Blog
  2. Article

Rhys Davies
on 25 May 2021


We are proud to announce that Ubuntu 21.04 includes support for the GPIO pins on the Raspberry Pi. This has been a long time coming. We know. With support for the camera modules and Bluetooth added last year GPIO was the obvious next step. But with our Raspberry Pi focused engineers working to make sure there was Pi support for the Ubuntu Core 20 launch earlier this year, GPIO got pushed back. But not longer.

What’s changed?

As of the Linux Kernel 5.11, the old methods of communicating with the header pins on the Raspberry Pi no longer work. Even in Raspberry Pi OS. This means that packages such as RPi.GPIO no longer function properly with the newer kernels. Fortunately, there is a new package in Ubuntu 21.04 called LGPIO that allows full control over the header pins with the latest kernel version. 

Now you might be thinking, ‘Wait, Ubuntu 21.04 released last month, why is this blog post so late?’ Well, it’s because we opened the doors to community members first, and I wanted to organise a community stream over on UbuntuOnAir

What next?

We published a tutorial on Ubuntu dot com where users can follow along and test the GPIO pins for themselves and let us know what they think. The tutorial covers some basic functionality of LGPIO, including examples using basic GPIO control, I²C, PWM, and SPI. I wrote a brief note in the Raspberry Pi forum Ubuntu sub-category to see if there was interest over there too, and, as a part of our (the Ubuntu Community team’s) initiative to restart UbuntuOnAir we’ve scheduled a live stream.   

This is all because we want to build a more interactive community around Ubuntu on the Raspberry Pi. A big part of building a community like this is starting conversations. That started with our call for feedback and to ‘try things out’, and continues next week (June 1st) when Will Wilson (jawn-smith, the author of the tutorial), Dave Jones (waveform and long time Ubuntu Pi guy), and I sit down on a YouTube and Twitch live stream to talk about Ubuntu on Raspberry Pi, the past, the future, and the community. 

Set yourself a reminder and come along. We’ll be answering all the questions and talking more about how you can get involved. 



Related posts


JP Meijers
21 August 2024

Hacker’s guide to the Raspberry Pi AI kit on Ubuntu

Ubuntu Article

In this blog post we discuss our experiences trying to get the Hailo-8L accelerator and its software running on Ubuntu 24.04 LTS. ...


Jason Nucciarone
18 June 2024

Ubuntu Summit 2024

Ubuntu Article

We are excited to announce that Ubuntu Summit 2024 will be held in The Hague, the Netherlands this October 25 – 27th! The Ubuntu Summit for the last two years has served as a showcase for the innovative and the ambitious. We aim to shine a light on those who are not satisfied with the ...


Aaron Prisk
19 March 2024

The Coronation of a New Mascot: Noble Numbat

Desktop Article

On the eve of our 20th anniversary we are thrilled to present the Noble Numbat, the mascot for Ubuntu 24.04 LTS. ...