LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-11-2004, 04:51 PM   #16
gaah
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: Arch
Posts: 36

Original Poster
Rep: Reputation: 15

Yeah, I have allot of Permission denied... How do I change permissions?

And as root I could startup kdetv and I think it got a signal, but at startup it told me something was wrong and that I should play arround with my v4l settings? wtf???
 
Old 12-11-2004, 04:53 PM   #17
gaah
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: Arch
Posts: 36

Original Poster
Rep: Reputation: 15
from kdetv:

"Unable to grab video.

Video display is not possible with the current plugin configuration. Try playing with the configuration options of the V4L plugin."
 
Old 12-11-2004, 04:56 PM   #18
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
me and my xawtv 1.3% CPU usage beg to differ.
34% with deinterlacing and fills the entire screen in fullscreen. Plus setiathome running at the same time. Slight slow down but programs still load fast. I will still pick tvtime over xawtv.
 
Old 12-11-2004, 04:59 PM   #19
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
read back to my earlier post, i gave instructions on changing the permissions
 
Old 12-11-2004, 05:08 PM   #20
gaah
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: Arch
Posts: 36

Original Poster
Rep: Reputation: 15
Ah, okay... Yes, I change the permissions for /dev/video0 to 555??? But same result. I can cat the video0 and see rubish, but from tvtime is says permission denied (in the console).

So, changing the permissions would only fix so any user could watch tv. I can't even do that as root now so I don't think that's the problem!?
 
Old 12-11-2004, 05:15 PM   #21
gaah
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: Arch
Posts: 36

Original Poster
Rep: Reputation: 15
And from tvtime I get this...

Running tvtime 0.9.15.
rtctimer: Cannot open /dev/rtc: Permission denied
rtctimer: Cannot open /dev/misc/rtc: Permission denied

Enhanced Real Time Clock support in your kernel is necessary for
smooth video. We strongly recommend that you load the 'rtc' kernel
module before starting tvtime, and make sure that your user has
access to the device file (/dev/rtc or /dev/misc/rtc). See our
support page at http://tvtime.net/ for more information.

Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/user/.tvtime/tvtime.xml
videoinput: Cannot open capture device /dev/video0: Permission denied
Thank you for using tvtime.



Even though I changed the permissions!? Do I need to log out and back in maybe? Well, no, not since I can cat the dev/video0 now as my user...
 
Old 12-11-2004, 05:20 PM   #22
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you shouln't do.... what does "ls -l /dev/video0" say?
 
Old 12-11-2004, 05:28 PM   #23
gaah
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: Arch
Posts: 36

Original Poster
Rep: Reputation: 15
lr-xr-xr-x 1 root root 10 2004-12-11 21:09 /dev/video0 -> v4l/video0
 
Old 12-11-2004, 05:49 PM   #24
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Since /dev/video0 is a symbolic link to /dev/v4l/video0 because of devfsd (I think). You have to change the permissions for /dev/v4l/video0 instead of /dev/video0 although my is set at 666 and it is under the video group. For /dev/rtc, you have to do the same, but use /dev/misc/rtc. You can set /dev/misc/rtc to 666 for now.

I would not use a executable permission for video0, vbi0, and rtc because you can get in a lot of trouble. I think you go as low as 440 for permissions and set to a certain group for video0, vbi0, and rtc for tigher security.
 
Old 12-11-2004, 05:58 PM   #25
gaah
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: Arch
Posts: 36

Original Poster
Rep: Reputation: 15
Okay, so I should set the permissions for video0 in v4l to 440 and then add a group? I get the first part, but what about the group? How do I do that?

And I will probably change to udev (I think it was) instead of devfs, will everything be messed arround when I do? Should I do that first?
 
Old 12-11-2004, 06:28 PM   #26
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Well you can set it at 440 and change the group to something like video or vidgrabber, but for now change the permissions for video0, vbi0, and rtc to 666. This will show you that if you got it working. Then you can make the permissions tighter for those devices.

For permission 440, I said I think but I did not said it will work for all programs. You have to experiment with the permission with the programs that you use.

To change the group for run chgrp video /dev/v4l/*. Though you need to add video to the group if video does not exist as a group. If video does not exist run groupadd video as su or root. Next in /etc/group you have to add your self to that group. In /etc/group you will have similar like

video:x:504:

The 504 is the gid or group ID number, but this can be any unused number. To add yourself to the video group. Type the name of your login name after the last colon. Below is an example.

video:x:504:electro

You can include additional names or groups to it by seperating the names or groups with a comma. You can not have spaces though.

video:x:504:electro,fooey,bubba,users

Add groups to another group can be very hazards with different permissions.
 
Old 12-11-2004, 07:46 PM   #27
gaah
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: Arch
Posts: 36

Original Poster
Rep: Reputation: 15
This is what I did:
#groupadd pctv
#chgrp pctv /dev/v4l/*
#chmod 666 /dev/v4l/*
#chmod 666 /dev/rtc

Now when starting up tvtime I see the last channel I watched in windows with bad colours. In kdetv I can search for channels but it finds nothing. The tv-text in kdetv shows one line at the bottom and one at the top of the last channel I watched in windows. In xawtv I see nothing at all.
 
Old 12-12-2004, 04:14 AM   #28
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Change what TV signal your area uses. If your area uses PAL, change it to that. If your area uses NTSC change it to that. Usually it defaults to PAL in Linux for an unknown reason.
 
Old 12-12-2004, 04:09 PM   #29
gaah
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: Arch
Posts: 36

Original Poster
Rep: Reputation: 15
Well, the programs I've tried used NTSC as standard I think. I changed them to PAL the first thing I did so that's not the problem...
 
Old 06-10-2005, 02:03 AM   #30
BII
LQ Newbie
 
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by gaah
from kdetv:

"Unable to grab video.

Video display is not possible with the current plugin configuration. Try playing with the configuration options of the V4L plugin."
Hi everyone, I'm a noob, so sorry in advance.

I seem to have the same problem, I'm running the lastest Mandriva distro.

I'm using the composite out from my digi cable box to composite in on my compro card. Same message.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 9.0 doesn't detect Ethernet card on nVidia shipset 2, on-board card Realtek 8201 devilpim Linux - Newbie 3 05-27-2006 12:08 AM
Cisco Aironet 350 card on Mandrake 10 Official: card detected but doesn't get IP amitram2001 Linux - Wireless Networking 4 09-19-2004 06:10 PM
Wireless LAN card 802.11b and Ricoh card bus Abdul Mueid Linux - Wireless Networking 4 02-10-2004 04:10 PM
how to set up SMC EZ Card 10/100 ethernet PCI network card mymojo Linux - Networking 2 12-16-2003 02:35 AM
Insert scsi pcmcia card kills existing ethernet card lgetsche Linux - Hardware 0 11-12-2002 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration