I am working on writing a graphical application that uses the Pi's GPU, and I constantly get * failed to open vchiq instance
errors when running my programs. This is usually fixed by a sudo chmod 777 /dev/vchiq
, but (1) this is a very insecure fix that is definitely not suited to deployment to user-owned devices, and (2) it gets reset after each reboot.
How can I fix my /dev/vchiq
problems "the right way", persistently, without introducing security issues?
sudo usermod -a -G video $(whoami)
), I would also recommend (for security purposes) adding a dedicated user for whatever process will need access to the camera and adding only that user to thevideo
group. – n8henrie May 14 '16 at 15:53su - $USER
if you don't want to reboot or logout/login. – shriek Dec 28 '19 at 07:42