Ubuntu has no built-in driver for the FaceTime HD camera in many 2011–2017 MacBooks. This guide covers installing the facetimehd driver and firmware, what the common errors mean, and which warnings you can safely ignore.
Tested on: MacBook Pro (Mid 2015), Ubuntu 26.04, internet connection available.
In my last post, I walked through installing Ubuntu on my old MacBook Pro step by step. Everything worked well except the webcam, which wasn’t detected at all. In this post, we’ll troubleshoot that issue and get the camera working.
The problem
After installing Ubuntu on a mid-2015 MacBook Pro, WiFi and most hardware work out of the box, but the built-in webcam does not. Camera apps show no device, and /dev/video0 doesn't exist.
The reason is that these MacBooks use a Broadcom PCIe camera (the "FaceTime HD" camera), not a standard USB webcam. Linux has no in-kernel driver for it. You need two things:
- The firmware, which is extracted from Apple's own driver package.
- The
facetimehdkernel module, an out-of-tree driver built from source.
Step 0: Confirm your camera is the right one
Open a terminal and run:
lspci -nn | grep -i broadcomLook for a line mentioning a 720p FaceTime HD Camera with the ID 14e4:1570. If you see it, this guide applies to you. If your MacBook is a 2018 or later model (with the T2 chip), the camera works differently and this driver is not the right path.
Step 1: Install the build tools
sudo apt update
sudo apt install git build-essential curl cpio xz-utils linux-headers-$(uname -r)The kernel headers must match the running kernel, because the driver is compiled against it.
Step 2: Install the firmware
git clone https://github.com/patjak/facetimehd-firmware.git
cd facetimehd-firmware
make
sudo make install
cd ..The make step downloads files from Apple and extracts the firmware, so it needs internet access. When it works, you'll see a line like "Found matching hash" followed by the extracted firmware version.
The firmware ends up at /lib/firmware/facetimehd/firmware.bin.
If make fails with a hash error
I hit this output:
Error: Mismatching AppleCameraAssistant hash for AppleCameraAssistant
Error: The unknown hash is ...
Error: No set files extracted!What it means: the script downloads two things from Apple. The main firmware extracted fine, but the second download (AppleCameraAssistant, which contains optional sensor calibration files) did not match any checksum the script knows. Apple may have changed the file, or the script's expected hash may be out of date. Either way, make stops with an error before it installs anything.
A few things to try:
- Run
git pull, thenmake clean && make, in case the repository has been updated. - Run
maketwice and compare the unknown hash. If it differs each time, the download is being corrupted. If it is the same each time, the problem is on the script's side. - Search the project's GitHub issues for the hash or for "AppleCameraAssistant".
My Case
I got the hash error and here is the message:
Checking dependencies for driver download...
/usr/bin/curl
/usr/bin/xzcat
Downloading the driver, please wait...
Downloading the camera assistant, please wait...
Found matching hash from macOS, Sierra 10.12.6
==> Extracting firmware...
--> Decompressing the firmware using gzip...
--> Deleting temporary files...
--> Extracted firmware version 5.60.0
Error: Mismatching AppleCameraAssistant hash for AppleCameraAssistant
Error: The unknown hash is fbf3c7c4d2e2de7f398840765354c378192bfde0bff4ba74994adca737070f88
Error: No set files extracted!
make: *** [Makefile:54: all] Error 1In my case, running make clean && make multiple times works good.
One more thing, the main firmware had been extracted into the repository folder as firmware.bin even though make exited with an error. Check with ls -l in the folder. If the file is there, you can install it by hand:
sudo mkdir -p /lib/firmware/facetimehd
sudo cp firmware.bin /lib/firmware/facetimehd/Step 3: Build and install the driver
git clone https://github.com/patjak/facetimehd.git
cd facetimehd
make
sudo make install
sudo depmod
sudo modprobe facetimehdTo load the module at every boot, add:
echo facetimehd | sudo tee /etc/modules-load.d/facetimehd.confStep 4: Verify it works
lsmod | grep facetimehd
sudo dmesg | grep -i facetimehd | tail -20
ls /dev/video*You should see the module listed, and a device such as /dev/video0. Then open a camera app, or visit a webcam test page in your browser and allow camera access.
After a kernel update
Because the driver is built against a specific kernel, a kernel update can leave you without a working module. If the camera stops working after an update, install the matching headers and rebuild:
sudo apt install linux-headers-$(uname -r)
cd facetimehd
make clean && make && sudo make install && sudo depmod
sudo modprobe facetimehdThe project also documents a DKMS setup, which rebuilds the module automatically on kernel updates. Check the repository's README for the current instructions.
Summary
- The mid-2015 MacBook Pro camera needs the
facetimehddriver plus Apple-derived firmware. - The firmware's extra calibration files are optional. If their download fails, the camera can still work, just without calibration.
- The kernel-taint message is harmless. The "firmware.bin ... error -2" message is the one that actually blocks the camera.