[FFe] Provide access to GPIO to default user

Bug #1923672 reported by Dave Jones on 2021-04-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-settings (Ubuntu)

Bug Description

At present, access to the GPIO pins is provided to the dialout group by the udev rules from the rpi.gpio-common package. However, rpi.gpio is a single GPIO library, and the device(s) it provides access to are not specific to it. Moreover, the interface used is deprecated and the /dev/gpiochip* interface is now the favoured mechanism for controlling the GPIO pins.

The choice of the dialout group appears reasonable (historically it's used to provide access to the serial ports, and indeed the serial ports are part of the GPIO header on Raspberry Pi devices), but the rules should be extended to cover the modern /dev/gpiochip* devices, the related /dev/spidev* and /dev/i2c-* devices, and should be placed in a central location (i.e. ubuntu-raspi-settings) rather than in a specific GPIO library (like rpi.gpio).

Related to this is LP: #1923363 which seeks to ensure equal access across images (the default user is currently granted "dialout" group membership on the pi server images, but not the desktop ones).

Dave Jones (waveform) on 2021-04-13
summary: - Provide access to GPIO to default user
+ [FFe] Provide access to GPIO to default user
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-settings - 21.04.3

ubuntu-settings (21.04.3) hirsute; urgency=medium

  [ William 'jawn-smith' Wilson ]
  * Adding 99-gpio.rules udev rules for Raspberry Pi GPIO functionality
    (LP: #1923672)

  [ Dave Jones ]
  * Replace netplan eth0 renaming rules for raspi with networkd link unit
    (LP: #1922266)

 -- Dave Jones <email address hidden> Tue, 13 Apr 2021 23:02:42 +0100

Changed in ubuntu-settings (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers