A laptop with a blank white screen on a desk, bathed in natural sunlight.

Getting Started with Asahi Linux and Sway on the MacBook Air M2 (2024)

A laptop with a blank white screen on a desk, bathed in natural sunlight.
Photo by Artem Podrez on Pexels. Source.

Update (2025-12-28 03:02 CET): Check out Daniel Lawrence’s blog for an insightful guide on running Asahi Linux with Sway on the 2024 MacBook Air M2. It’s a fantastic resource for any Linux enthusiast looking to make the most of Apple Silicon capabilities.

With the introduction of the MacBook Air M2 2024, Linux enthusiasts have a new playground—Asahi Linux. Paired with the Sway window manager, Asahi Linux allows users to unlock the full potential of Apple Silicon on a Linux platform.

Introduction to Asahi Linux and Sway

Asahi Linux is a community-driven project aimed at making Linux a first-class citizen on Apple Silicon Macs. Sway, a tiling window manager, complements this by offering efficient workspace management on Wayland. Together, they create a robust open-source environment tailored for power users.

What Changed in the 2024 MacBook Air M2

The latest MacBook Air M2 iteration includes several hardware upgrades that enhance Linux compatibility, such as improved GPU capabilities and increased RAM support. This model further refines the Asahi Linux installation experience, making it more seamless than before.

Why It Matters for Linux Enthusiasts

Running Linux on Apple Silicon allows users to benefit from Apple’s advanced hardware while enjoying the flexibility and customization of Linux. Particularly, Asahi Linux offers a tailored experience optimized for native Apple architecture.

Installing Asahi Linux on MacBook Air M2

To install Asahi Linux, ensure your MacBook is prepared with the necessary backups. Use the Asahi installer to create a partition and initiate the setup.

sudo apt update
asahi-installer

Setting Up Sway as Your Window Manager

After installing Asahi Linux, Sway can be set up as the window manager. Its lightweight design makes it ideal for the MacBook Air’s performance profile.

sway --version

Key Configurations and Tweaks

  • Adjust screen resolution settings to optimize battery life.
  • Configure touchpad gestures for efficiency.
  • Customize keyboard shortcuts specific to Sway.

Common Gotchas and Troubleshooting Tips

Despite Asahi Linux’s advancements, certain issues may arise. Common troubleshooting tips include checking compatibility of specific peripherals and ensuring firmware is up-to-date.

Useful Commands and Examples

Familiarity with some basic commands can enhance your Linux experience on Apple Silicon:

sudo apt update
asahi-installer
sway --version

Sources

Information for this guide was drawn from Daniel Lawrence’s blog.

Transparency Note: This article was assisted by AI and vetted with automated source verification to ensure accuracy and compliance with guidelines.