Skip to content

Instantly share code, notes, and snippets.

@rubensa
Forked from the-spyke/pipewire.md
Created April 1, 2022 18:46
Show Gist options
  • Save rubensa/f3d85e7eca512b2d565110b43bae52a1 to your computer and use it in GitHub Desktop.
Save rubensa/f3d85e7eca512b2d565110b43bae52a1 to your computer and use it in GitHub Desktop.

Revisions

  1. @the-spyke the-spyke revised this gist Mar 30, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pipewire.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    Ubuntu 21.10 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use it for audio and Bluetooth instead of PulseAudio.

    This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA, you might get into conflicts.
    *This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA, you might get into conflicts.*

    Based on the [Debian Wiki](https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA), but adopted for Ubuntu 21.10.

  2. @the-spyke the-spyke revised this gist Mar 30, 2022. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions pipewire.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@

    Ubuntu 21.10 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use it for audio and Bluetooth instead of PulseAudio.

    This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA, you might get into conflicts.

    Based on the [Debian Wiki](https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA), but adopted for Ubuntu 21.10.

    ## Install
  3. @the-spyke the-spyke revised this gist Oct 31, 2021. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions pipewire.md
    Original file line number Diff line number Diff line change
    @@ -38,6 +38,10 @@ Copy the config file from the PipeWire examples into your ALSA configuration dir
    $ sudo cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/
    ```

    ## PulseAudio

    Everything was already done by the `pipewire-pulse` package.

    ## Bluetooth

    Remove this package and Bluetooth will be handled by PipeWire:
    @@ -46,10 +50,6 @@ Remove this package and Bluetooth will be handled by PipeWire:
    $ sudo apt remove pulseaudio-module-bluetooth
    ```

    ## PulseAudio

    Everything was already done by the `pipewire-pulse` package.

    ## Reboot

    Reboot and check if it works by running:
  4. @the-spyke the-spyke revised this gist Oct 31, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions pipewire.md
    Original file line number Diff line number Diff line change
    @@ -40,6 +40,8 @@ $ sudo cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf

    ## Bluetooth

    Remove this package and Bluetooth will be handled by PipeWire:

    ```sh
    $ sudo apt remove pulseaudio-module-bluetooth
    ```
  5. @the-spyke the-spyke revised this gist Oct 31, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pipewire.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    Ubuntu 21.10 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use it for audio and Bluetooth instead of PulseAudio.

    Those are reviewed instrcutions from the [Debian Wiki](https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA) applied to Ubuntu 21.10.
    Based on the [Debian Wiki](https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA), but adopted for Ubuntu 21.10.

    ## Install

  6. @the-spyke the-spyke revised this gist Oct 30, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pipewire.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    Ubuntu 21.10 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use it for audio and Bluetooth instead of PulseAudio.

    Those are reviewed instrcutions from the [Debian Wiki](https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA) and applied to Ubuntu 21.10.
    Those are reviewed instrcutions from the [Debian Wiki](https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA) applied to Ubuntu 21.10.

    ## Install

  7. @the-spyke the-spyke revised this gist Oct 30, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pipewire.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Enable PipeWire on Ubuntu 21.10

    Ubuntu 21.10 has PipeWire partially installed adn enabled as it's used by WebRTC for recoding the screeen under Wayland. We can enable it for audio as well and replace PulseAudio.
    Ubuntu 21.10 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use it for audio and Bluetooth instead of PulseAudio.

    Those are reviewed instrcutions from the [Debian Wiki](https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA) and applied to Ubuntu 21.10.

  8. @the-spyke the-spyke revised this gist Oct 30, 2021. 2 changed files with 57 additions and 45 deletions.
    57 changes: 57 additions & 0 deletions pipewire.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    # Enable PipeWire on Ubuntu 21.10

    Ubuntu 21.10 has PipeWire partially installed adn enabled as it's used by WebRTC for recoding the screeen under Wayland. We can enable it for audio as well and replace PulseAudio.

    Those are reviewed instrcutions from the [Debian Wiki](https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA) and applied to Ubuntu 21.10.

    ## Install

    Install Bluetooth codecs AAC/LDAC/AptX:

    ```sh
    $ sudo apt install \
    libfdk-aac2 \
    libldacbt-{abr,enc}2 \
    libopenaptx0
    ```

    Install remaining PipeWire packages:

    ```sh
    $ sudo apt install \
    libspa-0.2-bluetooth \
    pipewire-audio-client-libraries \
    pipewire-pulse
    ```

    ## ALSA

    Create this empty file:

    ```sh
    $ sudo touch /usr/share/pipewire/with-alsa
    ```

    Copy the config file from the PipeWire examples into your ALSA configuration directory:

    ```sh
    $ sudo cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/
    ```

    ## Bluetooth

    ```sh
    $ sudo apt remove pulseaudio-module-bluetooth
    ```

    ## PulseAudio

    Everything was already done by the `pipewire-pulse` package.

    ## Reboot

    Reboot and check if it works by running:

    ```sh
    $ LANG=C pactl info | grep '^Server Name'
    ```
    45 changes: 0 additions & 45 deletions pipewire.sh
    Original file line number Diff line number Diff line change
    @@ -1,45 +0,0 @@
    # Reviewed instrcutions from the https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA

    # Install
    # -------

    # Install Bluetooth codecs AAC/LDAC/AptX:

    sudo apt install \
    libfdk-aac2 \
    libldacbt-{abr,enc}2 \
    libopenaptx0

    # Install missing PipeWire packages:

    sudo apt install \
    libspa-0.2-bluetooth \
    pipewire-audio-client-libraries \
    pipewire-pulse

    # ALSA
    # ----

    # Create this empty file:

    sudo touch /usr/share/pipewire/with-alsa

    # Copy the config file from the PipeWire examples into your ALSA configuration directory:

    sudo cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/

    # Bluetooth
    # ---------

    sudo apt remove pulseaudio-module-bluetooth

    # PulseAudio
    # ----------

    # Everything was already done by the "pipewire-pulse" package

    # Reboot
    # ------

    # Reboot and check if it works by running:
    # LANG=C pactl info | grep '^Server Name'
  9. @the-spyke the-spyke created this gist Oct 30, 2021.
    45 changes: 45 additions & 0 deletions pipewire.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,45 @@
    # Reviewed instrcutions from the https://wiki.debian.org/PipeWire#Using_as_a_substitute_for_PulseAudio.2FJACK.2FALSA

    # Install
    # -------

    # Install Bluetooth codecs AAC/LDAC/AptX:

    sudo apt install \
    libfdk-aac2 \
    libldacbt-{abr,enc}2 \
    libopenaptx0

    # Install missing PipeWire packages:

    sudo apt install \
    libspa-0.2-bluetooth \
    pipewire-audio-client-libraries \
    pipewire-pulse

    # ALSA
    # ----

    # Create this empty file:

    sudo touch /usr/share/pipewire/with-alsa

    # Copy the config file from the PipeWire examples into your ALSA configuration directory:

    sudo cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/

    # Bluetooth
    # ---------

    sudo apt remove pulseaudio-module-bluetooth

    # PulseAudio
    # ----------

    # Everything was already done by the "pipewire-pulse" package

    # Reboot
    # ------

    # Reboot and check if it works by running:
    # LANG=C pactl info | grep '^Server Name'