LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-19-2018, 07:06 PM   #106
Stanson
LQ Newbie
 
Registered: Jan 2016
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled

Finally, alsa for bluez5: https://github.com/Arkq/bluez-alsa

Somebody wrote ALSA sound plugin for bluez5. IIRC, pulseaudio came to Slackware under the reason that bluez5 does not support alsa at all. So, now it's possible to RIP pulseaudio, since there are no more reasons for it.
 
2 members found this post helpful.
Old 10-19-2018, 07:12 PM   #107
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
Out of curiosity I checked how they communicate with Bluez daemon and they also use DBus service:
Code:
	msg = g_dbus_message_new_method_call("org.bluez", dev,
			"org.bluez.Media1", "RegisterEndpoint");
I think that's the only possible way to communicate with Bluez. Anyway, it's good to know that Bluez is not tied to Pulseaudio in any special case because I thought it is.
 
1 members found this post helpful.
Old 10-19-2018, 07:32 PM   #108
Stanson
LQ Newbie
 
Registered: Jan 2016
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
Quote:
Originally Posted by average_user View Post
I think that's the only possible way to communicate with Bluez. Anyway, it's good to know that Bluez is not tied to Pulseaudio in any special case because I thought it is.
Yes, that's correct. On version 5 BlueZ team announced, that they will drop audio(media) stuff and leave it for third-party. Pulsaudio team wrote plugin for BlueZ. ALSA project does not. So there was no audio support for ALSA. Now it's possible to get ALSA support back and drop pulseaudio. At least, it will be wise to add packages bluez-alsa and libfdm-aac (already in SBo) needed by blues-alsa to extra/pure-alsa-system.
 
Old 10-19-2018, 07:37 PM   #109
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I wouldn't mind seeing Pulse go bye-bye. It's still a damnable headache to get working right.
 
1 members found this post helpful.
Old 10-19-2018, 07:42 PM   #110
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by Stanson View Post
Yes, that's correct. On version 5 BlueZ team announced, that they will drop audio(media) stuff and leave it for third-party. Pulsaudio team wrote plugin for BlueZ. ALSA project does not. So there was no audio support for ALSA. Now it's possible to get ALSA support back and drop pulseaudio. At least, it will be wise to add packages bluez-alsa and libfdm-aac (already in SBo) needed by blues-alsa to extra/pure-alsa-system.
Do you mean that Pulseaudio team wrote DBus backend for BlueZ?
 
Old 10-19-2018, 07:47 PM   #111
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by dugan View Post
I was maintaining the OSS4 SlackBuild for a while. I had to give it up because it didn't work with USB sound cards.

It's probably a viable option for people using onboard audio chipsets.
OSSv4 is good for a few PCIe audio cards and onboard chipsets. It seems to have better audio quality and latency than ALSA in a few cases.
 
1 members found this post helpful.
Old 10-19-2018, 07:55 PM   #112
Stanson
LQ Newbie
 
Registered: Jan 2016
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
Quote:
Originally Posted by average_user View Post
Do you mean that Pulseaudio team wrote DBus backend for BlueZ?
No, they wrote that "third-party media plugin" that connects to "media" bluez DBus interface and source/sinks media streams provided by bluez from/to pulseaudio audio devices.

BlueZ does not depend on pulseaudio, it's just provide DBus interface and data streams to any sound system willing to work with sound streams from/to bluetooth devices.

Now we have working "third-party media plugin" for ALSA too.

PS: Just compiled bluez-alsa and tested at least A2DP source and sink profiles. Works like a charm both ways. Have to check HF profile, but don't think there will be problems.

Last edited by Stanson; 10-19-2018 at 08:03 PM.
 
1 members found this post helpful.
Old 10-19-2018, 08:28 PM   #113
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by Stanson View Post
Finally, alsa for bluez5: https://github.com/Arkq/bluez-alsa

Somebody wrote ALSA sound plugin for bluez5. IIRC, pulseaudio came to Slackware under the reason that bluez5 does not support alsa at all. So, now it's possible to RIP pulseaudio, since there are no more reasons for it.
I think there will be many who quite like pulseaudio regardless of the now unneeded bluez requirement - maybe (hopefully) RIP wishes are premature.

chris
 
1 members found this post helpful.
Old 10-19-2018, 08:54 PM   #114
Stanson
LQ Newbie
 
Registered: Jan 2016
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
Quote:
Originally Posted by chris.willing View Post
I think there will be many who quite like pulseaudio regardless of the now unneeded bluez requirement - maybe (hopefully) RIP wishes are premature.
It could Rest In Peace in some extra/pulseaudio f.e., like pure-alsa now.
 
Old 10-19-2018, 09:08 PM   #115
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273
Quote:
Originally Posted by chris.willing View Post
I think there will be many who quite like pulseaudio regardless of the now unneeded bluez requirement - maybe (hopefully) RIP wishes are premature.

chris
Agreed.
I had it installed long before it was added to Slackware. The volume was never high enough, but PulseAudio solved that problem. Plus it is easier to control two different sound cards and bounce between the two.

Last edited by cwizardone; 10-19-2018 at 09:10 PM.
 
1 members found this post helpful.
Old 10-20-2018, 09:00 AM   #116
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by Stanson View Post
No, they wrote that "third-party media plugin" that connects to "media" bluez DBus interface and source/sinks media streams provided by bluez from/to pulseaudio audio devices.

BlueZ does not depend on pulseaudio, it's just provide DBus interface and data streams to any sound system willing to work with sound streams from/to bluetooth devices.

Now we have working "third-party media plugin" for ALSA too.
Ok, so I misunderstood - you meant that Pulseaudio wrote the part that connects to Bluez DBus service and now Alsa people did it too. Thanks for clarification.

One day I need to check how this Alsa-based Bluez performs. I use some cheap no-name Bluetooth USB dongle:
Code:
Bus 002 Device 106: ID 1131:1004 Integrated System Solution Corp. Bluetooth Device
and Bose headphones and lag is so big that it's impossible to watch videos and sometimes sound goes fast-forward very fast.
 
1 members found this post helpful.
Old 10-20-2018, 03:10 PM   #117
Stanson
LQ Newbie
 
Registered: Jan 2016
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
Quote:
Originally Posted by average_user View Post
One day I need to check how this Alsa-based Bluez performs. I use some cheap no-name Bluetooth USB dongle:
Code:
Bus 002 Device 106: ID 1131:1004 Integrated System Solution Corp. Bluetooth Device
and Bose headphones and lag is so big that it's impossible to watch videos and sometimes sound goes fast-forward very fast.
Not all dongles correctly deal with SCO Bluetooth streams used for sound transfer. ISSC is not the best choice, at least was not few years ago. Try another, with CSR or Broadcom chip, for example. Also, there could be problems if you stream audio to/from some device and, say, use bluetooth mouse, or have some another device connected to the same dongle. I also had some byte loss in SCO streams even on CSR based dongles with Bluez4 and earlier Bluez5 with pulseaudio, may be they broke something at some point. However, now everything runs smooth and without problems with my Broadcom BCM2045B controller with both pulse and that bluealsa. Bluealsa have less delay than pulseaudio plugin.
 
Old 10-23-2018, 02:05 AM   #118
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by Linux.tar.gz View Post
Another question:
"alsactl store" doesn't store the volume anymore, any tip on this ?
I had to chmod +x /etc/rc.d/rc.alsa , now everything's fine !
 
Old 11-16-2018, 05:14 AM   #119
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
I am just joining my thanks to OP thanks. It works, I am happy with this cause pulse is too heavy for my old laptop. I can relief now cause I am not aware anymore that watching movies could melt down my processor.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Optional pure-alsa-system Slackware-current! Didier Spaier Slackware 47 05-28-2018 10:40 AM
[SOLVED] What packages do I need to get pure Gnome2 from base system? kox444 Linux - Desktop 7 03-01-2013 10:07 AM
pure-ftpwho doesn't work in pure-ftpd vahab Linux - Server 6 04-14-2012 02:25 PM
Pure-authd not passing variables to pure-ftpd welshdemon Linux - Software 1 02-11-2011 04:47 PM
pure-ftpd-mysql activates pure-ftpd zvikamer Linux - Software 2 03-01-2008 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration