USB webcam issue

Discussion in 'Support Area' started by sepulep, Dec 8, 2018.

  1. sepulep

    sepulep Member

    Joined:
    Nov 18, 2008
    Messages:
    353
    I have got an issue with a usb digital miscroscope: when connecting it registers, and pandora generates a /dev/video0
    however, when trying to use this (with e.g. mplayer), its reported as busy and program will abort. after this the /dev/video0
    is gone (and the lsusb no longer reports the device).

    for me it looks like a driver issue, is there a way to debug or tweak this?
     
    Tags:
  2. Elw3

    Elw3 ƐʍlƎ

    Joined:
    Jul 21, 2013
    Messages:
    862
    Why mplayer?
    Try a webcam tool like _cheese_first.
     
  3. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,911
    Location:
    Lithuania
    Also check the dmesg output.
     
  4. sepulep

    sepulep Member

    Joined:
    Nov 18, 2008
    Messages:
    353
    the dmesg is:

    [ 567.895904] usb 1-2: new high-speed USB device number 2 using ehci-omap
    [ 568.076690] usb 1-2: New USB device found, idVendor=05e3, idProduct=0510
    [ 568.076812] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=0
    [ 568.076995] usb 1-2: Product: USB2.0 UVC PC Camera
    [ 568.077178] usb 1-2: Manufacturer: GenesysLogic Technology Co., Ltd.
    [ 568.711334] media: Linux media interface: v0.10
    [ 568.742614] Linux video capture interface: v2.00
    [ 568.742828] WARNING: You are using an experimental version of the media stack.
    [ 568.742828] As the driver is backported to an older kernel, it doesn't offer
    [ 568.742828] enough quality for its usage in production.
    [ 568.742828] Use it with care.
    [ 568.742858] Latest git patches (needed if you report a bug to linux-media@vger.kernel.org):
    [ 568.742858] b250392f7b5062cf026b1423e27265e278fd6b30 [media] media: ttpci: fix av7110 build to be compatible with CONFIG_INPUT_EVDEV
    [ 568.742858] 85c1abcb5251673d18325576f4923bb78af479de [media] usbtv: Make it dependent on ALSA
    [ 568.742858] 66cae53024c4b73d40b4e78c557a73e082522aed [media] media: fix au0828 dvb suspend/resume to call dvb_frontend_suspend/resume
    [ 568.777130] uvcvideo: Found UVC 1.00 device USB2.0 UVC PC Camera (05e3:0510)
    [ 568.823547] input: USB2.0 UVC PC Camera as /devices/platform/usbhs-omap.0/ehci-omap.0/usb1/1-2/1-2:1.0/input/input8
    [ 568.825683] usbcore: registered new interface driver uvcvideo
    [ 568.825897] USB Video Class driver (1.1.1)

    mplayer:

    Player SVN-r30165-4.3.3 (C) 2000-2009 MPlayer Team

    Playing tv://.
    TV file format detected.
    Selected driver: v4l2
    name: Video 4 Linux 2 input
    author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
    comment: first try, more to come ;-)
    v4l2: unable to open '/dev/video0': Device or resource busy
    v4l2: ioctl set mute failed: Bad file descriptor
    v4l2: 0 frames successfully processed, 0 frames dropped.


    Exiting... (End of file)

    is cheese available for pandora?? (dont expect it to behave differently...))
     
  5. ingoreis

    ingoreis Advanced Member

    Joined:
    Mar 7, 2012
    Messages:
    3,060
    Location:
    49.491276,8.423518
    That looks good..its registered as Device in the right way:
    Here is one working ;)
    [​IMG]
    Install Mplayer on the Nand with this Howto:

    and then start this Software:
    https://repo.openpandora.org/?page=detail&app=camera-001

    Edit:
    sometimes i realy miss a newer Kernel with more Videodrivers on the Pandora like Dvb-t2 Devices
     
    Last edited: Dec 8, 2018
  6. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    10,425
    Location:
    Somewhere off the coast of the EU
    Is there nothing in the dmesg from the time when the /dev device goes missing? The dmesg you've posted does say it's something of an experimental backport though, so perhaps it's not too much of a surprise it can crash.
     
  7. sepulep

    sepulep Member

    Joined:
    Nov 18, 2008
    Messages:
    353
    dmesg reports the disconnect of the usb device, w/o any error:
    [ 698.880767] usb 1-2: USB disconnect, device number 2
     
    levi likes this.
  8. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    10,425
    Location:
    Somewhere off the coast of the EU
    Hmm, maybe it's not a crash then, just the device itself not liking what the driver's saying to it and dropping the mic.

    Unfortunately, there's not a lot we can do with this information. There might be an updated codebase that could be ported, but at this stage in the life of the pandora, I'd prioritise a kernel that's still supported over any specific driver update myself. I've not checked, but IIRC the LTS we're on ran out in the Autumn at some point.
     
  9. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,285
    Location:
    France, near Lyon
    Maybe it's a power issue, and a powered USB2 Hub is needed?
     
    FBnil and levi like this.
  10. Elw3

    Elw3 ƐʍlƎ

    Joined:
    Jul 21, 2013
    Messages:
    862
    Apparently i meant _camcoder_ for the pandora, using cheese on the desktop tho.
    Some cams need to be configurated, i dont expect you tell mplayer to do it.
    Are we talking about the same pandora that powers a hub of HDDs without giving a fuck?
     
  11. sepulep

    sepulep Member

    Joined:
    Nov 18, 2008
    Messages:
    353
    interstingly, if I connect to my laptop (which is running opensuse tumbleweed), i get:

    Code:
    [ 3458.059387] usb 1-1: new high-speed USB device number 3 using xhci_hcd
    [ 3458.234901] usb 1-1: New USB device found, idVendor=05e3, idProduct=0510, bcdDevice=12.09
    [ 3458.234910] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=0
    [ 3458.234915] usb 1-1: Product: USB2.0 UVC PC Camera
    [ 3458.234920] usb 1-1: Manufacturer: GenesysLogic Technology Co., Ltd.
    [ 3458.346615] videodev: Linux video capture interface: v2.00
    [ 3458.362683] uvcvideo: Found UVC 1.00 device USB2.0 UVC PC Camera (05e3:0510)
    [ 3458.363670] uvcvideo: Failed to query (GET_INFO) UVC control 4 on unit 1: -32 (exp. 1).
    [ 3458.416377] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
    [ 3458.417359] input: USB2.0 UVC PC Camera: USB2.0 UV as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/input/input28
    [ 3458.417555] usbcore: registered new interface driver uvcvideo
    [ 3458.417556] USB Video Class driver (1.1.1)
    
    and it does work. Maybe its the bit about the non-compliance and the workaround that is not implemented on the pandora kernel/modules...??
    (hmm...I tried out on an older machine, and there it works w/o reporting the bit about the workaround...1.1.0 video class driver though)
     
    Last edited: Dec 9, 2018
  12. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,285
    Location:
    France, near Lyon
    It's not the same on my side, an HDD doesn't get enough juice from my Pandora to operate correctly and I need a powered Hub to use it.
     

Share This Page

Loading...