Closed AndyKolski closed 1 year ago
Hum, is it possible to download the camera driver on the support page of your laptop which contains the drivers on the vendor's website? If so, since you have a Windows dual boot, you could run it to reset the configuration.
If you feel able, one possibility that could reset the configuration of the camera, is to open the laptop and disconnect the battery.
Once the camera is reset, if you haven't uninstalled linux-enable-ir-emitter
, you could try to configure the camera again, as the tool has learned what made your camera crash.
To be sure, you can see if there is a /etc/linux-enable-ir-emitter/pci*.excluded
file that contains something.
But I can also understand why you might be afraid to try again.
Sorry it took me a while to reply, unfortunately I am very busy during this period. But I will try to help you and get your camera working again.
Hum, is it possible to download the camera driver on the support page of your laptop which contains the drivers on the vendor's website? If so, since you have a Windows dual boot, you could run it to reset the configuration.
I looked up the camera driver for you on your laptop's support page: https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-x-series-laptops/thinkpad-x1-carbon-6th-gen-type-20kh-20kg/downloads/driver-list/component?name=Camera%20and%20Card%20Reader
Or start the download directly using this link: https://download.lenovo.com/pccbbs/mobiles/n22ci10w.exe
Feel free to comment if you wish to re-open the issue.
Ouput of
linux-enable-ir-emitter -v -d /dev/video0 configure
configure command output
``` $ linux-enable-ir-emitter -v -d /dev/video0 configure INFO: Ensure to not use the camera during the execution. INFO: Warning to do not kill the process ! CRITICAL: Cannot access to /dev/v4l/by-path/pci-0000:00:14.0-usb-0:5:1.0-video-index0 ERROR: The configuration has failed. INFO: Do not hesitate to visit the GitHub ! https://github.com/EmixamPP/linux-enable-ir-emitter/wiki ```Output of
v4l2-ctl --list-devices
Ouput of
v4l2-ctl -d /dev/video0 --list-formats-ext
v4l2 device output
``` $ v4l2-ctl -d /dev/video0 --list-formats-ext ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'YUYV' (YUYV 4:2:2) Size: Discrete 160x120 Interval: Discrete 0.033s (30.000 fps) ```Additional info
The IR camera previously appeared in lsusb as the following:
Since running the script, it has started appearing as the following:
Since the change, the IR camera has stopped working in Windows 10, and while it is detected in Linux, it only reports being capable of one resolution, frame rate, and format, and it does not produce any frames, although the IR emitters are on solid. I have shut off the laptop entirely multiple times, for prolonged periods, and it has made no difference.
The first time I ran the configure command, I used the command
linux-enable-ir-emitter -v -d /dev/video0 configure -e 2
, as the camera has an emitter on each side of the lens. That time it got farther - it repeatedly asked if the emitters were flashing, and since they were staying off, I answered "No". After a few iterations, it told me to shutdown and restart my computer, then try again, so I did that, and it has not been able to get that far again. Unfortunately, I do not have the output from the first time I ran the command.Note that I have also tried using some of the scripts and C programs from https://github.com/boltgolt/howdy/issues/269 and https://github.com/PetePriority/chicony-ir-toggle to no effect. The ioctl on /dev/video0 always fails with errno=2, "No such file or directory", despite the file existing, and my user having permission to access it. I also did make sure I correctly changed the code to point to the right file
At this point I have no interest in getting the IR emitters to stay on (as opposed to flashing as it did by default), I would be happy to have basic functionality again.
Thank you!