nico.ninja A deep dive journey about electronics, computers, radio and so on

The perfect fit for my 2011 Macbook Air

There is it, lying in a drawer. My first Macbook. This is one of those things I felt in love at first sight. In my opinion, this was Apple’s peak design for portable computers, thin, small, lightweight, with outstanding hardware capabilities and performance, and, one of the things I like most, a beautiful screen resolution.

MacBook Air sitting next to a plant


The Macbook Air

This is a Mid-2011, 13-inch Macbook Air, has a 1440x900 pixels display with maxed out the internals, it shows a dual-core 1.8GHz i7-2677M, a 256GB solid-state drive and 4GB of RAM. The Wi-Fi supports the 5GHz band and the battery should last like 7 hours of web browsing. I never got such uptime on the battery, to be honest.

Travelling

8 years ago, traveling by train to Bruges.

The Operating System

At the time of formatting the drive, this Macbook was running macOS High Sierra, in its 10.13.6 version. The latest supported by this hardware. I used this laptop up to 2018 when I bought the last Macbook Pro by that time and felt the Macbook Air was so laggy for most of the tasks, including simple coding and web browsing.

Why would I install Linux on it?

As part of my geeky side, I wanted to revive this computer. I’m completely in love with this MacBook Air design so I thought I could give it a chance to see how a modern Operating System would work. I choose Xubuntu 23.10. I like the xfce4 design, portability, and performance, and I prefer it over Gnome or KDE, despite I’ve used KDE for around 5 or 6 years. As this machine is not precisely an extent of performance, I preferred to save some bits and CPU cycles here and there with a lightweight window manager. Surely I could choose something even lighter, but I’m comfortable with the trade-offs of using Xfce and an Ubuntu-based distro. If you asked me a few years ago, I would install Arch Linux.

Installing Xubuntu 23.10

This was one of the easiest installs I ever did before.

  1. Download the Xubuntu 23.10 ISO
  2. Use dd or any other tool like balenaEtcher to burn the ISO in an USB stick.
  3. Reboot or power on your Mac while holding the alt/option key until you see the Apple logo.
  4. A boot menu will appear on the screen, just pick your USB drive. Some warnings about a boot problem will be displayed.
  5. I choose to encrypt the whole drive and use LVM.
  6. The installation process took less than 30 minutes, and everything including the Wi-Fi worked out of the box.

Boot menu

Configuring Xubuntu 23.10

Despite the hardware working on the first try, I couldn’t get the keyboard layout to match the MacBook’s: The Command (Or Meta) key wasn’t working. Diving on the Internet I found different tools and configurations but none worked. I ended up configuring the layout by hand, starting from the Macbook layout but configuring the shortcuts in the xfce4 keyboard configuration menu.

Keyboard shortcut

Battery health and performance

I choose to install TLP. TLP works out of the box heading to a battery-saver profile. Since I am not looking for strepitous performance here, I left most of the TLP settings as they come from the factory. The installation is very straightforward:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp tlp-rdw

Then you need to enable and start the systemd unit

sudo systemctl enable tlp.service
sudo systemctl start tlp.service

As I said earlier, I have never been able to reach the declared 7-hour of web browsing/video playing, but the battery is good enough to keep the computer working for at least 4 to 5 hours, which is a reasonable deal for me. The power statistics panel shows that while browsing, editing images with GIMP, and writing this post, the battery will last a good amount of hours. Even suspended, the laptop has low power consumption.

Power Statistics panel

I found that some of the power manager default behaviours were a bit misleading, at least for a laptop: I had to reconfigure the laptop lid behaviour from “Lock screen” to “Suspend”, and then adjust the critical power section to ask me what to do if I’m running below the threhsold.

Power Manager Settings

Thoughts

It started just as another nerdy project with forgotten hardware. I have no specific plans for this machine, it may become my traveling computer due to its lightweightness and small form factor.

MacBook closed lid

I will also do some blogging from it, as the keyboard feels great and I think I also love the screen bezels, maybe I’m just going bananas.

I always feel great when restoring or recycling old hardware, despite this Macbook having almost 15 years of life, it works great and has way better construction quality than my latter Macbook Pro 2019 and 2022.

Blogging night