Edit: This script can pop some “Permission Denied” for several users. So, feel free to follow the steps from this post:
This will ensure that your camera is properly installed and that it follows the DKMS automatic re-compiling when you change or upgrade your Kernel.
Original message follows:
Hello everyone!
Since this has been asked several times, I created a small, custom bash script to detect your distro and automatically install your MacBook’s FaceTime HD camera, in case it does not found by your Linux installation.
The file:
mac_camera_dkms.sh (2.3 KB)
Simply download the file into your downloads folder, then open up a terminal and type:
cd ~/Downloads
sh ./mac_camera_dkms.sh
It will ask you for your sudo password to run the installation. At any additional installation, like the Development Tools (to compile the modules), simply answer Y and hit Enter/Return for it to continue.
If you encounter any errors, please post them here and I will help you through.
By the way, this script supports:
- Arch-based distros (like Manjaro)
- Ubuntu-based distros (and their derivatives, like Mint, Zorin, Elementary, etc.)
- Redhat’s Fedora
In short, this script will download and install the Firmware and the Kernel module for your MacBook camera. It will also start the module on the fly.
Note: If you start a camera-capture application and it appears too slow (like Cheese), it is because the app configures the capture with a color-type that is very slow. You can try and install OBS Studio via Flatpak, with the following command:
flatpak install com.obsproject.Studio
Then, run OBS Studio and in the Source Panel, select to add the Video Capture Device (V4L2). Then, go to the video format and select an option that will allow the camera to work at full speed. Hit OK and then exit. The properties should be saved for your camera. For further info, please look at the screenshots below: