[Debian/Ubuntu] FacetimeHD Webcam Driver

Joom

 ❤❤❤
OP
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
So, this is my first time building and distributing a DEB package, and it may not work as intended. I don't have a second Mac on hand that I can test with. I'm posting this for any other Mac users out there that are having a hard time getting the internal webcam working. The process to do it manually is rather tedious, and documentation is lacking. This is also a DKMS package, which means any time your kernel gets updated, the driver should be automatically added to the new kernel, making reinstalling it unnecessary. I've also extracted the color profiles from the Bootcamp driver, so color correction should also work properly. Credits for the actual driver go to patjak.

This driver should work with the following models:
  • iMac (21,5", since mid 2011)
  • iMac (27", since mid 2011)
  • MacBook Air (since mid 2011)
  • MacBook Pro (15", since early 2011)
  • MacBook Pro (17", since early 2011)
  • MacBook Pro (13", since early 2011)
  • Thunderbolt display
Download ZIPhttps://cloud.mogbox.net/s/ppgUGM07JSSCXdx/download

First, install the camera firmware from Apple:
Code:
> $ sudo apt install git cpio curl xz-utils
> $ sudo su - && cd /usr/local/src
> # git clone https://github.com/patjak/facetimehd-firmware.git && cd facetimehd-firmware
> # make && make install
> # exit

Then, install the driver and color profiles:
Code:
> $ unzip facetimehd-dkms_0.1_all-20221111.zip -d facetimehd && cd facetimehd
> $ sudo dpkg -i facetimehd-dkms_0.1_all-20221111.deb
> $ sudo cp Color\ Profiles/*.dat /usr/lib/firmware/facetimehd

Reboot and you should be good to go. Please let me know if anything goes wrong. I'll try to help as best as possible.

Update - June 11th, 2022
A few commits have been made since I posted this, so I decided to build a new version with the latest changes. Instructions are pretty much still the same, and you can check the commit links below for changes. They're in the order of newest to oldest.

75a2a58 - Use dma_set_coherent_mask() instead of pci_set_consistent_dma_mask()
8431504 - Specify module device table
f85a604 - Apply SPDX license identifiers and provide a LICENSE file

Update - December 18th, 2022

Belated, but built the driver against Linux 6.x for a proper DKMS package.

Bonus:
If you don't use a Debian based distro, there are also RPM packages for RHEL based distributions, a PKGBUILD for Arch based distributions, and packages for OpenSUSE. Here are instructions for Gentoo as well.
 
Last edited by Joom,

Mackius

New Member
Newbie
Joined
Oct 18, 2021
Messages
1
Trophies
0
Age
66
XP
34
Country
United Kingdom
Hi Joom - Thanks very much indeed for your very helpful post. I'm using a Macair which I bought in July 2013 and on which I recently started to use LinuxMint. After finding that the built-in camera wouldn't work, I followed various online instructions and was finally able to get it to work. But the transmitted image had a strong golden hue. When I "researched" the problem, I came across your post, and implemented your easy to follow instructions. I'm very grateful. Best wishes. Bill
 
  • Like
Reactions: Hekel_UK and Joom

Joom

 ❤❤❤
OP
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
Hi Joom - Thanks very much indeed for your very helpful post. I'm using a Macair which I bought in July 2013 and on which I recently started to use LinuxMint. After finding that the built-in camera wouldn't work, I followed various online instructions and was finally able to get it to work. But the transmitted image had a strong golden hue. When I "researched" the problem, I came across your post, and implemented your easy to follow instructions. I'm very grateful. Best wishes. Bill
Oh cool, so it worked out for you? I imagine you probably needed the color profiles. Without them, my 2015 MBP's camera is green and red, so it's probably similar across most, if not all models that use this driver. Anyway, glad to hear this helped.
 

Deleted member 575583

New Member
Newbie
Joined
Dec 4, 2021
Messages
1
Trophies
0
Age
38
XP
14
Country
Spain
Hello, thank you for your guide, but still after completing the steps I get no image at all of the camera on Zoom (which is where I tested) nor do I get any green light indicating the camera would be on.

Using Lubuntu 21.10
 
Last edited by Deleted member 575583,

Joom

 ❤❤❤
OP
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
Wait so does this mean I could use facetime on Linux?
No, unfortunately. The name of the webcam is "FacetimeHD", and this is just a driver. The Linux kernel doesn't come with support baked in, and this is a rather hacky driver that was built from reverse engineering the camera's firmware. Color calibration profiles also have to be extracted from the Windows driver (included in this ZIP), so I imagine these are the reasons why "official" Linux support hasn't come about.
 

Deleted member 546149

Well-Known Member
Member
Joined
Dec 18, 2020
Messages
2,000
Trophies
2
XP
6,972
No, unfortunately. The name of the webcam is "FacetimeHD", and this is just a driver. The Linux kernel doesn't come with support baked in, and this is a rather hacky driver that was built from reverse engineering the camera's firmware. Color calibration profiles also have to be extracted from the Windows driver (included in this ZIP), so I imagine these are the reasons why "official" Linux support hasn't come about.
Oh so you could use the driver on Linux
 

Hekel_UK

Active Member
Newcomer
Joined
Jul 12, 2019
Messages
38
Trophies
0
XP
125
Country
United Kingdom
Hi man, first and foremost, thanks for doing this :)

I've followed your process, and it completed successfully, but after a restart, it doesn't seem to do much.
If I open Cheese the webcam never turns on.

I'm running Ubuntu 22.04 on a Macbook Pro 13 Retina (early 2015)

Any idea?

Thanks :)
 

zarbout

New Member
Newbie
Joined
Sep 25, 2022
Messages
2
Trophies
0
Age
59
Location
USA
XP
12
Country
United States
Nice shot mate. MacBook Pro Retina mid 2014. Relieved me ! You should push this somewhere on the indexed forums ! Hard time to find this "perle" !
 

zarbout

New Member
Newbie
Joined
Sep 25, 2022
Messages
2
Trophies
0
Age
59
Location
USA
XP
12
Country
United States
Nice shot mate. MacBook Pro Retina mid 2014. Relieved me ! You should push this somewhere on the indexed forums ! Hard time to find this "perle" !
 

Sremyi

New Member
Newbie
Joined
Mar 24, 2024
Messages
1
Trophies
0
Age
24
XP
2
Country
United States
what about all the other drivers cause i cant get my graphics driver
Post automatically merged:

what about all the other drivers cause i cant get my graphics driver
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    Illinois is working to ban toxic food additives that have been banned for decades in other countries; additives that can be replaced and all those countries still have Skittles and Mountain Dew. Title of the piece: GUBMINT WANTS TO TAKE AWAY YOUR CANDY
  • Veho @ Veho:
    Gee, I wonder if the author is biased?
  • SylverReZ @ SylverReZ:
    @Veho, Sounds and smells like bullshit. They don't give you cancer, and California should know that. I don't get why they stick labels that say "may or may not cause reproductive harm or cancer".
  • Veho @ Veho:
    Arsenic doesn't give you cancer either.
    +2
  • Veho @ Veho:
    California has already banned those additives BTW.
    +2
  • Veho @ Veho:
    Psi has been banned in the state of California.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I am the cancer!!! lol
  • Psionic Roshambo @ Psionic Roshambo:
    Yayyy got arcade games on the Pi working lol
  • Veho @ Veho:
    Cool.
  • Psionic Roshambo @ Psionic Roshambo:
    Now to spend 6 months deleting all the garbage lol
  • Psionic Roshambo @ Psionic Roshambo:
    Mame should be two sets one for preservation of everything and one set for people who just want to play and enjoy the old old ganes
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Shouldn't preservation be legal tho?
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, I always see this dude's shorts, he sounds pretty annoying.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Preservation yeah it absolutely should be legal
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Believe Japan was going to make it legal at some point, according to a Kotaku story.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I swear like 99% of arcade games wouldn't even exist these days outside of MAME the arcade machines are old and busted very few ever saw any sort of home conversion
  • Psionic Roshambo @ Psionic Roshambo:
    We get 37 versions of Super Mario Bros but 0 of Beast Busters
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, There's a lot of obscure Japanese arcade titles that are either lost to time or dumped.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's so unfair, maybe AI can save us lol
  • Psionic Roshambo @ Psionic Roshambo:
    I mean if a company could use AI to do the work of a home conversion for essentially free why not? The rights for some games are completely lost though
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, AI is taking our jobs!
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Just tried the Master System version.... Ugghh
    Psionic Roshambo @ Psionic Roshambo: Just tried the Master System version.... Ugghh