News for hackers. Stuff that matters.
Re:Systemd, 10 years later: a historical and technical retro... by renewiltord on Tuesday August 06, 2024 @05:44PM (#41175713)
Unlucky. Posted to HN the day after SSL expired. You need to turn on certbot-auto to renew your LE cert.

I recall the initial systemd stuff that was constantly posted etc. but now I routinely write unit files and it's really nice. I'm sure the constraints that systemd introduced were a pain in the ass for maintainers but for a user it's been tremendous. Admittedly, some times I just a service unit instead of a mount unit for FUSE and so on, and I still have trouble with `After` and `Before` and `Wants` but overall I rather like it.

Now I have to go check what happened about PulseAudio which is the other Poettering work that everyone and their uncle hated (or maybe it was just Ulrich Drepper who hated systemd). It's funny to me that in the end, my teenage self was some sort of equivalent of a k-pop stan: applying Con Kolivas's scheduler patches, and choosing Poettering over Drepper or whatever. And now all that memory has faded but the names.

Re:Systemd, 10 years later: a historical and technical retro... by thequux on Tuesday August 06, 2024 @06:21PM (#41176042)
Pulse was only really janky in the early years; by 2010 it was as solid as anything else in tech. Even then, it was absolutely an improvement over the previous system which either needed manual configuration per program to choose whether to use ALSA, OSS, EsoundD, or Arts with success of portaudio and other sound systems too keep things interesting. Even if you did get things working, I distinctly recall having to restart Firefox in order to play music because Firefox had the only available connection to the sound device.
Re:Systemd, 10 years later: a historical and technical retro... by DaSHacka on Tuesday August 06, 2024 @06:57PM (#41176361)
> Pulse was only really janky in the early years; by 2010 it was as solid as anything else in tech.

Then why was PipeWire introduced as a PulseAudio replacement, and why have so many people sung its praises?

I think more people continued to have issues with Pulse for far longer than you realize.

Re:Systemd, 10 years later: a historical and technical retro... by NekkoDroid on Tuesday August 06, 2024 @08:13PM (#41176933)
Pipewire is a weird case. It was made as a general multi media orchistrator, that includes video and audio. It takes a lot of stuff from different sources.

> Then why was PipeWire introduced as a PulseAudio replacement

One of them is putting more focus on permission management with support for sandboxed containers, which is kinda necessary with the direction the Linux desktop is going. But it also is just a backend, that supports jack, alsa and pulse interfaces, so it was mostly a drop in replacement for the applications.

Talk with the guy behind pipewire https://www.youtube.com/watch?v=_buKw1la_tg (4:34 for the motivation behind pipewire)

Re:Systemd, 10 years later: a historical and technical retro... by jononor on Tuesday August 06, 2024 @08:23PM (#41176977)
Pipewire was created to support containerized applications (with limited system access), to also support video, and to unify both pro low-latency audio (JACK) and regular low-power audio (PulseAudio). It might have been possible to retrofit this all into the PulseAudio project - but the authors decided to start from scratch. There are some interviews and talks on YouTube, they might have insights into why exactly that was the case. But I have not seen any indications that it was because PulseAudio did not work for what it was designed for.
Re:Systemd, 10 years later: a historical and technical retro... by kovac on Tuesday August 06, 2024 @08:54PM (#41177160)
Actually, I used ALSA without anything else for a long time until recently. I only needed to install pulseaudio because Microsoft Teams didn't work without it and I needed it for work.

I guess modern apps were developed against those APIs that they've become a necessity now?

Re:Systemd, 10 years later: a historical and technical retro... by mid-kid on Wednesday August 07, 2024 @02:45AM (#41178827)
If you want to keep using alsa with applications that otherwise only work with pulseaudio, you can try apulse[1].

When I used to use it, it worked nicely, but I started using pulseaudio around the time of its most recent release, when I got frustrated by having to tweak asoundrc to use a USB microphone, and being unable to figure out how to bump up its sample rate.

[1]: https://github.com/i-rinat/apulse

Re:Systemd, 10 years later: a historical and technical retro... by lmm on Tuesday August 06, 2024 @10:51PM (#41177795)
> by 2010 it was as solid as anything else in tech.

Nah, it stayed flaky well past then.

> it was absolutely an improvement over the previous system which either needed manual configuration per program to choose whether to use ALSA, OSS, EsoundD, or Arts with success of portaudio and other sound systems too keep things interesting.

No it wasn't. It was just one more annoying option in the list.

> Even if you did get things working, I distinctly recall having to restart Firefox in order to play music because Firefox had the only available connection to the sound device.

That was a misconfiguration that was possible to do in some systems, sure. There were plenty that avoided it.

Re:Systemd, 10 years later: a historical and technical retro... by Izkata on Wednesday August 07, 2024 @09:20AM (#41181179)
I switched from Pulseaudio to Pipewire at the beginning of the year, and all of a sudden my laptop is so stable I no longer need to reboot it every month or so. It seems to just be better disguised nowadays, not really much better.
Re:Systemd, 10 years later: a historical and technical retro... by cyberax on Tuesday August 06, 2024 @06:53PM (#41176317)
> Unlucky. Posted to HN the day after SSL expired. You need to turn on certbot-auto to renew your LE cert.

Systemd can do that for you, too!