멋진 Bluetooth 오디오 수신기가 HiFi 스테레오에 연결되어 있으며 14.04에서 좋은 품질의 A2DP 싱크로 연결할 수있었습니다.
16.04로 업그레이드 한 후 장치는 헤드셋으로 만 연결되며 A2DP 모드로 전환하려고하면 syslog에이 오류가 발생합니다.
May 21 11:35:50 RRyS pulseaudio[6159]: [pulseaudio] module-bluez5-device.c: Refused to switch profile to a2dp_sink: Not connected
그리고 오디오의 품질은 비대합니다. 어떻게 고칠 수 있습니까?
답변
나를 위해 일하는 것은 블루투스 장치를 연결하고 HSP / HFP 모드로 전환하고 연결을 끊었다가 다시 연결 한 다음 A2DP 모드로 전환하는 것입니다.
답변
이것에 대해 몇 가지 버그가 있습니다. 예를 들어 이것 (15.05에서 시작) 과 다른 것, 아주 오래된 것을 확인하십시오 . 일반적으로 원인은 잘 알려져 있지 않습니다.
시스템 파일 수정을 시작하기 전에 Ubuntu 16.04 에서 다른 스피커 소리가 나지 않고 Bluetooth 스피커에서 소리가 나지 않는지 확인할 수 있으며 A2DP Bluetooth가 16.04에서 작동하지 않습니다 (커널 업그레이드로 주석에서 해결됨).
런치 패드의 RobertFM 사용자 와 Arch 포럼의 SimFox3 덕분에 저에게 도움이되는 픽스는 다음과 같습니다 . 다음의 모든 명령어는 루트 쉘 ( sudo -i
) 에서 실행해야합니다 . 조심하고 세 번 확인하십시오.
-
우선,이 파일들을 백업하십시오 (모르는 것) :
cp /etc/bluetooth/audio.conf /etc/bluetooth/audio.conf.bak cp /etc/pulse/default.pa /etc/pulse/default.pa.bak cp /usr/bin/start-pulseaudio-x11 /usr/bin/start-pulseaudio-x11.bak
-
/etc/bluetooth/audio.conf
이것을 편집 하고 다음과 비슷하게 만드십시오.# Configuration file for the audio service # This section contains options which are not specific to any # particular interface [General] Enable=Gateway,Source # Switch to master role for incoming connections (defaults to true) Master=true # If we want to disable support for specific services # Defaults to supporting all implemented services #Disable=Gateway,Source,Socket Disable=Socket # SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA) # Defaults to HCI #SCORouting=HCI # Automatically connect both A2DP and HFP/HSP profiles for incoming # connections. Some headsets that support both profiles will only connect the # other one automatically so the default setting of true is usually a good # idea. AutoConnect=true # Headset interface specific options (i.e. options which affect how the audio # service interacts with remote headset devices) [Headset] # Set to true to support HFP, false means only HSP is supported # Defaults to true HFP=true # Maximum number of connected HSP/HFP devices per adapter. Defaults to 1 MaxConnected=2 # Set to true to enable use of fast connectable mode (faster page scanning) # for HFP when incoming call starts. Default settings are restored after # call is answered or rejected. Page scan interval is much shorter and page # scan type changed to interlaced. Such allows faster connection initiated # by a headset. FastConnectable=true # Just an example of potential config options for the other interfaces #[A2DP] #SBCSources=1 #MPEG12Sources=0
-
/etc/pulse/default.pa
라인 편집 및 주석 처리#load-module module-bluetooth-discover
(실제로
#
시작 부분 만 추가하면 됩니다) -
모듈 로딩 후
/usr/bin/start-pulseaudio-x11
라인 편집 및 추가/usr/bin/pactl load-module module-bluetooth-discover
module-x11-xsmp
. 실제로 당신은 같은 스탠자를 갖도록 파일을 끝 근처에서 편집해야합니다if [ x"$SESSION_MANAGER" != x ] ; then /usr/bin/pactl load-module module-x11-xsmp "display=$DISPLAY session_manager=$SESSION_MANAGER" > /dev/null # add this line here: /usr/bin/pactl load-module module-bluetooth-discover fi
-
재부팅하십시오.
이제 장치를 A2DP로 설정하고 고품질 음악을 즐길 수 있어야합니다.
때때로 A2DP를 다시 활성화하려면 장치 연결을 끊었다가 다시 연결해야합니다.
… 그렇습니다. 버그 일 수 있습니다. 그러나 그것이 작동하면 아름답게 작동합니다.
-
재부팅 후 문제
이 모든 후, 때때로 트릭은 다음 재부팅 후에 만 작동하는 것 같습니다. 이 경우 rmfought의 답변 을 따르십시오 .
나를 위해 일하는 것은 블루투스 장치를 연결하고 HSP / HFP 모드로 전환하고 연결을 끊었다가 다시 연결 한 다음 A2DP 모드로 전환하는 것입니다.
… 나에게도 효과적입니다. 동글을 다시 페어링 해제해야했습니다.
-
그래도 작동하지 않으면 …
이 방법으로도 문제가 해결되지 않으면 이 스크립트를 사용해보십시오 .
답변
이것은 반드시 마이크가 필요한 사람들에게는 해결책이 아니지만 우분투 16.04에서 나를 위해 일했습니다.
sudo nano /etc/bluetooth/audio.conf
그런 다음 Disable=Headset
아래에 추가하십시오 [General]
.
[General]
Disable=Headset
그리고 블루투스 서비스를 다시 시작하십시오
sudo service bluetooth restart
그리고이 사람에 대한 모든 신념 :
https://jimshaver.net/2015/03/31/going-a2dp-only-on-linux/