Hi all,
The permission issue seems to be related to the security framework in
Linux (probably ConsoleKit?). This is something that's causing a lot
of trouble among Fedora 8 users right now. But my guess is that it's
gonna happen for other Linux distros too. I fixed it (I don't know if
it's the ultimate solution) by adding these lines in
/etc/security/console.perms.d/50-default.perm :
<sound>=/dev/snd/*
<video>=/dev/video*
<console> 0600 <sound> 0600 root
<console> 0600 <video> 0600 root
Now, as far as LiveCam is concerned, the inability to read frames is
due to a small modification (an extra check) I introduced in the
kernel drivers for m5603c-mt9v011 and m5602-ov9650 where LiveCam
should mark a buffer as intended for capture before submitting the
ioctl to dequeue one. So all you have to do is add this line in
v4l2widget.cpp, in the function WorkerThread just before the ioctl:
buffer.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
so that the prologue of WorkerThread becomes:
138 void* WorkerThread(void* pData)
139 {
140 V4L2Widget* pV4L2Widget = (V4L2Widget*)pData;
141 struct v4l2_buffer buffer;
142 struct timespec req, rem;
143
144 while (pV4L2Widget->m_Capture == true)
145 {
146 buffer.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
147 ioctl(pV4L2Widget->m_fd, VIDIOC_DQBUF, &buffer); // Should block.
I'm going to update the SVN repositories this week-end.
BR,
Ilyes Gouta.
On 11/28/07, Ilyes Gouta <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Well, I have SELinux disabled (apparently) in my setup, I checked that
> with system-config-selinux. I'm also having a new permission issue
> with my sound card after I got kernel 2.6.24-rc3 installed (manually):
> only the root seems to be able to play audio, access hardware devices
> (hotplug), etc. Definitely a security thing.
>
> BR,
> Ilyes Gouta.
>
> On 11/27/07, Torsten Spindler <[EMAIL PROTECTED]> wrote:
> > I think you can do that with 'setsebool' during runtime as well.
> >
> >
> > Torsten
> >
> > On Tue, 2007-27-11 at 18:23 +0100, Willem Duinker wrote:
> > > Could well be SElinux, which is default turned on in fedora8.
> > >
> > > I disabled it in the selinux config somewhere in /etc
> > >
> > >
> > > Willem
> > >
> > > Ilyes Gouta wrote:
> > >
> > > >Hi,
> > > >
> > > >
> > > >
> > > >>I tried but had no success. When I run livecam as user I get 'device
> not
> > > >>ready', if I run it as root I get a crash. If you need the core dump,
> > > >>let me know. What version of ffmpeg are you using for livecam?
> > > >>
> > > >>
> > > >
> > > >Actually I'm getting this new behavior on my newly installed Fedora 8
> > > >too. Kinda strange, since it used to work previously. I'm working on
> > > >it.
> > > >
> > > >
> > > >
> > > >>Thanks for getting us in touch!
> > > >>
> > > >>
> > > >
> > > >You're welcome!
> > > >
> > > >BR,
> > > >Ilyes Gouta.
> > > >
> > > >
> > > >
> > > >
> > >
> > --
> > Tel: +1 514 940 8915
> > Mob: +44 7809 389 864
> > http://www.canonical.com/
> >
> >
>
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
M560x-driver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel