You are not logged in.

#1 2020-06-28 08:52:32

superium
Member
Registered: 2020-04-13
Posts: 33

Infrared sensor on Lenovol xiaoxin pro 13

seems IR sensor was not drivered on Lenovo XiaoXinPro-13ARE 2020.

# v4l2-ctl --list-devices

Integrated Camera: Integrated C (usb-0000:03:00.4-2):
        /dev/video0
        /dev/video1
        /dev/video2
        /dev/video3

only /dev/video0 works as primary camera.

# v4l2-ctl --list-devices --all                           
Integrated Camera: Integrated C (usb-0000:03:00.4-2):
        /dev/video0
        /dev/video1
        /dev/video2
        /dev/video3

Driver Info:
        Driver name      : uvcvideo
        Card type        : Integrated Camera: Integrated C
        Bus info         : usb-0000:03:00.4-2
        Driver version   : 5.7.0
        Capabilities     : 0x84a00001
                Video Capture
                Metadata Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
        Width/Height      : 640/480
        Pixel Format      : 'YUYV' (YUYV 4:2:2)
        Field             : None
        Bytes per Line    : 1280
        Size Image        : 614400
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Limited Range)
        Flags             : 
Crop Capability Video Capture:
        Bounds      : Left 0, Top 0, Width 640, Height 480
        Default     : Left 0, Top 0, Width 640, Height 480
        Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 640, Height 480, Flags: 
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 640, Height 480, Flags: 
Streaming Parameters Video Capture:
        Capabilities     : timeperframe
        Frames per second: 30.000 (30/1)
        Read buffers     : 0
                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=100 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-180 max=180 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=90 max=150 step=1 default=120 value=120
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=1
                                0: Disabled
                                1: 50 Hz
                                2: 60 Hz
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=10 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=7 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
                                1: Manual Mode
                                3: Aperture Priority Mode
              exposure_absolute 0x009a0902 (int)    : min=2 max=1250 step=1 default=156 value=156 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1

only /dev/video0 test passed.

# gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=10 ! image/jpeg ! multifilesink location="frame-%02d.jpg"
设置暂停管道 ...
管道正在使用且不需要 PREROLL ...
设置播放管道 ...
New clock: GstSystemClock
收到来自组件“pipeline0”的 EOS 信号。
Execution ended after 0:00:00.767906101
设置暂停管道 ...
设置备用管道 ...
设置 NULL 管道 ...
释放管道资源 ...

# gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=10 ! image/jpeg ! multifilesink location="1frame-%02d.jpg"
设置暂停管道 ...
错误: 管道不想暂停。
错误:来自组件 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:“/dev/video1”不是一个捕获设备。
额外的调试信息:
../gst-plugins-good/sys/v4l2/v4l2_calls.c(628): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Capabilities: 0x4a00000
设置 NULL 管道 ...
释放管道资源 ...
# ----------------    video3 act same as video1

#-----------------   video2 seems is the IR sensor, but no picture catched.

gst-launch-1.0 v4l2src device=/dev/video2 num-buffers=10 ! image/jpeg ! multifilesink location="2frame-%02d.jpg"
设置暂停管道 ...
管道正在使用且不需要 PREROLL ...
设置播放管道 ...
错误:来自组件 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:Internal data stream error.
额外的调试信息:
../gstreamer/libs/gst/base/gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000104133
设置暂停管道 ...
设置备用管道 ...
设置 NULL 管道 ...
释放管道资源 ...

seems the IR sensor was not drived.

# dmesg |grep video
[    8.493416] videodev: Linux video capture interface: v2.00
[    8.694988] uvcvideo: Found UVC 1.50 device Integrated Camera (04f2:b67c)
[    8.705227] uvcvideo 3-2:1.0: Entity type for entity Microsoft Extended Controls Uni was not initialized!
[    8.705232] uvcvideo 3-2:1.0: Entity type for entity Realtek Extended Controls Unit was not initialized!
[    8.705235] uvcvideo 3-2:1.0: Entity type for entity Extension 4 was not initialized!
[    8.705237] uvcvideo 3-2:1.0: Entity type for entity Processing 2 was not initialized!
[    8.705239] uvcvideo 3-2:1.0: Entity type for entity Camera 1 was not initialized!
[    8.707912] uvcvideo: Found UVC 1.50 device Integrated Camera (04f2:b67c)
[    8.710718] uvcvideo 3-2:1.2: Entity type for entity Realtek Extended Controls Unit was not initialized!
[    8.710724] uvcvideo 3-2:1.2: Entity type for entity Microsoft Extended Controls Uni was not initialized!
[    8.710726] uvcvideo 3-2:1.2: Entity type for entity Extension 9 was not initialized!
[    8.710729] uvcvideo 3-2:1.2: Entity type for entity Extension 11 was not initialized!
[    8.710731] uvcvideo 3-2:1.2: Entity type for entity Processing 15 was not initialized!
[    8.710734] uvcvideo 3-2:1.2: Entity type for entity Camera 8 was not initialized!
[    8.711124] usbcore: registered new interface driver uvcvideo
# xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ MSFT0001:00 04F3:3138 Mouse               id=12   [slave  pointer  (2)]
⎜   ↳ MSFT0001:00 04F3:3138 Touchpad            id=13   [slave  pointer  (2)]
⎜   ↳ Logitech Wireless Mouse                   id=15   [slave  pointer  (2)]
⎜   ↳ Logitech Wireless Keyboard PID:4023       id=16   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C           id=9    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated I           id=10   [slave  keyboard (3)]
    ↳ Ideapad extra buttons                     id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
    ↳ Logitech Wireless Keyboard PID:4023       id=17   [slave  keyboard (3)]

seems  "Integrated Camera: Integrated I           id=10" was not drived.

# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 04f2:b67c Chicony Electronics Co., Ltd Integrated Camera
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0bda:c123 Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

what i can do to drive the IR sensor up ?

Offline

Board footer

Powered by FluxBB