[Nottingham] Mega-pixel webcams

Martin martin at ml1.co.uk
Wed Nov 18 17:02:41 UTC 2009


Jim Moore wrote:
[---]
> *A little searching brought up the controller ID: it's a Microdia
> SN9C120, so do the following I found (for Ubuntu 9.x, YMMV):
> 
> START
> -------
[---]
> # Install and load it.
> $ sudo modprobe videodev
> $ sudo modprobe compat_ioctl32 # Just needed on a 64bit System. Not
> necessary on x86 32bit.
> $ sudo insmod ./sn9c20x.ko
> $ sudo install -d /lib/modules/`uname -r`/misc
> $ sudo install sn9c20x.ko /lib/modules/`uname -r`/misc
> $ sudo depmod -a
> $ sudo modprobe sn9c20x
[---]
> THE END

Easier than that, they're already in there:

gspca_sn9c20x          33776  1
gspca_main             27408  3 gspca_sn9c20x
videodev               43744  2 gspca_main
usbcore               219188  8
gspca_sn9c20x,snd_usb_audio,snd_usb_lib,gspca_main,ehci_hcd,ohci_hcd

The LD_PRELOAD trick includes/avoids the compat_ioctl32 for this x86_64
system:

LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so cheese


Trying to list the device capability gives only that 640x480 is the
maximum resolution... :-(

LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so videodog -s -d /dev/video0

VideoDog Version 0.31

Device Name     : USB20 Camera
Device          : /dev/video0
Max Width       : 640
Max Height      : 480

Current Settings :

        Mode            : NTSC
        Brightness      : 36494
        Hue             : 32768
        Colour          : 45746
        Contrast        : 41120
        Input names     :
                0 - sn9c20x



Cheers,
Martin

-- 
----------------
Martin Lomas
martin at ml1.co.uk
----------------



More information about the Nottingham mailing list