You are not logged in.

#1 2008-01-02 20:18:07

vagif
Member
Registered: 2007-12-26
Posts: 37

OmniVision webcam problem.

Laptop Dell Inspiron 1520.
Integrated webcam. Cannot make it work.
Downloaded ov51x_jpeg drivers from AUR, installed fine. Added ov51x_jpeg to list of modules in rc.conf.
Driver loads fine.
trying to run webcam program xawtv -nodga
Getting following error:

[root@laptop vagif]# xawtv -nodga
This is xawtv-3.95, running on Linux/i686 (2.6.23-ARCH)
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
v4l2: open /dev/video0: No such file or directory
v4l2: open /dev/video0: No such file or directory
v4l: open /dev/video0: No such file or directory
no video grabber device available

Here's some more info:

[root@laptop vagif]# lsusb
Bus 007 Device 002: ID 05a9:2640 OmniVision Technologies, Inc. 
Bus 007 Device 001: ID 0000:0000  
Bus 006 Device 001: ID 0000:0000  
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 001: ID 0000:0000
[root@laptop vagif]# lsmod
Module                  Size  Used by
ipv6                  251556  10 
nvidia               6213168  26 
ext2                   56840  1 
mbcache                 7040  1 ext2
joydev                  8640  0 
pcspkr                  3072  0 
firewire_ohci          15360  0 
firewire_core          36288  1 firewire_ohci
crc_itu_t               2304  1 firewire_core
tsdev                   6848  0 
ohci1394               28848  0 
ieee1394               80184  1 ohci1394
sdhci                  15372  0 
mmc_core               25092  1 sdhci
psmouse                36240  0 
serio_raw               5764  0 
rtc_cmos                7584  0 
rtc_core               14984  1 rtc_cmos
rtc_lib                 3072  1 rtc_core
i2c_i801                8976  0 
i2c_core               20096  2 nvidia,i2c_i801
video                  15888  14 
output                  3328  1 video
intel_agp              21780  0 
agpgart                27096  2 nvidia,intel_agp
ehci_hcd               32140  0 
uhci_hcd               22416  0 
sg                     26652  0 
evdev                   8192  8 
thermal                12956  0 
fan                     4100  0 
button                  6544  0 
battery                10248  0 
ac                      4356  0 
snd_seq_oss            29312  0 
snd_seq_midi_event      6528  1 snd_seq_oss
snd_seq                46800  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6924  2 snd_seq_oss,snd_seq
ov51x_jpeg            150648  0 
compat_ioctl32          1536  1 ov51x_jpeg
videodev               26880  1 ov51x_jpeg
v4l2_common            15872  1 videodev
arc4                    2304  2 
v4l1_compat            14212  1 videodev
ecb                     3200  2 
snd_hda_intel         295456  0 
snd_hwdep               7300  1 snd_hda_intel
snd_pcm_oss            36896  0 
snd_pcm                68868  2 snd_hda_intel,snd_pcm_oss
snd_timer              19332  2 snd_seq,snd_pcm
snd_page_alloc          8072  2 snd_hda_intel,snd_pcm
snd_mixer_oss          14464  1 snd_pcm_oss
snd                    45220  9 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               6496  1 snd
iwl4965               190068  0 
mac80211              125188  1 iwl4965
cfg80211                6024  1 mac80211
b44                    23052  0 
mii                     4992  1 b44
cpufreq_userspace       3796  0 
cpufreq_ondemand        7180  0 
cpufreq_conservative     6152  0 
cpufreq_powersave       1920  0 
cpufreq_stats           5016  0 
acpi_cpufreq           11548  1 
freq_table              4112  3 cpufreq_ondemand,cpufreq_stats,acpi_cpufreq
processor              27992  2 thermal,acpi_cpufreq
usbcore               122504  4 ehci_hcd,uhci_hcd,ov51x_jpeg
jfs                   173564  1 
sd_mod                 23040  4 
sr_mod                 14756  0 
cdrom                  33952  1 sr_mod
ata_piix               13572  0 
ahci                   20228  3 
ata_generic             5380  0 
libata                105840  3 ata_piix,ahci,ata_generic
[root@laptop vagif]# lsdev
Device            DMA   IRQ  I/O Ports
------------------------------------------------
0000:00:1a.0                 6f20-6f3f
0000:00:1a.1                 6f00-6f1f
0000:00:1d.0                 6f80-6f9f
0000:00:1d.1                 6f60-6f7f
0000:00:1d.2                 6f40-6f5f
0000:00:1f.1                 0170-0177 01f0-01f7 0376-0376 03f6-03f6 6fa0-6faf
0000:00:1f.2                 6eb0-6eb7 6eb8-6ebb 6ec0-6ec7 6ec8-6ecb 6ee0-6eff
0000:00:1f.3                 10c0-10df
0000:01:00.0                   ef00-ef7f
acpi                      9 
ACPI                           1000-1003   1004-1005   1008-100b   1010-1015   1020-1020   1028-102f
cascade             4       
dma                          0080-008f
dma1                         0000-001f
dma2                         00c0-00df
ehci_hcd:usb6            21 
ehci_hcd:usb7            20 
eth0                     17 
fpu                          00f0-00ff
i801_smbus                       10c0-10df
i8042                  1 12 
keyboard                     0060-006f
libata                14 15    0170-0177   01f0-01f7   0376-0376   03f6-03f6   6fa0-6faf
nvidia                   16 
ohci1394                 18 
PCI                          0cf8-0cff d000-dfff e000-efff
pic1                         0020-0021
pic2                         00a0-00a1
pnp                          04d0-04d1 0900-097f 1000-1005 1006-1007 1008-100f 1010-102f 1060-107f 1080-10bf   10c0-10df f400-f4fe
rtc0                      8  0070-0071
sdhci:slot0              22 
timer                     0 
timer0                       0040-0043
timer1                       0050-0053
uhci_hcd                       6f00-6f1f   6f20-6f3f   6f40-6f5f   6f60-6f7f   6f80-6f9f
uhci_hcd:usb4            19 
vga+                         03c0-03df

rc.conf:

MOD_BLACKLIST=()
MODULES=(acpi_cpufreq cpufreq_stats cpufreq_powersave cpufreq_conservative cpufreq_ondemand cpufreq_userspace b44 mii iwl4965 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore ov51x-jpeg)
DAEMONS=(syslog-ng cpufreqd !network dhcdbd networkmanager netfs crond portmap fam dbus hal)

Please help.

Offline

#2 2008-01-02 21:10:36

vagif
Member
Registered: 2007-12-26
Posts: 37

Re: OmniVision webcam problem.

Looks like i'm using wrong driver.
I found that linux-uvc supports my webcam.
installed linux-ucv-svn
now xawtv starts, webcam blinks, and shows black webcam screen, and gives this message:

[vagif@laptop ~]$ xawtv -nodga
This is xawtv-3.95, running on Linux/i686 (2.6.23-ARCH)
xinerama 0: 1440x900+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 type FontStruct
ioctl: VIDIOC_G_STD(std=0xbfc1f3d4 [PAL_G,PAL_I,PAL_D1,PAL_K,PAL_M,PAL_N,NTSC_M,NTSC_M_JP,?,?,SECAM_B,SECAM_L,?ATSC_8_VSB,ATSC_16_VSB,(null),(null),(null),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
ioctl: VIDIOC_DQBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 [];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=unknown): Invalid argument
ioctl: VIDIOC_DQBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 [];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=unknown): Invalid argument

Last edited by vagif (2008-01-02 21:11:35)

Offline

#3 2008-01-02 22:19:15

vagif
Member
Registered: 2007-12-26
Posts: 37

Re: OmniVision webcam problem.

Hmm, looks like i need to edit source code of uvc driver and recompile it as described on this page:
http://forum.mandriva.com/viewtopic.php?t=74501

do following commands as any user
cd ~/
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
I got version 141 on 20071109.
cd trunk
xemacs uvc_driver.c
add at the end of 'static struct usb_device_id uvc_ids[] = {'
/* OmniVision OEM Dell Notebook */
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
| USB_DEVICE_ID_MATCH_INT_INFO,
.idVendor = 0x05a9,
.idProduct = 0x2640,
.bInterfaceClass = USB_CLASS_VIDEO,
.bInterfaceSubClass = 1,
.bInterfaceProtocol = 0,
.driver_info = UVC_QUIRK_PROBE_MINMAX
},
just before
/* Generic USB Video Class */
{ USB_INTERFACE_INFO(USB_CLASS_VIDEO, 1, 0) },
{}
make
you get uvcvideo.ko
gzip uvcvideo.ko
you get uvcvideo.ko.gz

do following commands as root:
cd /lib/modules/2.6.22.9-laptop-1mdv/kernel/3rdparty/uvc/
mv uvcvideo.ko.gz uvcvideo.ko.gz.org
cp /home/-user-/trunk/uvcvideo.ko.gz .
depmod
rmmod uvcvideo
modprobe uvcvideo

These instructions are Mandriva specific.
How do I do same thing in Arch ?
What are the steps ?

Last edited by vagif (2008-01-02 22:21:01)

Offline

#4 2008-01-02 22:53:03

vagif
Member
Registered: 2007-12-26
Posts: 37

Re: OmniVision webcam problem.

Solved!
Sorry for all the troubles. I installed skype and it turns out webcam works just fine.

Offline

Board footer

Powered by FluxBB