Linux on Macbook 12" early 2016

PvdM

New Member
Joined
May 30, 2024
Messages
6
Reaction score
1
Credits
59
Hello all, I've installed Ubuntu (latest stable distro) on my Macbook 12" Retina (core m5, 8 Gig memory).

I've managed to get it all working (including Bluetooth and sound over internal speakers) but one bug is annoying the xxx out of me.
Whenever I close the lid, or leave it too long =it suspends/hibernates, I cannot start it up again. I do get a screen to log in, but it does not work. The only thing I can do is restart the laptop....

I've also tried installing Linux Mint (19.3). It seemed to work fine. I could close the lid and it would fire up again after opening it. But then neither the Bluetooth nor the internal speakers wore working.....

Mmmmm, anybody out there with a Macbook 12 inch and a working distro??

Regards, Peter van der Maas.
 


This is a known I/O problem with Macbook pros and most of the time it has nothing to do with the operating systems. Usually the manufacturer's (Apples's) solution would be to replace that circuit for a couple of hundred dollars. However, since you are running Ubuntu, you are in luck, because you can tell your machine not to go to sleep when the lid is closed. To do so,

You need to edit a file, named logind.conf in /etc/systemd/logind.conf , but it can be edited using this command in your terminal:sudo -H gedit /etc/systemd/logind.conf

At the bottom of the text, add: HandleLidSwitch=ignore

Execute this command to restart your systemd daemon and have the command settle in, otherwise it won't work. sudo service systemd-logind restart or Reboot your machine

I strongly advise you don't run your Macbook pro on closed lid for a long time as it will cause ventilation problems and quickly heats up the system. The best thing to do is just to simply shut it down when not in use
 
Thanks for the swift reply (GatorsFan). I hope you don't mind me not following up your solution.

The laptop is functioning wonderfully when it is running MacOs. It goes in suspend mode after closing the lid and wakes up instantly when I open it. The same on Linux Mint. So I am not convinced it is a hardware problem.

For me the instant wake up is very important. It is the main reason I prefer MacOs over Windows. BTW, it is not a MacBook Pro, but a MacBook. A very small, thin premium laptop. I love its portability, its hires screen, its battery (still around six hours, for a laptop over eight years old..) and the fact it has no fan. But it gets too slow after eight years. An Intel core m5 processor has its limits. I would like to revive it with a Linux distro. And Ubuntu almost did the trick. Everything was functioning OK, accept for the suspend/hibernate function.

So thanks for your solution, but I'll keep on trying to revive it with the closing of the lid making it go in suspension mode....
 
And Ubuntu almost did the trick. Everything was functioning OK, accept for the suspend/hibernate function.
try MX-Linux often works where others don't
 
Unfortunately, this distro doesn´t help. I've found a way....in Linux Mint. If I run a little script in the terminal (sudo echo 0 > /sys/bus/pci/devices/0000\:01\:00.0/d3cold_allowed) the suspend mode does work. But after the first suspend....the sound doesn´t work anymore. Sound over bluetooth keeps functioning....so I am halfway there....
Anybody any suggestions??
 
Hello all, I've installed Ubuntu (latest stable distro) on my Macbook 12" Retina (core m5, 8 Gig memory).

I've managed to get it all working (including Bluetooth and sound over internal speakers) but one bug is annoying the xxx out of me.
Whenever I close the lid, or leave it too long =it suspends/hibernates, I cannot start it up again. I do get a screen to log in, but it does not work. The only thing I can do is restart the laptop....

I've also tried installing Linux Mint (19.3). It seemed to work fine. I could close the lid and it would fire up again after opening it. But then neither the Bluetooth nor the internal speakers wore working.....

Mmmmm, anybody out there with a Macbook 12 inch and a working distro??

Regards, Peter van der Maas.
Hello, I also have a MacBook 9.1 and now I'm using Ubuntu, but I don't know how to get the sound to work, I've tried a lot of methods. can you please tell me how you fix it.
 
Hi there, try the following and let me know if it works.

Open a terminal and run:
apt install dkms gcc linux-headers-generic make wget

After that run:
git clone https://github.com/leifliddy/macbook12-audio-driver.git

cd macbook12-audio-driver/


# run the following command as root or with sudo
./install.cirrus.driver.sh

After all this reboot your system....and in my system sound over the speakers worked again. Not the headphone-plug. But the speakers and sound over Bluetooth work fine.

Good luck!
 
Hi there, try the following and let me know if it works.

Open a terminal and run:
apt install dkms gcc linux-headers-generic make wget

After that run:
git clone https://github.com/leifliddy/macbook12-audio-driver.git

cd macbook12-audio-driver/


# run the following command as root or with sudo
./install.cirrus.driver.sh

After all this reboot your system....and in my system sound over the speakers worked again. Not the headphone-plug. But the speakers and sound over Bluetooth work fine.

Good luck!
hmm this is very strange because I have already tried this on many systems such as ubuntu manjaro lmde debian, maybe it also depends on DE since I haven't tried it on gnome

edited: I installed default ubuntu with gnome then installed these drivers and it still doesn't work (
 
Last edited:
I've installed this on my Macbook 12 inch running Linux Mint (21.3) and also running on Ubuntu (latest stable version). Both times it worked like a charm. Sorry it did't work for you. Is your system a Macbook (12 inch screen, no fan) or a Macbook Pro?
 

Staff online

Members online


Top