Bluetooth: Difference between revisions

Onny (talk | contribs)
Restructure page
Onny (talk | contribs)
Tips and tricks: Pairing ASHA hearing aids
Line 33: Line 33:
</syntaxhighlight>
</syntaxhighlight>


== Troubleshooting ==
== Tips and tricks ==


=== Using Bluetooth headsets with PulseAudio ===
=== Using Bluetooth headsets with PulseAudio ===
Line 145: Line 145:
}</syntaxhighlight>
}</syntaxhighlight>
Afterwards rebuild your system and then restart your bluetooth service by executing  <syntaxhighlight lang="console">$ systemctl restart bluetooth</syntaxhighlight>
Afterwards rebuild your system and then restart your bluetooth service by executing  <syntaxhighlight lang="console">$ systemctl restart bluetooth</syntaxhighlight>
=== Pairing hearing aids using the ASHA protocol ===
The upstream bluez project [https://github.com/thewierdnut/asha_pipewire_sink#alternatives-are-coming has not yet implemented audio support for the ASHA protocol]. As an alternative it is possible to enable audio streaming using the [https://github.com/thewierdnut/asha_pipewire_sink asha-pipewire-sink] project.[https://github.com/thewierdnut/asha_pipewire_sink asha-pipewire-sink]
Add following to your system config and apply it:<syntaxhighlight lang="nix">
boot.extraModprobeConfig = ''
  options bluetooth enable_ecred=1
'';
hardware = {
  bluetooth = {
    enable = true;
    settings = {
      LE = {
        MinConnectionInterval = 16;
        MaxConnectionInterval = 16;
        ConnectionLatency = 10;
        ConnectionSupervisionTimeout = 100;
      };
    };
  };
};
environment.systemPackages = [ pkgs.asha-pipewire-sink ];
</syntaxhighlight>Ensure that profiles <code>LE2MTX LE2MRX</code> are part of <code>Selected phys</code> when running <code>sudo btmgmt phy</code>, otherwise follow the instruction [https://github.com/thewierdnut/asha_pipewire_sink#enable-2m-phy-optional here].
Pair and connect to both of your hearing aids.
Run the command <code>asha_pipewire_sink</code> and choose your hearing aids as audio sink in your sound mixer application, for example <code>pavucontrol</code>.
==Troubleshooting==
==Troubleshooting==
===USB device needs to be unplugged/re-plugged after suspend===
===USB device needs to be unplugged/re-plugged after suspend===