423 points · by davidbarker · 4y ago · 164 comments
When I upgraded to Monterey (well, a beta, actually), I was met with a horrible bug that made me want to trash my laptop: my AirPods would randomly "cut out" for a couple of seconds for seemingly no reason. Sometimes it would take 5 minutes, sometimes 2 h. It was infuriating.
I spent dozens of hours trying to figure it out. Disabling apps, enabling other apps, tracing logs, killing random applications, seeing if it was load-related, trying reboots. At one point I was half-convinced it only happened after coming back from hibernating (not suspending). I tried desperately to "fix" the bluetooth module, disable and re-enable handoff, delete internal settings, copy old bluetooth modules from older versions, working mostly tethered... Nothing seemed to fix it, until I found a message deep in the logs that led me to try to disable "AirPlay Receiver".
Voilá! It was instantly fixed. I documented my workaround here: https://www.reddit.com/r/MacOSBeta/comments/qjgqjx/i_think_i... and it seems it's spread a bit like wildfire through the internet. I should have put up a donation link :D
What that journey taught me was that AirPlay, Wifi, Bluetooth and the like are serious messy beasts on macOS. I work with BLE sometimes while developing and I'm aware of how messy it is, but it seems that macOS has so many features that it makes it far worse.
In any case, my workaround is still working and I occasionally still get people thanking me for finding it. I doubt they really know how much time I spent, and how insane I nearly went, just to find that (un)ticking a little box would solve all of my problems.
It is for this sort of reason that I prefer dumb analog devices such as headphones to "smart" devices with as lot of complexity built in. Also, they're cheaper.
Ain't that the way.
https://www.reddit.com/r/technology/comments/136g7y/usb_30_h...
The cause in this case was AWDL (Apple Wireless Direct Link.) Holding the Option key while clicking the Wi-Fi icon and clicking "Enable Wi-Fi Logging" and then checking /var/log/wifi.log will show AWDL scans starting and ending randomly, and when the scan is active it causes latency spikes every 1s like clockwork. Unrelated to AWDL, but if a process is requesting a Wi-Fi network scan (different from an AWDL scan), /var/log/wifi.log will also tell you the name of the process, such as "locationd" when the Location Service needs your location. (Tangential, but the locationd process rarely causes these latency spikes for me - on a default macOS install it very rarely requests scans in my experience, backed by my analysis of the log.)
AWDL has to be used for things like AirDrop, so it's expected to have this latency increase while you have the AirDrop window open scanning for nearby devices / sending files to other devices. There are other uses of AWDL (AirPlay, Auto Unlock, Universal Clipboard at the very least)[0], but I don't know what was triggering it so actively in my case... and why it wasn't happening on my M1 Air. It also wasn't always happening in the background like this, it just started that day.
The "fix" was to disable the awdl0 interface, but that may also cause AirDrop/AirPlay and related services to not function (I did not test.) It's easy to re-enable it though.
To disable: ifconfig awdl0 down
To enable: ifconfig awdl0 up
Upon disabling, the latency spikes go away permanently.
Which unfortunately will get moved to NMOS/Future with a P6 priority and ignored forever. At best it'll get sent back to you "for more details". If you play the game an attach logs and investigation it'll get filed make into a black hole milestone or closed as a duplicate. There's a cabal that seems to only want new features and never tackle existing bugs in the OS.
Huh. That sounds strikingly similar to the culture breakdowns I've observed be associated with Google - the whole focus on newness and landing features in the name of solving hard problems, as opposed to maintaining stuff. Apparently the feedback/peer review/bonus system is completely broken.
...Maybe this sort of scaling problem is a "$T+ market cap" thing that we've just never had to figure out before?
I've not had too much issue with wifi performance with several Apple devices on the network, but my wireless router is also a fairly high end consumer model and probably not at all representative of the average.
I do still intend to figure out some sort of hardwiring solution (maybe MoCA, but man those boxes are expensive) but the performance of wifi in the interim has been good enough for it to not be pressing.
Transmit power doesn't matter in that more isn't necessarily better. Same for antenna gain. They are variables you can change if you know you have a specific problem that would be solved by it. That's hardly ever the case, though.
Why not just hardwire CAT6? MoCA is nice if you already have the coax, but otherwise it seems silly to put in.
The thread that sparked this rabbit hole:
https://discussions.apple.com/thread/252387604
TLDR: 2022 and we are still stuck with 100Mbit adapters on macOS
I was elated to hear that Apple is being forced to abandon Lightning on iPhones, and I'm normally not much for government meddling.
In both cases it simply stopped appearing on the bus, but was clearly "running" to some degree - it would get warm to the touch, just as they normally do.
I've also found that the Thunderbolt connector's lack of a "click" engagement to be a serious issue for storage, network, and even display - every Mac I've seen it in use, the connection has been flaky. It really fucking sucks to whip out the thunderbolt adapter and plug into ethernet for "reliability", set up a transfer of a ton of data, and half-way though shift the machine slightly aaaaaaaaand then the ethernet adapter disappears and your transfer is fucked.
Happy to see them drop that idiotic connector for USB-C, as at least that has some sort of physical retention mechanism other than "hopes and dreams" (ie: rely on proper clearance tolerances between different vendors, on surfaces that will wear with use.)
I've also had good luck with whatever Caldigit uses in their Thunderbolt Mini Docks (not at my desk to check and see what chipset's in mine).
I’ve had MUCH better results with the Belkin Thunderbolt 3 Express Dock HD (INtel i210) than my OWC Thunderbolt 4 Dock (Realtek RTL8153).
I don't have 2.5Gb network equipment but have tested with iperf between and get around like 900 Mbps and no high CPU, unlike noticeable CPU usage with the cheap 1Gbps USB adapters that use ECM drivers
See also https://gist.github.com/MadLittleMods/3005bb13f7e7178e1eaa9f...
A pertinent question, however, is: how do you know what chips an adapter uses, before buying? I'm in utter dread regarding the prospect of buying a usb hub, since just like in the above post, they're black boxes to me which of course turn out to repackage the same Alibaba junk with 10x markup.
The fanboyism and reality distortion field is very strong. I remember when they came out with timer coalescing and were hyping it as a major accomplishment and selling point. Of course, Windows supported timer coalescing for years before MacOS, but that didn’t stop Jobs from convincing a bunch of developers that this was a novel breakthrough.
I can understand that appeal.
In the last 5 years I don’t think I’ve had a windows laptop sleep or hibernate as I would expect, not randomly wake up in the middle of the night, in my bag, and just sit there fans at full speed…
I’m tired enough of it to try a Mac…
But it's not Microsoft's fault. The Surface Book I replaced it with works perfectly.
You know what Windows and Linux offer that Mac doesn't? A friggin' Hibernate option. Please, just let me have a button to power off my computer while persisting its state to disk. No, I don't want to have to shut down my computer every time I put it in a bag, that's completely ridiculous and an utter waste of my time having to reset all my tmux panes, vim windows, shell histories... what a UX nightmare. They've made a laptop that's a terror to actually take anywhere with you. Even when the "smart" sleep does (sometimes) finally decide to kick in, it invariably costs 20% of the battery.
When people say that Macs have good power management, what they mean is that Safari is optimized for power consumption relative to Chrome and Firefox.
At this point I always globally disable wake timers in Windows. They're mostly used for automatic updates. (For more fine-grained control, look at the various wake timers in Task Scheduler.)
is that some of us just really don’t like Windows and really like our Macs.
We’re not fanboys. It’s just a preference. Chocolate vs. vanilla, football vs. cricket, boys vs. girls.
For example something as simple as copy and paste is command-c, everywhere.
In Ubuntu? control-c or control-shift-c. It is pretty annoying being in autopilot and killing the command line program you are in because you reflexively hit control-c.
Also, readline shortcuts work through out, so control-a will send you to the start of a line. Not with Ubuntu.
If you're going to use Ctrl for shortcuts, you necessarily run into the issue needing a separate shortcut for copy in the terminal, because Ctrl-C has meant "send an interrupt signal to the process" since at least the 60s.
Fortunately, for people sufficiently annoyed by this, most Linux terminals do allow you to change keyboard shortcuts arbitrarily, so you can have unified copy shortcuts if you want. For a variety of reasons, I find this more trouble than it is worth and prefer sticking with the default.
Having a driver for a given Ethernet controller is hardly a good proxy for sophistication…
Or moving/changing the name of a file while it's open.
Or having a slash in a file name.
However, MacOS as an operating system really is a mess. Especially the XNU kernel, which is still an unbelievable amalgamation of disagreeing technology. Remember, MacOS is not natively a UNIX-certified machine: all of it's UNIX compatibility comes from a BSD-based compatibility layer that hasn't really been changed since the late-90s. Oh, and the coreutils? Notoriously garbage. MacOS ships with all sorts of outdated, downgraded, vulnerable and otherwise broken shell utilities. pico instead of nano, zsh instead of modern bash... hell, even something as simple as installing git is a 700mb installation with a mandatory reboot.
I'll give MacOS credit where credit is due (Apple had good design philosophies in the 2010s), but the actual operating system (see: functional network of software components) is truly awful, arguably just as bad as Windows if not worse. Just about it's only redeeming qualities are the things that Apple didn't make (like pf and process management. If you forced me to pick something that I found impressive, I'd have to choose Grand Central Dispatch, but even that isn't terribly impressive. It's mostly as if some Apple engineers decided to iterate on the fairly lackluster Linux process management. It would have been a miracle if they managed to make something worse.
I transfer tons of large videos and RAW photos imported from my mirrorless camera over these network adapters to a NAS.
I've been using these for quite a few months.
I'm not stuck on 100Mbps adapters, but maybe you are.
Usermode vs kernelmode seems irrelevant... if anything, I want the benefits of usermode isolation for more things. Monolithic kernels aren't great for security.
https://gist.github.com/MadLittleMods/3005bb13f7e7178e1eaa9f...
You also seem to be digging pretty hard to try and justify your original position, which was very extreme. No, Apple computers are not stuck at 100Mbps. This would be a very big deal, as tons of creative workflows rely on having multi-gigabit network connections. The outcry would be enormous.
I had never tried to use AirPlay 2 from my laptop over ethernet (I can probably count on one hand the number of times that I've used AirPlay from my laptop at all), but I tested, and it is true that the Music app won't connect to AirPlay devices over this Ethernet adapter (but it will over the 8153). I also have no problem redirecting the system sound to an AirPlay device, even over this Ethernet adapter, as that comment says.
It's a completely positive outcome for end users, since they now have more options, and pretty much all 10Gbps ethernet ports are compatible with "multi-gig" 2.5Gbps and 5Gbps connections as well.
10Gbps is effectively the end of the line for copper anyways... 10Gbps is already really hot and power hungry, and AFAIK, datacenters never really bothered to deploy any copper faster than that. Fiber is the present reality in datacenters. What I really want is for SFP+/QSFP+/QSFP28 to make their way into home networks and consumer devices.
2.5GBASE-T and 5GBASE-T do run over existing Cat5e cabling reliably.
At any rate, a big issue is that for USB, macOS only has generic ECM and NCM drivers. ECM as a protocol sucks and was barely suitable for 100Mbit, let alone gigabit, plus Realtek's implementation of ECM is quirky to say the least.
RTL8156 implements an NCM endpoint, so that's probably the best USB option these days.
That’s something of an exaggeration. There are a bunch of macs that ship with perfectly good 10GigE ethernet adapters - my Mac Pro's ethernet has been rock solid since the day I bought it.
It seems like you’re more specifically concerned with the quality of support for USB<->ethernet adapters, which is always going to be kind of a crapshoot if you’re looking for 24/7/365 connection stability (on a laptop?)
Apple also has introduced a beta feature called "Universal control" which allows you to use your keyboard and other peripherals across all devices nearby (ipads, other macs etc) I wonder how much of a performance tax these other features levy and if Apple tests the regression explicitly.
Generally their network stack is a mess. Trying to bridge ethernet to wifi just fundamentally doesn't work. The forwarding is randomly reconfigured every time the machine wakes up. I think they aren't paying attention to system level functionality.
I'm sure nobody at Apple thinks it's an OK experience but obscure bugs that happen to a small fraction of users are hard to debug, especially when it comes to radio
Just ran into it using a fresh Debian install on a Lenovo T14. My old laptop used an intel wifi card. Normally that is all I ever use, but figured I'd leave the stock one (Qualcomm 6855 (NFA765)) in and try it out. Worked fine except random lags every minute with a correlated increase in pings times. Fix was to lock Network Manager to a single AP so it won't background scan (something that apparently intel cards are better at doing).
Googling shows this to be an issue going back 15+ years.
No matter the drivers (though for me the stock Windows ones worked best), AP, whatever.
It just drops the connection once in a while.
- Marvin Heemeyer, shortly before making an armor plated bulldozer and going on a rampage
Apple's only real mistake was not keeping ESC a fixed hard key.
They’ve added that back for a few years now, but I agree. I used to own one of the 2016 MBPs with a Touch Bar and the lack of a physical escape key drove me insane. Even though I sold that laptop, I had actual while-asleep nightmares about the horrifically bad keyboard for a while too.
I’d be stunned if any new Touch Bars had been manufactured in the last 18 months.
What others are claiming effectively amounts to saying that the Macbook needs to disconnect from your network, scan for access points, and then reconnect to the network. Which would certainly cause latency issues, that much is true, but that's surely not the kind of scanning that is actually being done here? Why would a scan for access points be necessary?
It puts the radio into a different mode to listen for nearby devices, whether to talk to them or to use them as landmarks for location sensing. This requires scanning radio channels, not just continuing to listen to the channel where you expect to receive further packets from an associated access point.
There might very well be latency issues involved with the WiFi radio scan modes on Macs, for all I know, but I don't think they could be related to this specific issue with AirPlay?
given those rules and wifi 2.4 band having 14, 5GHz band having 190 or more channels. I would say having been able to send things back and fort is still pretty damn good :)
frames may have other phsical properties that need to match. so, too many options and just a physical limitation...
I have a feeling that the iPhone keeps searching the network and my router cannot keep up with the requests or something? Not sure but that's a theory I didn't get a chance to investigate
It’s not just the WiFi scanning or Airplay / Touchbar. I noticed this delayed ping pattern as far back as 2016. I spent some troubleshooting time and suspected it was something in MacOS but gave up.
In related news, behavior of bluetooth headphones likewise seems mysterious and impenetrable, especially with Android.
So in this case, all they had to do was make it key-like and it wouldn’t have had any of the features that could trigger this problem.
HN: "Apple no longer has the hunger to get things right."
I don’t know if this will be consistent, but I was also able to do this with iOS, staying on iOS 14 for a long time while receiving security updates. Hadn’t noticed that ability in previous major versions of iOS and I’m not sure if it was due to device support of iOS 15. I hope that continues.
Their what? They have no support cycle. Their cycle is "we support it until we don't". It's 2022 and it's an absolute joke. Windows, Linux, BSD -- basically everyone -- has published support dates aligned with all OS releases. For example from official documentation you would know that Windows 10 LTSC 2021 is supported until 1/12/2027[1] and FreeBSD 13 is supported until 1/31/2026. Apple is the only one that refuses to publish any dates. The mystique bit is getting old. The Jobs-era magic is gone. macOS will continue to be a toy until they take support seriously and that includes not breaking anything and everything with reckless abandon in every new OS release. No one who does IT with even a modicum of professionalism is okay with looking at Apple's latest critical security updates and suddenly finding out that N OS version was no longer included in the patch set. But that would take the mystery aspect out of it!
[1] https://docs.microsoft.com/en-us/lifecycle/products/windows-...
I don’t mean to defend Apple here, but one reason Apple may do that is because they essentially consider themselves a hardware company, and so the things they support are device models, not software versions.
For me, a good-enough approximation has been that you can consider a macOS version [major dot minor] to be supported until the day [major dot (minor+1)] comes out, or the day [(major+3) dot 1] comes out, whichever happens earlier [1].
(Full disclosure: I’m the author of that merge request.)
Except they don't publish any support dates with hardware either. Devices support the latest macOS/iOS/etc until they don't. At which point devices become not only obsolete overnight, but are vulnerable as well because the OS suddenly becomes unsupported due to Apple's insistence of bundling feature updates with security updates. Remember, this caused a lot of controversy when Windows 10 moved to this model, but Microsoft had the foresight to publish support dates for when they would stop releasing security patches for the previous release. Unfortunately, Apple's cult-like fan base frequently treats them with kid gloves in this regard, and insists we should just be happy we got free updates until now and we're not running abandoned-support-by-design Android.
I don't expect a device to be supported forever nor do I expect free feature upgrades. All I'm asking for is a published date that "X device or OS will receive security patches until Y date". That's it. It's a relatively simple request that is pretty much standard in the rest of the IT world so you can plan adequately.
Apple releases security updates properly for the current (latest) version only. Older releases get security updates that sometimes don't fix all of the known vulnerabilities.
https://www.youtube.com/watch?v=o5KUvgXHOFU
https://www.intego.com/mac-security-blog/apple-neglects-to-p...
You need to either remember to upgrade before the next major release comes out, or stockpile the installation image before it’s gone from System Preferences.
Fail to do either, and you’re effectively forced to upgrade to the just-released version against your will.
https://support.apple.com/en-us/HT211683
For latest 4 versions, you need to use appstore. Before those 4, you can directly download ISO/DMG from a "S3" bucket...