<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ForeverNoob</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ForeverNoob"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/ForeverNoob"/>
	<updated>2026-04-25T18:12:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=PipeWire&amp;diff=22804</id>
		<title>PipeWire</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=PipeWire&amp;diff=22804"/>
		<updated>2022-12-25T01:43:00Z</updated>

		<summary type="html">&lt;p&gt;ForeverNoob: Clarification on preceding D-Bus launch methods.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Draft|The instructions below have not been thoroughly tested and may break things.}}&lt;br /&gt;
&lt;br /&gt;
[https://pipewire.org/ PipeWire] is a multimedia processing engine that aims to improve audio and video handling on Linux.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
=== Device access ===&lt;br /&gt;
&lt;br /&gt;
PipeWire needs proper permissions to access devices. If you do not use [[Elogind|elogind]], your user should be in &amp;lt;code&amp;gt;audio&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;video&amp;lt;/code&amp;gt; groups:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# addgroup &amp;lt;user&amp;gt; audio&lt;br /&gt;
# addgroup &amp;lt;user&amp;gt; video&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure to re-login for these changes to take effect.&lt;br /&gt;
&lt;br /&gt;
=== D-Bus ===&lt;br /&gt;
&lt;br /&gt;
PipeWire optionally requires a running [[D-Bus]] system and/or session bus for some of its functionality.&lt;br /&gt;
&lt;br /&gt;
For certain configurations (e.g. only audio playback and recording) D-Bus setup is not necessary. Edit [[#Disable_D-Bus_support|configuration files]] to disable D-Bus support.&lt;br /&gt;
&lt;br /&gt;
You can start a dbus session-wide like this: &amp;lt;code&amp;gt;export $(dbus-launch)&amp;lt;/code&amp;gt;, or system-wide: &amp;lt;code&amp;gt;rc-service dbus start&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you start dbus session-wide, make sure to start PipeWire in that same session.&lt;br /&gt;
&lt;br /&gt;
=== XDG_RUNTIME_DIR ===&lt;br /&gt;
&lt;br /&gt;
If you are not using a Desktop Manager, ensure that your &amp;lt;code&amp;gt;XDG_RUNTIME_DIR&amp;lt;/code&amp;gt; is set to a user-writable location. By default for pulseaudio this is {{Path|/run/user/1000/}} or {{Path|/tmp}}. If this is not set, pipewire will create a directory in your home folder instead, called &amp;lt;code&amp;gt;~/pulse&amp;lt;/code&amp;gt;, and on attempting to run Pavucontrol or pactl, you will get the following error:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ pactl list&lt;br /&gt;
Connection failure: Connection refused&lt;br /&gt;
pa_context_connect() failed: Connection refused&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Install the {{Pkg|pipewire}} package.&lt;br /&gt;
&lt;br /&gt;
=== Session Manager ===&lt;br /&gt;
PipeWire delegates plumbing work to session manager. There are two options available:&lt;br /&gt;
* &#039;&#039;&#039;[https://gitlab.freedesktop.org/pipewire/wireplumber WirePlumber]&#039;&#039;&#039;. It has modular design and supports Lua plugins. &#039;&#039;&#039;This is the recommended session manager. If you do not know which session manager you need, use WirePlumber.&#039;&#039;&#039;&amp;lt;br/&amp;gt;Package: {{Pkg|wireplumber}}&lt;br /&gt;
* &#039;&#039;&#039;[https://gitlab.freedesktop.org/pipewire/media-session pipewire-media-session]&#039;&#039;&#039;. It is much more simpler and covers only basic use cases. It was used for testing purposes. Now it does not make much sense since WirePlumber is available.&amp;lt;br/&amp;gt;Package: {{Pkg|pipewire-media-session}}&lt;br /&gt;
&lt;br /&gt;
{{Note|This page assumes that you are using WirePlumber.}}&lt;br /&gt;
&lt;br /&gt;
=== PulseAudio compatibility ===&lt;br /&gt;
Install {{Pkg|pipewire-pulse}} package, which provides a daemon so PulseAudio applications could use PipeWire as backend.&lt;br /&gt;
&lt;br /&gt;
=== JACK compatibility ===&lt;br /&gt;
Install {{Pkg|pipewire-jack}} package, which provides ABI-compatible libraries for JACK applications.&lt;br /&gt;
&lt;br /&gt;
=== ALSA support ===&lt;br /&gt;
Install {{Pkg|pipewire-alsa}} package.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
PipeWire and WirePlumber store their default configuration in &amp;lt;code&amp;gt;/usr/share/pipewire&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/usr/share/wireplumber&amp;lt;/code&amp;gt; respectively. If you want to edit the configuration, you need to move it to &amp;lt;code&amp;gt;/etc&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cp -a /usr/share/pipewire /etc&lt;br /&gt;
# cp -a /usr/share/wireplumber /etc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Disable D-Bus support ===&lt;br /&gt;
Edit the following configuration parameters:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/etc/pipewire/pipewire.conf&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
context.properties = {&lt;br /&gt;
    ... &lt;br /&gt;
    support.dbus = false&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/etc/wireplumber/wireplumber.conf&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
context.properties = {&lt;br /&gt;
    ... &lt;br /&gt;
    support.dbus = false&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/etc/wireplumber/bluetooth.lua.d/50-bluez-config.lua&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bluez_monitor.properties = {&lt;br /&gt;
  ...&lt;br /&gt;
  [&amp;quot;with-logind&amp;quot;] = false,&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/etc/wireplumber/main.lua.d/50-alsa-config.lua&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alsa_monitor.properties = {&lt;br /&gt;
  ...&lt;br /&gt;
  [&amp;quot;alsa.reserve&amp;quot;] = false,&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/etc/wireplumber/main.lua.d/50-default-access-config.lua&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default_access.properties = {&lt;br /&gt;
  ...&lt;br /&gt;
  [&amp;quot;enable-flatpak-portal&amp;quot;] = false,&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Realtime scheduling ===&lt;br /&gt;
&lt;br /&gt;
For realtime scheduling, it is recommended to use {{Pkg|rtkit}}. Add your user to the &amp;lt;code&amp;gt;rtkit&amp;lt;/code&amp;gt; group.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ensure your user has the right ulimit permissions. You generally need (limits.conf format):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@audio - memlock 256&lt;br /&gt;
@audio - nice -11&lt;br /&gt;
@audio - rtprio 88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows a member of the audio group to have the right permissions for PipeWire to use realtime scheduling without rtkit.&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
Video should work out-of-the-box with v4l2 devices (e.g. a lot of webcams) and [https://gstreamer.freedesktop.org/ GStreamer] applications.&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth audio ===&lt;br /&gt;
&lt;br /&gt;
* Enable PulseAudio support as described above&lt;br /&gt;
* Install bluetooth service packages: &amp;lt;code&amp;gt;bluez bluez-openrc pipewire-spa-bluez&amp;lt;/code&amp;gt;&lt;br /&gt;
* Optional: install GUI manager for bluetooth &amp;lt;code&amp;gt;blueman&amp;lt;/code&amp;gt;&lt;br /&gt;
* Enable and start bluetooth service: &amp;lt;code&amp;gt;rc-update add bluetooth; rc-service bluetooth start&amp;lt;/code&amp;gt;&lt;br /&gt;
* Restart PipeWire&lt;br /&gt;
* Use commandline program  &amp;lt;code&amp;gt;bluetoothctl&amp;lt;/code&amp;gt; or GUI program &amp;lt;code&amp;gt;blueman-manager&amp;lt;/code&amp;gt; to scan and pair bluetooth audio devices.&lt;br /&gt;
* Use pavucontrol to adjust volume and manually select high definition bluetooth codecs.&lt;br /&gt;
&lt;br /&gt;
=== Screen sharing on Wayland ===&lt;br /&gt;
&lt;br /&gt;
You will need the right [https://github.com/flatpak/xdg-desktop-portal xdg-desktop-portal] backend for your desktop environment. Screen sharing is known to work on:&lt;br /&gt;
* GNOME with &amp;lt;code&amp;gt;xdg-desktop-portal-gtk&amp;lt;/code&amp;gt;&lt;br /&gt;
* KDE Plasma with &amp;lt;code&amp;gt;xdg-desktop-portal-kde&amp;lt;/code&amp;gt; and Firefox&lt;br /&gt;
* Sway with &amp;lt;code&amp;gt;xdg-desktop-portal-wlr&amp;lt;/code&amp;gt; and Firefox, see [[Sway]] for details&lt;br /&gt;
&lt;br /&gt;
== Running ==&lt;br /&gt;
&lt;br /&gt;
{{Note|&amp;lt;code&amp;gt;pipewire-launcher&amp;lt;/code&amp;gt; script is provided by Alpine Linux, not by upstream. Please report issues to Alpine Linux maintainers first.}}&lt;br /&gt;
&lt;br /&gt;
Start the PipeWire media server. You&#039;ll probably get quite a few errors but just ignore them for now.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ /usr/libexec/pipewire-launcher&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you do not have D-Bus session bus running (e.g. you are in tty or you are using minimalistic DE or window manager which does not launch D-Bus session) and you did not disable D-Bus in PipeWire configuration, use &amp;lt;code&amp;gt;dbus-launch&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ dbus-launch /usr/libexec/pipewire-launcher&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note| PipeWire doesn&#039;t auto-start a session manager anymore. &lt;br /&gt;
In 3.14 and earlier, the PipeWire default config was edited in packaging to auto-start pipewire-media-session as the default session manager. Since we now have wireplumber available as an alternative session manager, this has been changed in favor of a launch wrapper for pipewire at /usr/libexec/pipewire-launcher. When executed, this will launch pipewire, pipewire-media-session or wireplumber, and pipewire-pulse, depending on what modules are available. If you were launching /usr/bin/pipewire and the session manager manually before, please use the new launcher wrapper instead. WirePlumber can now also be used as a proper alternative for pipewire-media-session.}}&lt;br /&gt;
&lt;br /&gt;
=== Auto launching ===&lt;br /&gt;
You can add &amp;lt;code&amp;gt;/usr/libexec/pipewire-launcher&amp;lt;/code&amp;gt; to your &amp;lt;code&amp;gt;.xinitrc&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you do not use GUI by default and have D-Bus enabled in configuration, add the following stanza to your shell configuration file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export $(dbus-launch)&lt;br /&gt;
/usr/libexec/pipewire-launcher&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
In a different terminal window check the default output device. I don&#039;t yet know how this default can be changed for all applications, so you&#039;d better hope it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
=== WirePlumber ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ wpctl status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== pw-cat playback ===&lt;br /&gt;
&lt;br /&gt;
Test sound is working using an audio file in a format supported by [http://www.mega-nerd.com/libsndfile/ libsndfile] (e.g. flac, opus, ogg, wav). Use &amp;lt;code&amp;gt;pw-cat&amp;lt;/code&amp;gt; utility from {{Pkg|pipewire-tools}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ pw-cat -p test.flac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== pw-cat recording ===&lt;br /&gt;
If you have a microphone test audio recording is working.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ pw-cat -r --list-targets&lt;br /&gt;
$ pw-cat -r recording.flac&lt;br /&gt;
(Speak for a while then stop it with Ctrl+c)&lt;br /&gt;
$ pw-cat -p recording.flac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== PulseAudio ===&lt;br /&gt;
Test PulseAudio clients using a media player, as most use PulseAudio.&lt;br /&gt;
&lt;br /&gt;
=== JACK ===&lt;br /&gt;
Use &amp;lt;code&amp;gt;jack_simple_client&amp;lt;/code&amp;gt; from {{Pkg|jack-simple-clients}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ jack_simple_client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should hear a sustained beep.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== `wpctl status` shows no targets ===&lt;br /&gt;
&lt;br /&gt;
First, check whether ALSA knows about your sound card:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
aplay -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If sound devices are found, the issue is with your pipewire configuration.  Consider double-checking the instructions above.&lt;br /&gt;
&lt;br /&gt;
Otherwise, your sound card may not be supported in the version of the Linux Kernel you&#039;re running.  You should search online for fixes relating to your current kernel version and the codec of your sound card.  You can find each of these with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uname -r&lt;br /&gt;
cat /proc/asound/card0/codec* | grep Codec&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Error acquiring bus address: Cannot autolaunch D-Bus without X11 $DISPLAY ===&lt;br /&gt;
This means D-Bus session bus is not started and GUI is not active (i.e. you are in a tty). Use &amp;lt;code&amp;gt;dbus-launch&amp;lt;/code&amp;gt; as outlined [[#Running|above]]. Alternatively, [[#D-Bus|disable D-Bus support]].&lt;br /&gt;
&lt;br /&gt;
== Quick Configuration ==&lt;br /&gt;
&lt;br /&gt;
You might want to use {{Pkg|pavucontrol}} to have a simple GUI app for controlling sound, outputs, etc.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [https://gitlab.freedesktop.org/pipewire/pipewire PipeWire source repository]&lt;br /&gt;
* [https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/home PipeWire Wiki]&lt;br /&gt;
* [https://wiki.archlinux.org/index.php/PipeWire PipeWire on the ArchWiki]&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Pipewire PipeWire on the Gentoo Wiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Desktop]]&lt;br /&gt;
[[Category:Multimedia]]&lt;br /&gt;
[[Category:Sound]]&lt;/div&gt;</summary>
		<author><name>ForeverNoob</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Include:Upgrading_to_latest_release&amp;diff=22324</id>
		<title>Include:Upgrading to latest release</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Include:Upgrading_to_latest_release&amp;diff=22324"/>
		<updated>2022-09-15T20:00:10Z</updated>

		<summary type="html">&lt;p&gt;ForeverNoob: Fixed typo.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==== Repository Settings ====&lt;br /&gt;
&lt;br /&gt;
First thing is to to edit or check the {{Path|/etc/apk/repositories}} file.&lt;br /&gt;
&lt;br /&gt;
Besides doing it manually (see below) this may be done using one of the following shortcuts.&lt;br /&gt;
:* Launching the corresponding Alpine setup script, {{Cmd|setup-apkrepos}} and pressing {{Key|e}} to edit {{Path|/etc/apk/repositories}}. Then editing the repository lines to reflect the new version number.&lt;br /&gt;
:* Or, use a one-line command to edit all version numbers in the file &amp;quot;in place&amp;quot;. Here&#039;s how you&#039;d change &amp;lt;var&amp;gt;v2.5&amp;lt;/var&amp;gt; to &amp;lt;var&amp;gt;v2.6&amp;lt;/var&amp;gt;: {{Cmd|sed -i -e &#039;s/&amp;lt;var&amp;gt;v2\.5&amp;lt;/var&amp;gt;/&amp;lt;var&amp;gt;v2.6&amp;lt;/var&amp;gt;/g&#039; /etc/apk/repositories}}&lt;br /&gt;
&lt;br /&gt;
Note, subsequent manual changes of the version numbers in {{Path|/etc/apk/repositories}} may be avoided for future release upgrades by having the repository lines refer to &amp;quot;latest-stable&amp;quot; instead of an absolute value:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|http://dl-3.alpinelinux.org/alpine/latest-stable/main&lt;br /&gt;
http://dl-3.alpinelinux.org/alpine/latest-stable/community}}&lt;br /&gt;
&lt;br /&gt;
However, beware of initiating unexpected release upgrades.&lt;br /&gt;
&lt;br /&gt;
Manual editing of {{Path|/etc/apk/repositories}}:&lt;br /&gt;
&lt;br /&gt;
{{:Include:Using_Internet_Repositories_for_apk-tools}}&lt;br /&gt;
&lt;br /&gt;
==== Upgrading packages ====&lt;br /&gt;
&lt;br /&gt;
At times it is required to first upgrade just the Alpine Linux Package Manager itself to the latest available version, before upgrading any other package. This was the case, for example, when upgrading from a version of Alpine before 2.3.0_rc1. But  simply always doing so shouldn&#039;t hurt, either:&lt;br /&gt;
{{Cmd|apk add --upgrade apk-tools}}&lt;br /&gt;
&lt;br /&gt;
Next, to upgrade all installed packages:&lt;br /&gt;
{{Cmd|apk upgrade --available}}&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;--available&amp;lt;/code&amp;gt; switch is used to force all packages to be upgraded, even if they have the same version numbers. Sometimes changes in uClibc require doing this.&lt;br /&gt;
&lt;br /&gt;
{{Note|All services that have been upgraded need to be restarted, to begin using the upgraded version. If the kernel is upgraded, it&#039;s required to reboot to begin using the upgraded version:&lt;br /&gt;
{{Cmd|sync&lt;br /&gt;
reboot}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Package Manager]]&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>ForeverNoob</name></author>
	</entry>
</feed>