Asahi Linux with Sway on the MacBook Air M2

(daniel.lawrence.lu)

105 points | by andsoitis 5 hours ago

8 comments

  • gnarlouse 4 minutes ago
    All Firefox users should switch to librewolf. In the short term it’s for telling Mozilla to go f**, in the long term it’s a browser fork with with really good anti fingerprinting.
    • port11 1 minute ago
      Not that I disagree, but why make that point here?
  • puff_pastry 34 minutes ago
    Asahi is awesome! But this is also proves that laptops outside the MacBook realm really need to improve so much. I wish there were a Linux machine with the hardware quality of a MacBook
    • farmin 0 minutes ago
      I am giving my MacBook Air M2 15” to my wife and bought a Lenovo E16 with 120ha screen to run Kubuntu last night. She needed a new laptop and I am had enough of macOS and just need some stuff to work that will be easier on an intel and Linux. Also I do bookwork online so bigger screen and dedicated numpad will be nice. It reviews well and seems like good value for money with current holiday sales but I don’t expect the same hardware quality or portability just a little more freedom. I hope I’m not too disappointed. https://www.notebookcheck.net/Lenovo-ThinkPad-E16-G3-Review-...
    • downrightmike 5 minutes ago
      We almost had really nice arm laptops, but they got super greedy about it having AI and no one wanted them.
  • zenmac 35 minutes ago
    >I am very impressed with how smooth and problem-free Asahi Linux is. It is incredibly responsive and feels even smoother than my Arch Linux desktop with a 16 core AMD Ryzen 7945HX and 64GB of RAM.

    Hmmm still have issue with the battery in sleep mode on the m1. It drains a lot battery when it is in sleep mode compare to mac sleep mode.

    • whitehexagon 15 minutes ago
      Twice my battery was flat. Now I just do a complete shutdown, since Asahi boots in ~30s (M1 Pro).
  • commandersaki 49 minutes ago
    256gb ssd as the minimum spec is criminal in my opinion.
    • linsomniac 17 minutes ago
      Is it possibly because 256GB is the minimum spec of the MacBook Air M2?
      • downrightmike 3 minutes ago
        I think they mean that is 2025, 256GB is unreasonably small. Which is true, Apple wants to up-charge hundreds of dollars just to get to the otherwise standard 1TB drive.
  • gsora 3 hours ago
    Putting swaybar at the top behind the notch is a great idea!
    • zozbot234 2 hours ago
      A new Wayland protocol is in the works that should support screen cutout information out of the box: https://phosh.mobi/posts/xdg-cutouts/ Hopefully this will be extended to include color information whenever applicable, so that "hiding" the screen cutout (by coloring the surrounding area deep black) can also be a standard feature and maybe even be active by default.
      • gsora 2 hours ago
        Wayland modularity is the gift that keeps on giving.
        • imiric 57 minutes ago
          You can't be serious. Wayland is the opposite of modular, and the concept of an extensible protocol only creates fragmentation.

          Every compositor needs to implement the giant core spec, or, realistically, rely on a shared library to implement it for them. Then every compositor can propose and implement arbitrary protocols of their own, which should also be supported by all client applications.

          It's insanity. This thing is nearly two decades old, and I still have basic clipboard issues[1]. This esoteric cutouts feature has no chances of seeing stable real-world use in at least a decade from now.

          [1]: https://bugs.kde.org/show_bug.cgi?id=466041

          • samiv 40 minutes ago
            Shh...you're not supposed to mention these things alas you be down voted to death.

            I also have tremendous issues with Plasma. Things such as graphics glitching in the alt+tab task switcher or Firefox choking the whole system when opening a single 4k PNG image. This is pre-alpha software... So back to X11 it is. Try again in another decade or two.

          • MarsIronPI 42 minutes ago
            You can see the same problem in the XMPP world, with a lot of the extensions implemented only by a few applications. But at least most XMPP extensions are designed to be backwards-compatible with clients that don't support them.
  • rubymamis 2 hours ago
    Did someone do a deep dive on why battery life is so awful on Linux? Or is it some Ashai's driver's inefficiencies that causing this?
    • izacus 2 hours ago
      Each controller and subcomponent on the motherboard needs a driver that correctly puts it into low power and sleep states to get battery savings.

      Most of those components are proprietary and don't use the standard drivers available in Linux kernel.

      So someone needs to go and reverse engineer them, upstream the drivers and pray that Apple doesn't change them in next revision (which they did) or the whole process needs to start again.

      In other words: get an actually Linux supported laptop for Linux.

      • ellieh 56 minutes ago
        > In other words: get an actually Linux supported laptop for Linux.

        40% battery for 4hrs of real work is better than pretty much any linux supported laptop I've ever used

        • nextos 2 minutes ago
          One of my favorite machines was the MacBook Air 11 (2012). This was a pure Intel machine, except for a mediocre Broadcom wireless card. With a few udev rules, I squeezed out the same battery performance from Linux I got from OS X, down to a few minutes of advantage in favor of Linux. And all this despite Safari being a marvel of energy efficiency.

          The problem with Linux performance on laptops boils down to i) no energy tweaks by default and ii) poor device drivers due to the lack of manufacturer cooperation. If you pick a machine with good hardware and you are diligent with some udev rules, which are quite trivial to write thanks to powertop suggestions, performance can be very good.

      • Forgeties79 1 hour ago
        >In other words: get an actually Linux supported laptop for Linux.

        For a lot of people the point is to extend the life of their already-purchased hardware.

        • happymellon 1 hour ago
          Linux might work with your hardware, but it might not work well.

          If your vendor is hostile like Apple, it will be hard to make it keep on working.

        • kelnos 1 hour ago
          That's an admirable goal, but, depending on the hardware, it can run into that pesky thing called reality.

          It's getting very tiresome to hear complaints about things that don't work on Linux, only to find that they're trying to run it on hardware that's poorly supported, and that's something they could have figured out by doing a little research beforehand.

          Sometimes old hardware just isn't going to be well-supported by any OS. (Though, of course, with Linux, older hardware is more likely to be supported than bleeding-edge kit.)

          • mystifyingpoi 1 hour ago
            > It's getting very tiresome to hear complaints

            This is very true. I've been asked by lots of people "how do I start with Linux" and, despite being 99.9% Linux user for everything everyday, my advice was always:

            1. Use VirtualBox. Seriously, it won't look cool, but it will 100% work after maybe 5 mins mucking around with installing guest additions. Also snapshots. Also no messing with WiFi drivers or graphics card drivers or such.

            2. Get a used beaten down old Thinkpad that people on Reddit confirm to be working with Linux without any drivers. Then play there. If it breaks, reinstall.

            3. If the above didn't make you yet disinterested, THEN dual boot.

            Also, if you don't care about GUI, then use the best blessing Microsoft ever created - WSL, and look no further.

            • opan 2 minutes ago
              I've never gotten along too well with virtualization, but would second the ThinkPad idea, or something similar. Old/cheap machine for tinkering is a good way to ease in, and I think bare metal feels more friendly.

              I'd probably recommend against dual booting, but I understand it's controversial. I like to equate it to having two computers, but having to fully power one off to do anything* on the other one. Torrents stop, music collection may be inaccessible depending on how you stored it, familiar programs may not be around anymore. I dual booted for a few years in the past and I found it miserable. People who expected me to reboot to play a game with them didn't seem to understand how big of an ask that really was. Eventually things boiled over and I took the Windows HDD out of that PC entirely. Much more peaceful. (Proton solves that particular issue these days also)

              That being said, I've had at least two friends who had a dual boot due to my influence (pushing GNU/Linux) who ended up with some sort of broken Windows install later on and were happy to already have Ubuntu as an emergency backup to keep the machine usable.

              *Too old might be a problem these days with major distros not having 32bit ISOs anymore

            • charcircuit 35 minutes ago
              WSL supports GUI apps now. They open up just like any other GUI app on Windows.
              • mystifyingpoi 4 minutes ago
                I've tried this once for IntelliJ to work around slow WSL access for Git repos. Was greeted by missing fonts and broken scaling on the intro screen. Oops. But probably I was just unlucky, it might work well for most.
        • bigyabai 1 hour ago
          1. Linux isn't a panacea for depreciated hardware, and it never will be.

          2. If your priority is system lifespan, you are already using OEM macOS.

          • Forgeties79 39 minutes ago
            Never said it was “panacea for depreciated hardware.” I’m saying it’s a common use case.

            Every thread about Linux inevitably someone says “it gave new life to my [older computer model].” We’ve all seen it countless times.

    • dllu 15 minutes ago
      Apple does tons of optimizations for every component to improve battery life. Asahi Linux, which is reverse engineered, doesn't have the resources to figure out each of those tricks, especially for undocumented proprietary hardware, so it's a "death by a thousand cuts" as each of the various components is always drawing a couple of milliwatts more than on macOS.
    • paddim8 51 minutes ago
      It absolutely is not awful. You are doing something wrong then. It's not as good as on macOS of course but it's still great. I get 8-10 hours.
      • mort96 18 minutes ago
        Eh it's pretty awful. I get 8 hours, yes, but in Linux, those 8 hours are ticking whether my laptop is sleeping in my bag or on my desk with the lid closed or I'm actively using it. 8 hours of active use is pretty good, but 8 hours in sleep is absolutely dreadful.
      • imiric 33 minutes ago
        Exactly. This myth keeps being perpetuated, for some reason.

        I'm typing this from a ThinkPad X1 Carbon Gen 13 running Void Linux, and UPower is reporting 99% battery with ~15h left. I do have TLP installed and running, which is supposed to help. Realistically, I won't get around 15h with my usage patterns, but I do get around 10-12 hours. It's a new laptop with a fresh battery, so that plays a big role as well.

        This might not be as good as the battery life on a Macbook, but it's pretty acceptable to me. The upcoming Intel chips also promise to be more power efficient, which should help even more.

    • temp0826 2 hours ago
      This is the case with most (all?) laptops running Linux regardless of hardware unfortunately.
      • fsh 2 hours ago
        This doesn't match my experience. My previous three laptops (two AMD Lenovo Thinkpads, one Intel Sony VAIO) had essentially the same battery life running Linux as running Windows.
        • functionmouse 1 hour ago
          You're lucky, my thinkpad x13 gen 2 AMD gets 5 hours on modern Fedora vs. 9 or 10 on Windows.
        • sincerely 1 hour ago
          I have an AMD thinkpad and get maybe 1/4 the battery life on Linux as I do when I boot inti Windows, did you have to do any tweaking to achieve that?
        • martini333 2 hours ago
          I think MacOS was implied...
          • olyjohn 1 hour ago
            Have you ever put MacOS on a PC laptop? Terrible hardware support and the worst battery life of any OS.
            • functionmouse 1 hour ago
              I used to hackintosh every laptop I could get my hands on that could do it, and always saw better battery life on OS X vs. Windows.
  • OutOfHere 3 hours ago
    What is the prospect for newer M support, e.g. M3, M4? I am hesitant to adopt something that doesn't work with current and future models.
    • WD-42 2 hours ago
      Asahi is all reverse engineering. It’s nothing short of a miracle what has already accomplished, despite, not because of, Apple.

      That said some of the prominent developers have left the project. As long as Apple keeps hoarding their designs it’s going to be a struggle, even more so now.

      If you care about FOSS operating systems or freedom over your own hardware there isn’t a reason to choose Apple.

      • matthewfcarlson 1 hour ago
        To be clear, the work the asahi folks are doing is incredible. I’m ashamed to say sometimes their documentation is better than the internal stuff.

        I’ve heard it’s mostly because there wasn’t an m3 Mac mini which is a much easier target for CI since it isn’t a portable. Also, there have been a ton of hardware changes internally between M2 and M3. M4 is a similar leap. More coprocessors, more security features, etc.

        For example, PPL was replaced by SPTM and all the exclave magic.

        https://randomaugustine.medium.com/on-apple-exclaves-d683a2c...

        As always, opinions are my own

        • ZiiS 1 hour ago
          I strongly support a projects stance that you shouldn't ask when it will be done. But the time between the M1 launch and a good experience was less than the time since M3 I would love to know what is involved.
      • SamuelAdams 58 minutes ago
        Have they though? Hector just added support for the power button, I wonder if he is officially back?

        https://lore.kernel.org/asahi/20251215-macsmc-subdevs-v6-4-0...

    • GeekyBear 48 minutes ago
      The new project leadership team has prioritized upstreaming the existing work over reverse engineering on newer systems.

      > Our priority is kernel upstreaming. Our downstream Linux tree contains over 1000 patches required for Apple Silicon that are not yet in upstream Linux. The upstream kernel moves fast, requiring us to constantly rebase our changes on top of upstream while battling merge conflicts and regressions. Janne, Neal, and marcan have rebased our tree for years, but it is laborious with so many patches. Before adding more, we need to reduce our patch stack to remain sustainable long-term.

      https://asahilinux.org/2025/02/passing-the-torch/

      For instance, in this month's progress report:

      > Last time, we announced that the core SMC driver had finally been merged upstream after three long years. Following that success, we have started the process of merging the SMC’s subdevice drivers which integrate all of the SMC’s functionality into the various kernel subsystems. The hwmon driver has already been accepted for 6.19, meaning that the myriad voltage, current, temperature and power sensors controlled by the SMC will be readable using the standard hwmon interfaces. The SMC is also responsible for reading and setting the RTC, and the driver for this function has also been merged for 6.19! The only SMC subdevices left to merge is the driver for the power button and lid switch, which is still on the mailing list, and the battery/power supply management driver, which currently needs some tweaking to deal with changes in the SMC firmware in macOS 26.

      Also finally making it upstream are the changes required to support USB3 via the USB-C ports. This too has been a long process, with our approach needing to change significantly from what we had originally developed downstream

      https://asahilinux.org/2025/12/progress-report-6-18/

    • schmuckonwheels 1 hour ago
      This is a very straightforward problem with a relatively simple solution:

      Stop buying Apple laptops to run Linux.

    • eigenspace 2 hours ago
      The project is effectively dead
    • markus_zhang 2 hours ago
      Without official support, the Asahi team needs to RE a lot of stuffs. I’d expect it to lag behind a couple of generations at least.

      I blame Apple on pushing out new models every year. I don’t get why it does that. A M1 is perfectly fine after a few years but Apple treats it like an iPhone. I think one new model every 2-3 years is good enough.

      • cosmic_cheese 2 hours ago
        M1 is indeed quite adequate for most, but each generation has brought substantial boosts in performance in single-threaded, multi-threaded, and with the M5 generation in particular GPU-bound tasks. These advancements are required to keep pace with the industry and in a few aspects stay ahead of competitors, plus there exist high end users whose workloads greatly benefit from these performance improvements.
        • markus_zhang 1 hour ago
          I agree. But Apple doesn’t sell new M1 chip laptops anymore AFAIK. There are some refurbished ones but most likely I need to go into a random store to find one. I only saw M4 and M5 laptops online.

          That’s why I don’t like it as a consumer. If they keep producing M1 and M2 I’d assume we can get better prices because the total quantity would be much larger. Sure it is probably better for Apple to move forward quickly though.

          • wtallis 38 minutes ago
            In the US, Walmart is still selling the M1 MacBook Air new, for $599 (and has been discounted to $549 or better at times, such as Black Friday).

            In general, I don't think it's reasonable to worry that Apple's products aren't thoroughly achieving economies of scale. The less expensive consumer-oriented products are extremely popular, various components are shared across product lines (eg. the same chip being used in Macs and iPads) and across multiple generations (except for the SoC itself, obviously), and Apple rather famously has a well-run supply chain.

            From a strategic perspective, it seems likely that Apple's long history of annual iteration on their processors in the iPhone and their now well-established pattern of updating the Mac chips less often but still frequently is part of how Apple's chips have been so successful. Annual(ish) chip updates with small incremental improvements compounds over the years. Compare Apple's past decade of chip progress against Intel's troubled past decade of infrequent technology updates (when you look past the incrementing of the branding), uneven improvements and some outright regressions in important performance metrics.

          • Kirby64 41 minutes ago
            > That’s why I don’t like it as a consumer. If they keep producing M1 and M2 I’d assume we can get better prices because the total quantity would be much larger.

            Why would this be true? An M5 MacBook Air today costs the same as an M1 MacBook Air cost in 2020 or whenever they released it, and is substantially more performant. Your dollar per performance is already better.

            If they kept selling the same old stuff, then you spread production across multiple different nodes and the pricing would be inherently worse.

      • stetrain 2 hours ago
        If you want the latest and greatest you can get it. If an M1 is fine you can get a great deal on one and they’re still great machines and supported by Apple.
      • lagniappe 2 hours ago
        >I don’t get why it does that.

        I've got a few ideas

  • SG- 2 hours ago
    author mentions he paid $750 for a MacBook Air M2 with 16GB while on Amazon a M4 Air with 16GB is usually $750-800. I get it that M4/M3 aren't supported to boot Asahi yet, but still.
    • codepoet80 1 hour ago
      I really wanted this to work, and it WAS remarkably good, but palm rejection on the (ginormous) Apple trackpad didn't work at all, rendering the whole thing unusable if you ever typed anything. That was a month ago, this article is a year old. I'd love to be wrong, but I don't think this problem has been solved.
      • mort96 15 minutes ago
        Yeah what is up with that? When I've tried to look into it I've just been met with statements that palm rejection should pretty much just work, but it absolutely doesn't and accidental inputs are so bad it's unusable without a disable/enable trackpad hotkey.
    • chocochunks 2 hours ago
      It's a year old article.
      • SG- 2 hours ago
        the point still stands as last year the M4 was released and was already seeing those deals especially with the M3 earlier too.
        • chocochunks 2 hours ago
          No, because the M4 Air wasn't even out until March of this year. It was only in the iPad and MBP last year.
    • ezfe 2 hours ago
      I mean for most purposes should be very similar so makes sense the price is similar