Asahi Linux with Sway on the MacBook Air M2

(daniel.lawrence.lu)

67 points | by andsoitis 4 hours ago

4 comments

  • gsora 1 hour ago
    Putting swaybar at the top behind the notch is a great idea!
    • zozbot234 1 hour 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.
  • 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.

      • Forgeties79 43 minutes 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 31 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 33 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 20 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 36 minutes 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.

    • 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.
        • sincerely 15 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 12 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

        • functionmouse 14 minutes ago
          You're lucky, my thinkpad x13 gen 2 AMD gets 5 hours on modern Fedora vs. 9 or 10 on Windows.
        • martini333 56 minutes ago
          I think MacOS was implied...
          • olyjohn 29 minutes ago
            Have you ever put MacOS on a PC laptop? Terrible hardware support and the worst battery life of any OS.
            • functionmouse 13 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 1 hour 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 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.

      • matthewfcarlson 16 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

    • schmuckonwheels 5 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 49 minutes ago
        What why?
        • willis936 25 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 27 minutes ago
          Because key developers have left the project, and developers who are capable of such work are few and far between.
        • eigenspace 29 minutes ago
          It's really hard to do and nobody is paying for it?
    • markus_zhang 1 hour 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 53 minutes 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.
      • 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.
    • 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 58 minutes 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