Asahi Linux with Sway on the MacBook Air M2

(daniel.lawrence.lu)

84 points | by andsoitis 5 hours ago

5 comments

  • commandersaki 2 minutes ago
    256gb ssd as the minimum spec is criminal in my opinion.
  • gsora 2 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 1 hour ago
        Wayland modularity is the gift that keeps on giving.
        • imiric 9 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

  • rubymamis 1 hour 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 1 hour 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 9 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

      • 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 57 minutes 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 59 minutes 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 46 minutes 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.

        • 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.

    • paddim8 4 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.
    • temp0826 1 hour ago
      This is the case with most (all?) laptops running Linux regardless of hardware unfortunately.
      • fsh 1 hour 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 39 minutes ago
          You're lucky, my thinkpad x13 gen 2 AMD gets 5 hours on modern Fedora vs. 9 or 10 on Windows.
        • sincerely 41 minutes 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?
          • fsh 38 minutes ago
            I typically install and enable tlp [1], but that's it. Some distros/DEs might have it out of the box, but on Arch I had to do it myself.

            [1] https://wiki.archlinux.org/title/TLP

        • martini333 1 hour ago
          I think MacOS was implied...
          • olyjohn 55 minutes ago
            Have you ever put MacOS on a PC laptop? Terrible hardware support and the worst battery life of any OS.
            • functionmouse 38 minutes 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 2 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.
    • GeekyBear 0 minutes ago
      The new project leadership team has prioritized upstreaming the existing work over reverse engineering newer systems.

      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/

    • WD-42 1 hour 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.

      • SamuelAdams 10 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...

      • matthewfcarlson 42 minutes 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 20 minutes 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.
    • schmuckonwheels 30 minutes ago
      This is a very straightforward problem with a relatively simple solution:

      Stop buying Apple laptops to run Linux.

    • eigenspace 1 hour ago
      The project is effectively dead
      • shadowpho 1 hour ago
        What why?
        • willis936 50 minutes ago
          Very little progress made this year after high profile departures (Hector Martin, project lead, Asahi Lina and Alyssa Rosenzweig - GPU gurus). Alyssa's departure isn't reflected on Asahi's website yet, but it is in her blog. I believe she also left Valve, which I think was sponsoring some aspects of the Asahi project. So when people say "Asahi hasn't seen any setbacks" be sure to ask them who has stepped in to make up for these losses in both talent and sponsorship.

          https://rosenzweig.io/blog/asahi-gpu-part-n.html

        • nicoburns 53 minutes ago
          Because key developers have left the project, and developers who are capable of such work are few and far between.
        • eigenspace 55 minutes ago
          It's really hard to do and nobody is paying for it?
    • 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 1 hour 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 22 minutes 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.

      • stetrain 1 hour 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 1 hour ago
        >I don’t get why it does that.

        I've got a few ideas

  • SG- 1 hour 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 16 minutes 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.
    • chocochunks 1 hour ago
      It's a year old article.
      • SG- 1 hour 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 1 hour 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 1 hour ago
      I mean for most purposes should be very similar so makes sense the price is similar