SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Recently I received as a gift a bluetooth speaker. My Slackware64-current desktop (Xfce) is pure ALSA and when I first tried to connect with my speaker trough blueman-manager I received a “protocol error”.
Searching for a solution I founded that there's a program called "bluez-alsa" that offers integration between BlueZ >= 5 and ALSA.
There’s already a SlackBuild for "bluez-alsa" buit since it was outdated I tweaked it in order to install the latest version of "bluez-alsa" and then I was able to connect with my speaker.
After some changes in my asound.conf I was able to have sound in my speaker although they're some problems:
When I’m in youtube the only way to switch to an other sound source is to close the tab since to stop the player is not enough (I’m using Firefox as my browser.)
Also I need to add the output line in my xfce4-mixer since now is missing and there’s no option to adjust the sound level.
I’m wondering if somebody else using "bluez-alsa" and can share more information.
Caveat emptor: this post is OT as my setting is not pure-alsa.
Last month I received as gifts from my sons an USB sound board and a bluetooth headset.
As soon as I connect one of these devices it appears in the pavucontrol GUI in both Setup and Output devices tabs, so I can do what I want easily, like mute or unmute one of them, set its volume specifically etc.
I have nothing in /etc/asound.conf (no redirection to pulse) but have this setting in /etc/pulse/default.pa:
EDIT. I almost forgot: I can do also many settings with a right click in the mixer applet of Mate Panel choosing Preferences. It has several tab: sound effects (set a sound alert and its volume), hardware (choose of the profile and test of the channels), input (choice of the device and input volume), output (setting of the volumes of the devices) applications (setting of the volume of the sound produced by each application).
Last edited by Didier Spaier; 01-08-2020 at 03:51 PM.
Reason: EDIT added.
Thanks for the suggestion. I already tried to add dmix in my asoundrc although without luck.
Quote:
Originally Posted by Didier Spaier
EDIT. I almost forgot: I can do also many settings with a right click in the mixer applet of Mate Panel choosing Preferences. It has several tab: sound effects (set a sound alert and its volume), hardware (choose of the profile and test of the channels), input (choice of the device and input volume), output (setting of the volumes of the devices) applications (setting of the volume of the sound produced by each application).
For the moment I made a small script to change from my headphones to the bluetooth speaker and vice versa since xfce audio mixer is missing the output.
Any way I'm very happy that I can have bluetooth audio without to use pulse
Thanks for the suggestion. I already tried to add dmix in my asoundrc although without luck.
The goal of these settings in default.pa is have pulse using the dmix alsa mixer so they only make sense if pulse is installed
Quote:
For the moment I made a small script to change from my headphones to the Bluetooth speaker and vice versa since xfce audio mixer is missing the output.
Any way I'm very happy that I can have Bluetooth audio without to use pulse
I just checked in XFCE 4.14. Same as in Mate 1.22: as soon as I switch on my Bluetooth headset the xfce4 mixer on the panel can handle it.
But feel free to make your life more complicated just to avoid installing pulse.
As an aside, I still didn't find in the many posts from pulse haters in this forum a rationale not to have it installed. I suspect that most just don't know how to properly set alsa + pulseaudio (+ optionally jack) for their use case. To learn it's worthwhile reading PulseAudio under the hood from Victor Gaydov.
Last edited by Didier Spaier; 01-10-2020 at 03:06 AM.
You need pulse audio for bluetooth audio to work in current.
"bluez-alsa" didn't work with any bluetooth headphone or headsets last time that i tried but maybe it works better now.
I had problems with my computer hanging all the time when i tried to use bluetooth audio without pulse audio.
@Didier :
I have pulse installed.
I find it overall complicated and hard to deal with.
I had lot of work to script the switch speakers/bt/jack. Nothing is simple with it and documentation is a pity.
You need pulse audio for bluetooth audio to work in current.
"bluez-alsa" didn't work with any bluetooth headphone or headsets last time that i tried but maybe it works better now.
I had problems with my computer hanging all the time when i tried to use bluetooth audio without pulse audio.
In my case bluealsa works with my speakers although there're some small glitches like the xfce audio mixer is missing the output line and I can have sound in Firefox in one tab at the time...
In order to load successfully bluealsa in my system (Slackware64-current) I made a script to start-stop bluealsa and restart rc.alsa at the same time instead an entry in rc.local (/usr/bin/bluealsa &) that was suggested by the SlackBuild.
With that way I can switch the sound between my bluetooth speaker and my headphones without a problem.
I believe that bluez-alsa is a project that needs more attention since after bluez dropped support for alsa one in order to have bluetooth audio in Slackare needs to install pulse audio.
in order to get any sound at all running raspian on a pi 4 i must
sudo apt purge pulseaudio.
just now i bought some bluetooth earbuds and can connect to them but no sound.
now i learn that pulseaudio supports bluetooth while alsa does not.
what to do?
in order to get any sound at all running raspian on a pi 4 i must
sudo apt purge pulseaudio.
just now i bought some bluetooth earbuds and can connect to them but no sound.
now i learn that pulseaudio supports bluetooth while alsa does not.
what to do?
I'd recommend getting help on a Raspian forum. This is the Slackware subforum and other distros might have things configured differently.
Distribution: Slackware 15.0 x64, Slackware Live 15.0 x64
Posts: 618
Rep:
Quote:
Originally Posted by Didier Spaier
The goal of these settings in default.pa is have pulse using the dmix alsa mixer so they only make sense if pulse is installed
I just checked in XFCE 4.14. Same as in Mate 1.22: as soon as I switch on my Bluetooth headset the xfce4 mixer on the panel can handle it.
But feel free to make your life more complicated just to avoid installing pulse.
As an aside, I still didn't find in the many posts from pulse haters in this forum a rationale not to have it installed. I suspect that most just don't know how to properly set alsa + pulseaudio (+ optionally jack) for their use case. To learn it's worthwhile reading PulseAudio under the hood from Victor Gaydov.
Since you're such the pompous one, and seem to pick-and-choose what you read and see, here it is *AGAIN*...I've posted (as have quite a few others) many times that ALSA sound is far superior to the abortion you love over everything else, also known as pulse audio. It sounds better, and has far better controls to adjust as I needed for my music and my speakers. Pulse has nothing to contribute that comes close nor does it sound as good. It does nothing but take over...like a bad disease that has no cure yet for it...about like that waste of air systemd.
There it is, once again. Maybe this time you'll see it, but I won't hold my breath.
Since you're such the pompous one, and seem to pick-and-choose what you read and see, here it is *AGAIN*...I've posted (as have quite a few others) many times that ALSA sound is far superior to the abortion you love over everything else, also known as pulse audio. It sounds better, and has far better controls to adjust as I needed for my music and my speakers. Pulse has nothing to contribute that comes close nor does it sound as good. It does nothing but take over...like a bad disease that has no cure yet for it...about like that waste of air systemd.
There it is, once again. Maybe this time you'll see it, but I won't hold my breath.
And I've asked many times (including PMs), here it is *AGAIN*... Please stop using terminology like "abortion" when referring to pulseaudio. We get it, you don't like it, but this is a horrible word to use in reference to a piece of software.
Pulse is not ideal in all situations, but it seems to be better than pure alsa for the vast majority of people. I have noticed no difference in sound quality with pulse vs alsa on my htpc (using a high end stereo, using everything from youtube, to stereo, to DTS for my audio sources) or my desktop (fairly basic speakers). What I have noticed is it is a lot easier to set up the audio on my systems (not that it was hard with alsa, but definitely more work). You may notice differences in sound and others may notice lags that make pulse less than ideal for you, but that doesn't mean that pulse is the worst software ever... just that it is not ideal for you.
Sorry but I can't let you day that : before pulse crap, juste had to have an look on docs, set, it worked for ages.
Now, everything might change if not break when you plug New device : the older stop working and do not even more when newer device is gone :-(
Sorry but I can't let you day that : before pulse crap, juste had to have an look on docs, set, it worked for ages.
Now, everything might change if not break when you plug New device : the older stop working and do not even more when newer device is gone :-(
After "pulse crap", I didn't even have to look at the docs. Just start up pavucontrol and ensure the right output is selected. I've never had issues with things breaking, but then I'm not changing sound devices around. I never use headphones and my htpc is hooked up to my stereo with HDMI and my desktop is hooked up with the analog 3.5mm jack. I've heard that pulse is nicer for many people who use USB headphones as it allows for simple transfer of the output device, but I have never verified this.
This is not to say I had issues setting up alsa (I'd been doing it for years before pulse was added to Slackware), but it was definitely more work than pulse. Alsa would almost always default to the hdmi out on your video card, and unless someone had audio hooked up through their hdmi, they'd need to alter configs to change it. Prior to 14.2, pretty frequently, we'd need to help people on the forum adjust their alsa outputs to switch from hdmi to their motherboard's analog 3.5mm jack. Those posts have been mostly non-existent since 14.2 was released.
I will NEVER say that pulse is better than alsa for everyone. That is impossible to do. I don't think there's ever been a single product/software that is the absolute best for everyone. However, for MANY people, pulse is an improvement over alsa. If it is not an improvement for you, then that's fine. Pat has included pure-alsa in extra/ to help those that want to run pulse free, but just because it is not an improvement for you, doesn't mean that others have not benefited from it being added to Slackware.
Just saying that "vaste majority" seems too much imho without saying how you really evaluate.
And without that, even if your posts are very balanced, good opinions seems less significant than bad experience to me (Karl Popper is right on this one.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.