From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Leach Subject: bug#38915: Can't change profile of Bluetooth headphones Date: Sun, 05 Jan 2020 20:04:44 +0000 Message-ID: <877e25oejn.fsf@mattleach.net> References: <87o8vjs61n.fsf@mattleach.net> <87lfqm3o06.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52175) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioCA2-0004pv-IB for bug-guix@gnu.org; Sun, 05 Jan 2020 15:06:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioC9z-0006e9-Pi for bug-guix@gnu.org; Sun, 05 Jan 2020 15:06:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38713) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioC9y-0006d5-2H for bug-guix@gnu.org; Sun, 05 Jan 2020 15:06:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ioC9x-0006nt-Tw for bug-guix@gnu.org; Sun, 05 Jan 2020 15:06:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87lfqm3o06.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ricardo Wurmus Cc: 38915@debbugs.gnu.org Ricardo Wurmus writes: > Hi Matthew, Hi Ricardo, Thanks for your reply. > >> I have a pair of Bluetooth headphones that I I've paired and connected to >> my guix machine. They show up in the 'configuration' tab of >> pavucontrol. By default the profile is 'Headset Head Unit (HSP/HFP)'. >> >> When I try and change the profile to 'High Fidelity Playback (A2DP Sink)' >> this fails and the headphones are stuck in the HSP profile. >> >> I see the following line in `/var/log/debug' when attempting to switch >> profiles: >> >> --8<---------------cut here---------------start------------->8--- >> W: [pulseaudio] module-bluez5-device.c: Refused to switch profile to a2d= p_sink: Not connected >> --8<---------------cut here---------------end--------------->8--- >> >> It looks as though this may have something to do with pulseaudio running >> as the GDM user: [0]. My current work-around for this is: >> >> --8<---------------cut here---------------start------------->8--- >> $ sudo killall pulseaudio && pulseaudio >> --8<---------------cut here---------------end--------------->8--- >> >> to make pulseaudio run as my user. > > For what it=E2=80=99s worth: if you have a setup that doesn=E2=80=99t req= uire > pulseaudio it is possible to use bluez-alsa (running bluealsa as a > daemon) and configure it to use the a2dp profile. I=E2=80=99m using this = on a > headless =E2=80=9Cserver=E2=80=9D in the living room to send music to blu= etooth > speakers. Ideally I'd like to use pulseaudio as I have multiple streams that I send to my bluetooth speaker. Nevertheless, I tried to give bluez-alsa a go but I failed to kill pulseaudio. It would always start back up as the GDM user. > >> [0]: https://wiki.debian.org/BluetoothUser/a2dp#Refused_to_switch_profil= e_to_a2dp_sink:_Not_connected > > The second workaround requires writing a configuration file to the gdm > user=E2=80=99s home directory. Is this something that we could do in the = gdm > service configuration? Ideally i'd like to stop GDM running pulseaudio as I can test out your solution above and it may fix this issue. I'm unsure how to modify GDMs configuration, however. --=20 Matt