EmixamPP / linux-enable-ir-emitter

Provides support for infrared cameras that are not directly enabled out-of-the box.
MIT License
229 stars 19 forks source link

Web Camera is broken #190

Open mgite opened 3 weeks ago

mgite commented 3 weeks ago

Ouput of cat /var/local/log/linux-enable-ir-emitter/linux-enable-ir-emitter.log

Output of sudo linux-enable-ir-emitter tweak

there is no output

Output of v4l2-ctl --list-devices

SPCA2087 PC Camera: PC Camera (usb-0000:00:14.0-8):
        /dev/video0
        /dev/video1
        /dev/media0

*Ouput of `for dev in /dev/video; do echo $dev && v4l2-ctl -d $dev --list-formats-ext; done`**

/dev/video0
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'YUYV' (YUYV 4:2:2)
                Size: Discrete 160x120
                        Interval: Discrete 0.033s (30.000 fps)
/dev/video1
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

Output of ls -l /dev/v4l/by-path

lrwxrwxrwx 1 root root 12 Aug 23 15:12 pci-0000:00:14.0-usb-0:8:1.0-video-index0 -> ../../video0
lrwxrwxrwx 1 root root 12 Aug 23 15:12 pci-0000:00:14.0-usb-0:8:1.0-video-index1 -> ../../video1
lrwxrwxrwx 1 root root 12 Aug 23 15:12 pci-0000:00:14.0-usbv2-0:8:1.0-video-index0 -> ../../video0
lrwxrwxrwx 1 root root 12 Aug 23 15:12 pci-0000:00:14.0-usbv2-0:8:1.0-video-index1 -> ../../video1

Give more information if you have

After i installed this package and tried to configure /dev/video0 it did nothing just flashed webcam light. Then i tried /dev/video1 and it said opencv can not open /dev/video1. I was trying to make howdy work. After it did not work i tried rebooting laptop, also i shutdown and start it, but now the webcamera stopped working. I tried to remove this package but still when i try to use webcamera it's light just flashes like it did when i tried to configure it. I tried modprobe -r uvcvideo and then modprobe it still does not work. This package broke something in my system. What could it be and how can i fix my webcamera?

HERE when i ran configure it did not have ANY output. I still waited for about 30 minutes and then pressed CTRL+C. It stopped. I quickly removed this package shutdown->start camera is broken!


Be patient, do not kill the process (you could break the camera); it is not stuck if you see the Searching... output blinking. If you really have to, press CTRL+C, the tool will stop safely as soon as possible (you may have to answer a last question see 5.).```

**Additional info**
 - Computer (or camera) model: Thinkpad T480
 - Linux distribution: Arch Linux
 - Version of linux-enable-ir-emitter: Latest <!--- linux-enable-ir-emitter -V -->
mgite commented 3 weeks ago

Just tried live ubuntu usb and it did the same thing. Flashlight flashes and camera does not work! This package physically damaged my laptop. Why there is no warning about this possibility? It did not have ANY output and i stopped it as manual said by CTRL+C. WTF?

EmixamPP commented 1 week ago

I see you do not give the output logs from /var/local/log/linux-enable-ir-emitter/linux-enable-ir-emitter.log. So it is hard for me to understand what exactly happened.

Note the camera is probably not physically damaged, it seems its firmware is in a wrong state.

mgite commented 1 week ago

I see you do not give the output logs from /var/local/log/linux-enable-ir-emitter/linux-enable-ir-emitter.log. So it is hard for me to understand what exactly happened.

Note the camera is probably not physically damaged, it seems its firmware is in a wrong state.

Yes quickly tried to get that log but file was not there. Here it is. Took just now. Yest it seems like that, because the led is flashing quickly just like it did when i tried to setup ir-emitter. But how can i fix it? I tried updating everything using fwupd, but it did not help.

 ~ cat /var/log/linux-enable-ir-emitter/linux-enable-ir-emitter.log
[14:25:39] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:25:39] [info] Ensure to not use the camera during the execution.
[14:25:40] [critical] No infrared camera has been found.
[14:25:44] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:25:44] [info] Ensure to not use the camera during the execution.
[14:25:44] [critical] No infrared camera has been found.
[14:25:54] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:25:54] [info] Ensure to not use the camera during the execution.
[14:25:54] [critical] No infrared camera has been found.
[14:25:58] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:25:58] [info] Ensure to not use the camera during the execution.
[14:25:59] [critical] No infrared camera has been found.
[14:26:03] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:26:03] [info] Ensure to not use the camera during the execution.
[14:26:04] [critical] No infrared camera has been found.
[14:30:18] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:30:18] [info] Ensure to not use the camera during the execution.
[14:30:18] [critical] No infrared camera has been found.
[14:30:31] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:30:31] [info] Ensure to not use the camera during the execution.
[14:30:32] [critical] No infrared camera has been found.
[14:38:10] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:38:10] [info] Ensure to not use the camera during the execution.
[14:38:10] [critical] No infrared camera has been found.
[14:38:30] [info] Tweaking the camera /dev/video1
[14:38:30] [info] Caution, you could break the camera.
[14:38:31] [critical] OpenCV cannot access to /dev/video1
[14:38:39] [info] Tweaking the camera /dev/video1
[14:38:39] [info] Caution, you could break the camera.
[14:38:39] [critical] OpenCV cannot access to /dev/video1
[14:44:29] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:44:29] [info] Ensure to not use the camera during the execution.
[14:44:29] [critical] OpenCV cannot access to /dev/video1
[14:44:54] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:44:54] [info] Ensure to not use the camera during the execution.
[14:44:54] [critical] OpenCV cannot access to /dev/video1
[14:51:37] [info] Stand in front of and close to the camera and make sure the room is well lit.
[14:51:37] [info] Ensure to not use the camera during the execution.
[14:51:37] [critical] OpenCV cannot access to /dev/video1
[15:25:04] [info] Tweaking the camera /dev/video1
[15:25:04] [info] Caution, you could break the camera.
[15:25:04] [critical] OpenCV cannot access to /dev/video1
EmixamPP commented 1 week ago

Hum, you use the package from AUR. I see it also removed the log when you uninstalled the package, so what is inside is pointless now.

Unfortunately, unless contacting the camera vendor/producer, to get the firmware in order to reset, I'm not sure to be able to do something for you, but I will try my best.

Do you still have the file which is inside /etc/linux-enable-ir-emitter ?

mgite commented 1 week ago

Yes there are 2 files

pci-0000:00:14.0-usb-0:8:1.0-video-index0.ini pci-0000:00:14.0-usb-0:8:1.0-video-index1

EmixamPP commented 1 week ago

Could you copy paste their content?

mgite commented 1 week ago

pci-0000\:00\:14.0-usb-0\:8\:1.0-video-index1 []

pci-0000:00:14.0-usb-0:8:1.0-video-index0.ini https://pastebin.com/NdWcv87y

mgite commented 1 week ago

I was searching for fix and i noticed in this video on 3:26 https://youtu.be/d_hucSz3mQI?si=Hlcv8-GeskPfyyVN&t=206

There is RESET button beside camera in Lenovo vantage on windows. Maybe that will fix it? Or maybe it's just to reset brightness and contrast :D But i have not used windows in about 15 years already. I'll have to replace ssd and install windows first.

EmixamPP commented 1 week ago

But i have not used windows in about 15 years already. I'll have to replace ssd and install windows first.

You can use a VM