This repository is based on the following resources:
- Ask Ubuntu: Failed to change profile to headset_head_unit
- Ask Ubuntu: How to install ofono-phonesim on Ubuntu 20.04
- Ofono Git Reposotry @ kernel.org
- Related Bug Report @ bugs.launchpad.net
(!) This is currently NOT working as expected!
- Install ofono:
sudo apt install ofono
- Edit
/etc/pulse/default.pa
Replaceload-module module-bluetooth-discover
Withload-module module-bluetooth-discover headset=ofono
- Run
sudo usermod -aG bluetooth pulse
- Edit
/etc/dbus-1/system.d/ofono.conf
Insert the following before</busconfig>
<policy user="pulse"> <allow send_destination="org.ofono"/> </policy>
- Install
ofono-phonesim
:sudo add-apt-repository ppa:smoser/bluetooth sudo apt-get install ofono-phonesim
- Edit
/etc/ofono/phonesim.conf
Insert:[phonesim] Driver=phonesim Address=127.0.0.1 Port=12345
- Restart ofono:
sudo systemctl restart ofono.service
- Clone this repository:
git clone https://github.com/foxylion/ubuntu-bluetooth-hsp-hfp.git /opt/ubuntu-bluetooth-hsp-hfp
- Run
/opt/ubuntu-bluetooth-hsp-hfp/startup.sh
after OS start