News for hackers. Stuff that matters.
Re:Darling – Run Mac apps on Linux by colordrops on Wednesday January 05, 2022 @04:33PM (#29815261)
You missed the point. You typically don't have to compile anything for your sound card, assuming you even have one anyone considering that motherboards have had integrated sound forever now.
[dead]
Re:Darling – Run Mac apps on Linux by saghm on Wednesday January 05, 2022 @04:59PM (#29815629)
I've used Linux for around 8.5 years now, and I've never once had to compile a sound card driver to get my sound working. On the half dozen or so laptops I've installed it on since then, every one of them just had sound working without needing to compile anything.

>Every time Linux on the desktop is discussed, the reaction of the Linux desktop community is predictable: defending Linux and its problems, and downplaying the difficulty that many users have. A ton of people say "it works for me on my hardware" or "I didn't need to compile any drivers" or "the games that I want to play work fine". In fact, this comment thread has good examples of this type of reaction. So what? Until it works for everyone it's just not good enough.

I'm a bit confused; have you actually had this experience when you had to compile your sound card driver in the past ten years? It would be totally reasonable for you to be unhappy if you had, but given how much you're criticizing, I have to assume that if you had this experience you would have mentioned it. Given that, it sounds like the only criticism is that someone could theoretically happen to need to do this, but that's not really any different from any other operating system; the difference is that if your sound card doesn't work on Windows, you don't have the option to compile it at all. I'm not sure how often people have driver issues on Windows these days, having not used it much since before I swapped to Linux, but I'm not going to prematurely get angry about the idea that people _could_ be having driver issues but not have the option to compile their own if I don't actually hear about anyone having these issues.

Re:Darling – Run Mac apps on Linux by danachow on Wednesday January 05, 2022 @04:59PM (#29815633)
>> They are already way outside of rational territory and deep into religious territory

> Until it works for everyone it's just not good enough.

You are pretty well proving the GP point. There is no system that works for everyone. Windows can be very challenging to get up and running on hardware setups that are not the most common.

> Windows and MacOS don't make people do that

False. And it's funny that this is about sound drivers. I have a piece of older but perfectly working Roland audio/MIDI equipment that uses USB drivers that are no longer supported on modern MacOS. How did I get it working? By compiling a fucking driver the other day. (And yes it works perfectly out of the box on any Linux kernel for the past 20 years).

Now go ahead and move the goalposts about older hardware not mattering or some nonsense. This hasn't been the only frustration with MacOS. It took these clowns the better part of a year to fix VLAN configuration in the network setup window. The only way to configure them for a lot of hardware was to drop down to the command line - so much for working for everyone.

Re:Darling – Run Mac apps on Linux by coder543 on Wednesday January 05, 2022 @04:41PM (#29815380)
Windows doesn't work for everybody either, and I do mean actual problems with Windows not working, even pre-installed from the factory.

I don't even have to look outside the circle of people I know in person to have seen this. Googling for Windows not working with $X specific laptop instantly reveals quite a treasure trove beyond the people I know, where $X can be pretty much any Windows laptop. Everything from fingerprint readers no longer working to even simple things like the function key hotkeys no longer working.

Issues with sound drivers not working are far from unheard of on Windows laptops.

You definitely seem to have missed their point, and, in my opinion, you're being unnecessarily antagonistic.

Re:Darling – Run Mac apps on Linux by freedomben on Wednesday January 05, 2022 @04:54PM (#29815557)
Agreed, you definitely missed my point, but in your defense the point was implied rather than explicitly stated so I'll take the fault for not being clear.

I don't mind building my own drivers (in fact I maintain one[1]), but I would never expect the average person to have to do that. It would be entirely unreasonable.

But, the vast majority of linux users don't have to compile any drivers. Unless you have some obscure piece of hardware or one that is so new that the driver isn't mainlined yet, you don't have to worry about it.

You say you've been using linux for 20 years. which driver(s) in the last 5 or so years have you had to compile yourself?

[1]: https://github.com/FreedomBen/rtl8188ce-linux-driver

Re:Darling – Run Mac apps on Linux by kaba0 on Wednesday January 05, 2022 @04:53PM (#29815542)
On most machines I tried, linux had every conceivable driver ready out of the box without any configuration.

This is absolutely not something one can say about windows (though at least nowadays it will try to fetch drivers from God knows where and often succeed). And Mac supports like 2 hardware devices all together, both of them manufactured by them — comparing an OS that exclusively run on specific hardware is just stupid and not made in good faith.

Re:Darling – Run Mac apps on Linux by PascLeRasc on Wednesday January 05, 2022 @06:10PM (#29816527)
I've been slowly going through sound cards (Focusrite, MOTU, Rode) during the pandemic trying to find one that my work Windows laptop will detect. All of them have worked immediately plugged into Linux.
Re:Darling – Run Mac apps on Linux by torstenvl on Wednesday January 05, 2022 @05:50PM (#29816276)
Interesting. I have had to compile drivers for every Linux install I've done in the past three years. Ubuntu, Xubuntu, elementaryOS, Pop!_OS, etc. Maybe we can all accept that people have different experiences?

And of course, you're under no obligation to listen to any of us whine, but if, on the off chance, you happen to want more people to like Linux, it seems like taking people's experiences seriously would be a good starting point.

Re:Darling – Run Mac apps on Linux by kaba0 on Wednesday January 05, 2022 @05:59PM (#29816398)
I didn’t say that the contrary can’t happen - but wildly inaccurate, bad-faith claims that the account made I replied to are not ok either. Linux did come a long long way, and often used hardware will indeed just work out of the box most of the time - I think it is absolutely fair to point that out because it was not this way always — there was a time when the majority of hardware needed some tinkering.

May I ask you what hardware did you install linux on?

Re:Darling – Run Mac apps on Linux by roblabla on Wednesday January 05, 2022 @06:10PM (#29816519)
I'm curious what drivers you've had to compile? The only ones I've ever had to compile were GPU drivers for very very recent cards. On my current laptop, the only thing that doesn't work is the fingerprint reader (which doesn't even have a driver, makes me sad) - everything else is built into all the distros I've tried (Ubuntu, Fedora, NixOS). I am pretty curious in what places is the driver story behind?
Re:Darling – Run Mac apps on Linux by torstenvl on Wednesday January 05, 2022 @06:43PM (#29816924)
Drivers for virtualized hardware is one big one. Parallels tools have to be recompiled for pretty much every new kernel version because Linux refuses to stabilize the kernel API. Often I have to edit the drivers by hand (example: replacing "sem" to "lock" for kernel 5.8 because apparently driver compatibility isn't as important as catering to kernel devs who don't know what a semaphore is?).

In case you don't think virtualization is a valid use case, this should hold true for any drivers distributed outside the kernel. It's also true for newer hardware - WiFi 6 has been a thing lately. And over the past couple years as laptops try to compete with Apple there have in fact been sound issues, though that one hasn't bit me personally.

Again, I want to stress that I'm not imputing some moral obligation for things to be different. But it is definitely a rough edge, it absolutely requires people to futz with compiling drivers, and it's something that makes some number of technical people say "screw it, this is too much of a pain in the neck."

In my opinion, investing in a proper driver architecture with a stable interface would be a massive step toward better Linux hardware support and broader adoption.

Re:Darling – Run Mac apps on Linux by viraptor on Thursday January 06, 2022 @01:24AM (#29820137)
> Parallels tools have to be recompiled for pretty much every new kernel version because Linux refuses to stabilize the kernel API.

I don't think that's a fair comparison. Parallels comes with dkms module and while the process of installing involves compiling under the covers, it's just part of installation. It's not the late 90s "compile that driver yourself completely manually" situation.

If Parallels doesn't work with new kernel, that's their compatibility issue, but being able to fix the driver yourself just gives you more options. Linux -> you can fix the driver. MacOS -> you can on new macos, with annoying extra signing and other steps. (if the source for macos is even published - for parallels that's a no) Windows -> basically wait until the vendor produces an upgrade.

Parallels says for macos 12: "Productivity and integration features are not available to this VM yet." Even if you wanted to fix it manually - you can't. (https://kb.parallels.com/au/125561/)

Basically, you get the extra option to upgrade faster than your vendor is ready on Linux - if you use that path, why show it as "I had to do manual work to make things work", rather than something positive?

Re:Darling – Run Mac apps on Linux by roblabla on Thursday January 06, 2022 @05:44AM (#29821923)
Not OP, but I do want to note, there is a difference compared to windows: Windows has a stable driver interface, which makes it at least possible to have drivers that are basically guaranteed to be future-proof. Linux has no such stable ABI, and frequently does breaking changes.

Both approaches have their upsides, but I've very rarely had drivers stop working between various windows release. Of course, there are exceptions to the rule here - Yes, I also have had some drivers stop working since Windows XP. But those are rare, and getting rarer as time goes on and MS locks the kernel up, preventing drivers from doing stupid things.

On Linux, the problem only exists for out-of-tree drivers, but those will break fairly frequently for all but the simplest drivers.

As I said in my sibling comment, I don't know how I feel about a stable ABI - I do fear it would make the situation worse with more out-of-tree/proprietary drivers. But it is worth keeping in mind that it does have its upsides.

Of course, MacOS being what it is, it chose the "worst of all worlds" scenario: Proprietary drivers with no ABI stability guarantee. It's not really worth discussing as a point of comparison, MacOS has the worst driver story from the lot, only saved by its intended minimal target hw support.

Re:Darling – Run Mac apps on Linux by torstenvl on Thursday January 06, 2022 @09:09AM (#29823687)
> I don't think that's a fair comparison.... the process of installing involves compiling under the covers, it's just part of installation. It's not the late 90s "compile that driver yourself completely manually" situation.

I don't understand. Do you think I'm lying or something? Because I'm not, and neither are these folks:

https://www.google.com/search?q=compile+new+kernel+site%3Afo...

It's a giant pain in the neck and it's caused by pretty deliberate decisions about Linux architecture.

Re:Darling – Run Mac apps on Linux by roblabla on Wednesday January 05, 2022 @07:25PM (#29817364)
Thanks for the answer, that's really informative!

> In my opinion, investing in a proper driver architecture with a stable interface would be a massive step toward better Linux hardware support and broader adoption.

Eh, I have mixed feelings about this. Part of what makes Linux so great is that most of its drivers are open source - which allows the devices it supports to stay supported basically forever (though bitrot certainly is a thing). And they achieved this by making maintaining out-of-tree drivers so damn painful.

A stable interface would sort of undermine this. I honestly don't know if that'd be preferable to the status quo.

Re:Darling – Run Mac apps on Linux by torstenvl on Thursday January 06, 2022 @08:29AM (#29823274)
I think I'd be happy with a stable API, it wouldn't have to be a stable binary interface. Wanna change the internals of a struct? Totally fine. Not make binary shims for 32-bit drivers? Totally fine.

That would encourage open-source or at least source-available drivers (to allow recompiling for ABI changes), but recompilation should be straightforward and possibly automatic if the API doesn't change every couple months.

Re:Darling – Run Mac apps on Linux by wlesieutre on Wednesday January 05, 2022 @04:58PM (#29815622)
If you ever got in a situation where your sound card wasn't supported on macOS, instead of "you can compile a driver" the answer you'll get is "throw away your sound card and buy supported hardware."

You could apply the same fix to a Linux computer and purchase known working hardware, but because you have the option of fixing the software yourself that makes it a worse operating system?

Re:Darling – Run Mac apps on Linux by chipotle_coyote on Wednesday January 05, 2022 @07:37PM (#29817468)
Exactly how does one get into a situation where your sound card isn't supported on macOS, other than by putting together a Hackintosh? :) You're going to have to look for some pretty edgy edge cases where you will be left rending your shirt and wailing "if only I could compile an open source driver for [insert thing] but the cursed closed nature of Apple products prevents me from doing so!" (I mean, I'm pretty sure people can write open source drivers on Macs if they want.)

Granted, as someone who's been using Linux sporadically in various ways for the same two decades I've been a Mac-on-the-desktop user, I can't remember the last time I was left rending my shirt and wailing "if only I didn't have to compile an open source driver for [insert thing] to get basic functionality working." (Although I can remember more than one time I ran desktop Linux in a VM on a Mac, and spent several hours doing web searches for how to get [insert thing] working to find little more than other posts saying "I'm running desktop linux on a VM on a Mac and I can't get [thing] working".)

Re:Darling – Run Mac apps on Linux by LeFantome on Thursday January 06, 2022 @01:05AM (#29820040)
Apple stops supporting their own hardware all the time. They dropped a bunch of video cards especially in recent releases of the OS.

How this translates is by Apple officially dropping support for your whole computer. I guess you consider getting trapped on an old OS that stops getting security updates and becomes incompatibility with the latest applications to be superior to the situation on Linux. I do not.

Or, as others have pointed out, having to upgrade perfectly good hardware because the OS no longer supports it. That has happened to me on both Mac and Windows.

Honestly, better hardware support is one of the reasons that I have started using Linux more and more than proprietary options.

I actually really like Windows 10 but I have had way more hardware issues with it on my primary laptop. I had odd performance problems with it sometimes and the mouse pointer would lock up frequently ( Windows factory installed ). I put Windows 11 on this computer ( new enough hardware to meet all the Windows 11 asks ) hoping it would improve things. It was a disaster. My Bluetooth headphones rarely worked. Plugging wired headphones into the port would not silence the speakers. Blue screen of death ( have not see that in years - looks much friendlier now ) all the time which you know is a driver problem. Anyway, I have since out Linux on it and all my hardware woes are in the past. As I said, I actually really like Windows but it is a relief to get it off this machine.

Re:Darling – Run Mac apps on Linux by wlesieutre on Wednesday January 05, 2022 @08:56PM (#29818138)
I've got an old Macbook Air that has to be used with a USB sound device because the internal hardware died at about 4 years but wasn't worth replacing the motherboard. In other cases, I'm sure professional (or even hobbyist) audio people use hardware other than the computer's built-in sound devices. How long do the makers of those keep updating the drivers when it's a 5 generation old product and their developers have moved on to newer projects? A driver they gave you for OS X 10.5 isn't going to do you any good today.
Re:Darling – Run Mac apps on Linux by squarefoot on Wednesday January 05, 2022 @05:32PM (#29816054)
> Windows and MacOS don't make people do that

They don't make people compile their own drivers because their respective corporations spend some good money to pay their developers to work on company provided hardware, or harware manufacturers to make their drivers first, and sometimes only their drivers. Linux developers otoh are often forced to reverse engineer closed source drivers on hardware they purchased themselves, so Linux support usually comes later.

The upside is that nearly all Linux drivers are FOSS, which makes a huge difference as there's no such thing as planned obsolescence among FOSS. Never seen a perfectly good peripheral being supported by Windows until version x, so that you install Windows 10 and that card that worked fantastic under Windows 7 or 8 isn't supported anymore? No drivers, no party. Sometimes the price to pay for running an OS that doesn't allow you compile your drivers is the purchase of new hardware along with system upgrades; that represents one of the hidden costs of closed source software that should be stressed more often.

Edit: ...and btw, it's like 15 years I don't have to compile my kernels anymore. A couple things or so have changed since 1997.

Re:Darling – Run Mac apps on Linux by littlestymaar on Wednesday January 05, 2022 @05:55PM (#29816336)
This comment is really fascinating: not only the author completely missed the point of the original comment they are responding to (which is: ”having to compile your drivers was the state of Linux in 99, but it' hasn't been anymore for at least 15 years, so complain that Linux doesn't work using this argument just shows you're out of date by two decades at this point”) but the author just refused to even attempt to understand when other people tried to warn them and instead went completely mad.
Re:Darling – Run Mac apps on Linux by lrvick on Wednesday January 05, 2022 @07:01PM (#29817095)
If you just want to be a consumer that does no tinkering then buy a computer that ships with a consumer focused Linux distro. Dell, Purism, System76, or even a Chromebook are more fair comparisons.

Stop claiming Linux is hard to use because it takes effort to run it on unsupported hardware... like any other OS.

Re:Darling – Run Mac apps on Linux by viraptor on Thursday January 06, 2022 @01:35AM (#29820179)
> Until it works for everyone it's just not good enough.

No system is good enough by that definition. I've got a set of devices which either require lots of extra work or just don't work on all of Linux (parts of Lenovo dock), Windows (phone over bluetooth, also can't do clean install), MacOS (usb-c audio interface). We got to the level of "most things just work" on all of them.

Re:Darling – Run Mac apps on Linux by KronisLV on Wednesday January 05, 2022 @06:39PM (#29816885)
Vouching for this, because while the topic is controversial and we could have done without the tone of the edit (true or not, it derails the discussion further), there is definitely some truth to what's said!

> "Typically" is not good enough. Windows and MacOS don't make people do that, and neither should Linux distros.

> A ton of people say "it works for me on my hardware" or "I didn't need to compile any drivers" or "the games that I want to play work fine". In fact, this comment thread has good examples of this type of reaction. So what? Until it works for everyone it's just not good enough.

I'm also someone who has run into problems with Linux, albeit with some slightly obscure hardware, as described in my comment here: https://news.ycombinator.com/item?id=29816615

The difference is probably that on Windows installing drivers is as easy as running an .exe or an .msi file, whereas on Linux the process can be more involved due to how different distros can be from one another, how the kernel versions might require different headers and how compilation of drivers might involve dropping down to the terminal which people sometimes forget isn't comfortable for people who don't necessarily use Linux in that capacity.

Wouldn't it be incredibly nice to have something like AppImage or Flatpak, but for drivers? Not the controversial distribution/update practices (though those criticisms are more about snap), but something that's as conceptually simple as clicking on an icon in a GUI somewhere to launch the installation and handle everything behind the scenes?

As for games, look at a recent video by Linus Tech Tips, "Gaming on Linux is NOT Ready... - Daily Driver Challenge Finale ": https://youtu.be/Rlg4K16ujFw

(Linus also demonstrated accidentally bricking his distro by not reading a terminal warning about problems with installing certain packages in the 1st video of the series, which is a really good example of some of the other problems in regards to usability)

There is a lot of progress, but also a lot of problems to solve.

Re:Darling – Run Mac apps on Linux by dkonofalski on Wednesday January 05, 2022 @06:26PM (#29816725)
So the benefit of Linux is that motherboards have changed? That seems...antithetical.
Re:Darling – Run Mac apps on Linux by Macha on Wednesday January 05, 2022 @06:34PM (#29816815)
GPU and wifi drivers were problematic in the same era as the sound card drivers were, and really aren't anymore unless you have a nvidia card and refuse to use closed source for drivers moral reasons. Were seperate sound cards to have remained a big thing, it's likely they would have been resolved too.