[solved] picamera

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[solved] picamera

Postby laudge » Sun Jun 30, 2019 5:38 pm

I can acess the camera through picamera only with with sudo
I cannot access it with a normal user.

an idea ?
Last edited by laudge on Mon Jul 01, 2019 7:57 pm, edited 2 times in total.
laudge
 
Posts: 4
Joined: Sun Jun 30, 2019 5:31 pm

Re: picamera

Postby Morta » Sun Jun 30, 2019 9:18 pm

Add the user in the group of camera with gpasswd

A USB Card Reader is in the group storage
Morta
 
Posts: 7
Joined: Sun Jun 30, 2019 11:48 am

Re: picamera

Postby laudge » Mon Jul 01, 2019 4:22 pm

add in the user to the camera group did not help, thanks anyway.

for information user is already in the 'video' group.
I have the same problem with raspistill and raspivid : works with sudo but not for the normal user ...
someone has more ideas ?
laudge
 
Posts: 4
Joined: Sun Jun 30, 2019 5:31 pm

Re: picamera

Postby Morta » Mon Jul 01, 2019 4:48 pm

What says dmesg when you hit with sudo or without?

and lsusb? or its lspci?
Morta
 
Posts: 7
Joined: Sun Jun 30, 2019 11:48 am

Re: picamera

Postby laudge » Mon Jul 01, 2019 5:27 pm

Found the problem !

after every reboot the /dev/vcsm get as group "root" and permission "600"

so to fix it I put in my crontab :
@reboot sudo chmod g+rw /dev/vcsm
@reboot sudo chgrp video /dev/vcsm

not very elegant but does the job.

What is the clean way to force /dev/vcsm to be assign to a particular group and permission ?
laudge
 
Posts: 4
Joined: Sun Jun 30, 2019 5:31 pm

Re: picamera

Postby Morta » Mon Jul 01, 2019 6:58 pm

chattr -i /dev/group but works only with ext filesystem
Morta
 
Posts: 7
Joined: Sun Jun 30, 2019 11:48 am

Re: picamera

Postby laudge » Mon Jul 01, 2019 7:54 pm

thanks morta !

I also figure out that I can create 'udev' rules to setup permission of devices.

Problem solved, I close it.
laudge
 
Posts: 4
Joined: Sun Jun 30, 2019 5:31 pm


Return to ARMv7h

Who is online

Users browsing this forum: Google [Bot] and 2 guests