Hi all, I'm using openSUSE 15.5 (KDE) along with some bluetooth headphones. From what I could see, only the default SBC is used as an A2DP audio codec, despite the headset supporting more codecs. Please check the following (trimmed) output: ~ # pactl list Sink #2 State: RUNNING Description: WH-1000XM5 Driver: module-bluez5-device.c Sample Specification: s16le 2ch 44100Hz Owner Module: 25 Latency: 60263 usec, configured 45317 usec Flags: HARDWARE HW_VOLUME_CTRL LATENCY Properties: bluetooth.protocol = "a2dp_sink" bluetooth.codec = "sbc" device.description = "WH-1000XM5" device.api = "bluez" device.class = "sound" device.bus = "bluetooth" device.form_factor = "headset" bluez.class = "0x240404" bluez.alias = "WH-1000XM5" device.intended_roles = "phone" Porto: headset-output: Headset (type: Headset, priority: 0, available) ~ # avinfo XX:XX:XX:XX:XX:XX Connecting ... Stream End-Point #1: Audio Sink Media Codec: SBC Channel Modes: Mono DualChannel Stereo JointStereo Frequencies: 44.1Khz 48Khz Subbands: 4 8 Blocks: 4 8 12 16 Bitpool Range: 2-53 Content Protection: SCMS-T Stream End-Point #2: Audio Sink Media Codec: MPEG24 Object Types: MPEG-2 AAC LC Frequencies: 44.1kHz 48kHz Channels: 1 2 Bitrate: 320000 VBR: Yes Content Protection: SCMS-T Stream End-Point #3: Audio Sink Media Codec: Vendor Specific A2DP Codec Vendor ID 0x0000012d Vendor Specific Codec ID 0x00aa Vendor Specific Data: 0x3c 0x07 Vendor Specific Value (LDAC) Frequencies: 44.1kHz 48kHz 88.2kHz 96kHz Channel modes: Mono Dual Stereo Content Protection: SCMS-T Now, despite these headphones not supporting any of the aptX codecs, it would be a nice option to be able to at least enjoy one of the other codecs, namely LDAC, but AAC would be a welcomed addition too, and likely preferable in many situations too... It's been quite some time since I've dug this, just to remember that BT Profiles/Codecs are not a straightforward subject. Despite this, I was quite surprised that it is substantially better than a few years ago. In addition to the codecs, there's also the sound stack bluez/pulseaudio/pipewire/more (?) options... Then there's the plugins/bt_modules/more (?), I can see that I do have some bt modules on pipewire: ~ # rpm -ql pipewire-spa-plugins-0_2 | grep bluez /usr/lib64/spa-0.2/bluez5 /usr/lib64/spa-0.2/bluez5/libspa-bluez5.so /usr/lib64/spa-0.2/bluez5/libspa-codec-bluez5-aac.so /usr/lib64/spa-0.2/bluez5/libspa-codec-bluez5-faststream.so /usr/lib64/spa-0.2/bluez5/libspa-codec-bluez5-ldac.so /usr/lib64/spa-0.2/bluez5/libspa-codec-bluez5-opus.so /usr/lib64/spa-0.2/bluez5/libspa-codec-bluez5-sbc.so /usr/share/spa-0.2/bluez5 /usr/share/spa-0.2/bluez5/bluez-hardware.conf Now, for the real question(s): How can I make use of any other code with openSUSE 15.5 and KDE? Some maybe useful data: - openSUSE Leap 15.5 upstream, fully updated - This install is an upgrade from several Leap's before 15.5, hopefully done right (I've tried this on different versions too) Also maybe I have an unsupported combination of all this?! I really can't tell at this time! Feel free to also direct me to reading materials as I'll gladly go through them. Also feel free to ask for more information on my system if you believe it's relevant. Thank you all for your help! Regards, -- Rui Santos Veni, Vidi, Linux
Hello, In the Message; Subject : Using non-default Bluetooth Codecs Message-ID : <CAJxU1QMLPBsfDQt+uwdWokHUp6BqZU58_+GQ7m8pU7cMLQLpFg@mail.gmail.com> Date & Time: Mon, 4 Sep 2023 13:25:37 +0100 [RS] == Rui Santos <rsantos@ruisantos.com> has written: [...] RS> Now, for the real question(s): RS> How can I make use of any other code with openSUSE 15.5 and KDE? [...] We use codecs via apps, and therefore the codec support status of an app is important for the installation of codecs. However, codecs may involve patents, etc., and openSUSE basically excludes those codecs. But if you look into pacman, you may be happy. Regards. --- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Companies have come to view generative AI as a kind of monster that must be fed at all costs―even if it isn’t always clear what exactly that data is needed for or what those future AI systems might end up doing." -- Generative AI Is Making Companies Even More Thirsty for Your Data --
Hi, Thank you for your reply Masaru. Just for the record, to help someone else that requires a tldr solution, I've followed this guide: https://en.opensuse.org/openSUSE:Pipewire It basically requires one to switch from PulseAudio to Pipewire. Those basic install and reboot steps worked perfectly! I can now use all AAC and LDAC codecs too. I can even use mSBC for Headset, which is quite some progress too :) Thank you! Rui On Tue, Sep 5, 2023 at 2:20 AM Masaru Nomiya <nomiya@lake.dti.ne.jp> wrote:
Hello,
In the Message;
Subject : Using non-default Bluetooth Codecs Message-ID : <CAJxU1QMLPBsfDQt+uwdWokHUp6BqZU58_+GQ7m8pU7cMLQLpFg@mail.gmail.com> Date & Time: Mon, 4 Sep 2023 13:25:37 +0100
[RS] == Rui Santos <rsantos@ruisantos.com> has written:
[...] RS> Now, for the real question(s): RS> How can I make use of any other code with openSUSE 15.5 and KDE? [...]
We use codecs via apps, and therefore the codec support status of an app is important for the installation of codecs.
However, codecs may involve patents, etc., and openSUSE basically excludes those codecs. But if you look into pacman, you may be happy.
Regards.
--- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Companies have come to view generative AI as a kind of monster that must be fed at all costs―even if it isn’t always clear what exactly that data is needed for or what those future AI systems might end up doing."
-- Generative AI Is Making Companies Even More Thirsty for Your Data --
-- Rui Santos Veni, Vidi, Linux
Hello, In the Message; Subject : Re: Using non-default Bluetooth Codecs Message-ID : <CAJxU1QMrupyEXzC=1=wHFdcdcGfVdH8iL_SL5JZd-MvYYs7TEA@mail.gmail.com> Date & Time: Mon, 18 Sep 2023 17:26:46 +0100 [RS] == Rui Santos <rsantos@ruisantos.com> has written: [...] RS> Just for the record, to help someone else that requires a tldr RS> solution, It is important for many members to post a report that it worked. But, it has to be accurate. RS> I've followed this guide: RS> https://en.opensuse.org/openSUSE:Pipewire It may be that pipewire is still in its infancy, but what is written here is too rough. Please refer to my previous post with detailed instructions. RS> It basically requires one to switch from PulseAudio to Pipewire. RS> Those basic install and reboot steps worked perfectly! RS> I can now use all AAC and LDAC codecs too. I can even use mSBC for RS> Headset, which is quite some progress too :) [...] I can only assume that you have worked your MAGIC. That is, openSUSE and pacman only offer a form of pipewire that does not incorporate aac or LDAC. Regards. --- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Companies have come to view generative AI as a kind of monster that must be fed at all costs―even if it isn’t always clear what exactly that data is needed for or what those future AI systems might end up doing." -- Generative AI Is Making Companies Even More Thirsty for Your Data --
Hello, I'm so sorry. In the Message; Subject : Re: Using non-default Bluetooth Codecs Message-ID : <877conm6ui.wl-nomiya@lake.dti.ne.jp> Date & Time: Tue, 19 Sep 2023 07:53:09 +0900 [MN] == Masaru Nomiya <nomiya@lake.dti.ne.jp> has written: [...] RS> It basically requires one to switch from PulseAudio to Pipewire. RS> Those basic install and reboot steps worked perfectly! RS> I can now use all AAC and LDAC codecs too. I can even use mSBC for RS> Headset, which is quite some progress too :) MN> [...] MN> I can only assume that you have worked your MAGIC. MN> That is, openSUSE and pacman only offer a form of pipewire that does MN> not incorporate aac or LDAC. I have been excluding it, but aac and LDAC are built into pipewire both opensuse and packman. The only thing excluded in openSUSE is aptx. Regards. --- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Companies have come to view generative AI as a kind of monster that must be fed at all costs―even if it isn’t always clear what exactly that data is needed for or what those future AI systems might end up doing." -- Generative AI Is Making Companies Even More Thirsty for Your Data --
participants (3)
-
Masaru Nomiya
-
Rui Santos
-
野宮 賢 / NOMIYA Masaru