News for hackers. Stuff that matters.
Re:ARM64 Linux Workstation by leidenfrost on Friday March 03, 2023 @04:00PM (#35014923)
Imho the only relevant parts left are: Sleep (which is being tackled right now), USB-C Extra displays (Also WIP) and Hardware Decode for video.
Re:ARM64 Linux Workstation by jjtheblunt on Friday March 03, 2023 @04:17PM (#35015127)
and audio and screen brightness at least...those don't work on my M2 setup.
Re:ARM64 Linux Workstation by Gigachad on Friday March 03, 2023 @04:19PM (#35015159)
Screen brightness works on the beta kernel. Speakers work but are disabled by default because there is a risk it could blow up the hardware
Re:ARM64 Linux Workstation by josephcsible on Friday March 03, 2023 @05:16PM (#35015793)
> Speakers work but are disabled by default because there is a risk it could blow up the hardware

Wait, what? This sounds like a pretty egregious design flaw on Apple's part.

Re:ARM64 Linux Workstation by Teongot on Friday March 03, 2023 @05:56PM (#35016160)
Re:ARM64 Linux Workstation by eyelidlessness on Friday March 03, 2023 @06:51PM (#35016573)
The (very good) writeup conveys this much better than I could, but briefly for folks not inclined to click/read through: it’s a design trade off. Apple’s solution conditionally sends excess power to the speakers—higher power to achieve better sound under safe conditions, lower power to protect the speakers from damage. It’s quite clever (and quite effective, although I’m sure some audiophiles would disagree), but it’s not the kind of design you’d want to use without an equivalent solution. It’s also an unintuitive benefit of having a whole lot of compute headroom to play with, where you can create an intentional footgun that has meaningful benefits but risks physical consequences, and then spend some of that headroom to disarm the gun.

A pure software analogy (because that’s what I know better) would be something like: race a bunch of speculative variant algorithms in parallel, knowing that you’re “wasting” compute time, where the probability of speculation being more optimal than hand tuning is high and pathological cases have a “safe” straightforward deoptimization.

Re:ARM64 Linux Workstation by Gigachad on Friday March 03, 2023 @07:57PM (#35017033)
The tldr is that Apple drives the speakers way past their “always safe” level and then uses software in the OS to detect and dampen the uncommon sounds which could damage the speakers.

Resulting in exceptional audio performance. The Asahi Linux devs have already reverse engineered and implemented this safety system but there is a risk they have made a mistake or it doesn’t get enabled due to a bug.

Re:ARM64 Linux Workstation by astrange on Saturday March 04, 2023 @01:43AM (#35018778)
Speakers are just things that move when you send electricity to them. It's not hard to blow up something like that if you try, especially if they heat up over time.
Re:ARM64 Linux Workstation by josephcsible on Saturday March 04, 2023 @01:14PM (#35023014)
Then why isn't this a problem with the built-in speakers of any non-Apple device?
Re:ARM64 Linux Workstation by astrange on Saturday March 04, 2023 @05:10PM (#35024960)
It is, you're just not trying hard enough or you're using the official drivers that are software limiting it.
Re:ARM64 Linux Workstation by Gigachad on Saturday March 04, 2023 @06:01PM (#35025381)
They either cap them at the “always safe” level which results in much less volume, or you actually can blow them up but you just haven’t played the right sound to trigger it.
Re:ARM64 Linux Workstation by TacticalCoder on Friday March 03, 2023 @04:53PM (#35015565)
> and audio...

Overall tip for anyone using Linux and having issues with audio... USB Audio is magical and works wonder. I never bother with the computer's in-board sound: it's USB Audio immediately through a DAC. Works fine. Apple sells $10 USB-C-to-3.5mmjack DAC which are basically a tiny cable (for anyone lamenting it's "too bulky" to have a full-on DAC next to their laptop).

For desktops: problem doesn't even register. Just bypass the audio components on your motherboard and use a proper DAC.

As an added bonus computers are particularly electrically noisy and a DAC is a great way to do away with all that the noise.

So my advice: just use a DAC with Linux. Plug it in. Marvel at "dmesg" showing "USB Audio" and enjoy quality sound.

Re:ARM64 Linux Workstation by goosedragons on Friday March 03, 2023 @05:36PM (#35015981)
I've been doing this to get my computers connected to a KVM to share speakers. Works pretty well, bought a Soundblaster for nostalgia sake.
Re:ARM64 Linux Workstation by loeg on Friday March 03, 2023 @05:01PM (#35015641)
Be somewhat careful what USB audio device you buy. I've had multiple of these and some of them have tons of EM noise, which is very obnoxious.
Re:ARM64 Linux Workstation by TacticalCoder on Friday March 03, 2023 @05:13PM (#35015766)
> I've had multiple of these and some of them have tons of EM noise, which is very obnoxious.

Ah darn yup! If there's one thing I'd expect from these is to not be noisy! FWIW I'm using a CambridgeAudio DAC and, well, CambridgeAudio is supposed to be a good brand when it comes to audio stuff (amp is CambridgeAudio too).

Re:ARM64 Linux Workstation by jnsaff2 on Friday March 03, 2023 @05:57PM (#35016172)
I've been pretty happy with Dragonfly[0]. Tho they don't come cheap.

I have had the black and am currently on the Red, I noticed the difference so I think it's worth it. Have not tried the cobalt.

[0] - https://www.audioquest.com/dacs/dragonfly/dragonfly-cobalt

Re:ARM64 Linux Workstation by loeg on Friday March 03, 2023 @06:38PM (#35016482)
> CambridgeAudio DAC

It looks like these start at $250? I'd expect them to work well. I'm more wary of this pricepoint:

> Apple sells $10 USB-C-to-3.5mmjack DAC

I've gotten a lot less EM noise with builtin soundcards than cheap USB DACs, but YMMV.

Re:ARM64 Linux Workstation by MrDOS on Friday March 03, 2023 @08:01PM (#35017054)
> cheap USB DACs

These numbers are several years old now, but Apple USB-C DACs do perform very well overall regardless of price point: https://www.audiosciencereview.com/forum/index.php?threads/r....

Re:ARM64 Linux Workstation by LoganDark on Friday March 03, 2023 @08:24PM (#35017193)
EM noise is something that someone would notice, so I'm sure Apple would have nuked it from orbit until it's completely imperceptible.
Re:ARM64 Linux Workstation by loeg on Friday March 03, 2023 @08:54PM (#35017347)
Yeah, to be clear I expect the Apple ones do fine. The ones I had issue with were not Apple.
Re:ARM64 Linux Workstation by TacticalCoder on Friday March 03, 2023 @08:39PM (#35017264)
> It looks like these start at $250? I'd expect them to work well.

Price inflated, like the price of nearly everything. I paid mine 150 EUR back in the days (still not cheap but not either the 4 digits high-end audiophile stuff).

The thing is: you want thing to work fine from Linux's side and in my experience USB Audio on Linux just works.

I'm sure there are other brands/models at reasonable price points.

Re:ARM64 Linux Workstation by dbielen on Saturday March 04, 2023 @03:22AM (#35019223)
This will use 10-15% CPU (intel and M1 Pro).
Re:ARM64 Linux Workstation by ip26 on Friday March 03, 2023 @08:04PM (#35017076)
Linux 2013: Sleep support doesn’t work quite yet, but it’s being worked on right now

Linux 2023: Sleep support doesn’t work quite yet, but it’s being worked on right now

Re:ARM64 Linux Workstation by tadfisher on Friday March 03, 2023 @09:55PM (#35017691)
You can thank Microsoft for the current mess. S0ix (aka "Modern Standby") doesn't even work right on Windows.
Re:ARM64 Linux Workstation by bionade24 on Saturday March 04, 2023 @07:34AM (#35020358)
Linux Laptops with no S3 support use S2, not S0 as on Windows. Still buggy as hell. My XPS sometimes loses 70% in 4 hours standby and then just ~5% in 2 days of standby. Most of the time the battery drain is insane. At least the overheating in bag issue never occured to me.
Re:ARM64 Linux Workstation by antifa on Saturday March 04, 2023 @12:27PM (#35022590)
I've still had better experiences with closed laptop lids when using Linux in comparison to windows in the last decade.