Форум русскоязычного сообщества Ubuntu
Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
- Форум русскоязычного сообщества Ubuntu »
- Поддержка »
- Оборудование »
- Периферийные устройства »
- Airpods + Ubuntu как подружить?
Автор Тема: Airpods + Ubuntu как подружить? (Прочитано 15414 раз)
0 Пользователей и 1 Гость просматривают эту тему.
- Форум русскоязычного сообщества Ubuntu »
- Поддержка »
- Оборудование »
- Периферийные устройства »
- Airpods + Ubuntu как подружить?
Страница сгенерирована за 0.059 секунд. Запросов: 25.
© 2012 Ubuntu-ru — Русскоязычное сообщество Ubuntu Linux.
© 2012 Canonical Ltd. Ubuntu и Canonical являются зарегистрированными торговыми знаками Canonical Ltd.
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
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.
To enable pairing of airpods, you will need to update the ControllerMode to bredr from the default value of dual . This can be done by editing the file /etc/bluetooth/main.conf . Then restart the Bluetooth service using sudo /etc/init.d/bluetooth restart command.
You should be able to pair your airpods now and use it as headphones!
Enabling Airpods as Microphone
In order to have airpods work as microphones, you will need to enable HSP/HFP profile. However, Pulseaudio by default only supports HSP. In order to make HSP/HFP work, you have to enable HFP on pulseaudio which needs ofono . Here are steps to enable HFP on pulseaudio using ofono on Ubuntu 20.04.
Install ofono using: sudo apt install ofono
Configure pulseaudio to use ofono:
Goto /etc/pulse/default.pa , find the line load-module module-bluetooth-discover and change it to load-module module-bluetooth-discover headset=ofono .
Add the user pulse to group bluetooth to grant the permission: sudo usermod -aG bluetooth pulse
VERY IMPORTANT: To grant the permission, add the following code snippets to /etc/dbus-1/system.d/ofono.conf (before </busconfig> ):
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:
How to pair+setup+connect airpod pro on ubuntu 20.04
I am using Ubuntu 20.04 and i own a pair of Airpod pro’s.
Ubuntu detects the device but fails to pair/setup/connect. I know this because when i click it, it has a spinning logo like its attempting to connect and then it just returns back to the default «Not Set Up».
I have followed advice from here setting the ControllerMode, i have tried both «dual» and «le» without any success.
как подключить airpods к linux
Наконец-то мой микрофон работал с 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.
Моя системная спецификация:
Соединение 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:
Перезагрузите компьютер и молитесь старым и новым богам.
ТЕСТОВЫЙ ШАГ. ОБХОДИТЕ, ЕСЛИ ВЫ ЖИВЕТЕ НА ГРАНИ НЕИЗВЕСТНОГО В КАЖДОЙ МОМЕНТ. Запустите этот сценарий, чтобы проверить, находитесь ли вы на правильном пути:
Вы должны увидеть что-то в этом месте:
Надеюсь, вам понравились все эти сценарии и взлом на вашей машине! Если что-то пойдет не так, не забудьте отменить кое-что, чтобы ваш компьютер не стал раздутым и не заполнился случайными скриптами от людей в Интернете (особенно от меня).
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
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:
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)
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 или AirPods Pro с Windows 10
Настроить AirPods для гаджетов под управлением iOS очень просто, однако знаете ли вы, что настроить их под Windows 10 не намного сложнее.
Безусловно, соединить AirPods или AirPods Pro с ПК под Windows 10 может быть не так просто, как с устройством на iOS, но немного сложнее. Вы просто подключаете наушники через Bluetooth — простой и быстрый процесс в Windows 10.
Однако обратите внимание, что AirPods и AirPod Pro, как продукт Apple, теряют некоторые функциональные возможности в Windows. Они хорошо работают для прослушивания аудио, но не соответствуют качеству микрофона, которое вы получаете на iOS или macOS. Поэтому не рекомендуется применять их как основную гарнитуру Windows.
Как связать AirPods или AirPods Pro с Windows 10
Во-первых, убедитесь, что ваши AirPods полностью заряжены, находятся в чехле, и крышка закрыта. А ваш ПК с Windows 10 поддерживает Bluetooth-устройства. (Подавляющее большинство современных ноутбуков имеют встроенный Bluetooth, как и предварительно изготовленные настольные ПК от таких производителей, как Dell и HP.).
Ваши AirPods должны немедленно стать вашим прослушивающим устройством по умолчанию. Когда вы положите их обратно в ваш кейс, Windows 10 автоматически вернется к последнему аудиоустройству, которое вы использовали.
Как переподключить или отключить AirPods от вашего ПК
Вы также можете использовать эти же шаги, чтобы отключить AirPod от вашего ПК, если вы хотите использовать их с iPhone, iPad или Mac, с которыми вы ранее их связывали. Просто имейте в виду, что теперь вам нужно вручную подключать свои AirPods через меню Bluetooth на этих устройствах, пока ваши AirPods все еще сопряжены с вашим ПК с Windows.
Как отключить AirPod от вашего ПК с Windows 10
Постоянное отключение ваших AirPods включает в себя последовательность шагов, аналогичную повторному их подключению, но с одним отличием.
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.