Giter Site home page Giter Site logo

Comments (32)

EHfive avatar EHfive commented on August 27, 2024 10

PPA source here
https://launchpad.net/~eh5/+archive/ubuntu/pulseaudio-a2dp

# Ubuntu 18.04, 18.10
sudo add-apt-repository ppa:eh5/pulseaudio-a2dp
sudo apt-get update
sudo apt-get install libavcodec-dev libldac pulseaudio-module-bluetooth

from pulseaudio-modules-bt.

orrpan avatar orrpan commented on August 27, 2024 2
Linux hem 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux

pi@hem:~/build/pulseaudio-modules-bt/build$ pactl list sinks | grep -e bluez -e a2dp_codec
	Name: bluez_sink.40_EF_4C_84_21_83.a2dp_sink
	Driver: module-bluez5-device.c
	Monitor Source: bluez_sink.40_EF_4C_84_21_83.a2dp_sink.monitor
		bluetooth.a2dp_codec = "aptX"
		device.api = "bluez"
		bluez.path = "/org/bluez/hci0/dev_40_EF_4C_84_21_83"
		bluez.class = "0x240414"
		bluez.alias = "Stanmore Bluetooth"
	Name: bluez_sink.04_5D_4B_66_95_C2.a2dp_sink
	Driver: module-bluez5-device.c
	Monitor Source: bluez_sink.04_5D_4B_66_95_C2.a2dp_sink.monitor
		bluetooth.a2dp_codec = "LDAC"
		device.api = "bluez"
		bluez.path = "/org/bluez/hci0/dev_04_5D_4B_66_95_C2"
		bluez.class = "0x240404"
		bluez.alias = "h.ear (MDR-100ABN)"

Success!

from pulseaudio-modules-bt.

elvenfighter avatar elvenfighter commented on August 27, 2024 1

libldac is built & bundled with the package (see contents).*

As for aptX, the package probably should depend on ffmpeg. But since I have written the script back in the times, when there was no aptX support in this project, it is not reflected in the script. Since then, I have switched to using the PPA from above: https://launchpad.net/~eh5/+archive/ubuntu/pulseaudio-a2dp

However, mainstream (PPA) package does not bundle libldac: it depends on it (this is slight difference).

from pulseaudio-modules-bt.

joffeoja avatar joffeoja commented on August 27, 2024 1

@EHfive Would it be possible to offer packages for Disco and Eoan at the Ubuntu PPA? Much appreciated work here

from pulseaudio-modules-bt.

adisbladis avatar adisbladis commented on August 27, 2024

I didn't want to create a separate issue, I just wanted to mention there is a NixOS package:
NixOS/nixpkgs#46505

from pulseaudio-modules-bt.

evilaliv3 avatar evilaliv3 commented on August 27, 2024

Do you know if someone has created a package for Debian Stretch?

from pulseaudio-modules-bt.

hufon avatar hufon commented on August 27, 2024

I'm trying to compile on stretch on my raspberry pi... but it seems complicated due to versions

from pulseaudio-modules-bt.

jgoclawski avatar jgoclawski commented on August 27, 2024

@EHfive thanks a lot for your work and especially for the PPA! I've just confirmed it works on Ubuntu 18.04. It changes PulseAudio from 11.1 to 12.2, but works :)

Sennheiser HD 4.50 BTNC with aptX @ Ubuntu 18.04:

Name: bluez_sink.00_16_94_27_C3_E6.a2dp_sink
Driver: module-bluez5-device.c
	bluetooth.a2dp_codec = "APTX"
	device.api = "bluez"
	bluez.path = "/org/bluez/hci0/dev_00_16_94_27_C3_E6"
	bluez.class = "0x240404"
	bluez.alias = "HD 4.50BTNC"

from pulseaudio-modules-bt.

mateff avatar mateff commented on August 27, 2024

@EHfive Thank you so much ! Installed it from PPA, worked like a charm.

Sennheiser Momentum Wireless / Ubuntu 18.04

AVDTP(s): Set config cmd: transaction 5 nsp 0x00
ACP SEID 3 - INT SEID 3
Media Transport
Media Codec - non-A2DP (aptX)
44.1kHz
Stereo
Delay Reporting
< AVDTP(s): Set config rsp: transaction 5 nsp 0x00

from pulseaudio-modules-bt.

plumlis avatar plumlis commented on August 27, 2024

It seems new version has AAC supported.
Any plan to upgrade PPA's packages version?

from pulseaudio-modules-bt.

EHfive avatar EHfive commented on August 27, 2024

It seems new version has AAC supported.
Any plan to upgrade PPA's packages version?

I didn't update PPA's packages before because AAC is not such important comparing with aptX, LDAC.
But since you are requesting, I would update it.

Check my PPA next day.

from pulseaudio-modules-bt.

plumlis avatar plumlis commented on August 27, 2024

It seems new version has AAC supported.
Any plan to upgrade PPA's packages version?

I didn't update PPA's packages before because AAC is not such important comparing with aptX, LDAC.
But since you are requesting, I would update it.

Check my PPA next day.

So kind of you.
I have Pixel Buds which is support AAC.
I'll have a try after PPA upgrade.

from pulseaudio-modules-bt.

medetcan avatar medetcan commented on August 27, 2024

It works great. Thank you!

   name: <bluez_sink.70_26_05_BF_57_79.a2dp_sink>
driver: <module-bluez5-device.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY 
state: RUNNING
suspend cause: (none)
priority: 9050
volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
        balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 43,28 ms
max request: 2 KiB
max rewind: 0 KiB
monitor source: 10
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
             Stereo
used by: 1
linked by: 1
fixed latency: 36,61 ms
card: 4 <bluez_card.70_26_05_BF_57_79>
module: 31
properties:
	bluetooth.protocol = "a2dp_sink"
	bluetooth.a2dp_codec = "LDAC"
	device.description = "WH-1000XM2"
	device.string = "70:26:05:BF:57:79"
	device.api = "bluez"
	device.class = "sound"
	device.bus = "bluetooth"
	device.form_factor = "headset"
	bluez.path = "/org/bluez/hci0/dev_70_26_05_BF_57_79"
	bluez.class = "0x240404"
	bluez.alias = "WH-1000XM2"
	device.icon_name = "audio-headset-bluetooth"
	device.intended_roles = "phone"

from pulseaudio-modules-bt.

orrpan avatar orrpan commented on August 27, 2024

I'm trying to compile on stretch on my raspberry pi... but it seems complicated due to versions

I've successfully compile on stretch on rpi, but when I ran it pulseaudio crashes at connect (does not do this with original modules-bluetooth* ).
Steps (from memory maybe forget somethings) to compile, can do a more exact guide if I get it to work:

Pulseaudio 12.2 with bluez5
cmake (install not necessary, use the compiled bin)
libfdk-aac
x264 (since I wanted --enable-omx-rpi in ffmpeg)
ffmpeg
pulseaudio-modules-bt

from pulseaudio-modules-bt.

oxwivi avatar oxwivi commented on August 27, 2024

@elvenfighter, I'm trying to install this fork on my Debian unstable, do you recommend compiling a .deb package is better or just straight up make install taking into consideration future Debian updates that will probably interfere with make installd files?

If I use your script to make the package, can I just dpkg -i that or will there be anymore dependencies to resolve that may or may not break it all?

from pulseaudio-modules-bt.

elvenfighter avatar elvenfighter commented on August 27, 2024

@oxvivi

I was building on Ubuntu, and as you know it is basically Debian Unstable (i.e. Sid). So it should be ok in your case (provided version of pulseaudio is matching).

As for the way of installing, I prefer to keep my system well organized, that is why I prefer installing from packages (and not by make install). If you feel the same, I highly recommend install from package

from pulseaudio-modules-bt.

oxwivi avatar oxwivi commented on August 27, 2024

The package created using your script appears to have installed without complaint on my container, but what of the codecs? It doesn't seem to express dependencies on packages that provides aptX or ldac codecs. dpkg -S shows that I do have the relevant libraries installed, but I think your .deb should explicitly depend on it if it doesn't already (I'm not familiar with the processing of building packages, so forgive me if I'm calling you on something you already took care of).

from pulseaudio-modules-bt.

n4vm4n avatar n4vm4n commented on August 27, 2024

maybe forget somethings) to compile, ca

Any chance you can share a build guide please?

from pulseaudio-modules-bt.

w0k3 avatar w0k3 commented on August 27, 2024

Good job, building .deb package in Debian 10 Buster (pa v12.2) worked quite well. I've only used aptX though and I've changed package version of pulseaudio-module-bluetooth to 12.2-4+aptx manually.

from pulseaudio-modules-bt.

orrpan avatar orrpan commented on August 27, 2024

maybe forget somethings) to compile, ca

Any chance you can share a build guide please?

#55 have fun...

from pulseaudio-modules-bt.

kcajjones avatar kcajjones commented on August 27, 2024

Has anyone had any success getting this to work on a Raspberry Pi 3b(+) stretch?
I'd love to use my Pi as a bluetooth receiver for AptX/LDAC from my phone to my old (dumb) amp/receiver.

from pulseaudio-modules-bt.

w0k3 avatar w0k3 commented on August 27, 2024

I recommend using Buster, Stretch has quite old PA, v10.0.

from pulseaudio-modules-bt.

Linux-Fan avatar Linux-Fan commented on August 27, 2024

I join to request for 19.04 packaging.

from pulseaudio-modules-bt.

b8e5n avatar b8e5n commented on August 27, 2024

+1 for 19.04.
I am using the cosmic one, and it works perfectly (with a restart)
:)

from pulseaudio-modules-bt.

Russell-Jones avatar Russell-Jones commented on August 27, 2024

@kcajjones If you try to get it going on Debian Buster, and want to use pulseaudio, note that you'll need to remove bluealsa or it will prevent the a2dp profile from becoming available.

from pulseaudio-modules-bt.

tborowy avatar tborowy commented on August 27, 2024

@w0k3

Good job, building .deb package in Debian 10 Buster (pa v12.2) worked quite well. I've only used aptX though and I've changed package version of pulseaudio-module-bluetooth to 12.2-4+aptx manually.

Can you share a file for debian?

from pulseaudio-modules-bt.

w0k3 avatar w0k3 commented on August 27, 2024

@tborowy this is my current build, it works flawlessly (switches to aptX automatically whenever I turn my headphones on), but I wouldn't trust unknown sources, use with precaution. I am using version suffix so a new upstream update would replace this version, so you loose aptX.

pulseaudio-module-bluetooth_12.2-4+deb10u1+aptx_amd64.deb.zip

from pulseaudio-modules-bt.

NedkoHristov avatar NedkoHristov commented on August 27, 2024

HD 4.50

I have the same headphones, but still when I change the mic from integrated on my laptop to HD4.50BTNC sound profile switches from High Fidelity Playback (A2DP Sink) to Headset Head Unit (HSP/HFP).

from pulseaudio-modules-bt.

diegoe avatar diegoe commented on August 27, 2024

However, I wanted to share my script for re-building pulseaudio-module-bluetooth using binaries build form these sources and the original DEB shenanigans from (Ubuntu/Debian) repository.

Thanks for the script @elvenfighter! A small issue I found building this in Debian unstable: You might need to change the sed call that changes the Version: in debian/control to something like:

sed -e "s/^Version: \(.*\)$/Version: \1-9git+${TIMESTAMP}~${GIT_HASH}/" -i "${PKG_NAME}/DEBIAN/control"
(Note the simplification of the Version: selector)

Also note that in Debian unstable you'll have to build the pa submodule in its master version (this is also explained in this project's README).

And remember that if things explode you can just reinstall the original pulseaudio-modules-bluetooth .deb that should be in the same directory as your now modified version. Good luck!

from pulseaudio-modules-bt.

bhack avatar bhack commented on August 27, 2024

Can we add this script to the the repo with a PR?

from pulseaudio-modules-bt.

varishtsg avatar varishtsg commented on August 27, 2024

Is there any difference between pulseaudio-module-bluetooth and pulseaudio-module-bt

Instructions here suggest installing pulseaudio-module-bluetooth whereas on the main page suggest installing pulseaudio-module-bt.

Which one should be installed?

from pulseaudio-modules-bt.

voideater avatar voideater commented on August 27, 2024

Anyone who have made aptX work with Raspiban Stretch on a RPI 3B+ that can share a short how-to?

from pulseaudio-modules-bt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.