adding a pulse audio bluetooth sink configuration

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I'm connecting a raspberry pi 3b+ to a small bluetooth speaker (mostly thanks to http://youness.net/raspberry-pi/how-to-connect-bluetooth-headset-or-speaker-to-raspberry-pi-3 and some other resources)



raspberry pi info:

pi@rp0:~ $ uname -a
Linux rp0 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux



I'm at the point now where I'm able to reliably connect to the speaker as an audio sink, and keep the connection up... but the sound quality is HORRIBLE



as you might expect from this config:



pi@rp0:~ $ pacmd list-sinks

...

* index: 1
name: <bluez_sink.C0_7A_A5_01_0C_B6.headset_head_unit>
driver: <module-bluez5-device.c>
flags: HARDWARE HW_VOLUME_CTRL LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9030

sample spec: s16le 1ch 8000Hz
channel map: mono
Mono
...


The pulseaudio daemon config is configured to set the sample rate, format, channels, and channel-map that I want (basically the defaults, and verified as what I want from my laptop's pulseaudio config when I connect the bluetooth speaker there). Here is the config on the pi:



pi@rp0:~ $ pulseaudio --dump-conf
...
default-sample-format = s16le
default-sample-rate = 44100
alternate-sample-rate = 48000
default-sample-channels = 2
default-channel-map = front-left,front-right
...


But I can't seem to get this config to take effect reliably. Earlier in the day I was able to connect with the settings I wanted (stereo/44100hz), but now, after disconnecting and reconnecting, it has returned to the sample rate printed above (mono/8000hz), and I can't seem to retrace the set of "magical" steps I had to get the config to take effect (some sequence of pulseaudio -k/pulseaudio -D/reboot/bluetoothctl ... connect)



So, how do I create a reliable configuration profile for this device?



Thanks!










share|improve this question

























    up vote
    1
    down vote

    favorite












    I'm connecting a raspberry pi 3b+ to a small bluetooth speaker (mostly thanks to http://youness.net/raspberry-pi/how-to-connect-bluetooth-headset-or-speaker-to-raspberry-pi-3 and some other resources)



    raspberry pi info:

    pi@rp0:~ $ uname -a
    Linux rp0 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux



    I'm at the point now where I'm able to reliably connect to the speaker as an audio sink, and keep the connection up... but the sound quality is HORRIBLE



    as you might expect from this config:



    pi@rp0:~ $ pacmd list-sinks

    ...

    * index: 1
    name: <bluez_sink.C0_7A_A5_01_0C_B6.headset_head_unit>
    driver: <module-bluez5-device.c>
    flags: HARDWARE HW_VOLUME_CTRL LATENCY
    state: SUSPENDED
    suspend cause: IDLE
    priority: 9030

    sample spec: s16le 1ch 8000Hz
    channel map: mono
    Mono
    ...


    The pulseaudio daemon config is configured to set the sample rate, format, channels, and channel-map that I want (basically the defaults, and verified as what I want from my laptop's pulseaudio config when I connect the bluetooth speaker there). Here is the config on the pi:



    pi@rp0:~ $ pulseaudio --dump-conf
    ...
    default-sample-format = s16le
    default-sample-rate = 44100
    alternate-sample-rate = 48000
    default-sample-channels = 2
    default-channel-map = front-left,front-right
    ...


    But I can't seem to get this config to take effect reliably. Earlier in the day I was able to connect with the settings I wanted (stereo/44100hz), but now, after disconnecting and reconnecting, it has returned to the sample rate printed above (mono/8000hz), and I can't seem to retrace the set of "magical" steps I had to get the config to take effect (some sequence of pulseaudio -k/pulseaudio -D/reboot/bluetoothctl ... connect)



    So, how do I create a reliable configuration profile for this device?



    Thanks!










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm connecting a raspberry pi 3b+ to a small bluetooth speaker (mostly thanks to http://youness.net/raspberry-pi/how-to-connect-bluetooth-headset-or-speaker-to-raspberry-pi-3 and some other resources)



      raspberry pi info:

      pi@rp0:~ $ uname -a
      Linux rp0 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux



      I'm at the point now where I'm able to reliably connect to the speaker as an audio sink, and keep the connection up... but the sound quality is HORRIBLE



      as you might expect from this config:



      pi@rp0:~ $ pacmd list-sinks

      ...

      * index: 1
      name: <bluez_sink.C0_7A_A5_01_0C_B6.headset_head_unit>
      driver: <module-bluez5-device.c>
      flags: HARDWARE HW_VOLUME_CTRL LATENCY
      state: SUSPENDED
      suspend cause: IDLE
      priority: 9030

      sample spec: s16le 1ch 8000Hz
      channel map: mono
      Mono
      ...


      The pulseaudio daemon config is configured to set the sample rate, format, channels, and channel-map that I want (basically the defaults, and verified as what I want from my laptop's pulseaudio config when I connect the bluetooth speaker there). Here is the config on the pi:



      pi@rp0:~ $ pulseaudio --dump-conf
      ...
      default-sample-format = s16le
      default-sample-rate = 44100
      alternate-sample-rate = 48000
      default-sample-channels = 2
      default-channel-map = front-left,front-right
      ...


      But I can't seem to get this config to take effect reliably. Earlier in the day I was able to connect with the settings I wanted (stereo/44100hz), but now, after disconnecting and reconnecting, it has returned to the sample rate printed above (mono/8000hz), and I can't seem to retrace the set of "magical" steps I had to get the config to take effect (some sequence of pulseaudio -k/pulseaudio -D/reboot/bluetoothctl ... connect)



      So, how do I create a reliable configuration profile for this device?



      Thanks!










      share|improve this question













      I'm connecting a raspberry pi 3b+ to a small bluetooth speaker (mostly thanks to http://youness.net/raspberry-pi/how-to-connect-bluetooth-headset-or-speaker-to-raspberry-pi-3 and some other resources)



      raspberry pi info:

      pi@rp0:~ $ uname -a
      Linux rp0 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux



      I'm at the point now where I'm able to reliably connect to the speaker as an audio sink, and keep the connection up... but the sound quality is HORRIBLE



      as you might expect from this config:



      pi@rp0:~ $ pacmd list-sinks

      ...

      * index: 1
      name: <bluez_sink.C0_7A_A5_01_0C_B6.headset_head_unit>
      driver: <module-bluez5-device.c>
      flags: HARDWARE HW_VOLUME_CTRL LATENCY
      state: SUSPENDED
      suspend cause: IDLE
      priority: 9030

      sample spec: s16le 1ch 8000Hz
      channel map: mono
      Mono
      ...


      The pulseaudio daemon config is configured to set the sample rate, format, channels, and channel-map that I want (basically the defaults, and verified as what I want from my laptop's pulseaudio config when I connect the bluetooth speaker there). Here is the config on the pi:



      pi@rp0:~ $ pulseaudio --dump-conf
      ...
      default-sample-format = s16le
      default-sample-rate = 44100
      alternate-sample-rate = 48000
      default-sample-channels = 2
      default-channel-map = front-left,front-right
      ...


      But I can't seem to get this config to take effect reliably. Earlier in the day I was able to connect with the settings I wanted (stereo/44100hz), but now, after disconnecting and reconnecting, it has returned to the sample rate printed above (mono/8000hz), and I can't seem to retrace the set of "magical" steps I had to get the config to take effect (some sequence of pulseaudio -k/pulseaudio -D/reboot/bluetoothctl ... connect)



      So, how do I create a reliable configuration profile for this device?



      Thanks!







      raspberry-pi raspbian pulseaudio bluetooth






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 26 at 21:00









      Erick J

      262




      262

























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484297%2fadding-a-pulse-audio-bluetooth-sink-configuration%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484297%2fadding-a-pulse-audio-bluetooth-sink-configuration%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay