From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 08:30:22 2020 Received: (at submit) by debbugs.gnu.org; 4 Jan 2020 13:30:22 +0000 Received: from localhost ([127.0.0.1]:42549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1injVV-0001dX-R0 for submit@debbugs.gnu.org; Sat, 04 Jan 2020 08:30:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:48808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1injVU-0001dQ-TH for submit@debbugs.gnu.org; Sat, 04 Jan 2020 08:30:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57340) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1injVT-0003YS-IF for bug-guix@gnu.org; Sat, 04 Jan 2020 08:30:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1injVR-0003xs-JV for bug-guix@gnu.org; Sat, 04 Jan 2020 08:30:19 -0500 Received: from mx0.mattleach.net ([176.58.118.143]:54816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1injVR-0003vG-9i for bug-guix@gnu.org; Sat, 04 Jan 2020 08:30:17 -0500 Received: by mx0.mattleach.net (Postfix, from userid 99) id 63EDF61C91; Sat, 4 Jan 2020 13:30:15 +0000 (GMT) Received: from troi.mattleach.net (92.40.248.7.threembb.co.uk [92.40.248.7]) by mx0.mattleach.net (Postfix) with ESMTPSA id 7CE5761C21 for ; Sat, 4 Jan 2020 13:30:14 +0000 (GMT) From: Matthew Leach To: bug-guix@gnu.org Subject: Can't change profile of Bluetooth headphones User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Date: Sat, 04 Jan 2020 13:30:12 +0000 Message-ID: <87o8vjs61n.fsf@mattleach.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 176.58.118.143 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi Guix! 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 a2dp_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. [0]: https://wiki.debian.org/BluetoothUser/a2dp#Refused_to_switch_profile_to_a2dp_sink:_Not_connected -- Matt From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 16:33:58 2020 Received: (at 38915) by debbugs.gnu.org; 4 Jan 2020 21:33:58 +0000 Received: from localhost ([127.0.0.1]:43458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inr3W-0001o5-2t for submit@debbugs.gnu.org; Sat, 04 Jan 2020 16:33:58 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inr3T-0001nw-W4 for 38915@debbugs.gnu.org; Sat, 04 Jan 2020 16:33:56 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1578173634; cv=none; d=zohomail.com; s=zohoarc; b=lUUqPkdPQRHlhmxijhKVB2Tc1nIeoNuu/C7BMGHMP6/M7F58LY/TRo3vqIB2kiCJz5r9hTUiW6fc9kjfQEYFbtYfG4cda+XACYrMHHYFAsKnakLamkzngFNAcHYLdP/uGiwldwOSffdeKuV8U1ZAofWwQQ5kGXUt/9L1WYCgvt8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578173634; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=GLyBJH8X1ZliouhvdSjwUIY7Fxctpl0rCdxxwNjZvgQ=; b=QIt+sr11LMuaRkHE2UzUITiqIdseqfOYHNUEgYZIUuWfaDT6RkK/baOuyGYPLB6JD6mTjMldknWHkah87/ZhInsXc2qkihfVFWBC6s6mhJiFdb6H7AuJzJjZp5Qqe22nxEP+oyI66/+WlqnUz99auY5m+WNZfNj0IpfWKzeVc6E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1578173634; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=GLyBJH8X1ZliouhvdSjwUIY7Fxctpl0rCdxxwNjZvgQ=; b=gTrIW9PFoxT5uOqsbVqgLi2/oEf/Vk2awR0NeGcd7pKvCMTVQYbSkggXdxPz+CrK qcIqycKPwErsqWfncYS8T6dql3GvPOafPACaRV8iSi8NkVsjzoE/CmVjPJ40C6Sesf1 FH5+ntQCYL0Xstgg61NRCj5oAAzRasD+zJaZAckg= Received: from localhost (p54AD4770.dip0.t-ipconnect.de [84.173.71.112]) by mx.zohomail.com with SMTPS id 1578173628626365.7077207480256; Sat, 4 Jan 2020 13:33:48 -0800 (PST) References: <87o8vjs61n.fsf@mattleach.net> User-agent: mu4e 1.2.0; emacs 26.3 From: Ricardo Wurmus To: Matthew Leach Subject: Re: bug#38915: Can't change profile of Bluetooth headphones In-reply-to: <87o8vjs61n.fsf@mattleach.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sat, 04 Jan 2020 22:33:45 +0100 Message-ID: <87lfqm3o06.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38915 Cc: 38915@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Matthew, > 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 a2dp= _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 requi= re 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 bluetooth spea= kers. > [0]: https://wiki.debian.org/BluetoothUser/a2dp#Refused_to_switch_profile= _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 g= dm service configuration? -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 05 15:05:03 2020 Received: (at 38915) by debbugs.gnu.org; 5 Jan 2020 20:05:03 +0000 Received: from localhost ([127.0.0.1]:44686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioC91-0006md-JS for submit@debbugs.gnu.org; Sun, 05 Jan 2020 15:05:03 -0500 Received: from mx0.mattleach.net ([176.58.118.143]:58534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioC90-0006mI-0b for 38915@debbugs.gnu.org; Sun, 05 Jan 2020 15:05:03 -0500 Received: by mx0.mattleach.net (Postfix, from userid 99) id 289D061C91; Sun, 5 Jan 2020 20:05:01 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mx0.mattleach.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=disabled version=3.4.2 Received: from troi.mattleach.net (92.40.248.146.threembb.co.uk [92.40.248.146]) by mx0.mattleach.net (Postfix) with ESMTPSA id 1843761C21; Sun, 5 Jan 2020 20:05:00 +0000 (GMT) From: Matthew Leach To: Ricardo Wurmus Subject: Re: bug#38915: Can't change profile of Bluetooth headphones In-Reply-To: <87lfqm3o06.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, References: <87o8vjs61n.fsf@mattleach.net> <87lfqm3o06.fsf@elephly.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Date: Sun, 05 Jan 2020 20:04:44 +0000 Message-ID: <877e25oejn.fsf@mattleach.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38915 Cc: 38915@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 06 16:24:15 2020 Received: (at 38915) by debbugs.gnu.org; 6 Jan 2020 21:24:15 +0000 Received: from localhost ([127.0.0.1]:46904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioZrD-0002FF-GX for submit@debbugs.gnu.org; Mon, 06 Jan 2020 16:24:15 -0500 Received: from mx0.mattleach.net ([176.58.118.143]:37030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioZr9-0002F2-Fu for 38915@debbugs.gnu.org; Mon, 06 Jan 2020 16:24:14 -0500 Received: by mx0.mattleach.net (Postfix, from userid 99) id 2C52E61C91; Mon, 6 Jan 2020 21:24:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mx0.mattleach.net X-Spam-Level: X-Spam-Status: No, score=-0.5 required=4.0 tests=ALL_TRUSTED, DATE_IN_PAST_24_48,URIBL_BLOCKED autolearn=disabled version=3.4.2 Received: from troi.mattleach.net (92.40.248.146.threembb.co.uk [92.40.248.146]) by mx0.mattleach.net (Postfix) with ESMTPSA id 18D3461C21; Mon, 6 Jan 2020 21:24:09 +0000 (GMT) From: Matthew Leach To: Ricardo Wurmus Subject: Re: bug#38915: Can't change profile of Bluetooth headphones In-Reply-To: <87lfqm3o06.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, Date: Sun, 05 Jan 2020 20:05:19 +0000 References: <87o8vjs61n.fsf@mattleach.net> <87lfqm3o06.fsf@elephly.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Message-ID: <871rscp9c7.fsf@mattleach.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 38915 Cc: 38915@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) 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