Might want to look at permissions and ownership on /dev/vchiq. On a Pi
running Raspberry Pi OS, this is as follows:

crw-rw----  1 root video   243,   0 Aug 25 13:06 vchiq

However, on a Pi 4B running ubuntu focal arm64 I get:

crw-------  1 root root    236,   0 Apr  1 17:23 vchiq

The result is that the default user, ubuntu, cannot run vcgencmd without
using sudo. On a Pi running Pi OS, the default user, pi, doesn't need
sudo, thanks to the difference in group permissions on /dev/vchiq, plus
group ownership being video instead of root. (ubuntu is also in the
video group).

I couldn't find where in Pi OS this was defined, but the following will
set permission and ownership to match Raspberry Pi OS:

$ echo 'SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"' | sudo tee
/etc/udev/rules.d/99-vchiq.rules

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1883111

Title:
  [needs-packaging] raspberrypi-userland

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1883111/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to