Nymeriq

I installed Ubuntu on an old MacBook. Then I taught it how to be a laptop.

An old MacBook, Ubuntu & me · Week 1 of 7

I came from an M4 MacBook Air. My next computer was an old Intel MacBook Pro with the keyboard everybody remembers for the wrong reasons. I didn’t have the budget for a new PC. I did have an old machine, and I needed something usable while my wife was using the Air.

A man leans towards a desktop computer and asks, ‘Hello?’

So I installed Ubuntu. Or, more accurately, I started trying to install Ubuntu. There was a bit of a gap between the intention and the operating system.

This is the first of seven weekly posts about that MacBook. Today you get the whole install story. Next week I’ll get into the day I spent teaching it to sleep. The missing touchpad gesture that turned into an app of my own comes the week after. Even finding something I liked sending email from took long enough to get its own article.

I wasn’t shopping for a new hobby

I should explain the expectations I brought with me, because otherwise this can sound like a man installing a different operating system and then being surprised that it is different. I had spent years using recent Apple laptops. I was used to good trackpads, familiar gestures, readable applications, and opening the lid without planning the next few seconds around the machine. I knew the old Intel MacBook wouldn’t become an M4 Air because I changed the software. That wasn’t what I was asking of it.

I wanted a usable secondary computer. Something I could work on while the other laptop was occupied. The MacBook was already available, and the budget made using it a much more practical option than buying another machine. Ubuntu also gave me a reason to revisit something I had enjoyed years earlier.

I remembered both sides of that enjoyment. There was the satisfaction of understanding a little more about my computer, and the slightly less romantic experience of spending the evening getting a component to work. I wasn’t afraid of the latter. I just hoped there would be less of it this time.

I also had something I didn’t have during those earlier installations: an assistant that could work through the machine’s actual configuration with me. That changed how ambitious I felt. If we hit a problem, I wouldn’t necessarily be starting from a blank search box and a forum post from a person with a vaguely similar laptop. That confidence turned out to be useful. I needed it before I had even installed the operating system.

The installer would like a word

I made a USB installation drive, booted from it, and waited. Then I waited a bit more. The loading screen appeared to have made a long-term commitment to being a loading screen. This was going well. ChatGPT and I tried debugging it. We got nowhere useful.

Then, on another attempt, I connected to my home network before continuing the boot process. That time, I reached the live desktop. I still don’t know exactly why that changed the outcome. I suspected something to do with hardware support, but the observation is simpler: on my attempts, connecting first made the difference. Forget to connect, get stuck again.

Ubuntu installer offering third-party graphics and Wi-Fi software.
The driver checkbox that looked like the sensible choice. Screenshot from the Ubuntu Desktop guide, © Canonical, CC BY-SA 4.0.

Once inside, I selected a full installation. I didn’t want dual boot. I wanted Ubuntu, properly installed, and a clean break. The installation failed. Okay. Restart, try again. I had used Ubuntu before, and I wasn’t ready to declare the attempt dead because the installer had disagreed with me once. People like to describe trying the same thing and expecting a different result as the definition of insanity. Based on my previous Linux experience, I considered it a legitimate troubleshooting technique. It failed again.

Eventually I tried the most minimal installation available, without the extra hardware-support downloads I had selected before. That worked. Apparently, the convenient option had been a little ambitious. Silly me, leaving the default options on. Automatically download the latest drivers for my hardware? Well, yes. That sounded like a good idea at the time.

Good news: I can type almost all my letters

The desktop looked okay. I don’t love Ubuntu’s default appearance, but I could work on that later. I prefer a light interface, partly because white text on a dark background is uncomfortable for me to read.

First, I needed my keyboard to behave. The built-in keyboard was recognised. Finding a Hungarian layout that handled my keys correctly was another matter. The zero and í keys weren’t doing what I expected. I wasn’t expecting all the Mac-specific shortcuts to magically follow me. But I did have some unreasonable expectations about typing zero.

Furious typing, courtesy of MOODMAN.

This is where using Linux with a large language model—an LLM—started to feel very different from the Linux I remembered. In this story, that meant ChatGPT, helping me investigate what was actually happening on my machine. I am comfortable with Terminal. I used Ubuntu years ago, back when I was proud of a half-megabit ADSL connection and spent evenings hunting through forums for commands that might apply to my machine. I enjoyed that. I also remember eventually wanting to use the computer for something other than getting the computer ready to use.

By this point, ChatGPT had become a fairly regular participant in my attempts to get this thing working. Let’s call it Chatty (ChatGPT) from now on. We were going to be spending quite a bit of time together.

With my approval, it could inspect the system, read logs, and run commands locally. We got past the initial “have you selected the right keyboard layout?” stage—you know, the part where you have to establish that you have already tried the obvious thing—and changed the relevant configuration. A few prompts, some actual investigation, and my keyboard worked. Brilliant. This was going to be a joyride.

My laptop discovers insomnia

I closed the lid. Later, I opened it. Black screen. Except the haptic touchpad still clicked. Hang on. That meant something was awake in there. I had a functioning click, no picture, and very little idea which part of the machine had decided to stop participating.

Back to Chatty. We inspected logs. When the existing information wasn’t enough, Chatty helped set up more detailed logging around suspend and resume. Suspend is the sleep I had been talking about; resume is the machine coming back. I was about to become considerably more interested in both than I had intended. I tested. It analysed. I suggested things to check. We tried again.

The investigation pointed towards graphics resume behaviour, and eventually we got the display back after sleep. I would need the original diagnostics to explain the exact failure properly. What I remember very clearly is the result: the laptop could finally suspend and wake up. Hurray. I was king of the world.

Then I timed it. Roughly thirty seconds to go to sleep. Another seventeen to wake up. My laptop was getting a more elaborate bedtime routine than I had planned.

In the end I got both numbers down to about three seconds. Somewhere between those two measurements I spent an hour on one sleepy processor core and discovered that my laptop could also wake itself up without any help from me. I’ll get into that little adventure next week. It took a day of my life, and I was ridiculously pleased with myself by the end of it.

Somewhere in there, troubleshooting became teamwork

The useful part of having Chatty involved wasn’t simply receiving commands to copy into a terminal. I had done that for years. The improvement was being able to keep the investigation connected to what we had just observed.

I could test a change, explain what happened, and ask whether that supported the previous theory. If the laptop still behaved strangely, we could look for more evidence. When the ordinary logs weren’t enough, we could change what information we collected. I didn’t have to personally know every tool before we could start using it to answer a question.

I also didn’t stop thinking. I was the one closing the lid, noticing whether the touchpad clicked, timing how long the screen took to return, and deciding whether “it eventually wakes up” counted as a usable outcome. Sometimes I had an idea about where the problem might be. Sometimes I needed the explanation to make sense before I was comfortable trying the proposed change.

That made it feel like a joint investigation. It was enjoyable in exactly the way I remembered enjoying Linux: a confusing behaviour gradually became a problem we could describe, then something we could improve.

A teamwork moment from Brooklyn Nine-Nine.

But I want to keep both facts in the story. The experience was interesting, and the thing we were investigating was whether a laptop could reliably go to sleep. Those are compatible statements. Enjoying the puzzle doesn’t make the puzzle a reasonable requirement for everybody who needs to use a computer.

I will come back to the hardware-support side of this later in the series, because “we fixed it” is easier to say than it is to explain precisely. For now, the important result was that I had reached the point where closing the lid no longer felt like starting a small experiment.

Naturally, I started making it more like my Mac

Once the basics worked, I wanted the touchpad gestures I was used to. Most were close enough. The missing five-finger pinch annoyed me enough that Chatty and I built a tool for it. That became FivePinch. It deserves its own story, particularly the part where my thumb accidentally helped switch workspaces.

Then I wanted a decent email client with calendar support. That turned into another expedition, eventually ending with Penguin Mail and a surprising amount of enthusiasm about the placement of an archive button. Slowly, the machine became comfortable.

And here is the annoying thing about telling this story: by the time I had finished complaining about it, I was becoming quite attached to the machine. I had spent ages getting Ubuntu comfortable, and now it actually was comfortable. I could hardly pretend I hated the result. I like being able to change things. I like understanding why something broke. I really like that, with an LLM helping, I can make progress on problems that would previously have taken much longer to investigate. Getting the setup right has been satisfying. I now want to keep it that way and actually use it.

The next laptop is the difficult question

At some point, I will need another machine. I tend to keep laptops for years. One of my previous full-price purchases stayed with me for a decade. Framework interests me. I like the idea of a computer I can repair and keep improving. But if I am spending serious laptop money, the decision becomes harder.

The Grail Knight offers his laptop-buying advice: Choose wisely.

I know what I enjoy about Linux now. I also know how much effort went into reaching this point on this particular machine. Better-supported hardware could make a very different first impression. That matters. My old MacBook is hardly a controlled experiment in desktop Linux readiness. Still, it is the computer I had, and this is what getting it working looked like.

I am happy with it. I am proud of the things I fixed. I have even made a little application along the way.

Over the next few articles, I want to take some of those smaller stories out of the setup diary and give them room of their own. The gesture became an application. Building that application changed how I think about AI-assisted development. Finding an email client raised a different question about why suitable software can still be difficult to discover.

By the last post, I hope I’ll have figured out whether I’d recommend Ubuntu to someone who just wants a laptop they can get on with using.

As for my next laptop, I’d quite like to take one thing for granted. When I close the lid, it goes straight to sleep. When I open it again, it’s awake by the time my fingers reach the keyboard.

Subscribe for updates

Get new posts, research notes, and occasional opinions when there’s something worth tracking.