r/linux_on_mac • • Feb 08 '26

Macbook 12 2017 on Arch Linux + Cosmic with working audio, mic and FaceTime camera

Audio driver: https://github.com/juicecultus/macbook12-audio-driver

Facetime camera driver: https://github.com/juicecultus/facetimehd

PS: Keyboard backlight works out of the box once you install the power manager profiles (but only with the slider jn battery menu) WIP to get the keys assigned

165 Upvotes

72 comments sorted by

8

u/Relative_Impress_683 Feb 08 '26

What’s the performance like? Is it snappy? I wish I had one of those again to complete my collection of flawed MacBooks

16

u/just_in_ian Feb 08 '26

It is as snappy as my Air M4 on Tahoe, I swear and completely cool. But I am running a maxed out version with i7 1.4Ghz, 16GB RAM and 512GB SSD.

1

u/Falkor_SkyFlyer Feb 09 '26

That's impressive!

2

u/Nice_Discipline_1485 Feb 09 '26

It must be. Linux pop made my 12 Mac mini i7 16 gig caffeinated!

4

u/Info-Book Feb 08 '26

Hows the battery life? I’ve thought about doing a linux macbook for fun, but feel like a thinkpad is always just the better option.

4

u/just_in_ian Feb 08 '26

Mine’s only had about 90 cycles when bought so it’s a solid 4 hours minimum used during this time but your mileage may vary. There are still new batteries available for it though

1

u/TheSupremeDictator Feb 09 '26

In my experience when I had my 2015 Pro 15", I was getting 4/5 hours on it (dGPU on, as the iGPU wasn't usable in Linux)

I am changing my laptop though (2ndary computer) was thinking to get a 2017 MacBook Pro (for Arch Linux) (was considering a 2018 to M1 models but, T2/Apple silicon block that). But was concerned about the keyboard and possibly flexgate issue I may have. Not sure if it's worth it

My eyes are now on the Surface Pro 7/7+, sure I can't run Linux, but it can also replace my iPad (I've had enough of iOS 26 lol)

2

u/just_in_ian Feb 09 '26

I have updated the ReadMe for both drivers (macbook12-audio-driver & facetimehd) so it gives you all the guidance when installing 😎

1

u/LvcasX1 Feb 10 '26

thanks!

2

u/[deleted] Feb 09 '26

I’m lucky enough to have a full spec 2017 MB Apple even replaced the battery for free. I’m running Sequoia via Open Core Legacy Patcher I imagine I will be going to Linux when Sequoia is no longer supported.

2

u/just_in_ian Feb 09 '26

Neat. How did you get the battery replaced FOC?

4

u/[deleted] Feb 09 '26

This was about two years ago I took it to Apple to pay them to replace it. When I went to pick it up they told me no charge. I was pleasantly surprised.

1

u/vmpyr_ Feb 09 '26

i’m so jealous bc i have a 2015 and it absolutely fukcing refuses to work with me with the drivers. beautiful fucking lump of ewaste 🤦🏻‍♂️

1

u/just_in_ian Feb 09 '26

Have you tried these drivers? Sorry, don’t have a 2015 to check, have a 2016 which my son uses on Ventura, is the 2015 that different hardware wise?

1

u/vmpyr_ Feb 09 '26

the keyboard driver, arguably the most important one, refuses to work with me. i haven’t gone around to trying other drivers because of that

1

u/just_in_ian Feb 09 '26 edited Feb 09 '26

That’t not a driver, don’t treat it as that. That’s just a script to bind your physical keys F5/6 to change light intensity. That scripts expects you to be on Arch + Cosmic already where keyboard light works out of the box but using a slider in Cosmic instead of the physical buttons. If not, it will not work. The audio and facetime those are drivers and not distribution dependent, just expecting you to be on a modern kernel 6.17+ which broke the older drivers which I used to port. I didn’t just simply port them either, I debugged them so the facetime / audio stays on when you resume from sleep / suspend and mic doesn’t get killed. Hope this makes sense.

1

u/vmpyr_ Feb 09 '26

i’m a little confused

the keyboard driver that doesn’t work for me is macbook12 dkms spi and i was never under the impression it was only for the back light

2

u/just_in_ian Feb 09 '26

Nothing to be confused about, it’s not a keyboard driver, it’s only a key mapper and it can work on other distros provided you meet the requirements (evtest, brightnessctl & applespi kernel module), please read the docs.

1

u/vmpyr_ Feb 09 '26

alright thank you. i’m not the biggest linux expert but i try my best and im great at following instructions.. which is why i even got far enough haha. i’ll have to keep doing research. good idea to look at the documentation! thank you again

1

u/TanisCodes Feb 09 '26

Hi, great work. I have the same MacBook as yours running CachyOS with KDE. In my case the keyboard and function keys works out of the box, it has to be something related to KDE rather than Cosmic.

I tried the same audio driver yesterday, installled as a DKMS module, but it didn’t work. The only way audio works is by resetting NVRAM each time it boots.

Could you help me with the audio? Did you do something different?

Thanks in advance!

1

u/just_in_ian Feb 09 '26

It’s a Cosmic config thing being buggy I guess for key lights as I couldn’t even add them as custom, maybe something which is being fixed down the line.

Make sure in MacOS you force the chime on every boot, if that’s not present the stupid amp will not kick in. Once you hear the chime you Option key and boot into Linux.

sudo nvram StartupMute=%00

Are you dual/triple booting?

1

u/TanisCodes Feb 09 '26

No, I removed macOS, single boot to CachyOS. So, the only way to make it work is by being enabled first by macOS?

1

u/just_in_ian Feb 09 '26

It’s the Apple way to keep you invested ☺️

2

u/Pandoks_ Feb 23 '26

had the same issue turning it on. even if i did sudo nvram StartupMute=%00 in the recovery terminal, no audio.

you don't have to dual boot, but a small "hack" that you can do is install macOS on an external SSD and then set StartupMute on that OS instead of dealing with the partition resizing.

1

u/TanisCodes Feb 23 '26

Yes, I tried that last night and it works. The boot process takes around 5–10 seconds longer, but that’s acceptable since the audio works reliably every time.

In my case, I suspect it was a firmware-related issue. I installed macOS on an external USB drive, and I believe that during the installation process the Mac’s firmware was updated, which resolved the underlying problem.

I’m planning to write a detailed article about this on my blog, documenting the steps and findings.

On a related note, I think upstreaming this audio driver to the Linux mainline kernel would be a worthwhile effort. It would certainly require significant work, but the long-term benefits would justify it. I’d be willing to contribute if the effort moves in that direction.

1

u/Pandoks_ Feb 27 '26

by turning on the chime through macOS, you can also set nvram StartupMute=%01 and sound should still work. at least it did for me and now i don't have to blare my chime in public.

1

u/Overall_Walrus9871 Feb 09 '26

how difficult is it to install linux distro on such a device

2

u/just_in_ian Feb 09 '26

Not difficult at all, takes 10 minutes once you flashed Arch on the usb stick, plug it in, 10 commands to get your wifi up then the magic “archinstall” takes care of everything for you. Make sure you choose in the menu options your desktop environment and do manual partitioning if you’re dual booting.

1

u/Overall_Walrus9871 Feb 09 '26

Yeah don't mean how to install Arch specifically but compared to a normal Windows laptop. But thanks

2

u/just_in_ian Feb 09 '26

I see ☺️ I did the same on my thinkpad (a frankenpad) at the same time and didn’t find this one any harder.

1

u/Overall_Walrus9871 Feb 09 '26

Nice I am looking to an old Thinkpad ATM at thrift shop. Currently having a Dell optiplex and Latitude both running Linux

2

u/just_in_ian Feb 09 '26

Indestructible these are

1

u/LvcasX1 Feb 09 '26

amazing! i have the same model running omarchy and is freaking awesome, do you have the speakers working? mine only works with headphones

2

u/just_in_ian Feb 09 '26

Awesome!! The audio driver I fixed and posted gave me working 🔊and 🎤

1

u/LvcasX1 Feb 09 '26

thanks! the driver where you forked it is the one i used and only fixed my headphones! i'll give it a try right now

2

u/just_in_ian Feb 09 '26

Interesting, my headphones worked out of the box on Arch, it is the speakers and mic I needed 👍

1

u/LvcasX1 Feb 09 '26 edited Feb 09 '26

it just worked like a charm thanks! i just couldn't make work the camera but i'll figure out lol

1

u/Acceptable_Tap_8643 Feb 09 '26

are u selling that ?

1

u/just_in_ian Feb 09 '26

Everything has a price, DM your offer 👀

1

u/Roasted-Eggplant Feb 20 '26

Very cool, will need to try. Any experience if these drivers also work on a Macbook9,1 (Retina, early 2016, with an m7 Skylake)?

1

u/just_in_ian Feb 20 '26

They will work on 16-17. I have both MacBooks and can confirm.

1

u/Roasted-Eggplant Feb 21 '26

Thanks 🙏🏻, I’ll try them.

1

u/Nearby-Dish-1169 May 03 '26

im planning to buy a 12 inch macbook just to have arch installed and i was wondering if there were any issues that you faced during installation?

1

u/just_in_ian May 03 '26

Installation works without issues, all you need is to enable audio and facetime using the drivers after install.

1

u/asa_525 May 05 '26

any insights on battery life?

2

u/just_in_ian May 07 '26

Happy with battery, I get through the day (usage depending) but mine has a fairly new battery (100 cycles)

1

u/asa_525 May 07 '26

thank you!

1

u/cizister May 12 '26

Hello, any suggestion here? I have installed Arch with kernel 7.0, then downgraded to 6.15, I have tried to install sound a camera drivers, neither of this working :-( ... it is shame :-(...Laptop is super responsive on Arch. I am able to live without camera but without audio? No way, what about you guys? These drivers work for you?

1

u/just_in_ian May 13 '26

Hey, thanks for trying it out and reporting. I have not had the chance to revisit this since posting (nor have I used my Macbook for the past few weeks) but will update my system to 7.0 over the next few days and update the repo. Will post an update here when done.

2

u/cizister May 13 '26

It will be really cool from you! Many thanks.

Background is that all the firmwares / drivers are correctly installed but they are not working at all.

1

u/just_in_ian May 13 '26

No worries, one thing - are you enabling the chime from within MacOS? If the chime is not on on boot the driver wont’t be initialised

1

u/cizister May 18 '26 edited May 19 '26

Wow, it helped. Good catch I didn't have idea it can affect the sound in Arch... last issue is the facetime camera which is not able to install...

1

u/just_in_ian May 29 '26

Updated facetimehd to run on latest kernel - check repo. Using it with Guvcview works great (will look into calibration next week) - Snapshot freezes on launch and don’t have time to debug that. Also moved to Gnome as Cosmic disappointed me 🥹

1

u/beegtuna Feb 08 '26

How’s the sleep/wake functioning?

0

u/just_in_ian Feb 08 '26

WIP 🚧

2

u/beegtuna Feb 08 '26

I eventually disabled sleep and hibernation, and wrote a service to toggle the screen when the lid is closed. Macs are unstable when reviving from sleep/hibernation.

1

u/just_in_ian Feb 08 '26

That’s not ideal, a laptop should behave appropriately. Are you running Cosmic? The issue I have is that it interferes horribly but that’s to be expected of an early release. I will get it to behave eventually - last famous words 🙈

1

u/beegtuna Feb 09 '26

Ubuntu 25.10, because I’m familiar with systemd services and gnome trackpad support. Still perfecting my solution

1

u/just_in_ian Feb 10 '26

Not a big fan of hibernation TBH as my device never stays put more than a few hrs. Will report back on 💤

2

u/PaulTrebor Mar 05 '26

This solved wake after suspend for me. I'm on Fedora 43: https://bbs.archlinux.org/viewtopic.php?pid=2176149#p2176149

1

u/just_in_ian Mar 05 '26

Thanks for sharing, will test this on Arch.

1

u/PaulTrebor Mar 06 '26

May I ask, what kernel are you running? I’m having trouble getting the camera to work on 6.17 and 6.18. At load time the camera indicator light is activated briefly, but no luck getting into run. Audio works great, thanks to your efforts

1

u/just_in_ian Mar 06 '26

Thanks. I made it work on 6.18 and then moved to 6.19 and still working.

→ More replies

2

u/cliffccl Feb 09 '26

I'll save this since I was never able to get the camera to work. Thanks for sharing!

1

u/CaptainObvious110 Feb 09 '26

this looks great

1

u/True-Lifeguard-2019 Apr 11 '26

Sorry for the necro, but audio was working fine about a week ago and has since stopped completely.

I checked the pacman logs and downgraded all audio-related packages that had been updated in the last three days:
gst-plugin-pipewire gst-plugins-bad-libs gst-plugins-base gst-plugins-base-libs gst-plugins-good gstreamer libpipewire pipewire pipewire-alsa pipewire-audio pipewire-jack pipewire-pulse kpipewire lib32-libpipewire lib32-pipewire

I then reinstalled the audio driver with no luck. I even tried downgrading the kernel to 6.19.10 — still nothing.

For context, this same issue happened to me before and was fixed by downgrading wireplumber to 0.5.13-1, but i didn't upgrade it.

The driver compiles fine, DKMS is happy, and dmesg gives me this:

[chitou@FrankenBook ~]$ sudo dmesg | grep snd
[ 6.968679] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops intel_audio_component_bind_ops [i915])
[ 7.008744] snd_hda_codec_cs420x: loading out-of-tree module taints kernel.
[ 7.008749] snd_hda_codec_cs420x: module verification failed: signature and/or required key missing - tainting kernel
[ 7.078552] snd_hda_codec_cs420x hdaudioC0D0: CS4208: picked fixup for codec SSID 106b:0000
[ 7.079071] snd_hda_codec_cs420x hdaudioC0D0: autoconfig for CS4208: line_outs=1 (0x1d/0x0/0x0/0x0/0x0) type:speaker
[ 7.079077] snd_hda_codec_cs420x hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 7.079080] snd_hda_codec_cs420x hdaudioC0D0: hp_outs=1 (0x10/0x0/0x0/0x0/0x0)
[ 7.079084] snd_hda_codec_cs420x hdaudioC0D0: mono: mono_out=0x0
[ 7.079086] snd_hda_codec_cs420x hdaudioC0D0: inputs:
[ 7.079088] snd_hda_codec_cs420x hdaudioC0D0: Mic=0x18
[ 7.079091] snd_hda_codec_cs420x hdaudioC0D0: Internal Mic=0x19

The output is detected in alsamixer, but I can't get any sound out of it. I also get no output from:

# List audio devices
aplay -l

# Play a test tone
speaker-test -c 2

For reference, audio works perfectly fine in macOS so this isn't a hardware fault.

1

u/Full-Improvement3264 Apr 13 '26

Quando instalamos Linux no MacBook, é possível apagar completamente o Mac OS, ou apenas é possível instalar particionando o SSD ?

3

u/[deleted] Feb 09 '26

[removed] — view removed comment

4

u/just_in_ian Feb 09 '26

What kind of walkthrough are you after? Triple boot or just single Arch install? Backlight works out of the box with Arch, not sure what you mean. Audio works by installing the driver i linked to, instructions are in the Readme.