longjie / ps4eye

Apache License 2.0
76 stars 38 forks source link

Not working for new PS4 Eye Camera? #33

Open nlpguyz opened 5 years ago

nlpguyz commented 5 years ago

PID can be changed, but /dev/video* doesn't appear.

longjie commented 5 years ago

Unfortunately I don't have new PS4 Eye camera and don't know it is available with this code, sorry.

nlpguyz commented 5 years ago

Thanks for your reply. I couldn't get it to work using old PS4 eye camera either.

Here is my lsusb output after running the script:

Bus 004 Device 021: ID 05a9:058a OmniVision Technologies, Inc.

$ lsusb -v -d 05a9:058a


Bus 004 Device 021: ID 05a9:058a OmniVision Technologies, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0         9
  idVendor           0x05a9 OmniVision Technologies, Inc.
  idProduct          0x058a 
  bcdDevice            1.00
  iManufacturer           1 Omnivision Technologies, Inc.
  iProduct                2 USB Camera-OV580
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          311
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              128mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass         14 Video
      bFunctionSubClass       3 Video Interface Collection
      bFunctionProtocol       0 
      iFunction               2 USB Camera-OV580
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        14 Video
      bInterfaceSubClass      1 Video Control
      bInterfaceProtocol      0 
      iInterface              2 USB Camera-OV580
      VideoControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdUVC               1.00
        wTotalLength           77
        dwClockFrequency      125.000000MHz
        bInCollection           1
        baInterfaceNr( 0)       1
      VideoControl Interface Descriptor:
        bLength                18
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Camera Sensor
        bAssocTerminal          0
        iTerminal               0 
        wObjectiveFocalLengthMin      0
        wObjectiveFocalLengthMax      0
        wOcularFocalLength            0
        bControlSize                  3
        bmControls           0x0000000a
          Auto-Exposure Mode
          Exposure Time (Absolute)
      VideoControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             2
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               3
        iTerminal               0 
      VideoControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      5 (PROCESSING_UNIT)
      Warning: Descriptor too short
        bUnitID                 3
        bSourceID               1
        wMaxMultiplier          0
        bControlSize            2
        bmControls     0x0000165f
          Brightness
          Contrast
          Hue
          Saturation
          Sharpness
          White Balance Temperature
          Gain
          Power Line Frequency
          White Balance Temperature, Auto
        iProcessing             2 USB Camera-OV580
        bmVideoStandards     0x1a
          NTSC - 525/60
          SECAM - 625/50
          NTSC - 625/50
      VideoControl Interface Descriptor:
        bLength                26
        bDescriptorType        36
        bDescriptorSubtype      6 (EXTENSION_UNIT)
        bUnitID                 4
        guidExtensionCode         {8a0f88dd-ba1c-5449-8a25-f7875967f0f7}
        bNumControl             1
        bNrPins                 1
        baSourceID( 0)          1
        bControlSize            1
        bmControls( 0)       0x01
        iExtension              2 USB Camera-OV580
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      VideoStreaming Interface Descriptor:
        bLength                            14
        bDescriptorType                    36
        bDescriptorSubtype                  1 (INPUT_HEADER)
        bNumFormats                         1
        wTotalLength                      177
        bEndPointAddress                  129
        bmInfo                              0
        bTerminalLink                       2
        bStillCaptureMethod                 0
        bTriggerSupport                     0
        bTriggerUsage                       0
        bControlSize                        1
        bmaControls( 0)                    27
      VideoStreaming Interface Descriptor:
        bLength                            27
        bDescriptorType                    36
        bDescriptorSubtype                  4 (FORMAT_UNCOMPRESSED)
        bFormatIndex                        1
        bNumFrameDescriptors                3
        guidFormat                            {59555932-0000-1000-8000-00aa00389b71}
        bBitsPerPixel                      16
        bDefaultFrameIndex                  1
        bAspectRatioX                       0
        bAspectRatioY                       0
        bmInterlaceFlags                 0x00
          Interlaced stream or variable: No
          Fields per frame: 2 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0
      VideoStreaming Interface Descriptor:
        bLength                            42
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         1
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           3448
        wHeight                           808
        dwMinBitRate                  5571968
        dwMaxBitRate                167159040
        dwMaxVideoFrameBufferSize     5571968
        dwDefaultFrameInterval         166666
        bFrameIntervalType                  4
        dwFrameInterval( 0)            166666
        dwFrameInterval( 1)            333333
        dwFrameInterval( 2)            666666
        dwFrameInterval( 3)           1250000
      VideoStreaming Interface Descriptor:
        bLength                            46
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         2
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1748
        wHeight                           408
        dwMinBitRate                  1426368
        dwMaxBitRate                 42791040
        dwMaxVideoFrameBufferSize     1426368
        dwDefaultFrameInterval          83333
        bFrameIntervalType                  5
        dwFrameInterval( 0)             83333
        dwFrameInterval( 1)            166666
        dwFrameInterval( 2)            333333
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1250000
      VideoStreaming Interface Descriptor:
        bLength                            42
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         3
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            898
        wHeight                           200
        dwMinBitRate                   359200
        dwMaxBitRate                 10776000
        dwMaxVideoFrameBufferSize      359200
        dwDefaultFrameInterval          41666
        bFrameIntervalType                  4
        dwFrameInterval( 0)             41666
        dwFrameInterval( 1)             83333
        dwFrameInterval( 2)            166666
        dwFrameInterval( 3)            333333
      VideoStreaming Interface Descriptor:
        bLength                             6
        bDescriptorType                    36
        bDescriptorSubtype                 13 (COLORFORMAT)
        bColorPrimaries                     1 (BT.709,sRGB)
        bTransferCharacteristics            1 (BT.709)
        bMatrixCoefficients                 4 (SMPTE 170M (BT.601))
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               1
        bMaxBurst              15
        Mult                    2
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           22
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000c
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   2
      Lowest fully-functional device speed is High Speed (480Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat          32 micro seconds
Device Status:     0x0f00
  (Bus Powered)

My dmesg dump

[2596943.172035] usb 4-3: new SuperSpeed USB device number 18 using xhci_hcd
[2596943.193390] usb 4-3: New USB device found, idVendor=05a9, idProduct=0580
[2596943.193397] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[2596943.193402] usb 4-3: Product: USB Boot 
[2596943.193406] usb 4-3: Manufacturer: OmniVision Technologies, Inc.
[2597191.612441] usb 4-3: reset SuperSpeed USB device number 18 using xhci_hcd
[2597191.630705] usb 4-3: device firmware changed
[2597191.652317] usb 4-3: USB disconnect, device number 18
[2597191.820419] usb 4-3: new SuperSpeed USB device number 19 using xhci_hcd
[2597191.841827] usb 4-3: New USB device found, idVendor=05a9, idProduct=058a
[2597191.841834] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[2597191.841839] usb 4-3: Product: USB Camera-OV580
[2597191.841843] usb 4-3: Manufacturer: Omnivision Technologies, Inc.
[2597328.452319] usb 4-3: USB disconnect, device number 19
[2597353.926405] [drm:drm_edid_block_valid [drm]] *ERROR* EDID checksum is invalid, remainder is 136
[2597353.926412] Raw EDID:
[2597353.926416]    00 ff ff ff ff ff ff 00 4c 2d 87 05 34 32 59 4d
[2597353.926418]    34 14 01 03 80 34 20 78 2a ee 91 a3 54 4c 99 26
[2597353.926421]    0f 50 54 23 08 00 a9 40 81 80 81 40 81 00 95 00
[2597353.926423]    b3 00 01 01 01 01 28 3c 80 00 00 00 00 00 00 00
[2597353.926426]    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[2597353.926428]    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[2597353.926431]    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[2597353.926433]    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[2597353.953773] Raw EDID:
[2597353.953776]    00 00 00 00 00 00 00 03 ff ff ff ff ff ff ff ff
[2597353.953778]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.953780]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.953782]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.953784]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.953786]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.953788]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.953790]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.980625] [drm:drm_edid_block_valid [drm]] *ERROR* EDID checksum is invalid, remainder is 247
[2597353.980627] Raw EDID:
[2597353.980629]    00 ff ff ff ff ff ff 00 4c 2d 87 05 34 32 59 4d
[2597353.980631]    34 14 01 03 80 34 20 78 2a ee 91 a3 54 4c 99 2f
[2597353.980633]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.980634]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.980636]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.980638]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.980640]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.980642]    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[2597353.981703] [drm:radeon_dvi_detect [radeon]] *ERROR* DVI-I-1: probed a monitor but no|invalid EDID
[2597462.957488] usb 4-3: new SuperSpeed USB device number 20 using xhci_hcd
[2597462.978864] usb 4-3: New USB device found, idVendor=05a9, idProduct=0580
[2597462.978872] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[2597462.978876] usb 4-3: Product: USB Boot 
[2597462.978880] usb 4-3: Manufacturer: OmniVision Technologies, Inc.
[2597498.051734] usb 4-3: reset SuperSpeed USB device number 20 using xhci_hcd
[2597498.069841] usb 4-3: device firmware changed
[2597498.091451] usb 4-3: USB disconnect, device number 20
[2597498.259570] usb 4-3: new SuperSpeed USB device number 21 using xhci_hcd
[2597498.280961] usb 4-3: New USB device found, idVendor=05a9, idProduct=058a
[2597498.280968] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[2597498.280973] usb 4-3: Product: USB Camera-OV580
[2597498.280977] usb 4-3: Manufacturer: Omnivision Technologies, Inc.

Thanks!