라즈베리파이에서 여러 Bluetooth 장치가 보일 때, 갤럭시 버즈(Galaxy Buds) 를 식별하는 가장 효과적인 방법은 다음과 같습니다:
bluetooth 관련 패키지 설치
sudo apt update
sudo apt install pulseaudio pulseaudio-module-bluetooth bluez pavucontrol -y
PulseAudio 블루투스 모듈이 활성화되었는지 확인
pactl list modules short | grep bluetooth
아무것도 안 나올 경우 → 수동으로 모듈 로드:
pactl load-module module-bluetooth-discover
이 명령은 PulseAudio에서 블루투스 장치를 Sink(출력) 으로 인식하게 해줍니다.
PulseAudio가 실행 중인지 확인
pulseaudio --check || pulseaudio --start
bluetoothctl 명령어로 장치 탐색
bluetoothctl
명령어 입력:
agent on
default-agent
power on
scan on
📌 이 상태에서 갤럭시 버즈를 페어링 모드로 진입시키세요.
→ 케이스를 열고 이어버드를 귀에 착용 후 길게 누르면 됩니다 (버즈 모델마다 다름)
다음 단계: 갤럭시 버즈 연결하기
bluetoothctl에서 아래와 같이 진행하세요:
pair 84:5F:04:81:26:3D
trust 84:5F:04:81:26:3D
connect 84:5F:04:81:26:3D
연결 후 오디오 출력 설정
pactl list short sinks
A2DP 출력이 bluez_sink.84_5F_04_81_26_3D... 형태로 보이면:
pactl set-default-sink bluez_sink.84_5F_04_81_26_3D.a2dp_sink
테스트 사운드:
aplay /usr/share/sounds/alsa/Front_Center.wav
Card #1
Name: bluez_card.84_5F_04_81_26_3D
Driver: module-bluez5-device.c
Owner Module: 23
Properties:
device.description = "Galaxy Buds2 (263D)"
device.string = "84:5F:04:81:26:3D"
device.api = "bluez"
device.class = "sound"
device.bus = "bluetooth"
device.form_factor = "headset"
bluez.path = "/org/bluez/hci0/dev_84_5F_04_81_26_3D"
bluez.class = "0x240404"
bluez.alias = "Galaxy Buds2 (263D)"
device.icon_name = "audio-headset-bluetooth"
device.intended_roles = "phone"
bluetooth.codec = "sbc"
bluetooth.battery = "94%"
Profiles:
a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 40, available: yes)
handsfree_head_unit: Handsfree Head Unit (HFP) (sinks: 1, sources: 1, priority: 30, available: yes)
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
Active Profile: a2dp_sink
Ports:
headset-output: Headset (type: Headset, priority: 0, latency offset: 0 usec, availability unknown)
Part of profile(s): a2dp_sink, handsfree_head_unit
headset-input: Headset (type: Headset, priority: 0, latency offset: 0 usec, availability unknown)
Part of profile(s): handsfree_head_unit
일반적으로 "Bluetooth 이어폰(예: 갤럭시 버즈)"에서는 고음질 출력(A2DP) 와 마이크 입력(HSP/HFP) 를 동시에 사용할 수 없습니다.
🔍 왜 그런가요?
Bluetooth 오디오는 다음 두 가지 프로파일 중 하나만 동시에 활성화할 수 있습니다:
프로파일기능음질마이크
A2DP (Advanced Audio Distribution Profile) | 고음질 음악 재생 | 🎵 고음질 (44.1~48kHz, 스테레오) | ❌ 없음 |
HSP/HFP (Headset/Hands-Free Profile) | 통화/음성 인식 | 📞 저음질 (8kHz, 모노) | ✅ 가능 |
- 갤럭시 버즈는 A2DP 또는 HSP 중 하나의 프로파일만 선택적으로 동작
- 즉:
- 음악 감상 중에는 마이크 비활성화 (A2DP)
- 마이크 사용 중에는 오디오 음질 저하 (HSP)
728x90