Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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???
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.
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!?
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...
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.