Как подключить airpods к убунту
Сопряжение Apple Airpods в качестве гарнитуры
С Ubuntu 16.04 я пытался подключить Airpods от Apple в качестве гарнитуры. Они подходят как наушники. Они отлично работают как наушники, но я бы хотел, чтобы был доступен микрофон
2 ответа
Мне помогла инструкция ниже.
Наконец-то мой микрофон работал с 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.
Моя системная спецификация:
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.
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:
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
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:
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)
At this point you should have a working audio system!
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)
Reboot your computer and pray to the old and the new gods.
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»)
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).
Исправляем тихие AirPods в Ubuntu 18.04
Alexander Aseev
С вами снова рубрика «Исправляем проблемы» 🙂
Я догадался, что проблема в том, что у эйрподсов нет физического регулятора громкости, и они программно запоминают тот уровень громкости, который на них был выставлен при последнем подключении к макбуку или айфону.
Но все мои попытки подключить наушники к айфону/макбуку и выкрутить громкость на максимум, а потом переподключить их к компьютеру на Ubuntu не увенчались успехом. Громкость все так же оставалась слишком тихой/нормальной, но могла рандомно поменяться после убирания наушников в кейс.
В итоге я перепробовал все возможные способы решения проблемы, описанные на StackOverflow и Ubuntuforums, например, через dbus-send.
Но все не помогало.
Помогло только банальное отключение avrcp в настройках запуска сервиса bluetooth:
Подменяем команду запуска с ExecStart=/usr/lib/bluetooth/bluetoothd на
Теперь перечитываем конфиги сервисов и перезапускаем сам сервис bluetooth:
UPD: обнаружился существенный минус: если наушники разрядятся, то они проиграют звук разрядки со всей громкостью, и это очень пугает 🙂
Sign up for more like this.
Как заказать Oculus Rift + Touch из США
Установка macOS Sierra на Asus z170-p и i7-6700k
Этот пост в очередной раз посвящен некоторым проблемам, с которыми мне приходится сталкиваться во время работы, и их решению. Задача: собрать и настроить билд-машины, для сборки проектов под iOS, Android, WebGL. Проблема: под iOS собирать билды можно только из macOS, так как обязательно наличие XCode. Процесс поиска решений: вместо покупки
Установка приложений из любых источников в macOS Sierra
Соединение Apple Airpods как гарнитура
С Ubuntu 16.04 я пытался соединиться Apple airpods как гарнитура. Они подходят как наушники. Они хорошо работают как наушники, но я хотел бы, чтобы микрофон был доступен
4 ответа
Nanampy ahy ny torolàlana etsy ambany.
Я отчаянно искал на веб-сайтах, но наконец нашел это сообщение в блоге, которое было действительно полезно для знакомства с дополнительным стеком Bluetooth. Вот решение, которое я изменил и добавил к нему согласно своему опыту:
Установите bluez стек Bluetooth (например, полный набор драйверов Bluetooth, который позволяет ОС Linux прямой доступ к Bluetooth):
sudo apt-get install bluez *
Необязательно: установите диспетчер Bluetooth, Blueman:
sudo apt-get install blueman
Загрузите драйвер USB Bluetooth (ключ Bluetooth):
Перезапустите служба bluetooth :
sudo systemctl restart bluetooth
Добавить настройку режима контроллера как двойной конфигурация Bluetooth /etc/bluetooth/main.conf изменить этот режим на bredr или le на случай, если у вас возникли проблемы с вашими AirPods:
Теперь попробуйте выполнить сопряжение ваших AirPods!
Источник проблемы что драйвер Bluetooth в Ubuntu не поддерживает драйвер AirPods.
Спецификация моей системы :
ОБНОВЛЕНИЕ :
Наконец-то мой микрофон работал с Ubuntu 18.04 и Airpods Pro. Похоже, это не только Airpods, но и Galaxy Buds и еще несколько вариантов bluetooth. Нам нужен HSP (низкий выход на динамик, но с включенным микрофоном), а не A2DP.
Пожалуйста, обратитесь к этой очень хорошей записи: https://askubuntu.com/a/1236379/692059
Во-первых, несколько слов из контекста того, что происходит. Pulseaudio не имеет полной / идеальной поддержки HFP / HSP (стандарты bluetooth для гарнитуры и наушников). Два варианта:
Это руководство будет следуйте первому варианту и интегрируйте его со своим стеком pulseaudio и bluetooth.
Теперь давайте начнем с «правильного»:
Отредактируйте /etc/pulse/default.pa и найдите строку load-module module-bluetooth-discover и измените его на load-module module-bluetooth-discover headset = ofono (pro-tip используйте команду sudoedit /etc/pulse/default.pa для редактирования файлов system)
Отредактируйте файл /etc/dbus-1/system.d/ofono.conf и добавьте этот xml:
Перезагрузите компьютер и молитесь старым и новым богам.
ТЕСТОВЫЙ ШАГ. ОБХОДИТЕ, ЕСЛИ ВЫ ЖИВЕТЕ НА ГРАНИ НЕИЗВЕСТНОГО В КАЖДОЙ МОМЕНТ. Запустите этот сценарий, чтобы проверить, находитесь ли вы на правильном пути:
Вы должны увидеть что-то в этом месте:
Надеюсь, вам понравились все эти сценарии и взлом на вашей машине! Если что-то пойдет не так, не забудьте отменить кое-что, чтобы ваш компьютер не стал раздутым и не заполнился случайными скриптами от людей в Интернете (особенно от меня).
Setting up Airpods Pro on Ubuntu 20.04
If you have apple airpods or airpods pro, and sometimes want to use it with your Ubuntu machines, follow this guide! If you try to pair airpods without doing any of these steps, most likely the pairing process will never complete.
This is a compilation of ideas from few askubuntu posts. 1 2
Note: You should use HSP/HFP profile only when you need to use the airpods as microphone for example to make a zoom or google meet call. The sound quality in this mode can be quite terrible.
You should be able to pair your airpods now and use it as headphones!
Enabling Airpods as Microphone
Install ofono using: sudo apt install ofono
Configure pulseaudio to use ofono:
VERY IMPORTANT: To grant the permission, add the following code snippets to /etc/dbus-1/system.d/ofono.conf (before ):
In order to make ofono work, you have to provide a modem to it! You can install a modem emulator called phonesim (implemented by ofono ) to make it work:
Configure phonesim by adding the following lines to /etc/ofono/phonesim.conf :
Now, restart ofono service as:
Now you will need to define and enable few services to start the ofono-phonesim as service.
After ofono-phonesim runs, you’ll need to also enable and put the phonesim modem online.
You will first need to use this githup repo:
As pointed in comments below, you might need a particular git commit for it to work the way it worked for me. The particular commit that I used the commit b3682c6bab99cbe301fa9bf4a2416c3f730d8bfd from the repo.
Now you can enable and make phonesim modem online by creating another systemd unit file that depends on the above ofono-phonesim systemd unit. Put the following contents in /etc/systemd/system/phonesim-enable-modem.service :
Then run the following commands to run both daemons:
Check if the service is running with
Now you should be able to switch to HSP/HFP profile for airpods and use it as an input device / microphones.