Results 1 to 2 of 2

Thread: Ubuntu 24.04 Sound not working

  1. #1
    Join Date
    Dec 2024
    Beans
    2

    Ubuntu 24.04 Sound not working

    I've been using Ubuntu 18.04 for a long time and I had no issues with the audio on that distro. What I'm using is PulseAudio (I suspect) together with PulseEffects that allows me adjust the frequencies with the equalizer. With that I'm using an external USB device from which I listen to the sound. The USB device has a tendency to power off when no sound is going through it but that is not a problem because I can power it back up and continue using it. The only problem I had was that if I wanted to listen to audio through the HDMI on the major screen, that output tended to eventually break down and I had to enter "pulseaudio -k" to fix it but I'm rarely interested in using the speakers on the monitor anyway so it wasn't a big deal.

    Yesterday, I decided to upgrade all the way to 24.4 and now I start to have pretty serious issues. If I boot up the system with the USB audio device, everything works fine and I can launch PulseEffects and use as before. However, once it powers off I will not be able to use it again until I reboot and pretty much everything in the audio stack seems to be broken. By broken I mean that the mixers cannot see the device and sometimes they do but I get some distorted sound from the device. I cannot run alsamixer with the error "cannot open mixer: No such file or directory" and pulseaudio -k returns "E: [pulseaudio] main.c: Failed to kill daemon: No such process"...

    There used to be a list of all hardware devices under "Sound" in the graphical settings where you could drag and drop the hardware represented as icons to set the priority of the devices under audio playback. There no longer is such a thing in Ubunti 24.4, where did it go?

    When running inxi -FAxz I get this for the audio:

    Code:
    System:
      Kernel: 6.8.0-49-generic arch: x86_64 bits: 64 compiler: gcc v: 13.2.0
      Desktop: KDE Plasma v: 5.27.11 Distro: Kubuntu 24.04.1 LTS (Noble Numbat)
        base: Ubuntu
    
    Graphics:
      Device-1: Intel UHD Graphics 620 driver: i915 v: kernel
        arch: Gen-9.5 bus-ID: 00:02.0
      Device-2: Realtek Integrated_Webcam_HD driver: uvcvideo type: USB
        bus-ID: 1-5:3
      Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.6
        compositor: kwin_wayland driver:X:loaded: modesetting unloaded: fbdev,vesa
        dri: iris gpu: i915 resolution:1: 1920x1080 2: 1920x1080
      API: EGL v: 1.5 drivers: iris,swrast platforms:
        active: wayland,x11,surfaceless,device inactive: gbm
      API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.0.9-0ubuntu0.2
        glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 620 (KBL
        GT2)
      API: Vulkan v: 1.3.275 drivers: N/A surfaces: xcb,xlib,wayland devices: 2
    Audio:
      Device-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
        v: kernel bus-ID: 00:1f.3
      Device-2: FiiO Q5 driver: snd-usb-audio type: USB bus-ID: 3-1:4
      API: ALSA v: k6.8.0-49-generic status: kernel-api
      Server-1: PipeWire v: 1.0.5 status: active
      Server-2: PulseAudio v: 16.1 status: off (using pipewire-pulse)
    
    This is after I powered the USB device back on and not being able to use it anymore. The output indicates that the hardware is there (FiiO Q5) and there is a driver for it (snd-usb-audio). So what do I do? This must be a bug or something. It seems that the audio stack is broken once again and that essential software to manage multiple audio devices as they come and go is missing.

    Edit it seems that the sound stack has been replaced with pipewire. I looked into these instructions here:

    https://www.baeldung.com/linux/pulse...pewire-replace

    but it seems to be broken. I get this when running `systemctl status --user pipewire`:

    Code:
     pipewire.service - PipeWire Multimedia Service
         Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
         Active: active (running) since Sat 2024-12-07 23:56:43 MSK; 3h 25min ago
    TriggeredBy:  pipewire.socket
       Main PID: 1693 (pipewire)
          Tasks: 3 (limit: 18761)
         Memory: 24.9M (peak: 25.9M)
            CPU: 2min 59.059s
         CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
                 └─1693 /usr/bin/pipewire
    
    dec 07 23:56:43 pod systemd[1678]: Started pipewire.service - PipeWire Multimedia Service.
    dec 07 23:56:43 pod pipewire[1693]: mod.jackdbus-detect: Failed to receive jackdbus reply: org.freedesktop.DBus.Error.ServiceUnknown: >
    dec 08 00:03:51 pod pipewire[1693]: mod.client-node: 0x5a432e65ed10: unknown peer 0x5a432e6380a0 fd:69
    dec 08 00:03:52 pod pipewire[1693]: mod.client-node: 0x5a432e6382d0: unknown peer 0x5a432e5c9850 fd:128
    dec 08 02:35:12 pod pipewire[1693]: mod.client-node: 0x5a432f2f1b60: unknown peer 0x5a432e314180 fd:55
    dec 08 03:16:12 pod pipewire[1693]: mod.client-node: 0x5a432e68a2a0: unknown peer 0x5a432e4bac10 fd:55
    dec 08 03:16:13 pod pipewire[1693]: mod.client-node: 0x5a432e68a2a0: unknown peer 0x5a432f2f9550 fd:55
    dec 08 03:16:14 pod pipewire[1693]: mod.client-node: 0x5a432f4d4c10: unknown peer 0x5a432e2f4a40 fd:106
    
    and this is for wireplumber

    Code:
     wireplumber.service - Multimedia Service Session Manager
         Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
         Active: active (running) since Sat 2024-12-07 23:56:43 MSK; 3h 28min ago
       Main PID: 1696 (wireplumber)
          Tasks: 6 (limit: 18761)
         Memory: 6.0M (peak: 9.4M)
            CPU: 4.404s
         CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
                 └─1696 /usr/bin/wireplumber
    
    dec 07 23:56:43 pod systemd[1678]: Started wireplumber.service - Multimedia Service Session Manager.
    dec 07 23:56:43 pod wireplumber[1696]: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
    dec 07 23:56:43 pod wireplumber[1696]: PipeWire's libcamera SPA missing or broken. libcamera not supported.
    dec 08 02:52:25 pod wireplumber[1696]: <WpSiStandardLink:0x5b482a494350> si-standard-link: in/out items are not valid anymore
    dec 08 03:24:54 pod wireplumber[1696]: <WpSiNode:0x5b482a6fbb60> Object activation aborted: proxy destroyed
    dec 08 03:24:54 pod wireplumber[1696]: <WpSiNode:0x5b482a6fbb60> failed to activate item: Object activation aborted: proxy destroyed
    
    Edit 2:
    I rebooted the system and got it all working again with the effects of installing pipewire and purging pulseaudio. Pulse effects was now gone but I was offered Easy Effects to replace it. I tried turning off and on the USB audio device and it seems to be fine now. It seems to be robust under the new installation for now. The error messages from systemctl are the same also when it is working so I doubt they would be useful in a troubleshooting scenario.
    Last edited by axero; December 8th, 2024 at 01:48 AM.

  2. #2
    Join Date
    Dec 2024
    Beans
    2

    Re: Ubuntu 24.04 Sound not working

    After some more extensive testing, the problem with the external USB audio device persists. Pipewire fails to get it back into the audio stack after the device have been restored from sleep/power off state. Running the command

    systemctl --user restart pipewire pipewire-pulse wireplumber

    fixes the issue temporarily
    Last edited by axero; December 8th, 2024 at 03:35 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •