554 points · by CrankyBear · 3y ago · 314 comments
There is a list of upstreamed and missing functionality on the Asahi Linux wiki here: https://github.com/AsahiLinux/docs/wiki/Feature-Support
Linux 6.2 adds (checks notes): cpufreq to M1s, devicetree for newer hardware, HDMI out to Mac Studio (2022) and bluetooth support.
That doesn't sound as interesting as this article suggests when stuff like USB, the touchpad, keyboard, speakers, 3.5mm audio, suspend/sleep are all still WIP downstream.
This isn't a dig at the Asahi Linux developers. They're making solid progress. This is just a bad article.
For full clarity, having observed Marcans socials for a while, a big reason as to why upstreaming into the kernel is slow is because the Linux kernel suffers heavily from having BDFL maintainers.
Basically a specific maintainer can make upstreaming patches to their part of the kernel a process few people want to go through due to how much leeway they have in approving/rejecting patches. Stuff like yelling at merges that also happen to fix bugs in the parts that they modify because "bugs should be upstreamed separately" (even when splitting out the bugfix makes zero structural sense) or getting angry at contributors for lines they didn't contribute but that git diff happened to spit out around their commit to keep the diff readable.
Having watched that for a few weeks really gives you an understanding as to why so few Linux modifications for obscure devices have their patches upstreamed. (Switchroots main project, which is the Linux kernel but modified to run on the Switch for example doesn't bother upstreaming anything as far as I can tell.)
(Benevolent Dictator For Life)
It's worth noting that these features were long available since July 2022 (https://asahilinux.org/2022/07/july-2022-release/) to Asahi users. And like other Asahi users, I've been using them since that time on my Mac Studio running Asahi (with HDMI output, 10G ethernet, and Bluetooth too): https://triosdevelopers.com/jason.eckert/stuff/AsahiSwayM1Ul...
stuff like USB, the touchpad, keyboard, speakers, 3.5mm audio, suspend/sleep are all still WIP
That makes it sound as if they are barely (un)usable which isn't true eitherI wonder what kind of realistic ETA there is (if any) for these kinds of features.
Speakers also do work but they are disabled by default so a bug in the current implementation doesn’t blow up the hardware.
And a whole set of major features will be supported as soon as the thunderbolt driver is done which I’ve heard is in progress.
The touchbar, fingerprint reader, and camera are things I wouldn’t hold my breath for.
Laughs in NetBSD
[1]: https://phpc.social/@marcan@treehouse.systems/10981800943090...
Feels like Apple have made this a lot harder than it needed to be. Of course they're masters at designing great hardware with ridiculous flaws. Like somehow being fragile despite the metal construction. Missing connectors, weird keyboard design choices. Soldered-on components. I bought a Macbook Pro once almost a decade ago. Never again. Never before or since have I felt less like I actually owned the hardware I'd bought.
You sound like anything but apple is good, but there's a lot of awful hardware out there, that is for sure. How to you avoid it ? What's your foolproof buyer method ? I might sound snarky, but I'm also genuinely interested !
For example with Thinkpad that meant finding a compatible panel based on specs they publish about all their models, then finding a teardown and rebuild video published on the Lenovo website for the model.
I was really interested in an m1 laptop but I tried my process with it and all research pointed to "send it in to apple care" which I don't want to do because I know how to use a screw driver and order parts, that should be enough.
I expect to keep my Thinkpad for another 5 years at least. But I might switch to Framework at some point if they can match the Thinkpad build quality. For laptops I value sturdyness and repairability over all other considerations, because I'm clumsy as hell. Apple products are far too fragile for me and far less sturdy than they look.
Reading trustworthy test sites, before buying anything expensive. Which has gotten a bit harder, due to LOTS of paid content, but it still works, if you know how to spot the signs of a bad site.
I bought my second Macbook and I'm using mostly wireless accessoires to prevent port damage. I don't use its built-in keyboard and touchpad to prevent them from breaking. I don't disconnect it from power to prevent battery damage. I bought huge SSD (2TB) and don't fill it with data to prolong its life.
And you know what? It works wonders. This macbook works without hiccups for almost a year! Sure, I'll need to replace my Apple Keyboard soon, but that's just $250, not $5200.
Alyssa has been instrumental on the GPU front, but I'd think marcan deserves at least a passing mention.
Though tbf, the number of wonderful people was much greater, but I just couldn't take the negativity i was getting from a not insignificant minority of manchildren who have probably never heard the word "no" from mommy and daddy while growing up
It seriously reminds me of hackerspace/opensource drama we've been part of in my college years and by now I've kinda grown up enough to find it tiring and remember that you need two parties to cause it.
Imagine being a maintainer of a specific section of the code, only to receive an email from contributor stating that you must move to github from mailing list and if you disagree then "tough luck" and it's your fault.
It's Asahi Lina who really did the kernel driver (building on Alyssa's reverse engineering work).
In the $current_year things are so hilariously sexist that I pass my work off as my wife's so I can make more money pretending to be her.
Makes me wonder how many great men of the past were actually their wives alter egos.
Interesting thought. I know JK Rowling is "JK" because her publisher wanted to obscure her gender. This sort of thing is probably common.
(I also resurrected a Macbook Pro 2011 and got it to run about 5 years after Apple stopped supporting it as well.)
My ultimately conclusion is that when I run linux on my desktop I focus too much on the OS and too little on what I'm trying to accomplish.
Oh cool there's a .001 version bump on the graphics drivers, let me spend all day recompiling that and tweaking my awesomerc.
MacOS, you just can't do that simply by virtue of being less customizable.
Am I quite as efficient as I was when my computer would reboot in <30 seconds to a desktop with all of my browsers open exactly as I wanted them (slack here, different monitoring/graphs exactly tiled exactly on another monitor) and I could switch between specific task-focused desktops with awesome (programming work here, ops here, email/biz work here, etc) no I am not as productive, but, how much time did I spend fine-tuning that setup? It felt like A LOT and I know (for a variety of reasons, this being only one of them) that I'm generally more productive since I retired my last Linux desktop in 2018.
That said, please don't take any of this to diminish the accomplishment of the Ashai team. The fact that they did what they did and did it well enough to get mainstreamed is an absurd feat. The fact that it was significantly (primarily?) done by an anime-girl live streaming on twitch is absolutely hilarious.
I also tried to avoid maintenance a lot with XFCE, but part of the problem is that I could never get it to look exactly like I wanted. There were always some minor GUI bugs that irked me to no end. Add to that, there were some weird inconsistencies because for a long time there were both GTK2 and GTK3 programs running at the same time and they didn't look quite normal.
Then there was the problem of those new-style GTK interfaces with just the hamburger menu, and not all programs were like that. I tried to fix that too somehow by moving to other Window managers but there was always some weird problem.....arrgg I LOVE linux, but (I hate to say it) MacOS just looks nicer with less fiddling.
This is... still significant.
Outside of auto updates sometimes rebooting my laptop overnight and major version bumps requiring me to hit the "update" button explicitly once a year, I'm unsure what "maintaining my configuration" would entail once things were setup to your liking on macOS.
Like others have said, that is a lot.
And I'm saying this as someone who's been running Ubuntu with i3 for the past 10 years or so. I practically don't spend any time on my configuration, unless maybe an hour or two when I upgrade Ubuntu.
Some people get stuck down the customization/r/unixporn rabbit hole.
Like I said, I love linux, I run linux on literally 1000s of servers worldwide, the work Ashai developers are doing is amazing. I'll probably never again run it on my desktop/laptop.
I use Windows and the number of hours per month I spend on maintenance and configuration is close to zero.
Every so often I think about switching back to Linux but these comments remind me why I switched.
I've been on linux for the past however many years and I don't waste time on my setup at all. I pretty much have the same setup for the last 4-5 years. I've spent maybe 20 hours since then tweaking things / switching distros. Never had to recompile my kernel, my drivers or anything like that since I'm on a t490 thinkpad and it pretty much just works.
I wasn't really having any problems per se, window management on macos is a bit lacking and I'm not fond of the forced animations everywhere, but overall I was pretty happy with how everything functions.
Until few weeks ago I had free time and an adventurous mood to try out the Asahi (It's really painless to do so), and the moment I git clone'd my dotfiles and logged into my old i3 configuration I was very astounded by the sheer snappiness of everything, fingers remember all the shortcuts and all of the workspace switching is /instant/. That's something I have tried to replicate on MacOS multiple times and always failed, yabai and the like are not even close.
I still reboot into macos for when I'm mobile as I don't trust sleep on asahi (I don't think it even works that is), but when I use it at home I am very impressed by how stable and daily drive-able it is if current (admittedly, significant) compromises work for you.
BTW, many professionals like and use a highly customized setup which only Linux can offer. This is true in other fields too. See, for example, Euroracks.
My work Mac requires constant TLC, although that's mostly because they want a container based workflow which is obviously not native to MacOS and there is always something going wrong that requires a couple of hours tweaking to get healthy again each month.
It also doesn't help that my Mac feels more responsive but also feels much slower. Again it's probably the container based workflow, or all the crappy AV and management software scanning each other but compiling code feels like it takes forever compared to my several year old Linux laptop.
The base fedora install + the proprietary codecs repo is literally all you need. Everything else is a waste of time.
However, in addition, I think there’s probably a significant amount of highly transferable learnings you’ve gone through while spending all that time configuring your machine. Was any of that time wasted? Well, probably, at least by some measure… But it’s also very hard to gauge the value of all the incidental knowledge you gained about what computers are, how they work, etc.
My point is this: don’t over-penalize yourself for wasting time when you’re learning in the process, and try and remember how magical it is to learn things for the first time. And for other readers… It’s good to be pragmatic, but if you’re lucky enough to be in a position to spend a lot of time tinkering, playing, learning, then DO IT. Life is meant to enjoy!
I kept doing that for awhile after I graduated, but eventually I realized it wasn't a good learning experience anymore, it was just a tedious waste of my time. I realized I should have been socializing or recreating outdoors or reading or picking up new hobbies if I wasn't working. Since then I've mostly used Macs or Linux machines maintained by the company I work for, and this is definitely a much better use of my time.
There are only so many fundamentals to learn here before it becomes just so much minutia and non-essential complexity.
Oh my god no.
I ran gentoo ~amd64 on my desktop for YEARS. If you don't know gentoo you don't know what that means, but, I learned A LOT. I wouldn't trade it for anything, it's just not right for me anymore.
Part of this might have to do with how the sorts of tiling WM setups that Linux aficionados seem to love aren't compatible with me at all, and more traditional minimalist setups (e.g. OpenBox+tint2 or whatever the modern equivalents to those are) left too many unfilled or badly filled holes, which drives me to the bigger DEs, which are opinionated in ways that don't necessarily align with me which drives the twiddling.
The only way I can see this changing is if I somehow become able to pay the bills without working and pour myself into developing my own DE and essentially make the twiddling my job (which I think I would actually love doing, but doesn't seem particularly realistic).
That's a you problem, not a Linux problem.
I haven't compiled any drivers for Linux in many, many years, probably decades even.
It helps to avoid Nvidia GPUs however, but even here I haven't seen a big problem in ages (my work computer unfortunately sticks me with an Nvidia, but Debian updates seem to work as normal).
Such as for example the cpu/ram/net/disk usage thing in the Gnome top bar. I have no idea whether there's something like that for Mac, and even if there was, I wouldn't know how to find it.
Most of those things (small utilities/plugins) exist for macOS, with two massive caveats - they are often paid (e.g. only 2 out of ~10 window managers are free; 1 out of ~3 usage thing in top bar is free), and the second one which bugs me more, they're often very Apple ecosystem centric (first or third party doesn't matter). They do things in the Apple way, integrate only with Apple tooling and services and devices, often in non-obvious ways. E.g. a fun one is that you can extend your macOS screen to an iPad, if you fill a bunch of Apple requirements (same AppleID account), but with zero feedback on which one you don't fill. If you don't, the button just isn't there, nothing says why, and all online guides boil down to "make sure you've done this". Which is my biggest problem with macOS - it isn't made for technical people because it is incapable of providing actual usable feedback that can help you debug. Be it magic buttons that only appear if everything is there, or useless error messages ("A USB device is consuming too much power and has been shut down". Which device?), or lacking features like separate scroll direction between mouse and touchpad. Oh and there's no native package manager for some unknown reason.
It's a decent shiny OS, fine for a graphical designer/video editor. I don't get technical people who swear by it, I'd be tempted to say Win 10 with WSL is better than it for techies.
This is an option for Mac: https://github.com/exelban/stats
I had two older Mac laptops that stopped functioning with the latest macOS update for encrypted iCloud files (now just about everything is encrypted in motion and at rest). I put Ubuntu on both, a MacBook and a very old (tiny model) MacBook Air that is many years old.
It is never too late to try out an Apple Silicon Mac. They just get out of your way and they just work much faster.
But in the future the project could be reduced to a simple bash script you run and then it’s a stock distro
I really hope we don't go back to that. Especially with a company that defaults to 'proprietary' for so many things like Apple.
Getting the device tree set up, initializing graphics and all the peripherals, and the boot process is where Ashai Linux has done the vast majority of their work.
Unfortunately, until people value freedom more than pure performance, efficiency, or "security", closed ecosystems may become dominant.
Also of course, the GPU which already has incredibly high variance across vendors.
You’re not going to see Samsung, Asus, and Dell releasing their own properietsry arm derivatives, if that’s what you’re implying. Too many laptops, too much porting and unoptimized Software.
Apple’s always done this to maintain a prestigious image for non technical people.
The most exotic thing about them is usually the unified memory controller.
https://www.tomshardware.com/news/linux-kernel-adds-risc-v-j...
I do need get a Mac Mini to test flutter apps there, not happy with its default small DDR size(8GB) and pricey upgrades, and, of course it's not upgrade-able either, disappointed.
I think the answer is that it's a uniform piece of desktop hardware with a huge installed base. Apple's market share in the desktop space may be small compared to PC, but the PC ecosystem is heterogeneous, so the economics of supporting a large fraction of PCs is disadvantageous for open source maintenance.
If support for linux and other open source OSes on apple desktop hardware becomes a thing, it may well quickly become the best-supported and best-tested hardware of all, which would be a huge leap forward for open source on the desktop.
Besides: The relationship between Intel and open source is not exactly a love affair either. Maybe Apple will be nicer to open source, or maybe the sheer fact that there is a second hardware player in the open source desktop space will be a shift in competitive dynamics that's advantageous to open source.
In the same time I've been using Linux for 20 years and I am happy with it, so I don't want to change to MacOS. Thus I would happy to buy apple & install linux on it.
I am now running Asahi Linux on a M2 Air, because that’s the best combination for a user like me.
if all those units are fully supported, e.g. I can use its NPU to train a machine learning model, I may get a M2 laptop too.
Most of my usage is browsing, emails, and light development - so it works good enough for now. If I need a GPU, I run Jupyter on my homeserver with a 1050Ti.
The only Apple hardware I've owned was a mac mini for the exact same use case as you, but the M1 laptops might change that if I can run Linux. I did not enjoy Mac OS when using it on the Mini!
Like I was around for the whole 68k and PPC transition. Obviously the Intel transition too. I think the Intel was the worst, at least for us that doubled down on expensive G5s that barely had any shelf life to them.
Beyond that? Apple is pretty reasonable. Android Phones that were released at the same time as the XR, which still runs iOS 16, have been deprecated for almost 2.5 years in any kind of support.
I feel sorry for people that bought Intel Macs in 2019, as those are really the ones going to be left out in the cold.
Outside of that, as far as installing a brand new Apple OS on a 5 year old+ computer, is a crap shoot from the performance perspective. Maybe it will work, maybe it won't. Maybe it will require too many concessions.
Intel's forever 14nm++++++ honestly sort of stagnated things for a while, but now they've taken off again, and you can often feel the age on those machines in a lot of use cases.
The old macbooks with the coreDuo CPUs, only lasted a few years before a next major osx release dropped 32bit cpu support.
I have a 2011 15" macbook pro that Apple ended the life of around 2015 or 2016, I believe, by discontinuing the GPU drivers in next major osx release.
How many releases do you think before x86 is dropped completely from OSX?
If I understand right, this is an important step to getting an Apple Silicon version of Ubuntu, correct?
This is about getting Ubuntu and other linux distros to run bare metal on Apple Silicon without virtualisation or macOS being invovled.
Like some of the other answers here mention, if there's an arm build for Ubuntu, this would get things closer to running natively on Apple Silicon I think?
I am indeed trying to ensure Vagrant will work, since that's the technology we've typically used on our team, and we have some tooling setup to take advantage of it.
Vagrant is nice because it automatically shares a folder with the regular desktop, and we have all of our setup ready to go. But I imagine I could get Parallels or UTM to do the same thing... although I wonder how much extra CPU cycles and battery drain I'll have. But as long as I can get it to work, I'd be generally happy.
There is indeed an ARM build for Ubuntu (and has been for over a decade!), and this is what you would most likely want to run in a VM on an Apple Silicon machine. You can also run the x86 version emulated, but this will of course be much slower. As of the latest macOS releases, it's even possible to use Apple's "rosetta" translation software to run translated x86 binaries within an ARM linux VM, and this is likely the best thing to try first if you are using software that doesn't have ARM versions.
I'm running Archlinux ARM in a VM as my primary development environment on an M2 Macbook Pro and it works great.
Any idea how to get that? I would love to give it a shot.
It just needs to be ARM Ubuntu, not Intel Ubuntu.
https://archlinuxarm.org/forum/viewtopic.php?f=67&t=15997&p=...
This will download and execute the Asahi Linux installer. If you want to check the source ahead of time, it's on the Asahi Linux GitHub.
While functionality improves rapidly every day, it is still decently rough around the edges. However, the installer is very streamlined and it's easy to get set up and try it out.
2. Someone tells him
3. Third person chimes in “you know, it’s technically possible that they’re lying!” despite no evidence of that being the case.
Tough crowd…
(Btw, you can easily verify that the alx.sh installation method is recommended by official sources, for example here: https://asahilinux.org/2022/03/asahi-linux-alpha-release/)
The best way to share files with a proprietary system is to go through some sort of network, i.e. NAS, smb, etc.
If I was going to go that route, on my MacBook which is 1TB, I would probably do something like 200GB for macOS, 200GB for Linux and then a shared partition of the rest (~600GB). I'd probably make the shared partition ExFAT, or possibly un-journaled HSF+.
I think the easiest way would be to install Asahi first, pick the size you want for it (200GB in my example), then once you have that sorted, figure out how to create another partition that you will format as ExFAT/HSF+/Whatever you want. I'm sure this is possible/easiest from the macOS side of things, although I have never partitioned a drive in macOS. The Asahi installer does it from the command line in macOS, so I'm sure Disk Utility has the ability to resize and create partitions, too.
Just forget about dual booting nobody really does that.
Their work goes beyond the kernel. For example Mesa (the user space part of the Linux GPU stack), boot tooling and installation tooling.
And of course the incredible amount of reverse engineering.
Because Apples MacBook Pro with M-Series Pro and Max chips are arguably the best allrounder laptops on the market right now
edit: I believe they are looking for donations.. I'll find a link when I have time.
Edit: here's what it looks like in action - https://youtu.be/aBEsxTVRsEo?t=100
It's also worth noting that Firefox ships with pinch-to-zoom and swipe-back gestures by default for Wayland now, too.
Both my spouse's laptop and mine were dramatically better in Linux compared to the Windowses they came with.
The main holdup was Wayland - go get your Wintel machine and try booting up a Wayland session in KDE or GNOME. If your trackpad was manufactured with multitouch, chances are it will have gesture support. Any distro shipping GNOME 41-ish or Plasma >5.25 should have this by-default.
As for the feel... I'm gonna be honest, I don't notice any difference from my Mac. If anything, my Magic Trackpad has more gesture options on my KDE machine out-of-the-box. Don't knock it till you've tried it!
I'm mostly using the Magic Trackpad on my desktop though. It's very possible you might find a laptop with bad palm-rejection firmware, but I don't think that's an issue with these. Or Synaptics touchpads, in my experience.
If you mean the latter, there are ways to customize that to be more like other desktop environments (sorry for not linking anything, currently on mobile and I don’t have time now to vet search results, but there are built in CLI settings which should be pretty easy to find).
Mostly commenting in case the above leads in a helpful direction, but if you actually mean latency of trackpad input apart from the acceleration curve, I’m wildly curious to hear more about what you’re experiencing and expecting otherwise!
I'm not talking about the track pad (although that has quite a lot of latency as well). I'm talking about a mouse.
* https://blog.rnstlr.ch/building-an-out-of-tree-rust-kernel-m...
* https://blog.rnstlr.ch/building-an-out-of-tree-rust-kernel-m...
I'll probably make a follow up post with Linux 6.2