<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4612&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / alsa & bluetooth]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4612</link>
		<description><![CDATA[The most recent posts in alsa & bluetooth.]]></description>
		<lastBuildDate>Tue, 26 Oct 2021 17:30:58 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: alsa & bluetooth]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32425#p32425</link>
			<description><![CDATA[<p>Thanks HoaS!</p><div class="quotebox"><blockquote><div><p>Looks like it&#039;s a dbus service so it probably won&#039;t work unless you can hook it into that somehow with sysvinit (systemd listens to the bus automatically). But this is just a guess.</p></div></blockquote></div><p>It does here, maybe the dbus bits are built-in. That init script does work from a root shell after boot (although still will not detach, that was the issue)</p><p>Now using a simple manual /usr/local/bin start script with sudo permission so it only runs on demand, in preference.</p><p>Cable the speaker to the old vaio? The cable is always either lost or broken!</p>]]></description>
			<author><![CDATA[dummy@example.com (dzz)]]></author>
			<pubDate>Tue, 26 Oct 2021 17:30:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32425#p32425</guid>
		</item>
		<item>
			<title><![CDATA[Re: alsa & bluetooth]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32421#p32421</link>
			<description><![CDATA[<div class="quotebox"><cite>dzz wrote:</cite><blockquote><div><p>I repackaged it with a custom init script but havent got that quite right as yet. It won&#039;t detach from the shell and hangs on bootup. But I can start it manually after disabling the init daemon.</p></div></blockquote></div><p>Looks like it&#039;s a dbus service so it probably won&#039;t work unless you can hook it into that somehow with sysvinit (systemd listens to the bus automatically). But this is just a guess; I don&#039;t use Bluetooth.</p><div class="quotebox"><cite>dzz wrote:</cite><blockquote><div><p>Here&#039;s the offending custom init script, if anyone wants to debug it.</p></div></blockquote></div><p>Looks fine to me but you don&#039;t have to test for the exit status after starting the daemon — just use the conditional instead, like this:</p><div class="codebox"><pre><code>start() {
	log_daemon_msg &quot;Starting $DESC&quot; &quot;$prog&quot;
	if start_daemon -p $PIDFILE /usr/bin/bluealsa $OPTIONS ; then
		log_end_msg 0
	else
		log_end_msg 1
	fi
}</code></pre></div><p>Oh, and <span class="bbc">$Usage</span> is referenced but not assigned but I think that&#039;s a typo :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 26 Oct 2021 15:38:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32421#p32421</guid>
		</item>
		<item>
			<title><![CDATA[Re: alsa & bluetooth]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32418#p32418</link>
			<description><![CDATA[<p>Worth a go here as my trusy old Vaio netbook has **** sound (and I don&#039;t want pulseaudio).</p><p>I got bluealsa working but it was not so simple. For a start packages bluez-alsa-utils libasound2-plugin-bluez (you need both) have only a systemd service file, no sysv script. I needed bluetooth daemon running first and a custom ~/.asoundrc </p><div class="codebox"><pre><code>pcm.SoundCoreMini {
        type bluealsa
        device &quot;XX:XX:XX:XX:XX:XX&quot;
        profile &quot;a2dp&quot;
        hint { show on description &quot;Sound Core Mini&quot;}
}</code></pre></div><p>Having already installed blueman I could use those tools to get the device ID. The device can then be manipulated using blueman-manager.</p><p>I repackaged it with a custom init script but havent got that quite right as yet. It won&#039;t detach from the shell and hangs on bootup. But I can start it manually after disabling the init daemon.</p><p>Running chimaera you *might* get away with just a few lib deps from ceres. The original packages will break beowulf. My crude &quot;backport&quot; rebuild from source can run on beowulf.</p><p>Here&#039;s the offending custom init script, if anyone wants to debug it. More later (if) I get time to revisit this. Or maybe it&#039;s better not to have this start automatically..</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh
### BEGIN INIT INFO
# Provides: bluez-alsa

# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6

# Required-Start:	$syslog $local_fs $remote_fs bluetooth 
# Required-Stop:	$syslog $local_fs $remote_fs 
# Short-Description: Bluealsa daemon
### END INIT INFO

. /lib/lsb/init-functions
prog=bluez-alsa
if test -f -/etc/default/bluez-alsa; then
	. -/etc/default/bluez-alsa 
fi

PIDFILE=/var/run/$prog.pid
DESC=&quot;Bluealsa daemon&quot;
start() {
	log_daemon_msg &quot;Starting $DESC&quot; &quot;$prog&quot;
	start_daemon -p $PIDFILE /usr/bin/bluealsa $OPTIONS
	if [ $? -ne 0 ]; then
		log_end_msg 1
		exit 1
	fi
	if [ $? -eq 0 ]; then
		log_end_msg 0
	fi
	exit 0
}

stop() {
	log_daemon_msg &quot;Stopping $DESC&quot; &quot;$prog&quot;
	killproc -p $PIDFILE /usr/bin/bluealsa
	if [ $? -ne 0 ]; then
		log_end_msg 1
		exit 1
	fi
	if [ $? -eq 0 ]; then
		log_end_msg 0
	fi
}

force_reload() {
	stop
	start

}

case &quot;$1&quot; in
	start)
		start
		;;
	stop)
		stop
		;;
	force-reload)
		force_reload
		;;
	restart)
		stop
		start
		;;

	*)
		echo &quot;$Usage: $prog {start|stop|force-reload|restart}&quot;
		exit 2
esac</code></pre></div><p>My installed bluetooth-related packages:</p><div class="codebox"><pre><code>root@vaio:~# dpkg -l|grep blue
ii  blueman                                  2.0.8-1+deb10u1                     amd64        Graphical bluetooth manager
ii  bluez                                    5.50-1.2~deb10u2                    amd64        Bluetooth tools and daemons
ii  bluez-alsa-utils                         3.0.0-2                             amd64        Bluetooth Audio ALSA Backend (utils)
ii  bluez-firmware                           1.2-4                               all          Firmware for Bluetooth devices
ii  bluez-obexd                              5.50-1.2~deb10u2                    amd64        bluez obex daemon
ii  libasound2-plugin-bluez:amd64            3.0.0-2                             amd64        Bluetooth Audio ALSA Backend (plugins)
ii  libbluetooth-dev:amd64                   5.50-1.2~deb10u2                    amd64        Development files for using the BlueZ Linux Bluetooth library
ii  libbluetooth3:amd64                      5.50-1.2~deb10u2                    amd64        Library to use the BlueZ Linux Bluetooth stack
ii  libpam-blue                              0.9.0-3                             amd64        PAM module for local authenticaction with bluetooth devices</code></pre></div><p>EDIT: example use:</p><div class="codebox"><pre><code>:~$ mpv --audio-device=alsa/SoundCoreMini &#039;Sweet Georgia Brown 1.m4a&#039;</code></pre></div><p>Or in VLC, pick&#160; it from the audio device GUI.</p><p>Cheers all (and thanks for chimaera), D</p>]]></description>
			<author><![CDATA[dummy@example.com (dzz)]]></author>
			<pubDate>Tue, 26 Oct 2021 14:06:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32418#p32418</guid>
		</item>
		<item>
			<title><![CDATA[Re: alsa & bluetooth]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32416#p32416</link>
			<description><![CDATA[<p>Here are some things that can help you: </p><p><a href="https://panther.kapsi.fi/posts/2018-11-17_linux_bluetooth_audio" rel="nofollow">https://panther.kapsi.fi/posts/2018-11- … ooth_audio</a></p><p><a href="https://www.linuxquestions.org/questions/slackware-14/alsa-and-bluetooth-audio-4175667326/" rel="nofollow">https://www.linuxquestions.org/question … 175667326/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Ogis1975)]]></author>
			<pubDate>Tue, 26 Oct 2021 11:44:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32416#p32416</guid>
		</item>
		<item>
			<title><![CDATA[Re: alsa & bluetooth]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32408#p32408</link>
			<description><![CDATA[<div class="quotebox"><cite>Ogis1975 wrote:</cite><blockquote><div><p>Check this&#160; <a href="https://wiki.debian.org/Bluetooth/Alsa" rel="nofollow">https://wiki.debian.org/Bluetooth/Alsa</a></p></div></blockquote></div><p>It does not work. This package is not in repo. Tried to install it from devuan ceres repo and from debian sid repo, got the same result n blueman Connection Failed: No audio endpoints registered</p><p>Tried to reinstall all other packages like bluetoth, bluez blueman from ceres or sid - did not work. </p><p>The output of bluealsa-aplay -L</p><p>bluealsa-aplay: W: Couldn&#039;t get BlueALSA PCM list: The name org.bluealsa was not provided by any .service files</p>]]></description>
			<author><![CDATA[dummy@example.com (devadmin)]]></author>
			<pubDate>Mon, 25 Oct 2021 15:51:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32408#p32408</guid>
		</item>
		<item>
			<title><![CDATA[Re: alsa & bluetooth]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32375#p32375</link>
			<description><![CDATA[<div class="quotebox"><cite>devadmin wrote:</cite><blockquote><div><p>Does anybody know how to marry bluetooth and alsa?</p></div></blockquote></div><p>Check this&#160; <a href="https://wiki.debian.org/Bluetooth/Alsa" rel="nofollow">https://wiki.debian.org/Bluetooth/Alsa</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Ogis1975)]]></author>
			<pubDate>Sun, 24 Oct 2021 15:11:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32375#p32375</guid>
		</item>
		<item>
			<title><![CDATA[alsa & bluetooth]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32365#p32365</link>
			<description><![CDATA[<p>Does anybody know how to marry bluetooth and alsa?</p>]]></description>
			<author><![CDATA[dummy@example.com (devadmin)]]></author>
			<pubDate>Sat, 23 Oct 2021 21:37:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32365#p32365</guid>
		</item>
	</channel>
</rss>
