Pipewire integration / Ask for help with sound issues

Hello Kaisen,

I am currently trying to fix my sound problems due to my enthusiast/server hardware.
My sound is cuting periodicly and the bigest problem : my audio controller isn’t detected until I do sudo apt reinstall pulseaudio.

I would like to try to use pipewire instead of pulseaudio. What are my options ?
I’ve read in of the topic what I shouldn’t try to add PPA and insted ask to you for integration.

By the way, I have tryed to do it but I am stock with this error :

niki@nikilab ~ $ sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream
[sudo] password for niki: 
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 361, in <module>
    addaptrepo = AddAptRepository()
                 ^^^^^^^^^^^^^^^^^^
  File "/usr/bin/add-apt-repository", line 39, in __init__
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Kaisen/rolling

Could you please explain how to correctly fix this issue and not modify /etc/os-release like some would “fix” xD ?

Hello and welcome @niki,

Don’t touch the /etc/os-release file. I not advise you to add the ppa repository.
Pulseaudio is used instead of pipewire :slight_smile:

@niki, if you still need help with this let me know

inxi -A 
Audio:
  Device-1: NVIDIA driver: snd_hda_intel
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  Device-4: DisplayLink UOEOS Laptop Dock type: USB
    driver: cdc_ncm,snd-usb-audio
  Sound API: ALSA v: k6.2.5-zen1-1-zen running: yes
  Sound Server-1: PipeWire v: 0.3.67 running: yes


wpctl status
PipeWire 'pipewire-0' [0.3.67, me@arch-me, cookie:2948465065]
 └─ Clients:
        31. pipewire                            [0.3.67, me@arch-me, pid:1318]
        33. WirePlumber                         [0.3.67, me@arch-me, pid:1313]
        34. WirePlumber [export]                [0.3.67, me@arch-me, pid:1313]
        40. Plasma PA                           [0.3.67, me@arch-me, pid:910]
        69. Firefox                             [0.3.67, me@arch-me, pid:32424]
        73. Firefox                             [0.3.67, me@arch-me, pid:32424]
        88. Strawberry                          [0.3.67, me@arch-me, pid:35762]
        93. Strawberry device finder            [0.3.67, me@arch-me, pid:35762]
       100. wpctl                               [0.3.67, me@arch-me, pid:109276]
       102. xdg-desktop-portal                  [0.3.67, me@arch-me, pid:68163]
       118. libcanberra                         [0.3.67, me@arch-me, pid:910]

Audio
 ├─ Devices:
 │      44. HDA NVidia                          [alsa]
 │      45. UOEOS Laptop Dock                   [alsa]
 │      46. Family 17h/19h HD Audio Controller  [alsa]
 │  
 ├─ Sinks:
 │      56. UOEOS Laptop Dock Analog Surround 4.1 [vol: 0.52]
 │  *   57. Family 17h/19h HD Audio Controller Analog Stereo [vol: 0.40]
 │  
 ├─ Sink endpoints:
 │  
 ├─ Sources:
 │  *   58. Family 17h/19h HD Audio Controller Analog Stereo [vol: 1.00]
 │  
 ├─ Source endpoints:
 │  
 └─ Streams:
        89. Strawberry                                                  
             76. output_RL       > UOEOS Laptop Dock:playback_RL        [active]
             94. output_LFE      > UOEOS Laptop Dock:playback_LFE       [active]
            112. output_RR       > UOEOS Laptop Dock:playback_RR        [active]
            113. output_FL       > UOEOS Laptop Dock:playback_FL        [active]
            115. output_FR       > UOEOS Laptop Dock:playback_FR        [active]

Video
 ├─ Devices:
 │      41. Integrated Camera: Integrated C     [libcamera]
 │      42. Integrated Camera                   [v4l2]
 │      43. Integrated Camera                   [v4l2]
 │  
 ├─ Sinks:
 │  
 ├─ Sink endpoints:
 │  
 ├─ Sources:
 │      47. Built-in Front Camera              
 │  *   49. Integrated Camera (V4L2)           
 │  
 ├─ Source endpoints:
 │  
 └─ Streams:

Settings
 └─ Default Configured Node Names:


Hi Rick,

Yes, please help me. If you need more system info, tel me. I will send it tonight when I come back from work.

I promise, I will not tel to kaisen what you helped me to add repos other than Kaisen’s xD.

I see you @niki:smile:

The sacrifice of my OS may be beneficial for others xD
If pipewire will do the trick, I will package it for Kaisen.

Please take this with a grain of salt, I found that PPA non useful, and instead “I” use a Debian Testing Repo.
Example on mine:(The Top 2 shown are the ones to use)
And a Tip, I would not run pipewire as root.

inxi -r && apt policy wireplumber pipewire
Repos:
  Active apt repos in: /etc/apt/sources.list
    1: deb http://deb.debian.org/debian/ testing main contrib non-free
    2: deb-src http://deb.debian.org/debian/ testing non-free contrib main
    3: deb https://deb.kaisenlinux.org/ kaisen-rolling main contrib non-free
    4: deb-src https://deb.kaisenlinux.org/ kaisen-rolling main contrib non-free
    5: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/bullseye-backports.list
    1: deb http://deb.debian.org/debian bullseye-backports main contrib
    2: deb-src http://deb.debian.org/debian bullseye-backports main contrib
  Active apt repos in: /etc/apt/sources.list.d/eddie.website.list
    1: deb http://eddie.website/repository/apt/ stable main
  Active apt repos in: /etc/apt/sources.list.d/kxstudio-debian-ppas.list
    1: deb http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic main
    2: deb http://ppa.launchpad.net/kxstudio-debian/music/ubuntu bionic main
    3: deb http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu bionic main
    4: deb http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu bionic main
    5: deb http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu bionic main
  Active apt repos in: /etc/apt/sources.list.d/kxstudio-external.list
    1: deb [arch=amd64,i386] https://kx.studio/repo/ stable free
    2: deb [arch=amd64,i386] https://kx.studio/repo/ gcc5 free
  Active apt repos in: /etc/apt/sources.list.d/nordvpn.list
    1: deb https://repo.nordvpn.com//deb/nordvpn/debian stable main
  Active apt repos in: /etc/apt/sources.list.d/sublime-text.list
    1: deb https://download.sublimetext.com/ apt/stable/
wireplumber:
  Installed: (none)
  Candidate: 0.4.13-1
  Version table:
     0.4.13-1 990
        990 http://deb.debian.org/debian testing/main amd64 Packages
        500 https://deb.kaisenlinux.org kaisen-rolling/main amd64 Packages
        100 /var/lib/dpkg/status
     0.4.13-1~bpo11+1 100
        100 http://deb.debian.org/debian bullseye-backports/main amd64 Packages
pipewire:
  Installed: 0.3.65-3
  Candidate: 0.3.65-3
  Version table:
 *** 0.3.65-3 990
        990 http://deb.debian.org/debian testing/main amd64 Packages
        500 https://deb.kaisenlinux.org kaisen-rolling/main amd64 Packages
        100 /var/lib/dpkg/status
     0.3.65-2~bpo11+1 100
        100 http://deb.debian.org/debian bullseye-backports/main amd64 Packages

Here is the current state on pulse:

systemctl --user status pulseaudio 
○ pulseaudio.service
     Loaded: masked (Reason: Unit pulseaudio.service is masked.)
     Active: inactive (dead)
``

and

 LANG=C pactl info | grep '^Server Name'
Server Name: PulseAudio (on PipeWire 0.3.65)

inxi is also a useful tool:

Sound API: ALSA v: k6.2.6-060206-generic running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.65 running: yes

The newer version of PipeWire that will be present in Debian 12, and that is currently present in Debian Testing/Unstable, has vastly improved compatibility and reliability, and is also much easier to configure as a replacement.

My method was pretty much as found here: PipeWire - Debian Wiki
Good Luck I’ll check back.

Thank you a lot ! Nice work ! I will try it this night. I will send my feedback tomorow.

@1fallen Hi man, I am really sorry I couldn’t test it tonight. My univercity asked me to produce some documents for my exam. I promise to get back to you !

No worries I’ll check back, and hopefully you’ll have a :grin: for us.

1 Like