hi folks!

Update: I got pipewire working now. This is what helped me:

sudo apt install pipewire-audio-client-libraries libspa-0.2-bluetooth libspa-0.2-jack
systemctl --user mask pulseaudio
systemctl --user --now enable pipewire{,-pulse}.{socket,service}

Now it is an audacity issue. Will make another thread for that.

The System

Processor 10920x, 32GB Ram, 3060ti, zoom u-22 DAC, Stream Deck, Logitech camera

The OS

Ubuntu 23.04 upgraded from 22.10 (yesterday)

TL;DR

I reactivated pulseaudio, disabling pipewire, now trying to revert without having to reinstall from scratch.

The Situation

I am currently working on my first linux daily driver. Hardware arrived yesterday. The pc has been in use for couple months but not as daily since the gpu was only a stand in.

It was running quite a rough config, ubuntu 22.10 with a pulse audio mod (disabled pipewire so I could hear sound when RDPing in).

I now reverted those changes with a guide (because my microphone would not be picked up by audacity) but it promptly destroyed my Desktop gui. I reinstalled ubuntu-desktop and the gui works again now.

But after disabling pulse and reenabling pipewire, I don’t get any sound output at all. pipewire status gives me the following output:

 pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Tue 2023-09-19 10:17:16 CEST; 5min ago
TriggeredBy:  pipewire.socket
   Main PID: 3211 (pipewire)
      Tasks: 2 (limit: 38029)
     Memory: 4.1M
        CPU: 122ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─3211 /usr/bin/pipewire

Sep 19 10:17:16  systemd[3204]: Started pipewire.service - PipeWire Multimedia Service.
Sep 19 10:17:16  pipewire[3211]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Sep 19 10:17:16  pipewire[3211]: mod.rt: found session bus but no portal

Update

I have tried to re/install pipewire, xdg-desktop-portal, xdg-desktop-portal-gnome, all without change.

Important: I’m using x11, not wayland as nvidia drivers don’t seem to support wayland.

Thank you for reading. Have a good one! :)

    • Haui@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I had one but I suppose it is broken. I reinstalled it, no change. Probably need to correct a config somewhere.

      • Vilian@lemmy.ca
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        you need to install the xdg-desktop-portal, and your desktop enviroment one(for gnome is xdg-desktop-portal-gnome, or KDE, xdg-desktop-portal-gnome)

        • Haui@discuss.tchncs.deOP
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Thanks for answering. Sadly, that didn’t help either.

          Reading package lists... Done
          Building dependency tree... Done
          Reading state information... Done
          xdg-desktop-portal-gnome is already the newest version (44~beta-1ubuntu2).
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          

          As I mentioned, I had changed from pipewire to pulse in 22.10 and now tried to change back. I needed a ton of work to get pulse working in 22.10 so A LOT of changes have been made but I have no idea how to trace them.

          I checked and the xdg-desktop-portal service seems to be installed but not running. Also, I’m using x11, now wayland afaik. Most guides reference wayland.

  • PuppyOSAndCoffee@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    I can’t help but wanted to say I feel this pain and you will find a soln! Keep at it! Sometimes a reinstall isn’t complete enough. Or a temp change you made is forgotten and the system is just doing what it’s told.

    • Haui@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I can already relate! :) I am running a homeserver on ubuntu 22.04 and I have been meticulous in my documentation and I was extremely cautious with every change I made. To be honest, I wasn’t this cautious with the desktop and it already shows.

      Will definitely keep your words in mind. Thanks a lot!

  • anonono@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    this is not audio specific but just an FYI, reinstalling does nothing on an updated system unless the program files were corrupted somehow, which is not normal.

    to really reinstall a program from scratch you have to use apt-get purge or apt purge to ensure that global configurations files are removed, and pay attention to the logs printed out because some files may not be removed.

    then, you have to manually delete your user configuration files for those programs, or create a new user un your computer to test it out first to see if user config files are generating any troubles.

    • Haui@discuss.tchncs.deOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I assume you mean reinstalling an app. Thanks. I figured it might help since reinstalling the desktop helped when that broke.

  • anon5621@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    what give output for u systemctl --user status xdg-desktop-portal.service .Also do u have installed packages pipewire-pulse and pipewire-media-session or wireplumber.

    • Haui@discuss.tchncs.deOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Thanks for answering! I’m banging my head against this proverbial wall for hours.

      Here’s the output of your command:

       xdg-desktop-portal.service - Portal service
           Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
           Active: active (running) since Tue 2023-09-19 13:19:01 CEST; 1h 56min ago
         Main PID: 3741 (xdg-desktop-por)
            Tasks: 7 (limit: 38029)
           Memory: 4.1M
              CPU: 392ms
           CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
                   └─3741 /usr/libexec/xdg-desktop-portal
      
      Sep 19 13:19:00 haui-TowerPC systemd[3200]: Starting xdg-desktop-portal.service - Portal service...
      Sep 19 13:19:01 haui-TowerPC systemd[3200]: Started xdg-desktop-portal.service - Portal service.
      

      Here’s the pipewire-pulse version

      haui@haui-TowerPC:/usr/share/pipewire$ pipewire-pulse --version
      pipewire-pulse
      Compiled with libpipewire 0.3.65
      Linked with libpipewire 0.3.65
      

      Here’s the pipewire-media-session version output:

      haui@haui-TowerPC:/usr/share/pipewire$ pipewire-media-session --version
      pipewire-media-session
      Compiled with libpipewire 0.3.65
      Linked with libpipewire 0.3.65
      

      output of wireplumber --version

      haui@haui-TowerPC:/usr/share/pipewire$ wireplumber --version
      Command 'wireplumber' not found, but can be installed with:
      sudo apt install wireplumber
      
      

      So I recon the first two are installed, wireplumber isnt (in fact I think uninstalling it was part of reverting to pipewire iirc.

      Here’s more random output someone on a forum asked for:

      haui@haui-TowerPC:/usr/share/pipewire$ pactl info
      Server String: /run/user/1000/pulse/native
      Library Protocol Version: 35
      Server Protocol Version: 35
      Is Local: yes
      Client Index: 161
      Tile Size: 65472
      User Name: haui
      Host Name: haui-TowerPC
      Server Name: PulseAudio (on PipeWire 0.3.65)
      Server Version: 15.0.0
      Default Sample Specification: float32le 2ch 48000Hz
      Default Channel Map: front-left,front-right
      Default Sink: @DEFAULT_SINK@
      Default Source: @DEFAULT_SOURCE@
      Cookie: 0f17:3dbb
      
      haui@haui-TowerPC:/usr/share/pipewire$ systemctl --user status pulseaudio.{socket,service}
       pulseaudio.socket - Sound System
           Loaded: loaded (/usr/lib/systemd/user/pulseaudio.socket; enabled; preset: enabled)
           Active: inactive (dead)
         Triggers:  pulseaudio.service
           Listen: /run/user/1000/pulse/native (Stream)
      
       pulseaudio.service - Sound Service
           Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: enabled)
           Active: inactive (dead)
      TriggeredBy:  pulseaudio.socket
      
      haui@haui-TowerPC:/usr/share/pipewire$ systemctl --user status pipewire{,-pulse}.{socket,service}  
       pipewire.socket - PipeWire Multimedia System Socket
           Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; preset: enabled)
           Active: active (running) since Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
            Until: Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
         Triggers:  pipewire.service
           Listen: /run/user/1000/pipewire-0 (Stream)
           CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire.socket
      
      Sep 19 13:18:57 haui-TowerPC systemd[3200]: Listening on pipewire.socket - PipeWire Multimedia System Socket.
      
       pipewire.service - PipeWire Multimedia Service
           Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
           Active: active (running) since Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
      TriggeredBy:  pipewire.socket
         Main PID: 3207 (pipewire)
            Tasks: 2 (limit: 38029)
           Memory: 5.1M
              CPU: 170ms
           CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
                   └─3207 /usr/bin/pipewire
      
      Sep 19 13:18:57 haui-TowerPC systemd[3200]: Started pipewire.service - PipeWire Multimedia Service.
      Sep 19 13:18:57 haui-TowerPC pipewire[3207]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
      Sep 19 13:18:57 haui-TowerPC pipewire[3207]: mod.rt: found session bus but no portal
      
       pipewire-pulse.socket - PipeWire PulseAudio
           Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.socket; enabled; preset: enabled)
           Active: active (running) since Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
            Until: Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
         Triggers:  pipewire-pulse.service
           Listen: /run/user/1000/pulse/native (Stream)
           CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire-pulse.socket
      
      Sep 19 13:18:57 haui-TowerPC systemd[3200]: Listening on pipewire-pulse.socket - PipeWire PulseAudio.
      
       pipewire-pulse.service - PipeWire PulseAudio
           Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: enabled)
           Active: active (running) since Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
      TriggeredBy:  pipewire-pulse.socket
         Main PID: 3209 (pipewire-pulse)
            Tasks: 2 (limit: 38029)
           Memory: 12.9M
              CPU: 379ms
           CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
                   └─3209 /usr/bin/pipewire-pulse
      
      Sep 19 13:18:57 haui-TowerPC systemd[3200]: Started pipewire-pulse.service - PipeWire PulseAudio.
      Sep 19 13:18:57 haui-TowerPC pipewire-pulse[3209]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
      Sep 19 13:18:57 haui-TowerPC pipewire-pulse[3209]: mod.rt: found session bus but no portal