Find the answer to your Linux question:
Results 1 to 7 of 7
Hello. My C920 Logitech Webcam has a slow frame rate(~2 frames per second). Does someone know how can I solve this??? (BTW My Laptop embeded camera works fine)....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    14

    Slow frame rate with C920 Logitech Webcam in Ubuntu 12.04 (x86_64)


    Hello. My C920 Logitech Webcam has a slow frame rate(~2 frames per second). Does someone know how can I solve this??? (BTW My Laptop embeded camera works fine).

  2. #2
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    Unplug the webcam, plug back in the webcam and reproduce the problem for a short while. Then post the output of the following command here:

    Code:
    sudo dmesg | tail -n30

  3. #3
    Just Joined!
    Join Date
    Oct 2012
    Posts
    14
    [ 24.114627] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    [ 24.114629] cfg80211: Updating information on frequency 2462 MHz for a 20 MHz width channel with regulatory rule:
    [ 24.114631] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    [ 24.114633] cfg80211: Disabling freq 2467 MHz
    [ 24.114634] cfg80211: Disabling freq 2472 MHz
    [ 24.114637] cfg80211: Regulatory domain changed to country: US
    [ 24.114638] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 24.114640] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    [ 24.114642] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
    [ 24.114644] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 24.114646] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 24.114648] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 24.114650] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
    [ 46.388306] wlan0: no IPv6 routers present
    [ 51.521698] iwlwifi 0000:02:00.0: Tx aggregation enabled on ra = c4:0a:cb:a1:e7:b0 tid = 0
    [ 309.096012] iwlwifi 0000:02:00.0: Tx aggregation enabled on ra = c4:0a:cb:a1:e7:b0 tid = 6
    [ 1824.142364] usb 3-2: USB disconnect, device number 2
    [ 1828.070759] usb 3-2: new high-speed USB device number 3 using xhci_hcd
    [ 1828.799680] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0821)
    [ 1828.812671] input: UVC Camera (046d:0821) as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2/input/input11
    [ 1828.847085] uvcvideo: Failed to query (GET_MAX) UVC control 3 on unit 2: -75 (exp. 2).
    [ 1828.848091] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -32 (exp. 2).
    [ 1828.849618] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -75 (exp. 2).
    [ 1828.850671] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -32 (exp. 2).
    [ 1828.852040] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -75 (exp. 2).
    [ 1828.853011] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -32 (exp. 2).
    [ 1828.854390] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -75 (exp. 2).
    [ 1828.855878] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -75 (exp. 2).
    [ 1828.856857] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -32 (exp. 2).
    [ 1920.332747] xhci_queue_intr_tx: 36 callbacks suppressed

  4. #4
    Just Joined!
    Join Date
    Oct 2012
    Posts
    14
    Just in case this is the output of the command v4l-info /dev/video0(this the camera with the slow frame rate)

    ### v4l2 device info [/dev/video0] ###
    general info
    VIDIOC_QUERYCAP
    driver : "uvcvideo"
    card : "UVC Camera (046d:0821)"
    bus_info : "usb-0000:00:14.0-2"
    version : 3.2.35
    capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

    standards

    inputs
    VIDIOC_ENUMINPUT(0)
    index : 0
    name : "Camera 1"
    type : CAMERA
    audioset : 0
    tuner : 0
    std : 0x0 []
    status : 0x0 []

    video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
    index : 0
    type : VIDEO_CAPTURE
    flags : 0
    description : "YUV 4:2:2 (YUYV)"
    pixelformat : 0x56595559 [YUYV]
    VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
    index : 1
    type : VIDEO_CAPTURE
    flags : 1
    description : "MJPEG"
    pixelformat : 0x47504a4d [MJPG]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
    type : VIDEO_CAPTURE
    fmt.pix.width : 2592
    fmt.pix.height : 1944
    fmt.pix.pixelformat : 0x56595559 [YUYV]
    fmt.pix.field : NONE
    fmt.pix.bytesperline : 5184
    fmt.pix.sizeimage : 10077696
    fmt.pix.colorspace : SRGB
    fmt.pix.priv : 0

    controls
    VIDIOC_QUERYCTRL(BASE+0)
    id : 9963776
    type : INTEGER
    name : "Brightness"
    minimum : 0
    maximum : 255
    step : 1
    default_value : 128
    flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
    id : 9963777
    type : INTEGER
    name : "Contrast"
    minimum : 0
    maximum : 255
    step : 1
    default_value : 32
    flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
    id : 9963778
    type : INTEGER
    name : "Saturation"
    minimum : 0
    maximum : 255
    step : 1
    default_value : 32
    flags : 0
    VIDIOC_QUERYCTRL(BASE+12)
    id : 9963788
    type : BOOLEAN
    name : "White Balance Temperature, Auto"
    minimum : 0
    maximum : 1
    step : 1
    default_value : 1
    flags : 0
    VIDIOC_QUERYCTRL(BASE+19)
    id : 9963795
    type : INTEGER
    name : "Gain"
    minimum : 0
    maximum : 255
    step : 1
    default_value : 64
    flags : 0
    VIDIOC_QUERYCTRL(BASE+24)
    id : 9963800
    type : MENU
    name : "Power Line Frequency"
    minimum : 0
    maximum : 2
    step : 1
    default_value : 2
    flags : 0
    VIDIOC_QUERYCTRL(BASE+26)
    id : 9963802
    type : INTEGER
    name : "White Balance Temperature"
    minimum : 2800
    maximum : 6500
    step : 1
    default_value : 4000
    flags : 0
    VIDIOC_QUERYCTRL(BASE+27)
    id : 9963803
    type : INTEGER
    name : "Sharpness"
    minimum : 0
    maximum : 255
    step : 1
    default_value : 72
    flags : 0
    VIDIOC_QUERYCTRL(BASE+2
    id : 9963804
    type : INTEGER
    name : "Backlight Compensation"
    minimum : 0
    maximum : 1
    step : 1
    default_value : 0
    flags : 0

  5. #5
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    Could you connect it to an USB 2.0 port, if possible?

  6. #6
    Just Joined!
    Join Date
    Oct 2012
    Posts
    14
    I think it was already in a usb 2.0 device??
    But just in case I conected the camera in a usb device, runned "cheese" and typed sudo dmesg | tail -n30

    [ 1931.839619] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -32 (exp. 2).
    [ 2055.807925] usb 3-1: USB disconnect, device number 6
    [ 2362.878844] usb 3-1: new high-speed USB device number 7 using xhci_hcd
    [ 2363.608128] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0821)
    [ 2363.621439] input: UVC Camera (046d:0821) as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2/input/input15
    [ 2363.656027] uvcvideo: Failed to query (GET_MAX) UVC control 3 on unit 2: -75 (exp. 2).
    [ 2363.657066] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -32 (exp. 2).
    [ 2363.658617] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -75 (exp. 2).
    [ 2363.659586] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -32 (exp. 2).
    [ 2363.660910] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -75 (exp. 2).
    [ 2363.662267] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -75 (exp. 2).
    [ 2363.663242] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -32 (exp. 2).
    [ 2363.664613] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -75 (exp. 2).
    [ 2363.666088] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -75 (exp. 2).
    [ 2363.667575] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -75 (exp. 2).
    [ 2434.121035] usb 3-1: USB disconnect, device number 7
    [ 2438.581995] usb 3-2: new high-speed USB device number 8 using xhci_hcd
    [ 2439.310947] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0821)
    [ 2439.324383] input: UVC Camera (046d:0821) as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2/input/input16
    [ 2439.349837] uvcvideo: Failed to query (GET_MAX) UVC control 2 on unit 2: -75 (exp. 2).
    [ 2439.350864] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -32 (exp. 2).
    [ 2439.352150] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -75 (exp. 2).
    [ 2439.353129] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -32 (exp. 2).
    [ 2439.354429] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -75 (exp. 2).
    [ 2439.355946] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -75 (exp. 2).
    [ 2439.357426] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -75 (exp. 2).
    [ 2439.359193] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -75 (exp. 2).
    [ 2439.360692] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -75 (exp. 2).
    [ 2439.361662] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -32 (exp. 2).
    [ 2634.167509] xhci_queue_intr_tx: 36 callbacks suppressed
    jose@jose-Satellite-C855:~$

  7. #7
    Linux Newbie
    Join Date
    Jun 2012
    Posts
    100
    Quote Originally Posted by farrington View Post
    I think it was already in a usb 2.0 device??
    But just in case I conected the camera in a usb device, runned "cheese" and typed sudo dmesg | tail -n30
    Could be. It could be connected to a USB3.0 (XHCI) 'hub' (I think). It could be you do have USB3.0. Or it could be that XHCI is trying to drive an USB2.0 chip.

    Quote Originally Posted by farrington View Post
    [ 2438.581995] usb 3-2: new high-speed USB device number 8 using xhci_hcd
    [ 2634.167509] xhci_queue_intr_tx: 36 callbacks suppressed
    I'm not implying you are not telling everything. Look at the above. The XHCI (USB3.0) driver is having issue's AND is being used.

    If you say this is unexpected then that's a clue too .

    Question: Did it ever work correctly with other distributions? Did it ever work correctly with other kernel versions? Maybe you could try all USB ports, maybe some of them still are 'really' USB2.0 (for e.g. keyboards).

    EDIT: Yes, it looks like an USB problem.
    EDIT2: Look at the second post at the link I provided at the first edit. Seems like kernel 3.2 or 2.6.32 work.

Posting Permissions

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