My integrated webcam was working on Ubuntu 18.04 kernel 4.18.0. Then, some problems happened and I reinstalled Ubuntu and updated it to kernel 5.3.0. After that I found my webcam not working. It shows a black screen in any camera app (e.g.: Cheese). So I searched and I tried these commands:
sudo apt-get install cheese build-essential linux-headers-`uname -r`
sudo apt-get install guvcview
Then, I restarted and pressed Fn+V (the camera shortcut key) and I opened Cheese and it was working in all apps. But in the next boot, I found it not working and it showed a black screen again. I tried the previous commands again, but nothing changed.
$ lsusb
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 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 058f:a014 Alcor Micro Corp. Asus Integrated Webcam
Bus 001 Device 005: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
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
$ uname -r
5.3.0-42-generic
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic