This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cheese doesnt work in beagleboneblack installed with angstrom, used along with chipsee LCD



I am using chipsee LCD + beaglebone black and Logitech Webcam C270. I am using angstrome OS distribution provided by Chipsee.
I wanted to use Cheese and see if webcam works fine or not.
When i open cheese it opens and shows waiting animation and then closes without any error messages or something.

Any suggestions/pointers for debugging this issue?

output of journalctl -a -f when i run cheese

 

Jul 19 16:01:05 beaglebone-exp kernel: usb 2-1: reset high-speed USB device number 14 using musb-hdrc
Jul 19 16:01:05 beaglebone-exp kernel: usb 2-1: USB disconnect, device number 14
Jul 19 16:01:06 beaglebone-exp kernel: usb 2-1: new high-speed USB device number 15 using musb-hdrc
Jul 19 16:01:06 beaglebone-exp kernel: usb 2-1: New USB device found, idVendor=046d, idProduct=0825
Jul 19 16:01:06 beaglebone-exp kernel: usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=2
Jul 19 16:01:06 beaglebone-exp kernel: usb 2-1: SerialNumber: FD382030
Jul 19 16:01:06 beaglebone-exp kernel: uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
Jul 19 16:01:06 beaglebone-exp kernel: input: UVC Camera (046d:0825) as /devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/input/input17

 

  • Hi Ankur,

    If you want to test the webcam, you can use "mplayer"

    Try "dmesg" command to display error messages,

    Try "strace" command while you running the command (cheese).

  • Hi Titus,

    Thank you for reply,
    Just to add i tried steps in following link to capture video,

    http://derekmolloy.ie/beaglebone/beaglebone-video-capture-and-image-processing-on-embedded-linux-using-opencv/
    But every time i run "./capture" i get "/dev/video0" device is busy.

    The busybox version of angstrom distribution provided by Chipsee doesnt have "lsof", it has "fuser", i tried "fuser" but couldnt find who is using /dev/video0 device.

    I had tried mplayer also but the same problem, dmesg didnt help me(or i coudln't figure out what is happening there), i will try strace with cheese.

    Thank you,

    Regards,
    Ankur

  • Hi Ankur,

    Have you ever tried "uvccapture" ?

  • Hi Titus,

    I think i had tried to install it but i didn't find that in Angstrom packages.

    I will recheck and update.

    Regards,

    Ankur

  • Hi Ankur,

    You can cross compile the "uvccapture" and it requires libjpeg to successful build.

  • Hi Titus,

    After running cheese if i run dmesg, i get following output
    usb usb2: usb auto-resume
    [ 7321.740526] hub 2-0:1.0: hub_resume
    [ 7321.740568] hub 2-0:1.0: port 1: status 0507 change 0000
    [ 7321.740648] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
    [ 7321.750856] usb 2-1: usb auto-resume
    [ 7321.778191] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
    [ 7321.801555] usb 2-1: finish reset-resume
    [ 7321.854399] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
    [ 7321.907036] usb 2-1: reset high-speed USB device number 7 using musb-hdrc
    [ 7321.965717] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
    [ 7322.241268] usb 2-1: gone after usb resume? status -32
    [ 7322.241290] usb 2-1: can't resume, status -32
    [ 7322.241305] hub 2-0:1.0: logical disconnect on port 1
    [ 7322.243048] hub 2-0:1.0: state 7 ports 1 chg 0002 evt 0002
    [ 7322.243118] hub 2-0:1.0: port 1, status 0501, change 0002, 480 Mb/s
    [ 7322.243136] usb 2-1: USB disconnect, device number 7
    [ 7322.243149] usb 2-1: unregistering device
    [ 7322.243162] usb 2-1: unregistering interface 2-1:1.0
    [ 7322.244496] usb 2-1: unregistering interface 2-1:1.1
    [ 7322.244630] usb 2-1: unregistering interface 2-1:1.2
    [ 7322.244757] usb 2-1: unregistering interface 2-1:1.3
    [ 7322.245003] usb 2-1: usb_disable_device nuking all URBs
    [ 7322.354363] hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
    [ 7322.459816] usb 2-1: new high-speed USB device number 8 using musb-hdrc
    [ 7322.792503] usb 2-1: skipped 1 descriptor after configuration
    [ 7322.792529] usb 2-1: skipped 8 descriptors after interface
    [ 7322.792545] usb 2-1: skipped 1 descriptor after endpoint
    [ 7322.792558] usb 2-1: skipped 43 descriptors after interface
    [ 7322.792578] usb 2-1: skipped 1 descriptor after endpoint
    [ 7322.792590] usb 2-1: skipped 4 descriptors after interface
    [ 7322.792602] usb 2-1: skipped 2 descriptors after interface
    [ 7322.792614] usb 2-1: skipped 1 descriptor after endpoint
    [ 7322.792626] usb 2-1: skipped 2 descriptors after interface
    [ 7322.792639] usb 2-1: skipped 1 descriptor after endpoint
    [ 7322.792651] usb 2-1: skipped 2 descriptors after interface
    [ 7322.792662] usb 2-1: skipped 1 descriptor after endpoint
    [ 7322.792675] usb 2-1: skipped 2 descriptors after interface
    [ 7322.792687] usb 2-1: skipped 1 descriptor after endpoint
    [ 7322.795196] usb 2-1: default language 0x0409
    [ 7322.797758] usb 2-1: USB interface quirks for this device: 2
    [ 7322.797776] usb 2-1: udev 8, busnum 2, minor = 135
    [ 7322.797790] usb 2-1: New USB device found, idVendor=046d, idProduct=0825
    [ 7322.797804] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=2
    [ 7322.797816] usb 2-1: SerialNumber: FD382030
    [ 7322.798274] usb 2-1: usb_probe_device
    [ 7322.798293] usb 2-1: configuration #1 chosen from 1 choice
    [ 7322.799701] usb 2-1: adding 2-1:1.0 (config #1, interface 0)
    [ 7322.799979] uvcvideo 2-1:1.0: usb_probe_interface
    [ 7322.799998] uvcvideo 2-1:1.0: usb_probe_interface - got id
    [ 7322.800093] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
    [ 7322.815757] input: UVC Camera (046d:0825) as /devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/input/input10
    [ 7322.816121] usb 2-1: adding 2-1:1.1 (config #1, interface 1)
    [ 7322.816280] usb 2-1: adding 2-1:1.2 (config #1, interface 2)
    [ 7322.816531] usb 2-1: adding 2-1:1.3 (config #1, interface 3)
    [ 7322.816837] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
    [ 7322.816877] hub 2-0:1.0: port 1 enable change, status 00000503
    [ 7325.233733] usb 2-1: usb auto-suspend, wakeup 0
    [ 7325.246876] hub 2-0:1.0: hub_suspend
    [ 7325.246913] usb usb2: bus auto-suspend, wakeup 1
    Regards,
    Ankur
  • Hi Ankur,

    I'm not sure that the below changes give solution.

    Try to disable the "USB suspend/resume" configurations in kernel through menuconfig.

  • Hi Titus,

    Thank you for reply,
    In my opinion this issue has something to do with driver or kernel configurations, so solution you provided might actually work,
    I will try that and let you know.

    Regards,
    Ankur