- Сопряжение Apple Airpods в качестве гарнитуры
- 2 ответа
- Сопряжение Apple Airpods в качестве гарнитуры
- ОБНОВЛЕНИЕ :
- Question: Q: Has anyone successfully paired AirPods Pro with a Linux computer?
- Helpful answers
- Pairing Apple Airpods as Headset
- 4 Answers 4
- UPDATE:
- Install latest Pipewire (and disable pulseaudio)
- Modify pulseaudio with ofono and ofono-phonesim
- LAST STEP
- Thread: Getting Bluetooth Headphones to work (Airpods) 19.04
- Getting Bluetooth Headphones to work (Airpods) 19.04
Сопряжение Apple Airpods в качестве гарнитуры
С Ubuntu 16.04 я пытался подключить Airpods от Apple в качестве гарнитуры. Они подходят как наушники. Они отлично работают как наушники, но я бы хотел, чтобы был доступен микрофон
2 ответа
Мне помогла инструкция ниже.
- Задавать ControllerMode = bredr в /etc/bluetooth/main.conf
- sudo /etc/init.d/bluetooth restart
- Попробуйте соединиться снова.
Наконец-то мой микрофон работал с Ubuntu 18.04 и Airpods Pro. Похоже, это не только Airpods, но и Galaxy Buds и еще несколько вариантов bluetooth. Нам нужен HSP (низкий выход на динамик, но с микрофоном), а не A2DP.
Я отчаянно искал на сайтах, но, наконец, нашел этот пост, который был действительно полезен для ознакомления с дополнительным стеком Bluetooth. Вот решение, которое я изменил и добавил к нему согласно своему опыту:
Установите Bluetooth-стек bluez (например, полный набор драйверов Bluetooth, который позволяет ОС Linux иметь прямой доступ к Bluetooth):
sudo apt-get install bluez*
Дополнительно: установите менеджер Bluetooth, Blueman:
sudo apt-get install blueman
Загрузить драйвер USB Bluetooth (ключ Bluetooth):
Запустить снова bluetooth оказание услуг:
sudo systemctl restart bluetooth
Добавить настройку режима контроллера, чтобы быть dual Конфигурация Bluetooth /etc/bluetooth/main.conf изменить этот режим на bredr или же le Если у вас есть проблемы с вашими AirPods:
Теперь попробуйте соединить ваши AirPods!
Источник проблемы заключается в том, что драйвер Bluetooth в Ubuntu не распространяется на AirPods.
Моя системная спецификация:
- Ubuntu 18.04.2 LTS
- Мини Bluetooth 4.0 USB 2.0 CSR4.0 адаптер для ключа
Источник
Сопряжение Apple Airpods в качестве гарнитуры
С Ubuntu 16.04 я пытался подключить Airpods от Apple в качестве гарнитуры. Они подходят как наушники . Они отлично работают как наушники, но я бы хотел, чтобы был доступен микрофон
Мне помогла инструкция ниже.
- Установить ControllerMode = bredr или ControllerMode = dual отредактировать /etc/bluetooth/main.conf файл с помощью sudo nano /etc/bluetooth/main.conf команды (или другого текстового редактора по вашему выбору)
- sudo /etc/init.d/bluetooth restart
- Попробуйте соединиться снова.
Я отчаянно искал на сайтах, но, наконец, нашел этот пост, который был действительно полезен для ознакомления с дополнительным стеком Bluetooth. Вот решение, которое я изменил и добавил к нему согласно своему опыту:
Установите Bluetooth-стек bluez (например, полный набор драйверов Bluetooth, который позволяет ОС Linux иметь прямой доступ к Bluetooth):
sudo apt-get install bluez*
Дополнительно: установите менеджер Bluetooth, Blueman:
sudo apt-get install blueman
Загрузить драйвер USB Bluetooth (ключ Bluetooth):
Перезапустите bluetooth сервис:
sudo systemctl restart bluetooth
Добавьте настройку режима контроллера в dual конфигурацию Bluetooth, /etc/bluetooth/main.conf измените этот режим bredr или, le если у вас возникли проблемы с AirPods:
Теперь попробуйте соединить ваши AirPods!
Источник проблемы заключается в том, что драйвер Bluetooth в Ubuntu не распространяется на AirPods.
Моя системная спецификация :
- Ubuntu 18.04.2 LTS
- Мини Bluetooth 4.0 USB 2.0 CSR4.0 адаптер для ключа
ОБНОВЛЕНИЕ :
Возможно, вам придется выбрать либо dual или bredr для ControllerMode на шаге 5.
Источник
Question: Q: Has anyone successfully paired AirPods Pro with a Linux computer?
Trying to connect to my Ubuntu machine — I can see the pairing process start (comes up as AirPods Pro) but can’t succeed.
Is this possible?
Posted on Mar 1, 2020 9:46 AM
Helpful answers
AirPods and AirPods Pro are Bluetooth devices, and connect to various operating systems.
Given the permutations involved with Linux and Linux hardware and Bluetooth support, yes, you’re going to get to do some debugging here.
The first two hits in a DDG search for the obvious search string:
Mar 1, 2020 3:41 PM
There’s more to the conversation
Loading page content
Page content loaded
Just spins forever.
Mar 1, 2020 9:49 AM
Ask the Linux support community.
Mar 1, 2020 11:13 AM
Mar 1, 2020 3:33 PM
AirPods and AirPods Pro are Bluetooth devices, and connect to various operating systems.
Given the permutations involved with Linux and Linux hardware and Bluetooth support, yes, you’re going to get to do some debugging here.
The first two hits in a DDG search for the obvious search string:
Mar 1, 2020 3:41 PM
Almost no one uses linux as a desktop operating system.
You can install linux on a wide variety of hardware.
Who knows what bluetooth chipset you have or what driver you have.
If you want a valid answer and directions of what to do, you will need to find a linux user who has solved it.
You aren’t going to find any here, as Apple doesn’t support Linux.
Mar 1, 2020 4:22 PM
Question: Q: Has anyone successfully paired AirPods Pro with a Linux computer? More Less
Источник
Pairing Apple Airpods as Headset
With Ubuntu 16.04 I’ve been attempting to pair by Apple airpods as a headset. They come up as headphones. They work fine as headphones, but I would like the microphone to be available
4 Answers 4
I was helped by the instruction below.
- Set ControllerMode = bredr or ControllerMode = dual by editing /etc/bluetooth/main.conf file using sudo nano /etc/bluetooth/main.conf command (or another text editor of your choice)
- sudo /etc/init.d/bluetooth restart
- Try to pair again.
I was desperately searching on the websites, but I finally found this blog post which was really helpful to get familiar with a complementary Bluetooth stack. Here’s the solution which I have changed and added to it according to my experience:
Install bluez Bluetooth stack (like a full set of Bluetooth drivers which allows the Linux OS direct access to Bluetooth):
sudo apt-get install bluez*
Optional: install Bluetooth manager, Blueman:
sudo apt-get install blueman
Load USB Bluetooth driver (Bluetooth dongle):
Restart bluetooth service:
sudo systemctl restart bluetooth
Add controller mode setting to be dual Bluetooth configuration /etc/bluetooth/main.conf change this mode to bredr or le in case you have problem with your AirPods:
Now try to pair your AirPods!
The source of the issue is that Ubuntu’s Bluetooth driver doesn’t cover AirPods’ one.
My system specification:
- Ubuntu 18.04.2 LTS
- Mini Bluetooth 4.0 USB 2.0 CSR4.0 Dongle Adapter
UPDATE:
You might need to choose either dual or bredr for ControllerMode in step 5.
55de9c3-Ubuntu SMP Tue Jul 20 22:18:55 UTC x86_64 x86_64 x86_64 GNU/Linux
I finally had my microphone working with Ubuntu 18.04 and Airpods Pro. It seems it is not just Airpods, but Galaxy Buds and several other bluetooth variants. We need HSP (low speaker output but mic enabled) and not A2DP.
First, some words of context of what’s might be going on for latest Ubuntu 21.04. Pulseaudio doesn’t have complete/perfect support for HFP/HSP (the bluetooth standards for headset and headphones). Two options:
- pipewire (replacement of pulseaudio) (ref https://askubuntu.com/a/1339908/170833 ) (you will get 16k quality on the microphone)
- install ofono (a framework developed by Intel people) alongside your pulseaudio (original SO answer and article explaining similar thing ).
This guide will follow the both options, but don’t do both (or both of them halfways). CHOOSE YOUR OWN ADVENTURE NOW.
Install latest Pipewire (and disable pulseaudio)
- install PPA with this commands:
- Install pipewire!
- Disable pulseaudio
- Enable pipewire
- Check pipewire is integrated checking the output of this command
Modify pulseaudio with ofono and ofono-phonesim
First install some dependencies from a PPA:
Now, let’s start with «the right stuff»:
Go ahead and edit /etc/pulse/default.pa and find the line load-module module-bluetooth-discover and change it to load-module module-bluetooth-discover headset=ofono (pro-tip use command sudoedit /etc/pulse/default.pa to edit files of the system)
Edit the file /etc/dbus-1/system.d/ofono.conf and add this xml:
(not at the end, as that would produce a wrongly formatted XML)
- Edit the file /etc/ofono/phonesim.conf and put at the end of it:
- Checkout the scripts that help ofono start it’s simulated modem:
Reboot your computer and pray to the old and the new gods.
Create a file called $HOME/prepare_for_meeting.sh with this content:
- TEST STEP. BYPASS IF YOU LIVE ON THE EDGE OF THE UNKNOWN ON EVERY MOMENT. Run this script to test if your are on the right path:
You should see something along this:
LAST STEP
Either if you followed the Pipewire guide, or the Ofono one, now you should have an audio system that can use «Headset Head Unit» protocol. Let’s click it! (and yes, now is a good moment to pray to «Mary, Undoer of Knots»)
Enter Settings -> Sound -> Output, select «Headset Head Unit (HSP/HFP)» and what you will see that on «Input» also changes.
Hopefully you enjoyed all this scripting and hacking in your machine! If things go sideways, remember to undo stuff so that your computer doesn’t become bloated and full of random scripts from people on the internet (specially from me).
Источник
Thread: Getting Bluetooth Headphones to work (Airpods) 19.04
Thread Tools
Display
Getting Bluetooth Headphones to work (Airpods) 19.04
I can’t get my airpods to connect to my 13in 2015 MacBook pro running Ubuntu 19.04, but they work on my 2012 MBP using Ubuntu 19.04.
It says device not set up and will load till it crashes if I try and click the device. I have tried every option I’ve seen online, none have worked.
lspci -nnk | grep -iA2 net; lsusb; hciconfig -a; dmesg | egrep -i ‘blue|firm’
03:00.0 Net work controller [0280]: Broadcom Inc. and subsidiaries BCM43602 802.11ac Wireless LAN SoC [14e4:43ba] (rev 01)
Subsystem: Apple Inc. BCM43602 802.11ac Wireless LAN SoC [106b:0133]
Kernel driver in use: brcmfmac
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 05ac:0273 Apple, Inc. Internal Keyboard/Trackpad (ISO)
Bus 001 Device 002: ID 05ac:8290 Apple, Inc. Bluetooth Host Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
hci0: Type: Primary Bus: USB
BD Address: 98:01:A7:8E:46:AC ACL MTU: 1021:8 SCO MTU: 64:1
DOWN
RX bytes:2554 acl:0 sco:0 events:134 errors:0
TX bytes:5789 acl:0 sco:0 commands:127 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Источник