converting a Ubuntu Linux laptop into a Bluetooth "Receiver" ?

rwnano

Well-Known Member
Joined
Jul 21, 2022
Messages
1,014
Points
83
Location
Gurugram, Haryana, India
Paging @mbhangui
Sir how do I make my old Macbook Pro 2010 running Ubuntu Linux, a Bluetooth RECEIVER?
It has

And toggle between my Macbook Pro Bluetooth module being a
1. Bluetooth TRANSMITTER connected to my Bluetooth wireless SPEAKER
&
2. a Bluetooth Receiver?

I got this:

Pulseaudio can turn your computer into Bluetooth speakers for your phone​

Tips and Tricks

I don't know how many of you knew this, but I certainly didn't and it can come in quite handy during quarantine. It all seems to be automatic on Arch, so I imagine it is on most distros.

If you add the pulseaudio-bluetooth package, then open /etc/pulse/system.pa and add the following two lines:

load-module module-bluetooth-policy
load-module module-bluetooth-discover
then all you have to do is pair your phone to your computer. Then, when you play audio from your phone, it automatically plays on your computer as long as they're connected via bluetooth. It also seems to route call audio through your computer.
 
I was able to successfully complete the flowcharted instructions till here:

<span>sudo apt update<br>sudo apt install pulseaudio-module-bluetooth<br></span>
Use code with caution.

Step 2: Enable the Bluetooth A2DP Sink profile
By default, your Ubuntu computer is set up as an audio source, not a receiver (sink). You must edit the Bluetooth configuration to enable the A2DP sink profile.
  1. Open the Bluetooth configuration file using a text editor with sudo permissions.
    sh
    <span>sudo nano /etc/bluetooth/main.conf<br></span>
    Use code with caution.
  2. Find the [General] section and add or edit the Enable line to include Source and Sink profiles.
    <span>[General]<br>Enable=Source,Sink<br></span>
    Note: The Enable setting can sometimes be confusing. Including Source,Sink ensures that both capabilities are active.
  3. Save the file and exit the editor. In Nano, press Ctrl + X, then Y, then Enter.

Step 3: Restart the Bluetooth and PulseAudio services
For the changes to take effect, you must restart the Bluetooth and PulseAudio services.
  1. Restart the Bluetooth service:
    sh
    sudo systemctl restart bluetooth
    Use code with caution.
  2. Restart the PulseAudio service:
    sh
    pulseaudio -k pulseaudio --start

Now, given the fact that I have headlessly logged into / SSHed into my Macbook 2010 from my Thinkpad ...was wondering how to do this next?
Without - using the Macbook 2010 Ubuntu GUI...and doing "Pair" & "Unpair"
 
The setting & Dramatis Personae
1. Thinkpad T560 Ubuntu
2. Macbook 2010 Ubuntu
3. One Plus 10 Pro Android.

I did something amazing - I "discovered" my Thinkpad T560 Ubuntu from my One plus 10 Pro - and paired the One Plus 10 Pro with the Thinkpad T560
Procedure:
1. Turn on Bluetooth using the Ubuntu GUI in Thinkpad T560
2. Turn on Bluetooth in One Plus 10 Pro Android GUI
3. Search for discoverable devices
4. See Thinkpad T560 in the list of bluetooth devices discoverable in the One Plus 10 Pro
5. Connect-"Pair" to the Thinkpad T560 from the One Plus 10 Pro GUI
6. Go to the Thinkpad T560 Ubuntu GUI - Bluetooth Settings.
7. See the CODE NUMBER 457465236 something *** shown on BOTH the Thinkpad T560 Ubuntu GUI and One Plus 10 Pro GUI - ACCEPT - Successfully Paired

this was I was able to play YouTube Sound output from the YouTube app on my One Plus 10 Pro ANdroid, sucesfully on the Thinkpag T560 Ubuntu!!

In the words of the famous Borat! - "GREAT SUCCESS!"

Now - I need to make this same thing happen [what I did via GUI, manually clicking on PAIR in the GUI on the Thinkpad T560], headlessly via some script - such that I can stream music from my One Plus 10 Pro to my Macbook 2010 Ubuntu.
 
On linux install pulseaudio-module-bluetooth. Install pavucontrol and see if bluetooth appears in pavucontrol.

DISCLAIMER: Never used bluetooth in my life. So what I wrote above is without any practical experience. You can also look at this post
 
On linux install pulseaudio-module-bluetooth. Install pavucontrol and see if bluetooth appears in pavucontrol.

DISCLAIMER: Never used bluetooth in my life. So what I wrote above is without any practical experience. You can also look at this post
mbhangui sir - this is basically just figuring out - how to make any old Raspberry Pi / Debian device as a Blutooth receiver / base.
I'll try out various stuffs on Ubuntu and then revert in some time.
 
Purchase the NEW Audiolab 6000A MkII Integrated Amplifier at a special offer price.
Back
Top