Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
Thread Tools Display Modes
Old February 2nd, 2009   #1
switchseven
First Cup of Ubuntu
 
Join Date: May 2008
Beans: 4
Arrow WEBCAM: "open /dev/video0: Permission denied"

I've run into a problem while installing my webcam for use in amsn and skype etc.

Part of the problem perhaps is that its one of the awkward Ricoh Motion-Eye webcams discussed in detail [here].
Specifically a VGP-VCC2 in a Sony Vaio VGN-SZ3XWP.

Code:
user@host:~$ lsusb
Bus 005 Device 003: ID 05ca:1830 Ricoh Co., Ltd Visual Communication Camera VGP-VCC2
I suspect I've installed the driver correctly as I've created /dev/video0 and I can get the package 'webcam' to take a snapshot and save it via SSH on localhost. But aMSN, Cheese and Camorama won't detect it. (I've installed it as described by epvipas in post #55, on kernel 2.6.27-11-generic).

Strangely, webcam without admin rights returns...
Code:
user@host:~$ webcam
reading config file: /home/user/.webcamrc
v4l2: open /dev/video0: Permission denied
v4l2: open /dev/video0: Permission denied
v4l: open /dev/video0: Permission denied
no grabber device available
However, with root access works fine...
Code:
user@host:~$ sudo webcam
reading config file: /home/user/.webcamrc
video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
grabber config:
  size 320x240 [none]
  input (null), norm (null), jpeg quality 75
  rotate=0, top=0, left=5, bottom=240, right=320
ssh config [ftp]:
  user@localhost:/home/user/cam
  uploading.jpeg => webcam2.jpeg
Stanger still, aMSN, Cheese and Camorama still won't conect to the webcam when run as root.

eg. sudo camorama
Error Dialog: Error (camorama)
Msg: Could not connect to the video device (/dev/video0). Please check the connection.


Has anyone experience of this of can offer a solution?
Thanks.

Last edited by switchseven; February 2nd, 2009 at 11:24 PM..
switchseven is offline   Reply With Quote
Old February 14th, 2009   #2
pnavarrc
First Cup of Ubuntu
 
Join Date: Jun 2007
Location: Saint-Etienne, France
Beans: 6
Ubuntu 8.10 Intrepid Ibex
Send a message via MSN to pnavarrc Send a message via Skype™ to pnavarrc
Re: WEBCAM: "open /dev/video0: Permission denied"

Hello,

I solved the problem. You must give to the user (you) permission for use video devices. Go to System > Administration > Users and Groups. Unlock and select your username. In user privileges, you must enable the line "Capture video from TV or webcams, and use 3d acceleration", log off and log in.

I hope that help you. Greetings,

Pablo.
pnavarrc is offline   Reply With Quote
Old May 4th, 2009   #3
onecrustybaker
First Cup of Ubuntu
 
Join Date: Jan 2008
Beans: 6
Re: WEBCAM: "open /dev/video0: Permission denied"

after days of pulling my hair out your solution made my skype work...thanks very much.
onecrustybaker is offline   Reply With Quote
Old June 10th, 2009   #4
markp1989
Dipped in Ubuntu
 
markp1989's Avatar
 
Join Date: Jun 2007
Location: North London; England
Beans: 621
Ubuntu 9.10 Karmic Koala
Send a message via MSN to markp1989
Re: WEBCAM: "open /dev/video0: Permission denied"

Quote:
Originally Posted by pnavarrc View Post
Hello,

I solved the problem. You must give to the user (you) permission for use video devices. Go to System > Administration > Users and Groups. Unlock and select your username. In user privileges, you must enable the line "Capture video from TV or webcams, and use 3d acceleration", log off and log in.

I hope that help you. Greetings,

Pablo.
How do i do this from the command line?

Thanks Markp1989?
__________________
server/media: E8400@4.25ghz - 4gb ram - 2 * 1.5tb drive - GeForce 8400GS -- WC 360mm slow fans, so its silent
Desktop: Asus P5KPL-AM iG31 - E5200 - 4gb RAM - ocz vertex - GeForce 7300 GS [/CENTER]
markp1989 is offline   Reply With Quote
Old July 26th, 2009   #5
ubu_dynamite
5 Cups of Ubuntu
 
Join Date: Oct 2005
Location: NL
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Re: WEBCAM: "open /dev/video0: Permission denied"

Use usermod to ad the group video
man usermod
Code:
sudo usermod -a -G group user
After that logout and back in and it will work.
ubu_dynamite is offline   Reply With Quote
Old November 25th, 2009   #6
wierdlmate
First Cup of Ubuntu
 
Join Date: Feb 2008
Beans: 2
Re: WEBCAM: "open /dev/video0: Permission denied"

It doesn't work for me!! I have

$ ls -l /dev/video0
crw-rw-rw-+ 1 root video 81, 0 2009-11-25 13:45 /dev/video0
$ grep video /etc/group
video:44:dori,marci,apu
$ whoami
apu

$ xawtv -c /dev/video0
This is xawtv-3.95.dfsg.1, running on Linux/x86_64 (2.6.31-15-generic)
xinerama 0: 1680x1050+0+0
WARNING: No DGA direct video mode for this display.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: Engedély megtagadva
v4l2: open /dev/video0: Engedély megtagadva
v4l: open /dev/video0: Engedély megtagadva
no video grabber device available

(Engedély megtagadva = Permission denied)
wierdlmate is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:37 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry