Forum › Forums › New users › New Users and General Questions › Bluetooth D-bus error
- This topic has 7 replies, 6 voices, and was last updated Dec 23-7:43 pm by olsztyn.
-
AuthorPosts
-
November 27, 2020 at 11:04 am #45929Member
bb73
Hi
Re- Wireless headphones,
Does anybody know why Im getting failed to connect? I have usb 4 stick and Bluez installed, what am I missing please? it worked with debian and ubuntu. Maybe I need another file from somewhere. any suggestions would be fab 🙂November 27, 2020 at 3:50 pm #45946Forum Admin
rokytnji
::Depends. Not enough info yet from you yet
1. Running live or installed. A inxi -Fxz report would be nice. Also rail end of dmesg report when trying to use the bluetooth speaker.
2. Link to unknown bluetooth speaker. No mention of computer being used.
3. If a modern bluetooth speaker. I needed pulse audio before my skull candy bluetooth speaker would play.Howdy and Welcome.
Sometimes I drive a crooked road to get my mind straight.
Not all who Wander are Lost.
I'm not outa place. I'm from outer space.Linux Registered User # 475019
How to Search for AntiX solutions to your problemsNovember 27, 2020 at 4:43 pm #45952Moderator
Brian Masinick
::Depends. Not enough info yet from you yet
1. Running live or installed. A inxi -Fxz report would be nice. Also the “tail end” of dmesg report when trying to use the bluetooth speaker.
2. Link to unknown bluetooth speaker. No mention of computer being used.
3. If a modern bluetooth speaker. I needed pulse audio before my skull candy bluetooth speaker would play.Howdy and Welcome.
Please type in the following –
sudo inxi -FxzWhen you get the results, please copy them and then paste them into a reply to this topic.
As Roki says, this will assist us in understanding your system so we are able to help you.Thanks!
- This reply was modified 2 years, 5 months ago by Brian Masinick.
--
Brian MasinickNovember 27, 2020 at 4:58 pm #45954Member
Xecure
::To get bluez to talk to alsa (and vice-versa) you need a package named bluealsa that isn’t included in any Debian derivative I know (nor Debian official repos), because “everyone” now uses pulseaudio.
If you can compile it yourself, you can use it. https://github.com/Arkq/bluez-alsaThe alternative is installing pulseaudio with bluetooth module. That is the path I had to follow, the same as roky mentions.
Getting pulseaudio in your system:
1. Installing pulseaudio:
Open a terminal and execute
sudo apt update && sudo apt-get install pulseaudio pavucontrol pulseaudio-module-bluetooth2. Make pulseaudio launch on startup
Edit startup file
geany ~/.desktop-session/startup
Uncomment the line related to pulseaudio. It should look like this:# Uncomment if using pulseaudio (you need to install it) pulseaudio -D &Save and exit
3. Making volume-icon use pulseaudio (and manage volume and properties)
right-click the volume icon in your systray and click on Preferences.
Have External mixer execute pavucontrol. It originally says:
External mixer desktop-defaults-run -t alsamixer
Replace it with:
External mixer pavucontrol4. Reboot your system.
From this moment on, pulseaudio will autlaunch on startup.5. Configure your Bluetooth headphone with pavucontrol.
Launch blueman as you have before (if you have it set to autolaunch even better).
Go to Bluetooth devices (your second image). Remove your headset (HD 4.50BTNC) from the list (right-click and Remove) because you are going to set it up again.
Get your bluetooth headset to search for devices/sync, hit the “Search” button on the Bluetooth Devices window. When it appears on the list, select it and click on “Trust” and then “Pair”. Finally, right-click on it and select “Audio sync”.
Open pavucontrol (right-click volume icon, then select “Open Mixer”). Go to the “Output Devices” tab and make sure pavucontrol can find your headset. Then try playing an audio file or a video and check that the application is outputing sound to the Bluetooth headset (you will be able to see this in the “Playback” tab in pavucontrol).6. The end
Let us know what path you followed and if it worked for you.
Regards.
- This reply was modified 2 years, 5 months ago by Xecure. Reason: Typos
antiX Live system enthusiast.
General Live Boot Parameters for antiX.November 28, 2020 at 3:13 am #45966Memberlgj100
::Hi,
This is what I had to do in order to get pairing to work:
PC PRE REQUISITES
Install bluetooth packages, including:
bluez
blueman
pulseaudio-module-bluetooth packageSTART NECESSARY SOFTWARE ON PC
(1) sudo /etc/init.d/bluetooth start (start bluetooth)
(2) open connman and turn on bluetooth
(3) pulseaudio –start (to start pulseaudio)
(4) open blueman under “Adapters” check that “Always visible” is checked.PAIRING
In blueman, pair/connect as necessary using “Setup” or “Setup New Device”Lars.
December 23, 2021 at 5:31 pm #73502Memberolsztyn
::To get bluez to talk to alsa (and vice-versa) you need a package named bluealsa
I have been trying to play with Bluealsa, having installed from the main repo, to make it work so I do not need pulseaudio. Although it appears to work, connecting to bluetooth headset, but still far from the end and I am rather confused:
– Connection appears to be accomplished, however sound still coming out of speakers. How to direct sound to bluetooth headset in absence of pulseaudio.
– Bluealsa started through terminal appears to keep the terminal window for the duration of bluealsa running – main dispatching loop. Do we need a (runit) service so it is transparent and showing in service list in the Control Center?Any advice will be appreciated…
- This reply was modified 1 year, 4 months ago by olsztyn.
Live antiX Boot Options (Previously posted by Xecure):
https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_ParametersDecember 23, 2021 at 7:37 pm #73514Member
Xecure
::I think you need to edit ~/.asoundrc in your home to add the bluealsa.
See the Configuration instructions in the bluez-alsa gitlab page.I didn’t test it myself, so I am not sure how it works.
About using it as a service, the config says to be launched as root, so probably creating a simple /etc/sv/bluealsa/run script with simple instructions to start dbus and bluetooth services, and then exec the bluealsa executable should be enough. But before we go to this we need to know that bluealsa works properly.
- This reply was modified 1 year, 4 months ago by Xecure. Reason: Changed wrong service instructions
antiX Live system enthusiast.
General Live Boot Parameters for antiX.December 23, 2021 at 7:43 pm #73516Memberolsztyn
::Thank you Xecure for this guidance…
Looks like a new challenge and quite a few pieces I missed to take care of…
Thanks and Regards.Live antiX Boot Options (Previously posted by Xecure):
https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters -
AuthorPosts
- You must be logged in to reply to this topic.