Earlier quoted context omitted.
I don't even know why this is even necessary. Back in the day I just set up the ALSA daemon to save/restore volume levels and that was it. In all programs I select ALSA as output and boom done. So I'm confused to why pulse audio and pipewire even exist.
Because ALSA doesn't allow two programs to use the same audio card simultaneously. ALSA is good for exclusive access, when you want to remove everything between an application and audio card. Also ALSA cannot do other nice things, like switching audio output when you plug an USB audio card.
PipeWire 0.3.62
71–80 of 98 posts
Re: PipeWire 0.3.62
#72Only slightly OT; does anyone have a solution for playing audio from ssh? The best I have so far is to pick a program that I know is under X (here xterm) and run something like: eval "env $(cat /proc/"$(pgrep -n xterm)"/environ |xargs -0 -n1 printf '%q ') bash" To get the environment setup right.
Man, how much are distros + bad user config hurting user "Linux" reports. Thank god for NixOS where (1) we do a decent job of base config and (2) user config errors are basically trivially identifiable. 1. Open `pulsemixer` to monitor pulse clients 2. `ssh localhost "pacat Observe that pacat is showing as a pulse client. This stuff is really easy and should absolutely just work.
Re: PipeWire 0.3.62
#73Earlier quoted context omitted.
Man, how much are distros + bad user config hurting user "Linux" reports. Thank god for NixOS where (1) we do a decent job of base config and (2) user config errors are basically trivially identifiable. 1. Open `pulsemixer` to monitor pulse clients 2. `ssh localhost "pacat Observe that pacat is showing as a pulse client. This stuff is really easy and should absolutely just work.
Did you reply to the wrong comment? This doesn't seem relevant to remote audio
1. (term1) `ssh remote pulsemixer`
2. (term2) `ssh remote "pacat Observe that (1) you can see a new client appear on the remote, and (2) audio will play from the default playback device on the remote (and you can trivially change that device with `pulsemixer`)
EDIT: for your speakers/ears-sake, I recommend turning down the default playback device before doing this.
Re: PipeWire 0.3.62
#74Earlier quoted context omitted.
Excuse my ignorance, but don't monitors take their clock signal from the host? I would think that synchronizing a stream of frames to the display refresh rate is a mismatch to handle on the display end, not the host end where frames might get doubled or skipped (and eventually introduce long-term timing errors). This is assuming an 60Hz rate advertised by the monitor.
I don't know whether the clock is technically in the host machine or in the monitor, I imagine it depends on the type of connection. But the idea of a different "display clock" and "playback clock" still applies, since a program's own timekeeping based on usleep + gettimeofday will be different from the monitor clock, wherever that happens to reside. And unless you're using some kind of variable refresh rate, the mon…
On some embedded platforms, if you can't get a precise clock you need from clock subystem, or massage the display mode timing to fit whatever pixel clock you can generate, you may be running your display at 34 FPS instead of 60 FPS if you're not careful eneough. And you'll barely notice unless you measure it, or try to play video or do anything else sensitive to timing.
Re: PipeWire 0.3.62
#75Earlier quoted context omitted.
> That said, I've had daily issues with it, from it slowing video playback (weirdly, by about 10 seconds over 20 minutes or so, only noticable when watching something synchronized with someone else), over crackling noises with speakers when no audio is playing, to straight up lags and skips every few seconds with certain devices. How is that "better than pulse ever did"? The only issue I had with PulseAudio on severa…
I estimate about 75% chance it's a configuration problem on his end. The "I hate Pulse Audio and especially Lennart" crowd tends to want to either go back to "Alsa" or tried at some point to install the old OSS drivers and then gave up. This means trying to configure dmix to work properly, trying to configure your audio outputs with tools like 'alsamixer' and things of that nature. This is about a 100% guaranteed app…
To me it's a low-feature deterministic stack that rarely does what I don't want it to.
But I haven't introduced a bunch of fuel for the fire like bluetooth audio devices either... to each their own.
Re: PipeWire 0.3.62
#76Stumbled into PipeWire few months ago when trying to setup Bluetooth headset on Ubuntu OS. It's superior to PulseAudio, but... Really unbelievable to comprehend that Linux distros have such bad support for Bluetooth audio headsets - something very common in today's tech world. Android, Windows and Apple's OS all very efficiently switch from A2DP codec which is excellent for audio playback, but has no possibility for…
Not sure if this is what you were pointing out here, so just in case: Pipewire does allow you to switch BT codecs including the ones which do better bidi quality. Including autoswitching if you want it to happen automatically https://wiki.archlinux.org/title/PipeWire#Automatic_profile_... (you can switch manually as well)
Re: PipeWire 0.3.62
#77Earlier quoted context omitted.
Sorry, not saying that. I do have an option of either A2DP or HSP. I was not familiar with auto switch. But you kind people have filled me in in this thread. A2DP sounds amazing for listening to music, no problems there. The problem is the hassle of switching between profiles, since I tend to use my headphones in work environment (calls, meetings) - this is the reason I still keep a pair of cabled headphones around.
Interesting. Not sure what the deal is. Someone is suggesting that at least for PulseAudio, it could just be the older version of PulseAudio that shipped with Ubuntu. However, you should be able to get it working on Pipewire just as well. Pipewire stuff is still pretty immature, so your distro may have an older and less stable Wireplumber at the moment. In that case, it might be worth just trying to set the Pipewire…
Re: PipeWire 0.3.62
#78Earlier quoted context omitted.
pulseaudio exists because it's user friendly. JACK exists becase some people need low latency and dynamic control over non-trivial audio routing. pipewire attempts to bring the best of both worlds and make it container friendly for security purposes.
> JACK exists becase some people need low latency Wouldn't latency be lower if the application would access audio card directly without any daemons in between?
Re: PipeWire 0.3.62
#79Earlier quoted context omitted.
I don't even know why this is even necessary. Back in the day I just set up the ALSA daemon to save/restore volume levels and that was it. In all programs I select ALSA as output and boom done. So I'm confused to why pulse audio and pipewire even exist.
Most of the things people below say ALSA didn't have, OSSv4 actually had. But basically, they made it proprietary, Linux switched to ALSA, and when OSSv4 became open source again it lost traction. But from my experience at the time, it had none of the problems ALSA had, it had none of the problems pulseaudio had, and it had none of the problems ESD had. This is a clear case of when ideology won over an objectively be…
Also with OSS you still can't seamlessly switch between devices, bluetooth or arbitrary signal routing between apps. So, no... good riddance.
Re: PipeWire 0.3.62
#80Only slightly OT; does anyone have a solution for playing audio from ssh? The best I have so far is to pick a program that I know is under X (here xterm) and run something like: eval "env $(cat /proc/"$(pgrep -n xterm)"/environ |xargs -0 -n1 printf '%q ') bash" To get the environment setup right.
(And yes, I use pipewire. The socket is pipewire-pulse's.)