News for hackers. Stuff that matters.
Re:PipeWire: Bluetooth Support Status Update by spacemanmatt on Friday April 29, 2022 @05:09PM (#31210609)
Since I switched to pipewire I've had the best Linux audio end-user experience with BlueTooth devices, ever.
Re:PipeWire: Bluetooth Support Status Update by kaladin-jasnah on Friday April 29, 2022 @05:25PM (#31210751)
PipeWire supports the most audio codecs of any desktop operating system, period. Windows and Mac don't have LDAC, Mac doesn't have aptX, etc.
Re:PipeWire: Bluetooth Support Status Update by adamomada on Friday April 29, 2022 @06:44PM (#31211457)
I vaguely remember an old post from here showing someone hacking up Bluetooth to give SBC codec better quality, and it only being available on Linux (or maybe it was Linux+Android?)

I’ll try to dig it up and edit it in here, as I think it was a great hack

Re:PipeWire: Bluetooth Support Status Update by aviraldg on Friday April 29, 2022 @08:18PM (#31212116)
Do you mean mSBC?
Re:PipeWire: Bluetooth Support Status Update by adamomada on Friday April 29, 2022 @08:27PM (#31212166)
I found a couple links, since I remembered that Zenwalk distro was one of the first to include it. They call it SBC XQ

[0] http://soundexpert.org/articles/-/blogs/audio-quality-of-sbc...

Via

[1] http://www.zenwalk.org/2019/09/audio-quality-of-sbc-xq-bluet...

Re:PipeWire: Bluetooth Support Status Update by smoldesu on Friday April 29, 2022 @05:38PM (#31210844)
Definitely, having just bought some XM4s I was kinda taken aback by having LDAC automatically pop up in my audio settings. Very neat to see support being that seamless!
Re:PipeWire: Bluetooth Support Status Update by christophilus on Friday April 29, 2022 @06:21PM (#31211263)
I have found my vanilla Fedora install to have a better Bluetooth experience than my Mac did. That’s quite a feat.
Re:PipeWire: Bluetooth Support Status Update by emerongi on Friday April 29, 2022 @06:58PM (#31211572)
A bit offtopic, but having received a Mac for work recently, I have come to appreciate Fedora and Gnome so much more. Throughout the years I've heard people rave about Apple and I honestly think Gnome is better. The only argument against Linux at the moment is the app ecosystem.
Re:PipeWire: Bluetooth Support Status Update by thawaya3113 on Friday April 29, 2022 @11:11PM (#31213039)
I think Fedora is way underrated. They let Gnome do it’s thing in terms of the look and feel, and focus on bringing other tech into the desktop fold. They did this with Wayland, Flatpak and Pipewire, bringing them into a major stable distribution before any other equivalent distro did.

And personally, I think Gnome is absolutely awesome. If Desktop Linux has any hope of succeeding, it needs exactly what Gnome is doing. A stable UI API that developers can develop apps towards.

Gnome devs got so much flak for getting rid of theming/customization (they haven’t gotten rid of it, but they’ve made it much harder by default), but the reality is that it’s what’s made it possible for Gnome to implement real Dark mode so effectively.

I just updated my Ubuntu to 22.04 and absolutely love all that Gnome has brought to the table (sure Ubuntu added accent colors, but Gnome will likely get that within months).

I think the Fedora + Gnome combo is just brilliant and will potentially make the year of Linux on the Desktop actually achievable.

Re:PipeWire: Bluetooth Support Status Update by oynqr on Saturday April 30, 2022 @03:55AM (#31214192)
The dark mode handling has been the worst thing about Gnome for a long time, only getting worse with GTK4. I fondly remember some apps not accepting any global dark mode setting, only having a toggle in their own settings. Having switched to KDE since, it's nice to know the situation has seemingly improved.
Re:PipeWire: Bluetooth Support Status Update by hushpuppy on Friday April 29, 2022 @08:00PM (#31211985)
This is true.

Apple still is more sophisticated in the desktop scripting department. Applescript support in most applications and the ability to tie that into actions is seriously powerful stuff.

Gnome wins in the ability to use javascript to customize window handling, but it isn't really able to script application actions like you can in OS X.

It is improving though. If you can use keyboard to navigate the functions you want in applications you can automate it with software like keymapper.

https://github.com/houmain/keymapper

There are other similar software available. Probably a half a dozen serious projects in total.

Keymapper is software that intercepts input from your keyboard and allows you to 'remap' it. It operates on the libinput level of things, so it works regardless of environment or if you are in the console. It does require elevated privileges, though.

This, when combined with Gnome-shell extension and user keymapperd daemon can provide application-specific contexts for keyboard combos. The extension monitors for switching applications and gives keymapper the ability to be context-aware.

This is how I "solved" the copy past nightmare for myself in Linux. This way no matter if I am in a browser, terminal, or Emacs I have consistent copy-paste keys. (super-c, super-v). Makes things easier.

This isn't even remotely on the same level as applescript, but at least it is something. You have to understand low-level Linux keyboard stuff, which is still a mess. Versus being able to simply record yourself using applescript.

Gnome certainly is a very relaxing environment once you get used to it. Much less frantic or distraction filled compared to Windows or OS X. I like it.

Re:PipeWire: Bluetooth Support Status Update by torginus on Saturday April 30, 2022 @07:17AM (#31215098)
In my experience, Bluetooth on the Mac is not great (especially if you aren't willing to exist solely in Apple-land).

Windows, with the right BT card/drivers (usually anything Intel) is the best, with Linux a close second, but some of the other vendors have very sketchy Bluetooth support.

Re:PipeWire: Bluetooth Support Status Update by noobermin on Friday April 29, 2022 @08:24PM (#31212151)
So is pipewire actually valuable and not just pulseaudio all over again?
Re:PipeWire: Bluetooth Support Status Update by ncmncm on Friday April 29, 2022 @09:27PM (#31212537)
Pulseaudio had to contend with a huge number of buggy drivers, adapters, and clients. The bugs very gradually got fixed under pressure from PA, with PA always blamed. (PA of course also had bugs that gradually got fixed.) PW benefits from the more sane operating environment PA enforced.

I always used to delete PA because I had no desire or need ever to have more than one audio source feeding more than one audio sink. We don't live in a world compatible with that model anymore.

Re:PipeWire: Bluetooth Support Status Update by vanviegen on Saturday April 30, 2022 @02:56AM (#31213979)
From what I've read, PA did expose a lot of driver bugs, but this was mostly caused by it rewinding audio buffers [0], a driver feature that was not commonly used before PA. PW doesn't use rewinding though.

[0] https://www.freedesktop.org/wiki/Software/PulseAudio/Documen...

Re:PipeWire: Bluetooth Support Status Update by noobermin on Saturday April 30, 2022 @02:05AM (#31213754)
Going to be very real, I do not really have more than an inkling of the "world" PW inherits or whatever, but this sounds like "trust us, this time it's okay." I might need a little more convincing this isn't just another attempt to recreate a "universal framework that covers everyone's use cases." (I won't like the obvious reference)
Re:PipeWire: Bluetooth Support Status Update by ncmncm on Saturday April 30, 2022 @04:07PM (#31218834)
That notion might seem plausible, but the author of Pipewire witnessed the entire PulseAudio process, so has strong motivation not to repeat its reception, and plenty of hindsight to help.

Notably, the developer of Jack, the universally admired professional audio system, now uses PipeWire via its Jack-compatible API. He is frequently here on HN.

Re:PipeWire: Bluetooth Support Status Update by sph on Saturday April 30, 2022 @03:11AM (#31214045)
> I might need a little more convincing

What about you give it a try instead?

Re:PipeWire: Bluetooth Support Status Update by spacemanmatt on Sunday May 01, 2022 @07:08PM (#31229624)
You should read up on what PipeWire is before you talk trash about it and start implicating it in some catastrophic repeat of PulseAudio that you just made up.
Re:PipeWire: Bluetooth Support Status Update by kaba0 on Saturday April 30, 2022 @06:01AM (#31214727)
Nice of you to dismiss people’s (mostly a single one’s) free work.
Re:PipeWire: Bluetooth Support Status Update by noobermin on Saturday April 30, 2022 @03:20PM (#31218466)
I am not dismissing anyone's work. By this logic, the pipewire folks are dismissing ALSA and pulseaudio's work, which is equally absurd.
Re:PipeWire: Bluetooth Support Status Update by spacemanmatt on Sunday May 01, 2022 @06:53PM (#31229523)
> the pipewire folks are dismissing ALSA and pulseaudio's work

That is just not true. PW uses ALSA for physical output and it implements PA so that all the apps just work. There is nothing dismissive about that.

Re:PipeWire: Bluetooth Support Status Update by freeqaz on Friday April 29, 2022 @08:29PM (#31212177)
Pipewire implements the APIs of Pulse, Alsa, and Jack. So instead of having to juggle between them all, you just have one service to manage and it all just works.

It only took a few lines for me to switch and I've never had a Linux audio issue ever since! (And when I have, it's been my fault like my volume was turned down or my speakers were unplugged lol)

Re:PipeWire: Bluetooth Support Status Update by stavros on Friday April 29, 2022 @11:07PM (#31213011)
How did you switch? I'd be interested in trying this on Ubuntu.
Re:PipeWire: Bluetooth Support Status Update by bmurphy1976 on Thursday May 12, 2022 @01:21PM (#31357092)
I made the switch this morning by following this: https://ubuntuhandbook.org/index.php/2022/04/pipewire-replac...

So far the only anecdotes I have are (a) everything seems to be working and (b) don't forget to reboot after installation.

Re:PipeWire: Bluetooth Support Status Update by stavros on Thursday May 12, 2022 @01:29PM (#31357224)
Ah, thanks!
Re:PipeWire: Bluetooth Support Status Update by WhatIsDukkha on Saturday April 30, 2022 @01:08AM (#31213490)
Should be pretty close -

https://wiki.debian.org/PipeWire

Re:PipeWire: Bluetooth Support Status Update by stavros on Saturday April 30, 2022 @08:31AM (#31215541)
Apparently this is already running on my Ubuntu 21.10, I wonder if they switched over from the default. I've had no problems with BT at all, it just works. I wonder if that's why.
Re:PipeWire: Bluetooth Support Status Update by stavros on Saturday April 30, 2022 @05:47AM (#31214668)
Thanks!
Re:PipeWire: Bluetooth Support Status Update by emilyst on Friday April 29, 2022 @09:32PM (#31212565)
It's fine when it works. It's a monstrosity when it doesn't.

I spent an hour the other day trying to figure out how to tell it not to output audio through my DualSense controller haptics (which look like a four-channel audio output) when I connect it to an Intel NUC over USB. I never did succeed, and all the posts I found were basically other people asking how to do similar things.

Re:PipeWire: Bluetooth Support Status Update by snvzz on Saturday April 30, 2022 @12:24AM (#31213327)
I used pavucontrol to simply tell it to not do it. Once is enough.

In the sound cards list, just set to disabled.

Re:PipeWire: Bluetooth Support Status Update by emilyst on Saturday April 30, 2022 @01:30AM (#31213593)
You can't use `pavucontrol` unless you're logged in to a graphical interface as the user who is producing the sound.

For a headless system, it's useless.

Re:PipeWire: Bluetooth Support Status Update by kam on Saturday April 30, 2022 @01:46AM (#31213661)
`pactl` is the command line version
Re:PipeWire: Bluetooth Support Status Update by emilyst on Saturday April 30, 2022 @01:07PM (#31217443)
Also tried, also useless. The program producing the sound is being run by another user.
Re:PipeWire: Bluetooth Support Status Update by snvzz on Saturday April 30, 2022 @01:52AM (#31213695)
And 'ssh -X' is also a thing.
Re:PipeWire: Bluetooth Support Status Update by snvzz on Saturday April 30, 2022 @01:53AM (#31213700)
>For a headless system, it's useless.

DualSense is a game controller. In this context, headless is unlikely.

Re:PipeWire: Bluetooth Support Status Update by emilyst on Saturday April 30, 2022 @01:11PM (#31217478)
Depends on how you define headless, but the fact is, I'm rarely logged into it, and there's no mouse nor keyboard connected, nor any X server running.
Re:PipeWire: Bluetooth Support Status Update by taifleh on Saturday April 30, 2022 @08:27AM (#31215508)
you can actually use pavucontrol for remote PA servers that have native-protocol-tcp running

$ PULSE_SERVER=192.168.1.21 pavucontrol

Re:PipeWire: Bluetooth Support Status Update by e12e on Friday April 29, 2022 @09:03PM (#31212394)
Very much. It's more like Jack all over again, but more friendly - than pulseaudio.
Re:PipeWire: Bluetooth Support Status Update by iotku on Friday April 29, 2022 @08:29PM (#31212176)
While not perfect yet (it's still a relatively young project) it works as good or better than pulse in most general usage scenarios and avoids a lot of nonsense that you used to have to go through with using jack audio in tandem with pulse as well.

For the most part it works out of the box with good latency without extra configuration and provides good routing options as well for more advanced usage.

Re:PipeWire: Bluetooth Support Status Update by orangepurple on Friday April 29, 2022 @09:42PM (#31212612)
Pipewire is able to handle LDAC on my Bluetooth headset and switch to mSBC to behave as a headset and use the headset as a wireless input device. It's awesome! Never had instability or glitches, even when you make complex audio changes and can almost feel the gears grinding. It hasn't let me down!
Re:PipeWire: Bluetooth Support Status Update by silentprog on Friday April 29, 2022 @05:32PM (#31210799)
Same, also seamslessly connecting to my headphones while before I had to unpair and pair the whole time.