<?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=7338&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Devuan 6.0 documentation of how to enable pipewire even in KDE Wayland]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7338</link>
		<description><![CDATA[The most recent posts in Devuan 6.0 documentation of how to enable pipewire even in KDE Wayland.]]></description>
		<lastBuildDate>Sun, 19 Oct 2025 16:54:30 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Devuan 6.0 documentation of how to enable pipewire even in KDE Wayland]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=58699#p58699</link>
			<description><![CDATA[<p>I think I&#039;ve came with a better solution. But with runit, because it can do similiar thing like systemd --user daemon thing. It can reinstall pipewire if it fails. It seems reliable. So, install runit and also don&#039;t use GDM3, it breaks this. Use lightdm or sddm. I think it works on KDE wayland.</p><div class="codebox"><pre class="vscroll"><code>sudo apt update
sudo apt install -y pipewire wireplumber pipewire-audio pulseaudio-utils alsa-utils dbus elogind
# Optional
# sudo apt install -y lightdm lightdm-gtk-greeter &amp;&amp; sudo dpkg-reconfigure lightdm
####STEP ONE
mkdir -p ~/.config/runit/service/pipewire/log
mkdir -p ~/.config/runit/service/pipewire-pulse/log
mkdir -p ~/.config/runit/service/wireplumber/log
mkdir -p ~/service
mkdir -p ~/.local/bin
####STEP TWO
cat &gt; ~/.local/bin/wait-for &lt;&lt;&#039;EOF&#039;
#!/bin/sh
# wait-for &lt;path or cmd&gt; [timeout]
TARGET=&quot;$1&quot;
TIMEOUT=&quot;${2:-10}&quot;
i=0
while [ $i -lt &quot;$TIMEOUT&quot; ]; do
  if [ -S &quot;$TARGET&quot; ] || [ -e &quot;$TARGET&quot; ]; then exit 0; fi
  # Komut olarak verilmişse: &quot;cmd:pw-cli info 0&quot; gibi
  case &quot;$TARGET&quot; in
    cmd:*) sh -c &quot;${TARGET#cmd:}&quot; &gt;/dev/null 2&gt;&amp;1 &amp;&amp; exit 0 ;;
  esac
  sleep 1
  i=$((i+1))
done
exit 1
EOF
chmod +x ~/.local/bin/wait-for

####STEP THREE
cat &gt; ~/.config/runit/service/pipewire/run &lt;&lt;&#039;EOF&#039;
#!/bin/sh
# pipewire user service
# XDG_RUNTIME_DIR genelde Wayland/GNOME ile gelir; yoksa tedbir:
[ -z &quot;$XDG_RUNTIME_DIR&quot; ] &amp;&amp; export XDG_RUNTIME_DIR=&quot;/run/user/$(id -u)&quot;
exec pipewire
EOF
chmod +x ~/.config/runit/service/pipewire/run

cat &gt; ~/.config/runit/service/pipewire/log/run &lt;&lt;&#039;EOF&#039;
#!/bin/sh
exec svlogd -tt ~/.local/var/log/pipewire
EOF
chmod +x ~/.config/runit/service/pipewire/log/run
mkdir -p ~/.local/var/log/pipewire

####STEP FOUR
cat &gt; ~/.config/runit/service/pipewire-pulse/run &lt;&lt;&#039;EOF&#039;
#!/bin/sh
# pipewire-pulse user service
[ -z &quot;$XDG_RUNTIME_DIR&quot; ] &amp;&amp; export XDG_RUNTIME_DIR=&quot;/run/user/$(id -u)&quot;
# PipeWire socket hazır olmadan başlamasın:
~/.local/bin/wait-for &quot;$XDG_RUNTIME_DIR/pipewire-0&quot; 10 || true
exec pipewire-pulse
EOF
chmod +x ~/.config/runit/service/pipewire-pulse/run

####STEP FIVE
cat &gt; ~/.config/runit/service/pipewire-pulse/log/run &lt;&lt;&#039;EOF&#039;
#!/bin/sh
exec svlogd -tt ~/.local/var/log/pipewire-pulse
EOF
chmod +x ~/.config/runit/service/pipewire-pulse/log/run
mkdir -p ~/.local/var/log/pipewire-pulse

####STEP SIX
cat &gt; ~/.config/runit/service/wireplumber/run &lt;&lt;&#039;EOF&#039;
#!/bin/sh
# wireplumber user service
[ -z &quot;$XDG_RUNTIME_DIR&quot; ] &amp;&amp; export XDG_RUNTIME_DIR=&quot;/run/user/$(id -u)&quot;
# PipeWire core hazır olmadan başlamasın:
~/.local/bin/wait-for &quot;$XDG_RUNTIME_DIR/pipewire-0&quot; 10 || true
exec wireplumber
EOF
chmod +x ~/.config/runit/service/wireplumber/run

####STEP SEVEN
cat &gt; ~/.config/runit/service/wireplumber/log/run &lt;&lt;&#039;EOF&#039;
#!/bin/sh
exec svlogd -tt ~/.local/var/log/wireplumber
EOF
chmod +x ~/.config/runit/service/wireplumber/log/run
mkdir -p ~/.local/var/log/wireplumber

###STEP EIGHT
ln -s ~/.config/runit/service/pipewire        ~/service/ 2&gt;/dev/null || true
ln -s ~/.config/runit/service/pipewire-pulse  ~/service/ 2&gt;/dev/null || true
ln -s ~/.config/runit/service/wireplumber     ~/service/ 2&gt;/dev/null || true

####STEP NINE
cat &gt; ~/.xsessionrc &lt;&lt;&#039;EOF&#039;
#!/bin/sh
# Xorg oturumlarında runit user services tetikleyici
if [ -z &quot;$XDG_RUNTIME_DIR&quot; ]; then
  export XDG_RUNTIME_DIR=&quot;/tmp/xdg-$(id -u)&quot;
  mkdir -p &quot;$XDG_RUNTIME_DIR&quot;
  chmod 700 &quot;$XDG_RUNTIME_DIR&quot;
fi
if [ -d &quot;$HOME/service&quot; ]; then
  if ! pgrep -u &quot;$(id -u)&quot; runsvdir &gt;/dev/null 2&gt;&amp;1; then
    runsvdir -P &quot;$HOME/service&quot; &amp;
  fi
fi
EOF

####STEP TEN(FOR WAYLAND, I THINK)
mkdir -p ~/.config/autostart
cat &gt; ~/.config/autostart/runit-session.desktop &lt;&lt;&#039;EOF&#039;
[Desktop Entry]
Type=Application
Name=Runit User Services
Exec=/bin/sh -lc &#039;exec /usr/bin/runsvdir -P &quot;$HOME/service&quot;&#039;
X-GNOME-Autostart-enabled=true
NoDisplay=true
EOF</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (recklessswing)]]></author>
			<pubDate>Sun, 19 Oct 2025 16:54:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=58699#p58699</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan 6.0 documentation of how to enable pipewire even in KDE Wayland]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=58691#p58691</link>
			<description><![CDATA[<p>@dgiglio but does it run on wayland too? I remember this you add this to the .xsessionrc, but that only works on xorg.</p>]]></description>
			<author><![CDATA[dummy@example.com (recklessswing)]]></author>
			<pubDate>Sat, 18 Oct 2025 20:30:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=58691#p58691</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan 6.0 documentation of how to enable pipewire even in KDE Wayland]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=58357#p58357</link>
			<description><![CDATA[<p>I run this script:</p><div class="quotebox"><blockquote><div><p>#!/usr/bin/env bash</p><p># kill any existing pipewire instance to restore sound<br />pkill -u &quot;$USER&quot; -fx /usr/bin/pipewire-pulse 1&gt;/dev/null 2&gt;&amp;1<br />pkill -u &quot;$USER&quot; -fx /usr/bin/wireplumber 1&gt;/dev/null 2&gt;&amp;1<br />pkill -u &quot;$USER&quot; -fx /usr/bin/pipewire 1&gt;/dev/null 2&gt;&amp;1</p><p>exec /usr/bin/pipewire &amp;</p><p># wait for pipewire to start before attempting to start related daemons<br />while [ &quot;$(pgrep -f /usr/bin/pipewire)&quot; = &quot;&quot; ] ; do<br />&#160; &#160;sleep 1<br />done</p><p>exec /usr/bin/wireplumber &amp;</p><p># wait for wireplumber to start before attempting to start pipewire-pulse <br />while [ &quot;$(pgrep -f /usr/bin/wireplumber)&quot; = &quot;&quot; ] ; do<br />&#160; &#160;sleep 1<br />done</p><p>exec /usr/bin/pipewire-pulse &amp;</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (dgiglio)]]></author>
			<pubDate>Thu, 02 Oct 2025 23:18:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=58357#p58357</guid>
		</item>
		<item>
			<title><![CDATA[Devuan 6.0 documentation of how to enable pipewire even in KDE Wayland]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=57099#p57099</link>
			<description><![CDATA[<p>This is how I do it, with KDE wayland it works. By the way, on Devuan 6 gnome is totally borked. Doesn&#039;t work at all.</p><div class="codebox"><pre><code>mkdir -p ~/.config/autostart
nano ~/.config/autostart/pipewire.desktop</code></pre></div><p>add this to the file:</p><div class="codebox"><pre><code>[Desktop Entry]
Type=Application
Name=PipeWire
Exec=sh -c &#039;pipewire &amp; pipewire-pulse &amp; wireplumber &amp;&#039;
X-GNOME-Autostart-enabled=true</code></pre></div><p>Then:</p><div class="codebox"><pre><code>chmod +x ~/.config/autostart/pipewire.desktop</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (recklessswing)]]></author>
			<pubDate>Thu, 07 Aug 2025 22:56:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=57099#p57099</guid>
		</item>
	</channel>
</rss>
