Hi all,
I own a Sony VGN-SZ110 and after a long while got the integrated webcam (VGP-VCC2) to work. However, it only works when I'm root! For instance, it works perfectly in Skype 2.0 when I run it as root (or if I call it with sudo) but says that no device exists when I try it as a regular user.
So, how do I get this thing working as non-superuser? (camera is detected as /dev/video0)
Thanks for all the help.
EDIT: lsmod | grep r5u870 /*the r5u870 is the name of the driver*/ yields the following:
EDIT2: I installed xawtv and used the webcam program. Here are the outputs:Code:r5u870 61508 0 video_buf 22469 1 r5u870 videodev 28097 1 r5u870 v4l2_common 18625 2 r5u870,videodev v4l1_compat 15941 2 r5u870,videodev
As root:
As regular userCode:# webcam reading config file: /root/.webcamrc video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr grabber config: size 320x240 [16 bit YUV 4:2:2 (packed, YUYV)] input (null), norm (null), jpeg quality 75 rotate=0, top=0, left=0, bottom=240, right=320
So obviously I need to set some permissions somewhere. But where? I saw this thread (http://fedoraforum.org/forum/showthr...ht=webcam+root) and saw that people resolved their similar problems by editing /etc/udev/rules.d/50-udev.rules :Code:$ webcam reading config file: /home/cchu/.webcamrc v4l2: open /dev/video0: Permission denied v4l2: open /dev/video0: Permission denied v4l: open /dev/video0: Permission denied no grabber device available
becomesCode:KERNEL=="video*", MODE="0660"
However, I don't have this line in my 50-udev.rules. Even if you take video* as a wildcard, no line containing 'video' has a MODE argument.Code:KERNEL=="video*", MODE="0666"


Reply With Quote
