[1] MLD-5.x / Systems / x86 Systeme (PC) / [MLD-5.5 testing] Bluetooth Audio + Sony LDAC, aptX, aptX HD, AAC codecs
 

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile








Hi,

I was interested to use my MLD system as a bluetooth speaker for my phone or transmit audio from my MLD system to bluetooth devices.
I have succeeded in doing that by installing Blueman, it also has other features like using your phone as a bluetooth modem for your pc, creating bluetooth networks, sending/receiving files ... etc

Then while searching on Github i found the following repo

https://github.com/EHfive/pulseaudio-modules-bt

It allows you to add  LDAC, aptX, aptX HD, AAC codecs support to pulseaudio bluetooth modules.
I compiled/installed it and it works great  :)

I have added screenshots to show the difference before/after installing it.

Best Regards.
« Last Edit: August 01, 2022, 20:53:53 by gr4vity »

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile


Note: I installed Blueman v2.3 because newer versions depends on Python3.8 which isn't installed on my MLD system.
« Last Edit: August 01, 2022, 20:37:26 by gr4vity »

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20528
    • View Profile
    • ClausMuus.de
Interessant. Ich hatte vor ner weile mal versucht den MLD Ton über's Netzwerk an andere Systeme zu schicken. Allerdings ist das nur mit Alsa doch recht kompliziert.
Wenn sich mit dem Blueman ein MLD System als Bluetooth Lautsprecher nutzen lässt, wäre das durchaus interessant um Youtube Videos am Notebook anzuschauen und dabei nen vernünftigen Sound zu haben.
Nur leider kann der Blueman wohl nicht ständig im Hintergrund laufen, da die MLD kein Pulsaudio verwendet, sondern nur das pure Alsa, und da ist das Mischen mehrerer Quellen meist nicht möglich.
« Last Edit: August 01, 2022, 21:12:27 by clausmuus »
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 6.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 22TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
Hello Claus,
I can't use MLD without pulseaudio because it has many advantages over Alsa.
One of them is i can watch 2 channels simultaneously with my dual tuner card and sound is working for both channels.

This topic has added another adavange for Pulseaudio that you can send/receive sound via bluetooth.

I remember that you decided to release Pulseaudio for MLD after i posted ICQ sound problem a while ago.
However, i don't know why you decided to remove it, is there some specific reason?

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
I forgot to mention that in the above screenshots i'm using MLD as a bluetooth speaker for RPI4

You can also do the opposite, send MLD sound to bluetooth headset/speaker  :)
« Last Edit: August 02, 2022, 23:33:03 by gr4vity »

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20528
    • View Profile
    • ClausMuus.de
Hi,
we never decide to remove pulsaudio. But we also never include it completely. It's only that one of our developers create a pulsaudio package, but this was never completely finished.
Since MLD is mainly a media center where every time only one full screen app in running, there is normally no need for pulsaudio.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 6.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 22TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
Hello Claus.

I understand that MLD is a media center for the majority of MLD users but not for me.
I don't spend much time using Ubuntu therefore what MLD users normally do on their Linux system i do on MLD.
That's why i always do more than one task at a time like watching tv, browsing the internet and chatting on Whatsapp at the same time  :)

Anyway, you can use MLD as a bluetooth speaker for your Notebook without installing Blueman.
Blueman allows you to pair/connect your MLD from your Notebook, without it you have to pair/connect your Notebook from MLD by using bluetoothctl then you can switch sound in pavucontrol like in screenshot.

Best Regards.


« Last Edit: August 02, 2022, 23:32:13 by gr4vity »

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
Hi,
In case someone is interested in this,
Bluetooth tethering/reverse bluetooth tethering is working  :)
1- Bluetooth tethering (sharing your smart phone internet with MLD via bluetooth)
- Pair your smart phone with MLD
- Start Bluetooth tethering from your phone settings

On MLD run Blueman then click on Network Access Point.



Code: [Select]
MLD daemon.info bluetoothd[1448]: bnep%d connected
MLD daemon.info avahi-daemon[1402]: Joining mDNS multicast group on interface bnep0.IPv6 with address fe80::20c:76ff:fe71:99e0.
MLD daemon.info avahi-daemon[1402]: New relevant interface bnep0.IPv6 for mDNS.
MLD daemon.info avahi-daemon[1402]: Registering new address record for fe80::20c:76ff:fe71:99e0 on bnep0.*.
MLD daemon.info avahi-daemon[1402]: Joining mDNS multicast group on interface bnep0.IPv4 with address 192.168.44.108.
MLD daemon.info avahi-daemon[1402]: New relevant interface bnep0.IPv4 for mDNS.
MLD daemon.info avahi-daemon[1402]: Registering new address record for 192.168.44.108 on bnep0.IPv4.
MLD daemon.info dnsmasq[20457]: reading /etc/resolv.conf
MLD daemon.info dnsmasq[20457]: using nameserver 192.168.44.1#53

2- Reverse bluetooth tethering (sharing MLD internet with your smart phone via bluetooth)
- Go to paired devices menu on your smart phone
- Click on MLD settings/services then start internet sharing

Code: [Select]
MLD daemon.info bluetoothd[1448]: bnep: bridge pan1: interface bnep0 added
MLD user.info kernel: [ 9012.666383] pan1: port 1(bnep0) entered blocking state
MLD user.info kernel: [ 9012.666390] pan1: port 1(bnep0) entered disabled state
MLD user.info kernel: [ 9012.666463] device bnep0 entered promiscuous mode
MLD user.info kernel: [ 9012.666650] pan1: port 1(bnep0) entered blocking state
MLD user.info kernel: [ 9012.666653] pan1: port 1(bnep0) entered forwarding state
MLD daemon.info avahi-daemon[1402]: Joining mDNS multicast group on interface bnep0.IPv6 with address fe80::20c:76ff:fe71:99e0.
MLD daemon.info avahi-daemon[1402]: New relevant interface bnep0.IPv6 for mDNS.
MLD daemon.info avahi-daemon[1402]: Registering new address record for fe80::20c:76ff:fe71:99e0 on bnep0.*.

[1] MLD-5.x / Systems / x86 Systeme (PC) / [MLD-5.5 testing] Bluetooth Audio + Sony LDAC, aptX, aptX HD, AAC codecs
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.