Bluetooth: Difference between revisions

imported>Worldofpeace
m GDM doesn't cause issues with A2DP anymore.
imported>Mic92
add mpris-proxy snippet.
Line 59: Line 59:


You can verify that PulseAudio has loaded the Bluetooth module by running <tt>pactl list | grep -i 'Name.*module.*blue'</tt>; Bluetooth modules should be present in the list.
You can verify that PulseAudio has loaded the Bluetooth module by running <tt>pactl list | grep -i 'Name.*module.*blue'</tt>; Bluetooth modules should be present in the list.
== Using Bluetooth headset buttons to control media player ==
Some bluetooth headset have buttons for  pause/play or to skip to the next track.
To make these buttons usable with media players supporting the dbus-based MPRIS standard,
one can use <code>mpris-proxy</code> that is part of bluez package.
The following snippet can be used in [[Home Manager]] to start this program as a daemon:
<syntaxHighlight lang="nix">
systemd.user.services.mpris-proxy = {
  Unit.Description = "Mpris proxy";
  Unit.After = [ "network.target" "sound.target" ];
  Service.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
  Install.WantedBy = [ "default.target" ];
};
</syntaxHighlight>


===System-Wide PulseAudio ===
===System-Wide PulseAudio ===