I purchased a second hand Lenovo Z370 that was successfully running Ubuntu 12.10. I did a fresh installation where I erased and installed 18.04. But my integrated webcam is not working.
Cheese tells me No Device Found
I have run
sudo apt-get install libsbigudrv2 libsbigudrv0
and I get the following messageReading package lists... Done Building dependency tree Reading state information... Done libsbigudrv0 is already the newest version (5:0.5-0ubuntu10). libsbigudrv2 is already the newest version (2.0.0-0ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I have also run
ls -ltrh /dev/video*
and the result I get isls: cannot access '/dev/video*': No such file or directory
I have also run
sudo apt-get install cheese build-essential linux-headers-``uname -r
` and what I get isReading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.4ubuntu1). cheese is already the newest version (3.28.0-1ubuntu1). linux-headers-4.15.0-29-generic is already the newest version (4.15.0-29.31). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I also see a camera icon on my Esc key and I pressed Fn+Esc but I'm not able to detect if anything happened. One thing I can report is that /dev/video was still not available.
Running
lspci
yields00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05) 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) 00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5) 00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5) 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) 00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05) 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05) 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05) 05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05) 06:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
So, how do I get the webcam working?
Edit 1: Ran a few more commands based on input from Martin.
lsusb
givesBus 002 Device 007: ID 0489:e00d Foxconn / Hon Hai Broadcom Bluetooth 2.1 Device Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller 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
dmesg | grep uvc
gives nothing.Checked
dmesg | grep uvc
after runningsudo modprobe uvcvideo
and it yields[ 2901.557462] usbcore: registered new interface driver uvcvideo
Cheese still doesn't work.
Edit 2: The webcam mysteriously started working. I'm guessing the software updates in the previous months have made it possible. I first noticed this when running zoom. The webcam worked and then stopped working after 5 seconds or so. So I opened cheese and the webcam worked for maybe half a minute (with poor quality) but then stopped working.
lsusb
and look for "Lenovo Integrated Camera" or some such thing. Also, post the output ofdmesg | grep uvc
. If that gives nothing, try:sudo modprobe uvcvideo
and try thedmesg | grep uvc
command again. – Martin W Aug 04 '18 at 15:19dmesg
to figure out what driver is being used. – Martin W Aug 04 '18 at 16:29mplayer -cache 128 -tv driver=v4l2:width=640:height=480 -vo xv tv://
. You may needsudo install mplayer
, if you don't have that package already. – Martin W Aug 06 '18 at 20:38Playing tv://. Cache fill: 0.00% (0 bytes)
TV file format detected. No such driver: v412
Exiting... (End of file) `
– Rohit Rao Aug 15 '18 at 06:59