Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: webcam is only grayscale

  1. #1

    Default webcam is only grayscale

    I've tried my webcam in both wxcam and cheese on openSUSE as well as in a couple webcam softwares in windows. For now, I don't care about getting it to work in windows, which I seldom boot into anyway--that was just for testing. In every case I've tried it, I only get a grayscale image and no color. Any suggestions?

    And yes, I'm sure it does have the capability for color, for two reasons:
    (1) In windows, when I opened one program in particular ("ManyCam") I got a color image for about a second and then it reverted to grayscale.
    (2) It's a new laptop--new as in less than a month old. (specifically, Thinkpad L540)

  2. #2
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    27,109
    Blog Entries
    40

    Default Re: webcam is only grayscale

    From what I read, other than '1-second' in MS-Windows, you are seeing only Black and White from this webcam in both MS-Windows and GNU/Linux. That does suggest there could be a hardware issue (although I confess I know of no hardware issue that would only yield Black and White, but otherwise function).

    Unless someone else chimes in with a quick solution, typically the way I deal with webcam issues is as follows:
    • determine if webcam is detected (clearly yours is)
    • determine the model of webcam
    • determine the driver being loaded (if any) to support the webcam
    • research the driver for support issues wrt the webcam



    You can determine your webcam, by sending the command in a terminal:
    Code:
    lsusb
    Please post here the one line that is specific to your webcam. For example on my PC the line relevant to my webcam is:
    Code:
    Bus 002 Device 003: ID 046d:0821 Logitech, Inc. HD Webcam C910
    where the 046d:0821 is key in researching my webcam. Your 'lsusb' should give a different # that will be equally important.

    Once we have that number, we can look to see what driver is being used.

    Another command that will give useful information, possibly on the driver, is the command:
    Code:
    lsmod | grep video
    and that may let us know the webcam driver that is loaded (and it many not). Please post here the output of that command.

    and another command that 'might' yield some useful information is :
    Code:
    dmesg | grep video
    and if not too big please also post here the output of that command .... although dependent on what one will see (or not see) it may be necessary to copy the entire dmesg output to a paste bin site such as http://susepaste.org so to share its output for other's to examine.

    Again, its possible someone else may have encountered such symptoms themselves, and can cut to the chase immediately, as opposed to my slow assistance in an investigation.

  3. #3

    Default Re: webcam is only grayscale

    Thanks for your help, oldcpu.

    Quote Originally Posted by oldcpu
    From what I read, other than '1-second' in MS-Windows, you are seeing only Black and White from this webcam in both MS-Windows and GNU/Linux.
    Correct.

    Quote Originally Posted by oldcpu
    determine the driver being loaded (if any) to support the webcam
    Well, that's the reason that I mentioned the same problem existed in windows--it indicates that it's not a driver issue.

    Quote Originally Posted by oldcpu
    You can determine your webcam, by sending the command in a terminal:

    Code:
    lsusb
    It's an integrated webcam, so naturally lsusb is not the appropriate command. I also tried lspci, but that didn't list the webcam either. I'm not sure what command to use to list it.

    The output of "lsmod | grep video" is as follows:

    Code:
    uvcvideo               84981  0 
    videobuf2_core         44595  1 uvcvideo
    videodev              141701  2 uvcvideo,videobuf2_core
    videobuf2_vmalloc      13216  1 uvcvideo
    videobuf2_memops       13362  1 videobuf2_vmalloc
    video                  19507  1 i915
    thermal_sys            36646  4 x86_pkg_temp_thermal,thermal,video,processor
    The output of "dmesg | grep video" is as follows:

    Code:
    [    1.089580] pci 0000:00:02.0: Boot video device
    [    6.086590] video LNXVIDEO:00: Restoring backlight state
    [   11.134543] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
    [   11.581447] Linux video capture interface: v2.00
    [   11.582218] uvcvideo: Found UVC 1.00 device Integrated Camera (5986:0397)
    [   11.582906] usbcore: registered new interface driver uvcvideo

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: webcam is only grayscale

    Am 13.01.2014 00:36, schrieb rybnik:
    > It's an integrated webcam, so naturally lsusb is not the appropriate
    > command.

    That is not true, this is my integrated webcam (from lsusb)
    Code:
    Bus 002 Device 003: ID 04f2:b27c Chicony Electronics Co., Ltd
    just because something is integrated does not mean it cannot use usb.
    Btw you dmesg output shows for uvcvideo the usb device id (5986:0397).

    --
    PC: oS 13.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.11 | GTX 650 Ti
    ThinkPad E320: oS 13.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.11 | HD 3000
    HTPC: oS 13.1 x86_64 | Celeron@1.8GHz | 2GB | Gnome 3.10 | HD 2500

  5. #5

    Default Re: webcam is only grayscale

    Quote Originally Posted by martin_helm
    Quote Originally Posted by rybnik

    > It's an integrated webcam, so naturally lsusb is not the appropriate
    > command.
    That is not true
    On my computer, the following is the output of lsusb (as root):

    Code:
    Bus 001 Device 002: ID 8087:8008 Intel Corp. 
    Bus 002 Device 002: ID 8087:8000 Intel Corp. 
    Bus 003 Device 004: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
    Bus 003 Device 003: ID 5986:0397 Acer, Inc 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,710
    Blog Entries
    1

    Default Re: webcam is only grayscale

    Yes, and the webcam device is reported as
    Code:
    Bus 003 Device 003: ID 5986:0397 Acer, Inc

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: webcam is only grayscale

    I have no familiarity with that webcam, but if I want to test mine I use
    guvcview (you may need to install it).
    You can play with the settings to see which possibly affects the color
    of the output.
    You may also want to wait until the multimedia experts are back in that
    thread.
    At least we know now that it is an Acer webcam and which usb id it has.

    --
    PC: oS 13.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.11 | GTX 650 Ti
    ThinkPad E320: oS 13.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.11 | HD 3000
    HTPC: oS 13.1 x86_64 | Celeron@1.8GHz | 2GB | Gnome 3.10 | HD 2500

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,710
    Blog Entries
    1

    Default Re: webcam is only grayscale

    Further to Martin's advice about testing the camera with guvcview (or luvcview), and experimenting with the camera output format, you may want to review the information provided here

    http://krustev.net/w/articles/Linux_and_webcams/

    If you believe that there is still an issue with your device, you may want to get in touch with the Linux UVC development mailing list.

    http://www.ideasonboard.org/uvc/#devices

  9. #9

    Default Re: webcam is only grayscale

    Thank you, Martin and Deano!

    I installed guvcview. In guvcview, there was a setting that read, "Exposure, Auto." Under this, there were two options:

    --Aperture Priority Mode
    --Manual Mode

    It was set to "Aperture Priority Mode" by default. When I changed it to "Manual Mode," suddenly the output was in color!

    This even affected the behavior of other webcam applications such as wxcam, which now renders in color too.

    Well, that was fun.

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,710
    Blog Entries
    1

    Default Re: webcam is only grayscale

    Quote Originally Posted by rybnik View Post
    Thank you, Martin and Deano!

    I installed guvcview. In guvcview, there was a setting that read, "Exposure, Auto." Under this, there were two options:

    --Aperture Priority Mode
    --Manual Mode

    It was set to "Aperture Priority Mode" by default. When I changed it to "Manual Mode," suddenly the output was in color!

    This even affected the behavior of other webcam applications such as wxcam, which now renders in color too.

    Well, that was fun.
    Glad that you've got it working to your satisfaction. (It should be possible to configure in Windows in a similar fashion.)

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •