Disable IR feature of webcam

My webcam has the feature of having a infrared feature which leads to two cameras being detected by all applications that use the webcam. (ms-teams, zoom, cheese, etc.).

This IR camera is always preselected which leads to distorted videos, so I want to disable this part of the camera, or remove it, blacklist it, or even set precedence to the actual camera.

This is the relevant part of inxi -Gazy.

  Device-2: Chicony USB2.0 Camera type: USB driver: uvcvideo bus-ID: 1-7:2
    chip-ID: 04f2:b65c class-ID: 0e02 serial: <filter>

lsusb shows the device as one device, so I can’t use a udev rule:

Bus 001 Device 002: ID 04f2:b65c Chicony Electronics Co., Ltd Chicony USB2.0 Camera

Does someone know how to disable this part of the device? (it’s bound as /dev/video2 and /dev/video3.

Based on your description technically I am guessing there is IR-color correction facility which select one input over the over based on the how much backlight is available.

I am not sure you can disable one as you would most likely disable both as they are the same device.

The only option I see is that you need to select the correct device for the occasion - perhaps .

I don’t think it’s that intelligent :joy: and it falls back to the IR camera if I plugged in another USB cam in-between.

In every application, I can choose between the normal camera and the"IR camera". The latter also flashes a red light physically, I guess for authentication. So I think there are two devices internally at least.

I can work with an ugly hack if one exists, but I’m out of my experience here.

I think you are looking for something like remove IR camera from lenovo on Ubuntu 20

I’ve found this, too, but I don’t have a specific device for the IR part:

[    2.732563] usb 1-7: Product: Chicony USB2.0 Camera
[   17.549349] usb 1-7: Found UVC 1.50 device Chicony USB2.0 Camera (04f2:b65c)
[   17.622599] input: Chicony USB2.0 Camera: Chicony  as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/input/input21
[   17.626537] usb 1-7: Found UVC 1.50 device Chicony USB2.0 Camera (04f2:b65c)
[   17.643753] input: Chicony USB2.0 Camera: IR Camer as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.2/input/input22

(You see, the vendor and product ids ae the same.)

And then, if I modify the mentioned script, so create a new file /etc/usb_modeswitch.d/04f2:b65c with the content:


And then run usb_modeswitch -v 04f2 -p b65c -c /etc/usb_modeswitch.d/04f2:b65c:

Look for default devices ...
 Found devices in default mode (1)
Access device 002 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 14
Detach storage driver as switching method ...
Looking for active drivers ...
 OK, driver detached
 OK, driver detached
-> Run lsusb to note any changes. Bye!

Then, I loose access to both cameras.