Looking at my previous post, I thought I was finally making some progress with setting up a new laptop and getting away from Apple and the MacOS ecosystem.
Long story short, a firmware update, a faulty Lenovo design, and shortly after making my previous update, the video output was fried on my new-for-me Lenovo. Ya didn’t feel great.
I found myself back to square 1 so to speak in terms of having a new laptop to use. Instead I had a Rasberry Pi that’s a nice idea, but not fast enough to actually use, not practical enough because it’s not a laptop, and not a great keyboard for typing.
The Lenovo was OK, but could feel some of the shortcomings around the hardware, after coming from the macbook. The sceen quality and ratio weren’t great, the trackpad also felt low quality. Speakers were horrible. Otherwise the laptop was as expected and fine. But once video output stopped working, the laptop just felt…subpar.
I have to say, I’m also not a huge fan of Ubuntu…not sure why.
Fast forward, here I was with those 2 computers not serving a purpose, I was stuck still using my work laptop, while my old Macbook was fried.
I started trying to sell all the laptops. The aim was that if I would sell everything, I’d ever a good chunk of $ to put towards the new 15” Macbook Air. She would start using that, and then I could use her 13” Intel Macbook.
As we started thinking about the options, and what we were looking forward, I started to realize in many ways my fried Macbook was actually a better machine for what she needed. 1 TB and 16GB for video editing. The 4 ports would also be a big convenience over the 2 ports+power of the 15” — in fact the only perk of the 15” is the larger screen size.
When factoring the cost to the buy the 15”: $1400 with the price to repair the 13” was $615, it seemed clearly better to opt for the repair.
As a wide bonus, with Intel Macbooks fading, and limited support on M* Macbooks, I felt it was better to opt for keeping an “high spec” Intel Macbook.
OK, enough with what happened since the last post and now.
Current device is:
13" Macbook w/Touch bar (15,4 model).
Big Sur (MacOS 11)
To install Linux on Macbook:
Need to resize the APFS partition. In order to do that have to stop Time Machine automatic backups from filling up the hard drive:
sudo tmutil listlocalsnapshots /
sudo tmutil deletelocalsnapshots /
Next, use Disk Utility to Create a new Partition. Important that it’s a new Partition — not a new Volume.
As a side note, I found it helpful to set the filesystem as HFS and named it Linux. This helps to more easily identify the partition in the confusing Fedora installer.
I did install the rEFInd bootloader. But I’m not directly using it right now, so that’s worth a different post.
I tried booting off of several Linii (Linux distros). For some reason I came to the conclusion I don’t want to use Ubuntu. I’m not sure why, but I feel like there are certain design decisions about Ubuntu that never let me fully “get into” using the OS. I guess it’s the amount of stuff that they have setup — it’s customized enough that you feel you don’t need to change things. But in fact, it’s Linux, so you’re going to run into issues. So when you need/want to tweak things, there’s actually a lot of pieces to deal with, and you don’t really know the connection between different parts.
Some of the distros that caught my attention were:
- Elementary OS — clean design; feels like a complete system.
- Parrot OS — looks like a comprehensive security focused OS
- Endeavour OS — a modified, easier to use Arch Linux
- Fedora — clean and well supported
When I booted Elementary, I was surprised to find that the keyboard and trackpad were not working in the LiveCD mode.
At first I thought it was just the distro or livecd. But I soon realized it’s related to Apple at the T2 chip.
I soon found https://t2linux.org/, thankfully.
Looks like there were certain distros better suited for a Macbook T2 install.
I spent a bit of time reading and experimenting with livecds. I deciIded to go with Fedora. I liked that it looked to be a clean, stock distro. I also wanted to try something that was a least a bit different than the Debian based distros, which I realized were the only Linii I’d used in ages. I also figured that if I’d run into some issues with getting Linux running on Macbook, it would be nice to use one of the more mainstream distros.
There are 2 .isos listed on T2. I started with the first one, but didn’t get it to boot right away (I might have just been impatient). So I went with the 2nd one, and it booted on the first try.
When I started reading about Fedora, the main issue I was hearing about was the installer. I didn’t realize that Linux could still be confusing to install — but I soon learned people weren’t exaggerating!
Because I was dealing with a slightly complicated partition system, being that it’s a Macbook, I really found the partitioning part of the install incredibly confusing and scary!
Luckily I found a guide from Fedora that explained the steps in just enough detail that I was able to replicate.
5. Advance to Destination Installation spoke
Select the proper disk
Select "Automatic configure partitioning"
Click Done, when the Installation Options appears, choose Reclaim Space
Locate and select the hfs+ "Untitled" volume created earlier in macOS Disk Utility, click the Delete button (not Delete all)
Click Reclaim space button to accept changes and return to the main menu
6. Click Begin Installation
The install was quick n smooth. As is to be expected, some things did not work out of the box.
The main issue with Macbook is that you have to copy the firmware for wifi and bluetooth from the MacOS install. T2Linux provides a script for that, but the oldest MacOS it supports is Mojave(?). Still being on Big Sur, it didn’t work.
Someone else had recently posted about the same issue:
More specifically, on Fedora I had to run:
tar -xf *.tar.gz
sudo cp -r * /usr/lib/firmware/brcm/
sudo modprobe -r brcmfmac
sudo modprobe brcmfmac
sudo modprobe -r hci_bcm4377
sudo modprobe hci_bcm4377
T2Linux has some other guides, with some steps for wifi. When I followed them, it actually made problems, so I just undid the steps, and stuck with the above and it’s been working OK.
I’ve noticed Suspend doesn’t always work reliably. Specifically, when you come back, wifi and/or bluetooth are often not working. I’ve also had it where the keyboard didn’t work, touch bar didn’t activate. In most cases, a reboot resolves the issue. I have yet to find the commands to reset without rebooting.
The next big task I dealt with, which I think has often prevented me from fully getting comfortable with using the mac is the keyboard mapping.
The keyboard shortcut keys are slightly different between Linux, Mac and Windows. This makes for a lot of confusion when switching between the systems.
I wasn’t able to get 100% parity (yet) because I noticed certain keys are not behaving as desired in apps such as Firefox and the File browser. However, at the OS level, I was able to use a combination of Keyboard Shortcuts in Settings and Tweaks to make the adjustments.
The main Tweaks were:
Swap left Win with Left Ctrl
Swap right Win with Right Ctrl
This has the Apple Command key behaving as the main shortcut key for simple things like copy, paste, opening new browser tabs.
Gnome as a shortcut to Lauch their Overview feature, which is a bit like their start menu that has apps n also shows open apps.
With the switch from above, this wasn’t working with the Command key. I found the following command make the the Command key launch Overview:
gsettings set org.gnome.mutter overlay-key 'Control_L'
The back and forward commands in the browser are not quite working as expected, but the above changes make using the OS a lot more familiar and functional feeling.
I think there might have been some other tweaks I made, but as I’m pretty tired right now I can’t think of them.
The next big thing I’d like to do is figure out how to automount APFS extenrnal hard drives. I’ve installed apfs-fuse, which may or may not work, but it only works as a manual mount for now.
I also want to see if getting touch ID to work is an option. Suspend would be the a big win, but I’m not holding my breath.