Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code: -1, errno: 2, error: No such file or directory #7

Open
HeinzAlberto opened this issue May 22, 2020 · 5 comments
Open

Error code: -1, errno: 2, error: No such file or directory #7

HeinzAlberto opened this issue May 22, 2020 · 5 comments

Comments

@HeinzAlberto
Copy link

Hi there!

I got this error when running "chicony-ir-toggle on" or "chicony-ir-toggle off".
Also tried running it as root, same error here.

I have an ThinkPad X380 Yoga.

Output from lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 138a:009d Validity Sensors, Inc.
Bus 001 Device 004: ID 8087:0a2b Intel Corp.
Bus 001 Device 003: ID 04f2:b605 Chicony Electronics Co., Ltd Integrated IR Camera
Bus 001 Device 002: ID 04f2:b604 Chicony Electronics Co., Ltd Integrated Camera (1280x720@30)
Bus 001 Device 006: ID 056a:5152 Wacom Co., Ltd Pen and multitouch sensor
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Output from v4l2-ctl -d /dev/video2 --all :
Driver Info:
Driver name : uvcvideo
Card type : Integrated IR Camera: Integrate
Bus info : usb-0000:00:14.0-6
Driver version : 5.4.34
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


Any idea how to fix this?

Thanks,
Heinz

@PetePriority
Copy link
Owner

PetePriority commented May 23, 2020

Judging from your USB device identifier 04f2:b605 your camera is a different model than mine 04f2:b67c. What's your laptop model? Have you tried it on other devices than /dev/video2?

Maybe this discussion boltgolt/howdy#269 will help you dig deeper into the problem.

@TheSimpleZ
Copy link

I'm having the same issue on my Leveno X1 Carbon 8th Gen.
The thread in your link was mostly confusing.
I'm not very familiar with these things, but I'd gladly provide any info you need to fix the problem :)

~ >>> lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
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 003: ID 06cb:00bd Synaptics, Inc.
Bus 001 Device 002: ID 04f2:b6cb Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 004: ID 8087:0026 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
~ >>> v4l2-ctl -d /dev/video2 --all
Driver Info:
	Driver name      : uvcvideo
	Card type        : Integrated Camera: Integrated I
	Bus info         : usb-0000:00:14.0-8
	Driver version   : 5.7.9
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Integrated Camera: Integrated I
	Serial           : 0001
	Bus info         : usb-0000:00:14.0-8
	Media version    : 5.7.9
	Hardware revision: 0x00005818 (22552)
	Driver version   : 5.7.9
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Integrated Camera: Integrated I
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000016: from remote pad 0x100000a of entity 'IR Microsoft Extended Controls ': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 9: ok)
Format Video Capture:
	Width/Height      : 640/360
	Pixel Format      : 'GREY' (8-bit Greyscale)
	Field             : None
	Bytes per Line    : 640
	Size Image        : 230400
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             :
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 640, Height 360
	Default     : Left 0, Top 0, Width 640, Height 360
	Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 640, Height 360, Flags:
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 640, Height 360, Flags:
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 30.000 (30/1)
	Read buffers     : 0

@ie-lopez
Copy link

ie-lopez commented Nov 10, 2020

Same problem here! With a Lenovo ThinkPad P1 3th Gen. I tried also with the video0, and is the same mistake. But I am sure that the IR cam is the video2.

>>> lsusb

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
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 004: ID 06cb:00bd Synaptics, Inc. 
Bus 001 Device 003: ID 04f2:b6cb Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 005: ID 8087:0026 Intel Corp. 
Bus 001 Device 006: ID 046d:c085 Logitech, Inc. G Pro Gaming Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>>> v4l2-ctl -d /dev/video2 --all
Driver Info:
        Driver name      : uvcvideo
        Card type        : Integrated Camera: Integrated I
        Bus info         : usb-0000:00:14.0-8
        Driver version   : 5.4.65
        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 9: ok)
Format Video Capture:
        Width/Height      : 640/360
        Pixel Format      : 'GREY' (8-bit Greyscale)
        Field             : None
        Bytes per Line    : 640
        Size Image        : 230400
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Full Range)
        Flags             : 
Crop Capability Video Capture:
        Bounds      : Left 0, Top 0, Width 640, Height 360
        Default     : Left 0, Top 0, Width 640, Height 360
        Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 640, Height 360, Flags: 
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 640, Height 360, Flags: 
Streaming Parameters Video Capture:
        Capabilities     : timeperframe
        Frames per second: 30.000 (30/1)
        Read buffers     : 0


@EmixamPP
Copy link

EmixamPP commented Nov 10, 2020

I allow myself to advise you to have a look at my repo https://github.com/EmixamPP/linux-enable-ir-emitter. It's more or less a fork of this one except that I changed the debugging because as you can see the errors are not adapted to the situation. I took the opportunity to write a complete tutorial on how to modify the PetePriority code to adapt it to your camera.

@ie-lopez
Copy link

Perfect! Now, it is working.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants