Skip to content
The Curly Braces
Go back

Running Fedora Asahi Linux on an M1 MacBook Pro 16

Updated:

In August 2024, my Asus Strix G15 laptop conked out after almost three years of heavy usage. I have an extended warranty, so I called Asus, and they said they’d send a technician to diagnose and fix the laptop. I knew this would take at least three to four weeks, so I brushed off the dust from the office M1 MacBook Pro and started using it.

Having used i3 on Linux for the last 7 years, I found the MacOSX user interface difficult to navigate. I longed for the customization and predictability that i3 offered. I had heard of the Asahi Linux project and was eager to try it, and this was a good opportunity to do so.

Table of contents

Open Table of contents

Initial setup

Ensure that you are familiar with the device support matrix. Everything I needed for my daily work was supported. While I would have liked Thunderbolt and Touch ID support, it’s not a deal breaker. I also recommend going through the FAQ.

The initial setup is straightforward. As mentioned on the Asahi Linux website, open a terminal on MacOSX and run the script: curl https://alx.sh | sh

Afterwards, be sure to follow the instructions carefully. Pay close attention to the instructions at the end of the installation, or you could end up in a boot loop like I did.

The experience

Honestly, the experience is quite good. Asahi Linux is based on Fedora and runs KDE Plasma 6. I found it to be stable, smooth and configurable. The speaker, Wi-Fi, Bluetooth, display brightness, camera, mic and the external display via HDMI all worked as expected.

Installed applications

As a web developer, I was able to get everything that I needed up and running.

Getting Netflix / Spotify to work

This is a well-known issue due to Widevine DRM not being installed by default. A script is provided to install it in the Asahi Linux GitHub repositories. Run widevine-installer on the command line to start the setup.

This blog has more details on this topic. See the “Netflix specific annoyances” section to set the proper user agent for your browser when accessing Netflix.

What could be better?

Per device workspace

I use dual monitors. I had i3 tiling window manager installed on my Asus Laptop. This makes managing windows across workspaces and desktops quite easy. For example, I can have my IDE open on a specific specific workspace, which is then pinned to a specific display. So whenever I want to access my IDE, I know where it is, and I can use the workspace shortcut to shift focus.

Although workspaces/virtual desktops are supported by KDE Plasma, they span across displays. You cannot have display specific workspace. This is obviously more of a KDE Plasma issue rather than an Asahi Linux issue, but it’s worth mentioning.

Live streaming Formula 1 (F1TV)

I tend to watch Formula 1 races from time to time, and I’ve not had any luck getting the F1 stream to work on Asahi Linux. I get the following error message even with Widevine installed. This should be fixable, but I need to spend more time debugging this.

Replaying non-live content on F1TV works fine.

Setting up MediaWiki via mwcli, docker

I use mwcli to set up a MediaWiki wiki family in order to work on the ContentTranslation tool and I’ve been facing some issues getting it to work. I believe it’s because of the arm64 architecture. Again another item needs some more debugging.

$ mw docker mediawiki create
[+] Running 6/6
✔ Container mwcli-mwdd-default-mediawiki-web-1                                                                                                                 Started                                        1.3s  
✔ Container mwcli-mwdd-default-nginx-proxy-1                                                                                                                   Started                                        1.2s  
✔ Container mwcli-mwdd-default-mediawiki-1                                                                                                                     Started                                        1.0s  
! mediawiki-web The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested                                                0.0s  
! mediawiki The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested                                                    0.0s  
✔ Container mwcli-mwdd-default-dps-1

Battery life

During active development with virtual machines running, a few calls, and an external keyboard and mouse attached, my laptop running Asahi Linux lasts about 5 hours before the battery drops to 10%. Under the same usage, macOS lasts a little more than 6.5 hours. Asahi Linux reports my battery health at 94%.

For comparison, my Asus laptop lasts under 3 hours under similar conditions.

Next steps

After I fix some of the issues mentioned above, I’d like to run a tiling window manager on the MacBook M1 Pro. i3 only supports the X Window manager whereas Asahi Linux comes with Wayland so it would not be possible to use that. Sway is a drop-in replacement for i3 built to run on Wayland that I should be able to use.

My existing i3 configuration should work as is, but it is something that I need to try out. With KDE, I appreciated the fact that a lot of things like sleep, suspend, power modes, WiFi, Bluetooth, dark mode, notifications etc just worked out of the box. When setting up Debian on my Asus laptop from scratch, I had to configure everything myself, but it still felt less cohesive.

Asus replaced my laptop’s motherboard under warranty, and since mid-September 2024, I’ve gone back to running Debian Testing with i3 and KDE Plasma 5. This setup is nicer and I’m happier with it compared to my previous setup. I want the same setup on the M1 Pro with KDE Plasma 6.

Despite some minor issues, I found Asahi Linux fully usable as a daily driver. The M1 MacBook has great hardware, and it’s exciting to see it running Linux — and running it well. It’s a testament to the effort put in by the Asahi Linux team.


Share this post:

Previous Post
Driving from Bhubaneswar, Odisha to Yuksom, Sikkim on Tata Nexon EV Max