My Lenovo L450 webcam does not work out of the box on my Debian machine.
To make it work, I have to patch and build a new module for uvcvideo
every time I update the linux image.
I’m running Debian testing on a Lenovo L450. The following instructions are valid for the webcam ID 5986:055a
.
You can check the webcam device ID on your machine using lsusb
:
$ lsusb
(...)
Bus 002 Device 005: ID 5986:055a Acer, Inc
(...)
mkdir -p ~/debian/src
cd ~/debian/src
wget -O webcam.patch https://launchpadlibrarian.net/229627414/0001-uvcvideo-Acer-Integrated-Camera-5986-055a-add-UVC_QU.patch
apt-get source linux-image-$(uname -r)
# Or apt-get source linux-image-$(uname -r)-unsigned for v4.7+
cd linux-* # Should be linux-image source folder
cp ~/debian/src/webcam.patch ./
patch -p1 < webcam.patch
cd drivers/media/usb/uvc/
sudo apt-get install linux-headers-$(uname -r)
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
sudo make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install
If depmod from modules_install fails, redo it:
sudo depmod
sudo rmmod uvcvideo
sudo modprobe uvcvideo
The camera should now work properly.