<?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=5385&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Pipewire]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5385</link>
		<description><![CDATA[The most recent posts in Pipewire.]]></description>
		<lastBuildDate>Mon, 16 Jan 2023 18:05:48 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40327#p40327</link>
			<description><![CDATA[<p><strong>@dzz:</strong> why are you using a bash shebang in a script that contains no bashisms? A /bin/sh shebang will use dash in Devuan, which is lighter, faster and less buggy than bash.</p><p>However, <span class="bbc">$EUID</span> is undefined in POSIX so the &quot;Don&#039;t run this as root!&quot; test should then be changed to</p><div class="codebox"><pre><code>if [ &quot;$(id -u)&quot; -eq 0 ]; then exit 1;fi</code></pre></div><p>Or</p><div class="codebox"><pre><code>[ &quot;$(id -u)&quot; = 0 ] &amp;&amp; exit 1</code></pre></div><p>Also, the &quot;delete blueman stat files in ~/.config&quot; line parses <span class="bbc">ls</span>, <a href="https://mywiki.wooledge.org/ParsingLs" rel="nofollow">which is a bad idea</a>, so</p><div class="codebox"><pre><code>rm -rf ~/.config/*blueman*</code></pre></div><p>Not sure if the asterisk is needed both sides, I don&#039;t use BlueTooth so I have no idea how the configuration files are named; <em>mutatis mutandis</em>.</p><p>EDIT: missed a closing double-quote. Oops.</p><p>EDIT2: no point using a <span class="bbc">for</span> loop when a simple glob will work.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 16 Jan 2023 18:05:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40327#p40327</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40326#p40326</link>
			<description><![CDATA[<p>Thanks all here for the info on setting up pipewire for chimaera. Tried and failed till now.&#160; Although&#160; bluez-alsa does work for my BT speaker. I don&#039;t use pulse-audio.</p><p>I first installed the packages as described by Devarch. Note these packages actually get installed as deps: pipewire-bin libpipewire-0.3-modules libwireplumber-0.4-0 libpipewire-0.3-0 . These backports are almost up to current unstable versions.</p><p>With the latest packages, everything subsequently (at least after reboot) worked &quot;out of the box&quot; on my Toshiba laptop. No file copying no other configurations. The Debian wiki is outdated. The BT speaker is up and running, including firefox streams which failed with bluez-alsa.</p><p>Thanks HoaS for the start script. I adapted it quite a bit because I want to start/stop pipewire manually. Also, sometimes a restart is needed (here) to fix an occasional bt connection drop out. And I don&#039;t want processes not in use autostarting (I disabled also /etc/xdg/autostart/blueman.desktop). </p><p>Placed in ~/bin/ and called from a desktop launcher:</p><div class="codebox"><pre class="vscroll"><code>#!/bin/bash

# Script name: bluestart
# Place in ~/bin and make a desktop launcher 
# Execute &quot;bluestart stop&quot; to just stop pipewire and related processes without restarting.

# (in case you used &quot;stop&quot; parameter)
MODE=&quot;$1&quot;

# You probably need to restart your system mixer to register/deregister the pipewire device.
# Edit (or comment) the next line to suit whatever your DE uses:
MIXER=kmix

# Don&#039;t run this as root!
if [ $EUID -eq 0 ]; then exit 1; fi

restart_mixer () {

	if [ -n &quot;$MIXER&quot; ]; then

		pkill -u &quot;$USER&quot; &quot;$MIXER&quot; &gt;/dev/null 2&gt;&amp;1
		$MIXER &amp;
	fi
}

stop_pipewire () {

pkill -u &quot;$USER&quot; pipewire-pulse &gt;/dev/null 2&gt;&amp;1

pkill -u &quot;$USER&quot; wireplumber &gt;/dev/null 2&gt;&amp;1

pkill -u &quot;$USER&quot; pipewire &gt;/dev/null 2&gt;&amp;1

killall blueman-applet blueman-tray blueman-mechanism 2&gt;/dev/null

# delete blueman stat files in ~/.config
for i in $(ls ~/.config|grep blueman); do rm -f $i; done

}

stop_pipewire

if [ &quot;$MODE&quot; = &quot;stop&quot; ]; then
	sleep 3
	restart_mixer
	exit 0
fi

pipewire &amp;

until pgrep -f pipewire &gt;/dev/null 2&gt;&amp;1 ; do
   sleep 1
done

wireplumber &amp;

pipewire-pulse &amp;

blueman-applet &amp;

sleep 2

restart_mixer</code></pre></div><p>Hope that helps someone..</p>]]></description>
			<author><![CDATA[dummy@example.com (dzz)]]></author>
			<pubDate>Mon, 16 Jan 2023 17:50:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40326#p40326</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40173#p40173</link>
			<description><![CDATA[<p>Slightly simpler version:</p><div class="codebox"><pre><code>pkill -u &quot;$USER&quot; pipewire-pulse &gt;/dev/null 2&gt;&amp;1
pkill -u &quot;$USER&quot; wireplumber &gt;/dev/null 2&gt;&amp;1
pkill -u &quot;$USER&quot; pipewire &gt;/dev/null 2&gt;&amp;1

pipewire &amp;

until pgrep -f pipewire &gt;/dev/null 2&gt;&amp;1 ; do
   sleep 1
done

wireplumber &amp;

pipewire-pulse &amp;</code></pre></div><p>No need for full paths or <span class="bbc">exec</span> (the ampersands already fork the commands) and the <span class="bbc">until</span> clause is simpler and quicker than a formal <span class="bbc">test</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 12 Jan 2023 06:47:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40173#p40173</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40172#p40172</link>
			<description><![CDATA[<div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>Hi, thank you for the tips.</p><p>I used a &quot;sleep 12&quot; to slow down the loading of apps until the snd_usb_audio module loading has settled.</p><p>still misses sometimes.</p><p>I will try the next script you have offered HoaS, cheers.</p></div></blockquote></div><p>My system is working quite well now, Specifically with HoaS script although the BT headphones work at first but (I&#039;ve only just checked as I&#039;m typing) drops out... b.t.connection. But the sound works when the system has started and that&#039;s what I like most.</p><p>I don&#039;t use bt connections very much... (mouse always works) and I removed a package that put an icon on the bar that was duplicate of Plasma bt, so I got rid of it. I&#039;ll check if that helps. See, hacking is fun! :-) [edit, mention the script]</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Thu, 12 Jan 2023 02:20:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40172#p40172</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40127#p40127</link>
			<description><![CDATA[<p>Hi, thank you for the tips.</p><p>I used a &quot;sleep 12&quot; to slow down the loading of apps until the snd_usb_audio module loading has settled.</p><p>still misses sometimes.</p><p>I will try the next script you have offered HoaS, cheers.</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Tue, 10 Jan 2023 01:57:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40127#p40127</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39407#p39407</link>
			<description><![CDATA[<p>Acer Aspire Laptop with Daedalus/openrc/Cinnamon DE:<br />Just installed:</p><div class="codebox"><pre><code># apt install pipewire pipewire-pulse wireplumber</code></pre></div><p> and added the lines as listed in the previous post to my .xsessionrc: Audacious is playing my playlist as well configured to ALSA as to Pulse.</p><p>I am just missing: separate topic ...</p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Fri, 16 Dec 2022 14:51:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39407#p39407</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39385#p39385</link>
			<description><![CDATA[<div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>Any ideas to smooth this loading out?</p></div></blockquote></div><p>Try this in <span class="bbc">~/.xsessionrc</span> instead of what I posted earlier:</p><div class="codebox"><pre><code># kill any existing pipewire instance to restore sound
pkill -u &quot;$USER&quot; -fx /usr/bin/pipewire-pulse 1&gt;/dev/null 2&gt;&amp;1
pkill -u &quot;$USER&quot; -fx /usr/bin/wireplumber 1&gt;/dev/null 2&gt;&amp;1
pkill -u &quot;$USER&quot; -fx /usr/bin/pipewire 1&gt;/dev/null 2&gt;&amp;1

exec /usr/bin/pipewire &amp;

# wait for pipewire to start before attempting to start related daemons
while [ &quot;$(pgrep -f /usr/bin/pipewire)&quot; = &quot;&quot; ] ; do
   sleep 1
done

exec /usr/bin/wireplumber &amp;

exec /usr/bin/pipewire-pulse &amp;</code></pre></div><p>Reference: https://git.alpinelinux.org/aports/tree/community/pipewire/pipewire-launcher.sh</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 15 Dec 2022 22:41:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39385#p39385</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39384#p39384</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>I ended up using .xsession to start as HoaS suggested</p></div></blockquote></div><p>For clarity: that should be <span class="bbc">~/.xsessionrc</span>.</p><p>Reference: <a href="https://wiki.debian.org/Xsession" rel="nofollow">https://wiki.debian.org/Xsession</a></p></div></blockquote></div><p>Yes, that&#039;s right, ~/.xsessionrc, HoaS. Thanks.</p><p>I am experiencing a sound problem, the GUI starts with no ssound.</p><p>lsmod shows the snd-usb-audio(?) is loaded according to lsmod.</p><p>log out and back in connects the audio.</p><p>I tried to delay the .xsessionrc with sleep 12 to no avail.</p><p>Any ideas to smooth this loading out? I turned off wireplumer in rc-update (open-rc)</p><p>here is some confirmation...</p><div class="codebox"><pre><code>glenn@GamesBox ~ $ LC_ALL=C pactl info | grep &quot;Server Name&quot;
Server Name: PulseAudio (on PipeWire 0.3.62)
glenn@GamesBox ~ $ </code></pre></div><p>regards Glenn</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Thu, 15 Dec 2022 22:15:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39384#p39384</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39345#p39345</link>
			<description><![CDATA[<div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>I ended up using .xsession to start as HoaS suggested</p></div></blockquote></div><p>For clarity: that should be <span class="bbc">~/.xsessionrc</span>.</p><p>Reference: <a href="https://wiki.debian.org/Xsession" rel="nofollow">https://wiki.debian.org/Xsession</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 14 Dec 2022 11:41:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39345#p39345</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39340#p39340</link>
			<description><![CDATA[<div class="quotebox"><cite>Devarch wrote:</cite><blockquote><div><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>My system is Devuan 5 Daedalus.</p><p>the hardware is discovered and used. works ok. Will be trying the bt headphones soon. :-) thank you</p></div></blockquote></div><p>The installation is a bit different on daedalus - much simplier <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Nice to hear that it works.</p></div></blockquote></div><p>Thank you for the clear directions.</p><p>I ended up using .xsession to start as HoaS suggested.</p><p>I&#039;m happily surprised bt headphones works on first attempt.</p><p>:-)</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Wed, 14 Dec 2022 05:22:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39340#p39340</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39327#p39327</link>
			<description><![CDATA[<div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>My system is Devuan 5 Daedalus.</p><p>the hardware is discovered and used. works ok. Will be trying the bt headphones soon. :-) thank you</p></div></blockquote></div><p>The installation is a bit different on daedalus - much simplier <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Nice to hear that it works.</p>]]></description>
			<author><![CDATA[dummy@example.com (Devarch)]]></author>
			<pubDate>Tue, 13 Dec 2022 17:57:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39327#p39327</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39317#p39317</link>
			<description><![CDATA[<p>Hi, thanks for your tips. I cleaned up my fumbles and went through the directions again.</p><p>One file I couldn&#039;t find was &quot;99-pipewire-default.conf&quot;<br />from this copy step... from examples</p><div class="codebox"><pre><code>cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/</code></pre></div><p>I found a same named file and copied it.<br />/usr/share/alsa/alsa.conf.d/99-pipewire-default.conf</p><p>My system is Devuan 5 Daedalus.</p><p>the hardware is discovered and used. works ok. Will be trying the bt headphones soon. :-) thank you</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Tue, 13 Dec 2022 10:09:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39317#p39317</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39248#p39248</link>
			<description><![CDATA[<div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>I tried it yesterday and got no sound devices listed. </p><p>I&#039;ll give it another shot sometime in the near future.</p></div></blockquote></div><p>Seems I forgot nothing, all the steps are above. It works on my machine.</p><p>I have to use recent kernel as I&#039;ve quite recent hardware </p><div class="codebox"><pre><code>$ uname -a
Linux host 6.0.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.3-1~bpo11+1 (2022-10-29) x86_64 GNU/Linux</code></pre></div><p>But I don&quot;t think it makes any difference.</p><p>In addition to what @Head_on_a_Stick told, try to not run it as root.</p>]]></description>
			<author><![CDATA[dummy@example.com (Devarch)]]></author>
			<pubDate>Sat, 10 Dec 2022 12:34:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39248#p39248</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39221#p39221</link>
			<description><![CDATA[<p><strong>@GlennW:</strong> try creating a file at <span class="bbc">~/.xsessionrc</span> with this content:</p><div class="codebox"><pre><code>wireplumber &amp;
pipewire &amp;
pipewire-pulse &amp;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 08 Dec 2022 21:36:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39221#p39221</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pipewire]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=39213#p39213</link>
			<description><![CDATA[<div class="quotebox"><cite>Devarch wrote:</cite><blockquote><div><p>Telegram also works. </p><p>If someone wants to repeate the steps above give me some time to test. I do not know if there are some bugs.</p></div></blockquote></div><p>I tried it yesterday and got no sound devices listed. </p><p>I&#039;ll give it another shot sometime in the near future.</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Thu, 08 Dec 2022 20:30:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=39213#p39213</guid>
		</item>
	</channel>
</rss>
