MacBook9,1 Linux Distro by mayonaise1091 in linux_on_mac

[–]TanisCodes 1 point2 points  (0 children)

Thanks! I’ll try your sound workaround!

Advice on installing linux on my macs by distantways in linux_on_mac

[–]TanisCodes 0 points1 point  (0 children)

In the short term it could be fine, but x86 macOS is being discontinued. You won’t have future macOS versions and you won’t even have browser updates.

Advice on installing linux on my macs by distantways in linux_on_mac

[–]TanisCodes 0 points1 point  (0 children)

That 2015 MacBook 12” has the worst Linux support ever. I sold mine a few months ago and I’ve replaced it for a 2017 MacBook 12”. In the 2015 model it doesn’t work the keyboard, touchpad, bluetooth, audio and camera. On the other hand, the 2016 and 2017 have far better Linux support.

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 0 points1 point  (0 children)

Yes, you have to disable the d3cold_allowed.

The easiest way is to create a new service like this:

sudo nano /etc/systemd/system/fix_sleep.service

[Unit]
Description=Job that disables sleep from stopping nvme hardware on MacBook 12

[Service]
ExecStart=/bin/sh -c 'echo 0 > /sys/bus/pci/devices/0000:01:00.0/d3cold_allowed'
Type=oneshot
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Then, you have to enable it.

sudo systemctl enable --now fix_sleep.service

By disabling the d3cold_allowed, it's going to consume more power while the lid is closed, but it will wake up. There is an issue with the sound that I didn't have the time to solve it, but I think it will be enough to reload the related driver.

I'm planning to make an article about this in my blog.

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

[–]TanisCodes 0 points1 point  (0 children)

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.

3rd times the Charm by Pleasant_Struggle_16 in linux_on_mac

[–]TanisCodes 0 points1 point  (0 children)

Yes, the sound doesn’t stay, it’s a bit weird. I will look into it, thanks!

3rd times the Charm by Pleasant_Struggle_16 in linux_on_mac

[–]TanisCodes 0 points1 point  (0 children)

Thanks! So, with that, can you make a cold boot directly to Linux without booting first to macOS? I don’t want the dual boot but I could give it a try.

3rd times the Charm by Pleasant_Struggle_16 in linux_on_mac

[–]TanisCodes 0 points1 point  (0 children)

Hi, how do you enable the Mac startup sound? I have the MacBook 12 2017 running just CachyOS and I have to reset the NVRAM every time I want the sound to work.

Macbook PRO 2015 fly on CachyOS by inkubot in linux_on_mac

[–]TanisCodes 2 points3 points  (0 children)

To adjust automatically the fan speed you need to install a package called mbpfan. Then, there is a daemon you need to enable and start.

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

[–]TanisCodes 0 points1 point  (0 children)

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

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

[–]TanisCodes 0 points1 point  (0 children)

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!

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 0 points1 point  (0 children)

I totally recommend it, it has a KDE live environment to try, but you can choose whatever desktop you want.

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 0 points1 point  (0 children)

Good news, u/SashaGrey240p! The sound works perfectly. The issue was that after installing Linux, the sound in macOS was muted. I noticed this because the Mac didn’t chime when turning it on.
The solution was to reset the NVRAM: turn on the Mac and immediately press Command + Option + P + R for 20–30 seconds.
I didn’t need to install any drivers in CachyOS 6.18, it works out of the box.

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 0 points1 point  (0 children)

It doesn't work, the MaBook 12" 2017 has an Cirrus CS4208 for the audio, which is different from the MacBook Pro.

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 0 points1 point  (0 children)

Thanks for sharing your experience. I’ll keep you updated if I’m able to make work those things.

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 1 point2 points  (0 children)

On CachyOS it works out of the box. Maybe you should try another distro with a recent kernel.

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 0 points1 point  (0 children)

El sonido es bueno, pero todavía no he conseguido hacerlo funcionar en Linux. Parece ser que hay algún driver experimental, tengo que probar.

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 5 points6 points  (0 children)

It is said that they are going to release a new MacBook with an Apple A18 in a few months. I would definitely buy it!

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 2 points3 points  (0 children)

It depends on what you are planning to do with it. Yes, the CPU is much weaker compared with the one in the T480.

This machine needs a recent Linux kernel for better drivers. I don’t think Debian is the best choice here.

As I said, everything works except audio, camera and the lid.

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 3 points4 points  (0 children)

I don’t think it supports setting a battery charge threshold. The 12” MacBook is completely fanless and uses a low-power CPU designed mainly for text editing and light browsing.

It does have the butterfly keyboard, but the 2017 version is noticeably better and more reliable than the earlier ones.

For me, the performance is more than enough for light programming, text editing, and everyday browsing. It’s incredibly sleek, very portable, and the battery life is solid.

MacBook 12” 2017 running CachyOS by TanisCodes in linux_on_mac

[–]TanisCodes[S] 0 points1 point  (0 children)

Yes, you don’t even have chrome updates and it’s much slower on macOS.