LinuxQuestions.org
Visit Jeremy's Blog.
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 03-10-2008, 11:00 PM   #1
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Rep: Reputation: 15
Problem with Acer Cyrstal Eye Webcam on Mandriva 2008.0


I think this problem is somewhat well known but I'm not entirely sure, and maybe someone here knows of a workaround, a fix, or if a fix is coming soon. I am still in the process of setting up Mandriva 2008.0 on my new Acer Aspire 5520-5579 laptop and I am now working on getting the Crystal Eye webcam that is embedded in the lid to work. It is identified by my system as an Acer Crystal Eye USB webcam, but I just can't get it to work. I even found a site that discusses exactly how to install this type of webcam under Mandriva but so far no good (http://afaith.eu/blog/2008/02/12/how...va-linux-2008/). Here's what I know so far.

My kernel is 2.6.22.18-laptop-1mdv and I have both the uvcvideo and v4l modules installed and running:

Code:
root@localhost ~ # lsmod|grep uvcvideo
uvcvideo               38596  0
videodev               27296  1 uvcvideo
v4l1_compat            14308  2 uvcvideo,videodev
v4l2_common            16064  2 uvcvideo,videodev
usbcore               118984  6 ndiswrapper,usb_storage,uvcvideo,ehci_hcd,ohci_hcd

root@localhost ~ # lsmod|grep v4l
v4l1_compat            14308  2 uvcvideo,videodev
v4l2_common            16064  2 uvcvideo,videodev
Additionally, the webcam appears to be listed in /dev:

Code:
root@localhost /dev # ls -l video*
lrwxrwxrwx 1 root root 10 2008-03-10 19:29 video -> v4l/video0
lrwxrwxrwx 1 root root 10 2008-03-10 19:29 video0 -> v4l/video0
I downloaded and compiled luvcview, but when I try to run it I get the following error:

Code:
root@localhost ~/luvcview # ./luvcview -f yuv
luvcview version 0.2.1
Video driver: x11
A window manager is available
video /dev/video0
Unable to set format: 5.
 Init v4L2 failed !! exit fatal
No matter what I do I always get this error (although sometimes it says "Unable to set format: 22"). I checked the end of dmesg and whenever I try to access the webcam, I get this:

Code:
root@localhost ~ # dmesg|tail
uvcvideo: Failed to query (130) UVC control 1 (unit 0) : 2 (exp. 26).
If I run a program like kopete and try to access the camera, the green light will turn on (indicating the camera is on) but I only get a black window. I thought I read somewhere that this type of error is related to some type of USB timing issue, and that since it's a hardware problem there's no workaround. It was suggested that unplugging and replugging a webcam's USB cable (and crossing your fingers) might work, but that's not an option for me since it's embedded in the laptop. I haven't been able to find anything recent about this problem, so I was hoping maybe it's been resolved. Does anyone know if there's a fix/workaround for this? Thanks.
 
Old 03-12-2008, 09:40 AM   #2
A.Faith
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
I'm pretty sure the problem is the old uvc module. make sure it's uninstalled and removed with rmmod.
after you compile the latest SVN build open another console and watch /var/log/syslog with
Code:
tail -f /var/log/syslog
then, in the first console, type modprobe uvcvideo.
you should get in syslog a change like this one :

Code:
Mar 12 16:38:52 laptop kernel: uvcvideo: Found UVC 1.00 device Acer Crystal Eye webcam  (5986:0102)
Mar 12 16:38:52 laptop kernel: usbcore: registered new interface driver uvcvideo
Mar 12 16:38:52 laptop kernel: USB Video Class driver (SVN r177)
it won't byte if you get in touch with the developer of uvcvideo generic driver, here : linux-uvc.berlios.de
 
Old 03-12-2008, 06:12 PM   #3
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks for the response A.Faith! I downloaded the most recent version of the uvcvideo module from the developer's website using the command:

Code:
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
and I followed the directions on removing the old module, compiling, and installing the new module:

Code:
root@localhost /usr/src/linux-uvc # make
Building USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.22.18-laptop-1mdv'
  CC [M]  /usr/src/linux-uvc/uvc_driver.o
  CC [M]  /usr/src/linux-uvc/uvc_queue.o
  CC [M]  /usr/src/linux-uvc/uvc_v4l2.o
  CC [M]  /usr/src/linux-uvc/uvc_video.o
  CC [M]  /usr/src/linux-uvc/uvc_ctrl.o
  CC [M]  /usr/src/linux-uvc/uvc_status.o
  CC [M]  /usr/src/linux-uvc/uvc_isight.o
  LD [M]  /usr/src/linux-uvc/uvcvideo.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/linux-uvc/uvcvideo.mod.o
  LD [M]  /usr/src/linux-uvc/uvcvideo.ko
make[1]: Leaving directory `/usr/src/linux-2.6.22.18-laptop-1mdv'

root@localhost /usr/src/linux-uvc # rmmod uvcvideo
root@localhost /usr/src/linux-uvc # rm -rf /lib/modules/`uname -r`/usb/media/uvcvideo.ko

root@localhost /usr/src/linux-uvc # make install
Installing USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.22.18-laptop-1mdv'
  INSTALL /usr/src/linux-uvc/uvcvideo.ko
  DEPMOD  2.6.22.18-laptop-1mdv
make[1]: Leaving directory `/usr/src/linux-2.6.22.18-laptop-1mdv'
depmod -ae `uname -r`

root@localhost /usr/src/linux-uvc # lsmod|grep uvcvideo
root@localhost /usr/src/linux-uvc # modprobe uvcvideo
Unfortunately I'm still having the same problem. Here's the output in my syslog from the removal and installation process:

Code:
Mar 12 15:52:16 localhost kernel: usbcore: deregistering interface driver uvcvideo
Mar 12 15:52:54 localhost kernel: uvcvideo: Found UVC 1.00 device Acer Crystal Eye webcam  (5986:0102)
Mar 12 15:52:54 localhost kernel: usbcore: registered new interface driver uvcvideo
Mar 12 15:52:54 localhost kernel: USB Video Class driver (v0.1.0)
And when I run luvcview, I still get the same error in syslog:

Code:
Mar 12 15:53:46 bishop kernel: uvcvideo: Failed to query (130) UVC control 1 (unit 0) : 2 (exp. 26).
As far as I can tell I'm using the most recent version of uvcvideo:

Code:
root@localhost /usr/src/linux-uvc # more version.h
#define DRIVER_VERSION  "SVN r195"
So I'm not sure what the problem is.
 
Old 03-13-2008, 01:16 AM   #4
A.Faith
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by 81bones View Post
Thanks for the response A.Faith! I downloaded the most recent version of the uvcvideo module from the developer's website using the command:

Code:
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
and I followed the directions on removing the old module, compiling, and installing the new module:

Code:
root@localhost /usr/src/linux-uvc # make
Building USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.22.18-laptop-1mdv'
  CC [M]  /usr/src/linux-uvc/uvc_driver.o
  CC [M]  /usr/src/linux-uvc/uvc_queue.o
  CC [M]  /usr/src/linux-uvc/uvc_v4l2.o
  CC [M]  /usr/src/linux-uvc/uvc_video.o
  CC [M]  /usr/src/linux-uvc/uvc_ctrl.o
  CC [M]  /usr/src/linux-uvc/uvc_status.o
  CC [M]  /usr/src/linux-uvc/uvc_isight.o
  LD [M]  /usr/src/linux-uvc/uvcvideo.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/linux-uvc/uvcvideo.mod.o
  LD [M]  /usr/src/linux-uvc/uvcvideo.ko
make[1]: Leaving directory `/usr/src/linux-2.6.22.18-laptop-1mdv'

root@localhost /usr/src/linux-uvc # rmmod uvcvideo
root@localhost /usr/src/linux-uvc # rm -rf /lib/modules/`uname -r`/usb/media/uvcvideo.ko

root@localhost /usr/src/linux-uvc # make install
Installing USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.22.18-laptop-1mdv'
  INSTALL /usr/src/linux-uvc/uvcvideo.ko
  DEPMOD  2.6.22.18-laptop-1mdv
make[1]: Leaving directory `/usr/src/linux-2.6.22.18-laptop-1mdv'
depmod -ae `uname -r`

root@localhost /usr/src/linux-uvc # lsmod|grep uvcvideo
root@localhost /usr/src/linux-uvc # modprobe uvcvideo
Unfortunately I'm still having the same problem. Here's the output in my syslog from the removal and installation process:

Code:
Mar 12 15:52:16 localhost kernel: usbcore: deregistering interface driver uvcvideo
Mar 12 15:52:54 localhost kernel: uvcvideo: Found UVC 1.00 device Acer Crystal Eye webcam  (5986:0102)
Mar 12 15:52:54 localhost kernel: usbcore: registered new interface driver uvcvideo
Mar 12 15:52:54 localhost kernel: USB Video Class driver (v0.1.0)
And when I run luvcview, I still get the same error in syslog:

Code:
Mar 12 15:53:46 bishop kernel: uvcvideo: Failed to query (130) UVC control 1 (unit 0) : 2 (exp. 26).
As far as I can tell I'm using the most recent version of uvcvideo:

Code:
root@localhost /usr/src/linux-uvc # more version.h
#define DRIVER_VERSION  "SVN r195"
So I'm not sure what the problem is.
if it was the latest, the line in /var/log/syslog was exactly as this one:
Code:
Mar 12 15:52:54 localhost kernel: USB Video Class driverer (SVN r195)
make uninstall in the source directory, and then remove this :

ls /lib/modules/`uname -r`/usb/media/uvcvideo.ko

then make install again.
 
Old 03-13-2008, 06:28 PM   #5
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by A.Faith View Post
if it was the latest, the line in /var/log/syslog was exactly as this one:
Code:
Mar 12 15:52:54 localhost kernel: USB Video Class driverer (SVN r195)
make uninstall in the source directory, and then remove this :

ls /lib/modules/`uname -r`/usb/media/uvcvideo.ko

then make install again.

I agree that this may be the problem. Unfortunately no matter what I try I can't seem to uninstall the v0.1.0 module. This is what I've been doing:

Code:
root@blocalhost /usr/src/linux-uvc # rmmod uvcvideo
root@localhost /usr/src/linux-uvc # rm /lib/modules/`uname -r`/usb/media/uvcvideo.ko
root@localhost /usr/src/linux-uvc # lsmod|grep uvcvideo
root@localhost /usr/src/linux-uvc # make clean
rm -f *.o *.ko .*.cmd .*.flags *.mod.c Module.symvers version.h
rm -rf .tmp_versions

root@localhost /usr/src/linux-uvc # make
Building USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.22.18-laptop-1mdv'
  CC [M]  /usr/src/linux-uvc/uvc_driver.o
  CC [M]  /usr/src/linux-uvc/uvc_queue.o
  CC [M]  /usr/src/linux-uvc/uvc_v4l2.o
  CC [M]  /usr/src/linux-uvc/uvc_video.o
  CC [M]  /usr/src/linux-uvc/uvc_ctrl.o
  CC [M]  /usr/src/linux-uvc/uvc_status.o
  CC [M]  /usr/src/linux-uvc/uvc_isight.o
  LD [M]  /usr/src/linux-uvc/uvcvideo.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/linux-uvc/uvcvideo.mod.o
  LD [M]  /usr/src/linux-uvc/uvcvideo.ko
make[1]: Leaving directory `/usr/src/linux-2.6.22.18-laptop-1mdv'

root@localhost /usr/src/linux-uvc # make install
Installing USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.22.18-laptop-1mdv'
  INSTALL /usr/src/linux-uvc/uvcvideo.ko
  DEPMOD  2.6.22.18-laptop-1mdv
make[1]: Leaving directory `/usr/src/linux-2.6.22.18-laptop-1mdv'
depmod -ae `uname -r`

root@localhost /usr/src/linux-uvc # modprobe uvcvideo
But all I get is this:

Code:
Mar 13 18:07:32 localhost kernel: usbcore: deregistering interface driver uvcvideo
Mar 13 18:09:27 localhost kernel: uvcvideo: Found UVC 1.00 device Acer Crystal Eye webcam  (5986:0102)
Mar 13 18:09:27 localhost kernel: usbcore: registered new interface driver uvcvideo
Mar 13 18:09:27 localhost kernel: USB Video Class driver (v0.1.0)
Is there any other way to be sure the original uvcvideo that came with the kernel is really uninstalled? I don't know if this will help but here's where all the uvcvideo files are on my system:

Code:
root@localhost /usr/src/linux-uvc # locate uvcvideo
/lib/modules/2.6.22.18-laptop-1mdv/kernel/3rdparty/uvc/uvcvideo.ko.gz
/lib/modules/2.6.22.18-laptop-1mdv/usb/media/uvcvideo.ko
/lib/modules/2.6.22.9-laptop-1mdv/kernel/3rdparty/uvc/uvcvideo.ko.gz
/usr/src/linux-2.6.22.18-1mdv/3rdparty/uvc/uvcvideo.h
/usr/src/linux-uvc/.uvcvideo.ko.cmd
/usr/src/linux-uvc/.uvcvideo.mod.o.cmd
/usr/src/linux-uvc/.uvcvideo.o.cmd
/usr/src/linux-uvc/uvcvideo.h
/usr/src/linux-uvc/uvcvideo.ko
/usr/src/linux-uvc/uvcvideo.mod.c
/usr/src/linux-uvc/uvcvideo.mod.o
/usr/src/linux-uvc/uvcvideo.o
/usr/src/linux-uvc/.svn/text-base/uvcvideo.h.svn-base
/usr/src/linux-uvc/.tmp_versions/uvcvideo.mod
/usr/src/luvcview-20070512/uvcvideo.h
 
Old 03-14-2008, 01:08 AM   #6
A.Faith
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by 81bones View Post
Code:
/lib/modules/2.6.22.18-laptop-1mdv/kernel/3rdparty/uvc/uvcvideo.ko.gz
/lib/modules/2.6.22.18-laptop-1mdv/usb/media/uvcvideo.ko
/lib/modules/2.6.22.9-laptop-1mdv/kernel/3rdparty/uvc/uvcvideo.ko.gz
try to remove this too (of course, before rmmod & stuff). i strongly recommend you to go to the mailing list of uvc driver. maybe theres a bug.
 
Old 03-19-2008, 01:20 PM   #7
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks A.Faith, sorry for the late reply. Your last suggestion worked. I guess the modprobe command was still loading the old module even though I thought I had completely deleted it. After removing uvcvideo.ko and the .gz files, I repeated the module installation:

Code:
root@localhost # tail -f /var/log/syslog
Mar 19 13:08:00 localhost kernel: uvcvideo: Found UVC 1.00 device Acer Crystal Eye webcam  (5986:0102)
Mar 19 13:08:00 localhost kernel: usbcore: registered new interface driver uvcvideo
Mar 19 13:08:00 localhost kernel: USB Video Class driver (SVN r195)
Mar 19 13:08:53 localhost kernel: uvcvideo: device Acer Crystal Eye webcam  requested null bandwidth, defaulting to lowest.
I tested the camera with luvcview and kopete and everything appears to be working great! Thanks for all the help!
 
  


Reply

Tags
acer, uvcvideo, webcam



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
Mandriva 2008 install problem leefan Linux - Newbie 3 02-05-2008 09:31 PM
LXer: DistroWatch Weekly: First Look at Mandriva Flash 2008, Gentoo Linux 2008.0 sche LXer Syndicated Linux News 0 01-28-2008 05:30 AM
LXer: The Perfect Desktop - Mandriva 2008 Free (Mandriva 2008.0) LXer Syndicated Linux News 0 10-16-2007 07:20 PM
LXer: The Perfect Server - Mandriva 2008 Free (Mandriva 2008.0) LXer Syndicated Linux News 0 10-11-2007 09:41 PM
Mandriva 2008 Shutdown problem cbradlea Linux - Desktop 2 10-09-2007 11:17 PM

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

All times are GMT -5. The time now is 08:41 AM.

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