You are not logged in.

#1 2020-10-06 09:33:46

seelcambio
Member
Registered: 2020-10-06
Posts: 6

Camera not detected on ThinkPad X230

Hey guys, I can't get my laptop to detect in-built camera.

The cam was working previously on Windows.
It's enabled in BIOS. I tried pressing the Fx (e.g. F7) keys to disable camera privacy.
There's no /dev/videoX.

Output of `lsusb`:

    Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 003: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
    Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 002 Device 002: ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    Bus 002 Device 005: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
sudo modprobe uvcvideo

doesn't help, the module is already loaded.
I tried using custom options in /etc/modules/uvcvideo.conf:

options uvcvideo nodrop=1

Any guidance how to continue?

Thanks a lot.

Last edited by seelcambio (2020-10-06 09:34:04)

Offline

#2 2020-10-06 09:44:52

Khere
Member
From: Italy
Registered: 2020-03-04
Posts: 170

Re: Camera not detected on ThinkPad X230

Post the output of :

 lspci -k 

.
Post the log of the cam starting error

Last edited by Khere (2020-10-06 09:47:04)


Fan of Giorgio Moroder & Mohammad Ammax enemy

Offline

#3 2020-10-06 10:14:13

seelcambio
Member
Registered: 2020-10-06
Posts: 6

Re: Camera not detected on ThinkPad X230

Thank you for your response.

lspci -k

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: ivb_uncore
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: i915
  Kernel modules: i915
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: xhci_hcd
  Kernel modules: xhci_pci
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: mei_me
  Kernel modules: mei_me
00:16.3 Serial controller: Intel Corporation 7 Series/C210 Series Chipset Family KT Controller (rev 04)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: serial
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
  Subsystem: Lenovo Device 21f3
  Kernel driver in use: e1000e
  Kernel modules: e1000e
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: ehci-pci
  Kernel modules: ehci_pci
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: snd_hda_intel
  Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
  Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
  Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
  Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: ehci-pci
  Kernel modules: ehci_pci
00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: lpc_ich
  Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: i801_smbus
  Kernel modules: i2c_i801
02:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 07)
  Subsystem: Lenovo Device 21fa
  Kernel driver in use: sdhci-pci
  Kernel modules: sdhci_pci
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)
  Subsystem: Intel Corporation Centrino Advanced-N 6205 (802.11a/b/g/n)
  Kernel driver in use: iwlwifi
  Kernel modules: iwlwifi

I don't have a log of the cam starting. In fact, I can't find any mention of the cam.

Offline

#4 2020-10-06 10:52:53

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: Camera not detected on ThinkPad X230

Try also this:

$ journalctl -b|grep video
...
$ v4l2-ctl --list-devices

https://wiki.archlinux.org/index.php/Webcam_Setup

Last edited by solskog (2020-10-06 10:54:35)

Offline

#5 2020-10-06 11:06:02

seelcambio
Member
Registered: 2020-10-06
Posts: 6

Re: Camera not detected on ThinkPad X230

Thank you.

journalctl -b | grep video doesn't return anything.
v4l2-ctl --list-devices:

Cannot open device /dev/video0, exiting.

Offline

#6 2020-10-06 11:12:18

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: Camera not detected on ThinkPad X230

Are you positive uvcvideo module is loaded?

$ lsmod|grep video

Is there a on/off button to enable/disable camera, you mentioned F7?

Offline

#7 2020-10-06 11:52:06

seelcambio
Member
Registered: 2020-10-06
Posts: 6

Re: Camera not detected on ThinkPad X230

Yes, the module is loaded.

uvcvideo              114688  0
videobuf2_vmalloc      20480  1 uvcvideo
videobuf2_memops       20480  1 videobuf2_vmalloc
videobuf2_v4l2         28672  1 uvcvideo
videobuf2_common       57344  2 videobuf2_v4l2,uvcvideo
videodev              274432  3 videobuf2_v4l2,uvcvideo,videobuf2_common
mc                     61440  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common

There's a [blue] picture of camera on F6, and something resembling video camera on F7. I tried to toggle them with Fn, but to no avail. Hitting some other Fs works, e.g. F4 + Fn correctly causes the laptop to sleep.

Offline

#8 2020-10-06 13:04:07

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: Camera not detected on ThinkPad X230

seelcambio wrote:

I tried using custom options in /etc/modules/uvcvideo.conf:

For archlinux module settings is inside /etc/modules-load.d/uvcvideo.conf

# modprobe --remove --verbose uvcvideo
# modprobe --verbose uvcvideo
# journalctl -b | grep video

Offline

#9 2020-10-06 15:28:42

uhoso
Member
From: Soest, NRW, Germany
Registered: 2014-04-24
Posts: 31

Re: Camera not detected on ThinkPad X230

Hi, I had the same problem. Restarting usb-subsystem helps.
https://zedt.eu/tech/linux/restarting-u … tem-centos

Offline

#10 2020-10-07 10:40:09

seelcambio
Member
Registered: 2020-10-06
Posts: 6

Re: Camera not detected on ThinkPad X230

Thanks for the replies.

I tried to move the options, to modules-load.d

# modprobe --remove --verbose uvcvideo
rmmod uvcvideo
rmmod videobuf2_v4l2
rmmod videobuf2_common
rmmod videodev
rmmod mc
rmmod videobuf2_vmalloc
rmmod videobuf2_memops
# modprobe --verbose uvcvideo
insmod /lib/modules/5.8.13-arch1-1/kernel/drivers/media/mc/mc.ko.xz 
insmod /lib/modules/5.8.13-arch1-1/kernel/drivers/media/v4l2-core/videodev.ko.xz 
insmod /lib/modules/5.8.13-arch1-1/kernel/drivers/media/common/videobuf2/videobuf2-common.ko.xz 
insmod /lib/modules/5.8.13-arch1-1/kernel/drivers/media/common/videobuf2/videobuf2-v4l2.ko.xz 
insmod /lib/modules/5.8.13-arch1-1/kernel/drivers/media/common/videobuf2/videobuf2-memops.ko.xz 
insmod /lib/modules/5.8.13-arch1-1/kernel/drivers/media/common/videobuf2/videobuf2-vmalloc.ko.xz 
insmod /lib/modules/5.8.13-arch1-1/kernel/drivers/media/usb/uvc/uvcvideo.ko.xz
# journalctl -b | grep video
-

I tried restarting both USB 3.0 in xhci_hd and USB 2.0 in ehci-pci - I think correctly, cam doesn't work.

Offline

#11 2020-10-07 11:03:57

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: Camera not detected on ThinkPad X230

seelcambio wrote:

Bus 002 Device 005: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub

There should be two USB2.0 controllers inside /sys/bus/pci/drivers/ehci-pci/, have you tried to unbind/bind both?

/sys/bus/pci/drivers/ehci-pci/
# echo -n "0000:00:XX.X" > unbind
# echo -n "0000:00:XX.X" > bind
# echo -n "0000:00:XX.Y" > unbind
# echo -n "0000:00:XX.Y" > bind

What is the output of ?

$ lsusb -vt

Offline

#12 2020-10-07 11:11:22

seelcambio
Member
Registered: 2020-10-06
Posts: 6

Re: Camera not detected on ThinkPad X230

Yep, I tried to unbind/bind both controllers.

$ lsusb -vt
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    | Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    | Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
    | Port 4: Dev 5, If 0, Class=Communications, Driver=, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 9, Class=Communications, Driver=cdc_acm, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 7, Class=CDC Data, Driver=cdc_mbim, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 5, Class=Communications, Driver=cdc_wdm, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 3, Class=Communications, Driver=cdc_acm, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 1, Class=Communications, Driver=cdc_acm, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 8, Class=Communications, Driver=cdc_wdm, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 6, Class=Communications, Driver=cdc_mbim, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 4, Class=CDC Data, Driver=cdc_acm, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 10, Class=CDC Data, Driver=cdc_acm, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
    | Port 4: Dev 5, If 2, Class=CDC Data, Driver=cdc_acm, 480M
        ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Module
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    | Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
        | Port 4: Dev 3, If 0, Class=Vendor Specific Class, Driver=btusb, 12M
            ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
        | Port 4: Dev 3, If 1, Class=Vendor Specific Class, Driver=btusb, 12M
            ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
        | Port 4: Dev 3, If 2, Class=Vendor Specific Class, Driver=btusb, 12M
            ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
        | Port 4: Dev 3, If 3, Class=Application Specific Interface, Driver=, 12M
            ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]

Offline

Board footer

Powered by FluxBB