826 points · by sohkamyung · 3y ago · 331 comments
The Linux graphics folks have really achieved something.
There's even a working Direct3D 9 driver based on Gallium3D. With an appropriately patched WINE, you can use it to run old Windows games quite nicely even on integrated graphics or with low core count CPUs. Here's some reporting: https://www.phoronix.com/news/Gallium-Nine-Better-2021
I hope that with NVIDIA's new open-source kernel drivers, now Nouveau can push forward and get good performance like Mesa's open-source drivers for AMD. That'd be awesome, and it could pave the way for mainlining NVIDIA's new kernel driver.
That was an amazing feat, this is also very impressive.
I think at some point Linux was as good as Solaris, if not better, on SPARC systems.
I really wish this were true at some point for Apple hardware.
These days I think even Cantrill regrets being a jerk back then.
That's a bit of a stretch. In fact, the last time I was in an air traffic control tower, it was Solaris, not Linux, in active use by the controllers themselves.
It would also have to go through many series of bureucracy, compliance requirements, and such to be installed in the first place. Even a point update to the next Solaris version could be a year long process, complete with several staging systems and so on.
Last but not least, it would 100% be tied to the ATC software run there, and under what OS it was developed and tested (which, if it was pre-2000, would more likely be some commercial UNIX like Solaris, considered - and being - more mature and supported for such use then).
An airport management wont just go and reinstall some mission critical software they got through a specific contract deal. And ATC software wont be just some GitHub repo you recompile and build for Linux.
But that's almost totally unrelated to how well Solaris vs Linux runs on the machine.
Back when Sun was still in business, Linux's SMP support was still in its infancy, futexes were not a thing, and the pthreads documentation was nonexistent.
On top of that, fsync was actually broken on ext2/3. Also, there was a single kernel level lock per file, so you couldn't have two CPUs seeking in the same file at the same time (oracle recommended using a block device instead of a filesystem, and provided a list of changes to the kernel source you needed to make manually if you wanted Oracle on Linux to be supported.)
None of this mattered of course, but the Linux kernel certainly wasn't "better" than Solaris back then.
All of the ATC applications were built on Solaris running SPARC. Most of the developers were familiar with Linux at the time, this was back in the early 2000s. But even then many of the devs wanted to migrate the platform to Linux for a number of reasons. The cost and time, however, for acceptance testing on Linux would have eaten the budget alive.
So instead pieces and parts that were readily accessible in Linux were ported to SPARC. I remember getting a new requirement for GPS time (previously the system had only used Rubidium oscillators) and working with one of the devs on getting OTS hardware working with the ported code. The further along the program went and newer features were added to the scope the more this happened. But everything in the UI was based on CDE and some SPARC specific libraries for the UI. The HMI was written in ADA.
Since these systems have so many requirements just swapping out the OS would be a major overhaul and I'm not actually sure that Linux would even be the right choice.
Throughout the talk they showed Linux vs Solaris performance, and talked about their optimizations. It was lmbench (Larry McVoy the author was ex-Sun, which adds something) that, and by the end they beat Solaris on every result.
Obviously this was impressive, but it's hard for me to clearly express how much this shook my assumptions about how to build good software. A bunch of students shouldn't have been able to beat Sun on their own hardware in anything!
I watched the hardware support evolve with each major update and remember when the first builds of specific software (e.g., Chromium and VSCode) that supported the 16K page size were first available.
The last few months were incredibly interesting to watch - especially the live coding sessions. And throughout the whole time, Asahi was rock solid as a daily driver. I find it a stellar example of the power of open source and the people in the community that drive it.
I'm also in awe and respect for the Asahi team, but please don't overstate things just to celebrate their work. Even according to your own posts, there are huge dealbreakers like sound or external HDMI.
I bought an M1 based on HN posts like this, because I need linux and not OS X. I soon returned it when I realized how it could not come close to being my daily driver.
I wouldn't need those, nor know they were broken if I had an M1. Sounds like the functionality I would need for a daily driver is there and solid though. Of course I'm capable of looking at lists of working features and roadmaps and deciding if something fits my use case independently of vague "pro" and "con" reviews on random discussion sites.
I came to this thread looking for exactly what you posted. Sure, I could check the site but I expect limitations to be discussed as well.
I’m also really looking forward to the changes in Asahi getting upstreamed. The Rust in Linux work has me really excited for the future of Linux.
I might even start contributing once Rust is more common!
as someone who's recently experimenting with Rust, why is that so? I mean if you have something in the kernel where you could give valuable contribution, why letting the language stop you? guess any dev who can write Rust today is also a good C dev, ain't it?
Quite a number of Rust devs I've read about, have never been C devs. They came from dynamic languages or Java or similar, and stuck with Rust and learned it, as a more modern features-wise and less error-prone systems language than C.
I learned in C, it's the abstraction that exists in my mind for computers, but I'd never use it to actually write something, because of memory safety. I'd even been using Ada.
So, Rust was appealing in the ways C wasn't.
I'm sure they have the potential, but they might not want to learn/use C.
I'd certainly be much more likely to look at kernel dev if I can use rust than if I have to use C.
Contributing to a C kernel sounds like a thankless job with crappy tooling and high potential for errors - and frankly just brings back horrible memories (ahhh, the segfaults).
Developing in Rust on the contrary is quite enjoyable and I'm definitely more inclined to contribute something.
For a couple weeks, I had DNS issues with the /etc/resolv.conf file, but I added a rule to the Network Manager to not touch that file upon reboot so everything works correctly now (except pinch to zoom on the touchpad).
I wish someone could somehow make a laptop with the internals of an MacBook (mainly the CPU), but with the externals of a Thinkpad, including the far-superior Thinkpad keyboard and far better aesthetics. And while they're at it, make it easy to pop the back cover off and replace components (esp. the HD) as needed.
It makes no noise at all, to the extent that I even checked a dissasembly video to check if they had fans or just passive refrigeration. The display is the best I've ever seen in any laptop. The trackpad is excellent, the keyboard think is very good, the speakers, microphone and webcam are also very good.
I've owned before a lenovo T530, T460s and T580 and quite frankly if we're talking about just hardware this is even better and my last experience with the T580 was just bad. My perception of the lenovo brand was that they made the best laptops until then. In fact I asked to get a macbook because the T580 was so so problematic and not just for me.
I have to say I personally dislike macOS. In fact because now I'm working on 100% FOSS software I'm only using the laptop for corporate calls or situations where I have to deal with customer data, but the rest I do on my personal computer with ubuntu.
Well, 6th place
https://www.notebookcheck.net/The-Best-Notebooks-with-the-Be...
But yeah it is pretty good.
Though the only experience I’ve had with macs are at apple stores.
What we need is a computer with the internals of a modern M1 Macbook, but the aesthetics and keyboard of a Thinkpad of yesteryear, plus a magnesium chassis.
Interesting take. As an example I have an Apple laptop with a trackpad that is quite useable, something pretty much unheard of on anything else.
The keyboard feels much better than my old Thinkpad, but this might be subjective. I've not been impressed with the recent models (although admittedly haven't spent long with them).
I'm with you on the upgradeability/repairability/maintainability, but maybe a Framework is a better fit in that case.
My Air outperforms my desktop, has close to 20 hour battery life in my normal use, and is completely fanless. It's not perfect, but I don't see anything else that comes close (if I did I'd probably switch.. macOS is driving me more crazy with every release).
I'm on my first macbook--a M1 air--and now I finally see what the hype wrt apple hardware is. I love thinkpads, but between the battery life, the speakers, display, just how light it is, never runs hot no matter what I do to it....I can't believe I went this long without trying one out.
The hardware plus improving linux compatibility means I know this machine is worth it
Apple's screen, lower power management, chassis, touchpad, are all dramatically superior.
The stereo on the Macbook Pro 16 inch is absolutely absurd. It's the stereo for my HOUSE.
Apple's killed supply chain that delivers more for less.
Modern Thinkpads have been ruined by the pivot to the ultrabook-esque approach.
Thinkpad's are like models.
There's simply no reason for them to be that skinny.
Otherwise it was a decent “daily driver” laptop, in many aspects superior even to current gen MacBooks, particularly repairability, ports, keyboard quality. I'm using a 2020 MacBook Air now which I bought to try out the M1, and some aspects where it excels are screen (obviously!) and speakers, but I think those are comparable to a little more modern ThinkPads (xx40 maybe?).
[1]: https://www.thinkwiki.org/wiki/Replacing_T430_screen_with_a_... (ThinkWiki got some terrible ads since I last checked it, get your ad blocker ready)
I moved from thinkpads to the 14 MBP and I can’t think of a reason I’d want to go back to Thinkpad other than being able to run Linux.
I’ll leave the “far superior” keyboard aspect aside because it’s personal preference. I got used to the Apple one and I type much faster than on my x220.
But the screen? Come on. Mini Led, high brightness, just looks absolutely great. Thinkpads usually have shit brightness and basic coatings. I’ve even gotten panels from China to make custom replacements for some of mine because of the garbage panels they came with.
Speakers are vibrating turds on thinkpads. One day my gf brought her laptop to bed to watch a movie and i thought “there is no way this is going to be enjoyable”. Then i heard it and I was blown away. I then ripped off the speakers off mine and I made custom housing for some speakers out of a MacBook Air for mine. They couldn’t live sounded better if the whole chassis didn’t rattle with the added bass and if the speakers fired up.
The soft touch coating on the shell that peels off leaving half shiny half matte, classic no?
They are tied on the hinges, both are solid. Thinkpads may have more ports, but honestly I don’t go around plugging my laptop to too many things.
In other words, you claim "the hardware is terrible", but your actual case is "I prefer the external design of the Thinkpad".
I guess, I'll give you the keyboard. Which is more than compensated with the far greater touchpad, incredible speed, battery life, and coolness while all of the previous (of the M1).
But it is my understanding that the mouse pad on MacBooks are far superior to most other mouse pads. I don't know about the keyboard, though.
Thinkpad keyboards are indeed much better, but only if you don't care about small water spills rendering your keyboard unusable.
The keys in the recent ones are incredibly mushy.
Agree about being able to swap components though.
I pay around 50USD/year for an enterprise grade Thinkpad support plan with Lenovo, where they send an engineer to either my home or office the _next day_, complete with any spare parts needed to fix whatever might have gone wrong, whether it's accidental damage or a hardware defect. I've only needed that support maybe four or five times over the last decade, but each time it's been stellar: new screens, mainboards, keyboards, broken case parts, etc. No caveats or gotchas or 'ooh that voids your warranty' to worry about, ever. It gave me full confidence to run my company and equip all of my devs with Thinkpads that run on Fedora - so much so, that when we were acquired a couple of years ago, my only negotiating condition that caused a stir was the requirement that me and my team get to keep our Linux+ThinkPad stack.
What I just described is the polar opposite to every experience I've ever had with anything to do with Apple, ranging from the genius bar arguments to the six week waits to fix our designer's spacebar that stopped working because someone dropped a a breadcrumb in there. It just doesn't compare.
Side notes relevant to your comment:
- the T420 that you mention is now an 11 year-old piece of hardware, I don't understand why you're referencing it
- even so, plastic gets brittle over time. I don't know anyone with a 10+ year old MacBook that still runs
- iFixit are heavily biased, or at least they were when the T420 came out (it's in the iName)
- with all that said I still can't wait to be able to use a fanless desktop M2 as my daily driver (@LinaAsahi you're awesome)
Nothing's cracked on my W520 yet, and I don't have to worry about plugging in the power adapter damaging the finish like I did with my Space Grey MBP.
And there are a lot of Thinkpad service partners stores, mainly for business customers, I bring around 1-3 Thinkpads a month there for repair (we have ours close by).
But a widespread network of service companies that will happily fix your devices, in most places way denser then the network of apple stores. (Not to mention providing on-site warranty services)
I had a 2012 MacBook and at the time it was the best laptop I'd ever used in terms of screen, keyboard, even performance.
I upgraded last year to an M1 Pro, and once again, it's the best laptop I've used, and I've had a lot of company laptops (Surface, Lenovo, Dell, HP) in that time.
I completely missed the keyboard debacle, the Touch Bar, and all the other drama of the late 10s.
> Thinkpad keyboard and far better aesthetics
Thinkpads are great for other reasons, partially that almost everything was replaceable as you pointed out.
In the case of aesthetics, Apple is the clear winner.
The opposite of "none" is "some" not "thorough".
Yes, my ZX Spectrum and Amiga both came with some very nice documentation to at least the block level on how everything worked - but at the same time, every programming manual for the Amiga was an expensive Addison-Wesley tome. Every programming language beyond BASIC was an expensive proprietary product. It wasn't the paradise people seem to (mis-)remember.
Even if the software were completely open source from day 0, a reverse engineer could still not look at the source and RE the hardware.
Apple is benefitting from the availability of Linux on these devices. That they do nothing to help this effort is disappointing.
Yes, it is a triumph in reverse engineering. I am very impressed. But why reward Apple despite not helping in this effort?
How do we know this? I think there are downsides too.
Conclusion seems: depends on how ready you are to live with the various drawbacks. Personally, I wasn't, but I'm hopeful the day will come soon as I like Apple hardware in general, but can't stand Apple software.
The nano is very, very lightweight, which makes it an amazing portable device for packing up and carrying around. The display is matte, which reduces glare when working outside. The keyboard feels significantly better to type on. This is the biggest pro for me. The camera has a privacy shutter, which gives me a greater peace of mind. And of course, it works well with Fedora Linux. I also optioned mine to have a 5G modem, which is convenient, although I rarely use it due to costly data plans. I have only managed to get the modem to work on the Windows side, but I’m optimistic it will have better Linux support one day.
The MacBook Pro is an impressive piece of hardware. The M1 chip is powerful, the battery life is amazing, and the build quality is high. However, I find it to be a much better experience exclusively using it at home docked in my setup due to its weight and glossy screen. At home, I can use my own mechanical keyboard when it’s docked to get around its mediocre keyboard. At that point, I’d rather just use my desktop. But if you’re only getting one device and are fine with MacOS, it is a good option. I prefer the more flexible desktop + lightweight laptop setup personally.
A minor thing I’ll note in favor of Apple is that the MacBook Pro is capable of driving my nicer Sennheiser headphones with ease. It’s something most people wouldn’t care about, but Apple excels in the audio department and deserves praise.
My normal workflow consists of Firefox playing music on YouTube, VS Code, and the terminal.
As a reminder, especially during this holiday season - to donate to your favorite OSS project.
now I just have one question - when this wonderful work will be merged into the mainline kernel.
(PLEASE - no one cares who is Lina, we've been there many times, let's don't do it again here in this thread. thanks!)
I couldn't care less who she is, but I'm pleased they're giving more status updates in written form.
Last year, they already merged part of their work: https://www.theregister.com/2021/04/09/asahi_linux_merged/
But I haven't seen anything since. It's the stated goal, though.
There's a table here that shows not only what's supported vs. not, but also which minimum kernel version or linux-asahi/asahi-edge release it's in: https://github.com/AsahiLinux/docs/wiki/Feature-Support
Edit: honest question...
What are the odds of two of the brightest kernel developers living in the exact same city? ;)
Merging code from an unverified source that is purportedly submitting a clean room implementation would be quite irresponsible.
Others have discussed in here the speculation around Lina's identity if you care about the specifics for whatever reason. Personally, I don't think it's particularly important.
I’d love to try it for fun on a computer that is not mine…
Apple Silicon machines cannot boot from external storage. While it may look like they do when you choose an external macOS volume, behind the scenes parts of its boot components are being copied to the internal drive to make this work. It’s unclear whether this mechanism will ever be usable by third party OSes, for technical reasons.
Instead, we recommend using the UEFI environment only installer option to install only a UEFI bootstrap to your internal drive. This only requires around 3GB of disk space, and it will then automatically boot from any connected USB drive with a UEFI bootloader. Note: installing the Asahi Linux desktop images to a USB drive automatically isn’t supported right now, though if you’re adventurous enough it’s not terribly hard to do manually :-)
It still requires adding a new partition with bootloader and some other files required by Apple for successfully verifying the signatures on everything, so it's not a "live mode".
I can work many many hours not plugged in. I'd not measured how long.
Also various accelerators: video decoder, video encoder, neural engine.
Unless I'm mistaken all of it is in progress, but not yet ready.
I'm not sure why this rates a separate mention, or even what exactly you're referring to with this one. Did you mean audio over DisplayPort or HDMI? I don't think there's any standard for audio over Thunderbolt like there is for audio over USB, and if there was then it would automatically start working when Thunderbolt itself is supported.
"CPU frequency scaling, device runtime PM (for select devices), hardware auto-PM… even prior to this release, users could already get 10+ hours of idle runtime. With DCP and proper display DPMS, that now goes as high as 30+ hours (powered on, screen off)!"
[...]
"While s2idle does work, it’s in its infancy and we haven’t debugged all driver issues yet. Here’s what works:
NVMe is shutdown
WiFi goes into S3 mode
Display (DCP) goes into DPMS (backlight & screen fully off)
DARTs power gate & restore state on resume
CPUs stay in shallow idle
Some misc devices (i2c/spi/etc) power off
Wakeup via power button or lid open
"So they report 30 hours of battery life with display off (not sure if it was in s2idle or just normal screen off operation). So if you close the lid overnight, it should eat <30% of the battery.
s2idle will be pretty resource-light once all peripherals can be put into sleep. CPU by itself is not consuming that much power when idle.
There's actually a humongous list of peripherals, power states, and the speakers which don't work at all, to support.
> Only the M2 MacBook Pro 13” is tested. We’ve added completely untested M2 MacBook Air support (because we can), but none of us have one yet! If you do, only try it if you’re feeling very adventurous (and don’t blame us if things go wrong).
I think it's time to give it a go on my M2 air :)
Does anyone know if it supports variable refresh rate? Apple's marketing term for it is "ProMotion", which is hard to search for.
On a side note, I wish more DEs and Wayland compositors would move to Vulkan.
Not to dismiss these efforts, incredible engineering. But I won't buy Apple hardware unless Apple officially supports Linux. I honestly don't know why they wouldn't. More developers using their hardware is a good thing imho.
The reality is Apple will probably never release drivers for Linux or Windows (the latter of which ever again).
This work is the premier effort in its space and the reverse engineering skills required to accomplish it are exceptionally uncommon.
I doubt you could hire for this type of position remotely easily if you wanted to find the skillset for a corporate environment.
Plus while they may be able to achieve good results, we'll never know if they took full advantage of the hardware or realized it to the full potential. Because it's proprietary.
That's simply not true.
Source: wrote a couple of drivers for M1 (now upstreamed in mainline Linux) that work without a single change on M1 Pro and M2