Quantcast
Viewing all articles
Browse latest Browse all 6932

Camera board • rpicam-apps can't detect imx219 without sudo

I have a Raspberry Pi 5 with 8GB of RAM.
I followed the instructions on the Internet and built and installed both libcamera and rpicam-apps.
rpicam-apps work flawlessly on Raspberrypi OS and, moreover, they work without sudo.
However, on Ubuntu rpicam-apps require sudo to work and to detect the camera.
The stange thing on Ubuntu was that just after compilation and installation of libcamera and rpicam-apps the latter worked without sudo just until the first reboot. After the reboot rpicam-apps stopped working without sudo.
I checked the files in /dev both on Raspberrypi OS and Ubuntu and noticed that on Raspberrypi OS ACLs are applied automatically on every reboot; whereas on Ubuntu files in /dev don’t have ACLs after reboot even though the output of udevadm info /dev/video0 indicates that user access tags are present. Moreover, manual ACL assignment with sudo /usr/bin/setfacl -m u:$USER:rw /dev/video0 does’t fix the access problem: rpicam-apps still can't detect the camera without sudo.
Here is the output of sudo camera-bug-report on Raspberrypi OS and Ubuntu.
I need to use the camera with ROS and need both Ubuntu and user access.
Does anyone have any thoughts about how to fix the camera user access problem on Ubuntu?

Statistics: Posted by vaboro — Tue Apr 29, 2025 3:10 pm



Viewing all articles
Browse latest Browse all 6932

Trending Articles