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.
Hi linux heroes!
I need your super powers since I can't seem to get my webcam working in Debian etch (was testing when I installed it, hasn't occured to me to upgrade to lenny). Image and sound works fine in Windows, so the cam is functional.
Here's the deal.
I've got a QCam Sangha from Etoms Electronics Corp. My kernel is version 2.6.22.9 and the driver for this kernel and cam should be gspca (originally ET61XX51, now incorporated in said driver). I've also tried drivers spca5xx and ET61XX51, but those two didn't recognize the cam in /dev/video0 at all.
The cam is detected by my system but will not give any output in xawtv, camorama or other applications.
Attached below are various debugging info. Do you think you can help me? I've been wrestling with this for quite a few days now
Kind regards,
Anna Lagercrantz
This is my dmesg right after I plugged the cam and before I did anything else:
Code:
smakfull@Byatis:~$ dmesg | tail
[/usr/src/modules/gspca/gspca_core.c: USB GSPCA camera found (ET61X51)
/usr/src/modules/gspca/gspca_core.c: [spca5xx_probe:4098] Camera type GBRG
/usr/src/modules/gspca/gspca_core.c: [spca5xx_getcapability:1215] maxw 352 maxh
288 minw 160 minh 120
/usr/src/modules/gspca/Etoms/et61xx51.h: [Et_init1:466] Open mode 1 Compression
3
/usr/src/modules/gspca/gspca_core.c: [gspca_set_isoc_ep:903] ISO EndPoint found
0x81 AlternateSet 13
/usr/src/modules/gspca/Etoms/et61xx51.h: [Et_init1:466] Open mode 1 Compression
3
/usr/src/modules/gspca/gspca_core.c: init isoc: usb_submit_urb(0) ret -28
/usr/src/modules/gspca/gspca_core.c: [gspca_set_isoc_ep:903] ISO EndPoint found
0x81 AlternateSet 12
ohci_hcd 0000:00:02.0: leak ed df651400 (#81) state 2
/usr/src/modules/gspca/Etoms/et61xx51.h: [Et_init1:466] Open mode 1 Compression
3
/usr/src/modules/gspca/gspca_core.c: init isoc: usb_submit_urb(0) ret -28
/usr/src/modules/gspca/gspca_core.c: [gspca_set_isoc_ep:903] ISO EndPoint found
0x81 AlternateSet 11
ohci_hcd 0000:00:02.0: leak ed df651440 (#81) state 2
/usr/src/modules/gspca/Etoms/et61xx51.h: [Et_init1:466] Open mode 1 Compression
3
Xawtv
Code:
smakfull@Byatis:~$ xawtv
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22.9)
xinerama 0: 1280x1024+0+0
X Error of failed request: XF86DGANoDirectVideoMode
Major opcode of failed request: 137 (XFree86-DGA)
Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
Serial number of failed request: 69
Current serial number in output stream: 69
Xawtv with -nodga
Code:
smakfull@Byatis:~$ xawtv
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22.9)
xinerama 0: 1280x1024+0+0
X Error of failed request: XF86DGANoDirectVideoMode
Major opcode of failed request: 137 (XFree86-DGA)
Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
Serial number of failed request: 69
Current serial number in output stream: 69
smakfull@Byatis:/usr/src$ xawtv -nodga
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22.9)
xinerama 0: 1280x1024+0+0
X Error of failed request: XF86DGANoDirectVideoMode
Major opcode of failed request: 137 (XFree86-DGA)
Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
Serial number of failed request: 13
Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to typ
e FontStruct
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=7): Ogiltigt argument (argument not allowed)
v4l: timeout (got SIGALRM), hardware/driver problems?
ioctl: VIDIOCSYNC(int=0): Avbrutet systemanrop (interrupted system call)
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=9): Ogiltigt argument
v4l: timeout (got SIGALRM), hardware/driver problems?
ioctl: VIDIOCSYNC(int=0): Avbrutet systemanrop
v4l: timeout (got SIGALRM), hardware/driver problems?
ioctl: VIDIOCSYNC(int=0): Avbrutet systemanrop
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=1): Ogiltigt argument
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=13): Ogiltigt argument
no way to get: 384x288 32 bit TrueColor (LE: bgr-)
/usr/src/modules/gspca/gspca_core.c: [spca5xx_probe:4098] Camera type GBRG
I must say, youre is one of the most complete & comprehensive posts I have ever seen
The line I pasted above is from your first chunk of text pasted in your post. Note the GBRG. While it appears you have gone to great lengths and definitely have been thorough, I wonder if that is (the) a problem?
According the mxhaard where I too go for camera drivers, it lists yours like:
.. and what I wonder, is since the cam is definitely seen by your computer, is the wrong type of feed/stream being used? Note the RGGB in the post above. I'm no expert, but a guess is that the wrong stream type will result in no video signal.
I haven't a clue what to do about this, unless XawTV has a setting for this which maybe (hopefully ) you overlooked?
Next, I see this:
Code:
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=13): Ogiltigt argument
no way to get: 384x288 32 bit TrueColor (LE: bgr-)
Which seems to say that XawTV cannot seem to get 32 bit color, (not to mention the LE: bgr-) which may not be suprising if I'm seeing this right, because your V4L data reads:
and as such, maybe hard to get a (potential) 32bit stream to work through a 24 bit V4Lsetup.
Incidentally, what does 'ogiltigt' mean in english?
Overall, to me anyhow, it looks like you have the correct driver in there, and the cam is seen by the machine/by Linux, but some minor (and maybe obscure) stuff is slightly configged wrong. Possibly even the driver itself is detecting and/or using the incorrect stream type for the camera, but hopefully if that had been the case, the developer would have noticed this before releasing the driver, but then, one never knows.. There are bugs here and there.
Do tell if this gets you anywhere!
Good luck!
Last edited by GrapefruiTgirl; 10-06-2007 at 05:50 PM.
Thank you! I've been staring myself blind on this for so long it's nice to see through someone elses eyes.
Your theories seems sound, and I have no idea how I can use them At least I've got something to work from now, great thanks! I will most definitly post here if I reach a solution, or if anything comes up that can lead to one.
"Ogiltig" is "invalid", forgot to translate that one
Btw, found a verbose output for xawtv, and in it one can read
Code:
main: xvideo extention [video]...
Xvideo: 2 adaptors available.
Xvideo: NV17 Video Texture: input image, ports 325-356
Xvideo: NV05 Video Blitter: input image, ports 357-388
Xvideo: no usable video port found
Boxing
Don't know if it helps any, but I feel like I can use every error message I can find
Edit: Turned this of with xawtv -noxv-image and nothing changed so I dismiss this temporarly as irrelevant
If I had to guess, the above stuff pertains to your video cards/devices, which appear to be two nVidia devices. Probably irrelevant as far as getting an image from the camera, after all, if you have a picture on your monitor, your card(s) are doing their jobs. It actually appears here that XawTV was checking out the video cards looking for an input signal of some type, and found none.
How exactly did you go about installing your driver? Did you compile from the latest source package gspcav1-20070508.tar.gz? I'm curious how the /usr/src/modules/gspca directory got there.
Most people seem to be succeeding with the latest source packages (driver and gspcatools) from mxhaard.free.fr. Ignore this comment if that's what you are already using.
Also xawtv does not work with my webcam but the applications in the spcatools package all work fine.
...Seems like xawtv tests for both 24 bit and 32 bit, so I don't think this is an real issue (you never know though)
...
Thing is with this, is that on Linux, 24bpp is the equivalent to 32bpp on Windoze. In other words, if you're used to having full truecolor on WIndoze being referred to as 32bpp, then on Linux, 24bpp gives you that same thing.
I stand to be further educated on this point, but on my machine, I could never get a request for 32bpp to produce anything but errors.
And yes, I'm female.. Not your average female, but then, who wants to be 'average'?
Last edited by GrapefruiTgirl; 10-07-2007 at 09:06 AM.
Reason: clarification.
I gave xawtv another try with my webcam (Quickcam IM/Connect, gspca driver) and in fact it works fine. Verbose output gives several warnings and apparent errors but I think this is just v4l probing the hardware to check available features. I'm not sure your final error message
no way to get: 384x288 32 bit TrueColor
would be fatal. Does the verbose output terminate at the same point?
If you want to try another app, mplayer also works with this cam/driver:
mplayer tv:// -tv device=/dev/video1:driver=v4l
(maybe video0 in your case) although the picture is not so good. Maybe it could be tuned a bit.
Another possibility is a bug in the videocard driver. Do you know which driver you are using? If 'nvidia' you could try the 'nv' driver instead. Or just update whatever driver you are using. Worth a try if all else fails.
maroonbaboon: Hey! That mplayer tip gave me another hint.
"Selected input hasn't got a tuner."
What does this mean? When I see it I recognize this error from some other error log somewhere. Mplayer output also states that /dev/rtc isn't available. What is this? When I list /dev/ I see that the node rtc doesn't even exist, so it isn't a simple permission issue.
You can't be too specific, I really don't know this stuff. All I know is how to Google!
/dev/rtc is most likely referring to a/the "Real Time Clock" which can be either an onboard (motherboard) thingy, or an externally connected time-keeping device.
I'm not sure what it would have to do with MPlayer in this context though.
Most complaints from programs like xawtv and mplayer are not fatal errors. Even with no camera attached xawtv will try several alternatives before giving uo. Same with real-time clock - if it is there MPlayer will use it, otherwise it can fall back on usual time system call, or something. So the real reason is likely to be right at the end of the output, just before it gives up.
File /etc/X11/xorg.conf will tell you which video driver you are using (section "device", line "driver"). If it says "nvidia" I would be inclined to change it to "nv" and reboot to see if any difference.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.