this post was submitted on 15 Jan 2025
12 points (100.0% liked)

Linux

8732 readers
180 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

I have been using the "Teams For Linux" flathub app for a few days and at first I celebrated, because I could finally use teams without major workarounds and so that it just works. However today it decided to crash my audio device after about 20 minutes and it did so consistently... It crashes it so hard, that I need to restart my system every time it occurrs...

Things that do not work to get my audio back up and running:

  • restarting pipewire service with systemctl --user restart pipewire.service
  • restarting pipewire-pulse with systemctl --user restart pipewire-pulse.service
  • restarting alsa with sudo alsactl -F restore
  • relogging
  • unplugging USB

I am using Fedora 41 and my audio interface is the Motu M2

As far as I can tell the audio is just broken beyond repair and I have no idea why. I've always had audio problems on linux, but never to this degree. Maybe I have to try another distro, but I actually don't really want to. It is just super annoying and if anyone has an idea how to fix this mess I will try it and hope that it works :D

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 3 weeks ago (1 children)

I've never used the --user flag to reset/restart a service.

Have you tried systemctl reset-failed ?

And then systemctl daemon-reload or daemon-reexec

[–] [email protected] 1 points 3 weeks ago (1 children)

No I have not tried that, though pw-top still worked, in general pipewire still worked, I just didn't get any sound anymore....

The --user flag commands come from this reddit thread: https://www.reddit.com/r/pop_os/comments/v3g2w9/is_there_a_cli_command_to_restart_pipewire/

[–] [email protected] 2 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Maybe try without the flag.

You can see what errors may have caused the issue by checking systemctl status NAMEOFSERVICE.service
or
journalctl -xem -o with-unit -p1 -p2 -p3 | grep -i pipewire

That may additionally help you diagnose the cause.

[–] [email protected] 1 points 3 weeks ago (1 children)

Since they are started with the user session these services do only exist there. If you try to restart them without the flag they just don't exist.

The journal would be a nice way to look for sure, but the command you posted throws an error for me:

Using --boot or --list-boots with --merge is not supported.

[–] [email protected] 1 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

weird. Just change -xem to -xeb

You can also do -xe --since yesterday

The reset-failed should also work to reset any/all failed units/services so you don't have to go through one by one.

Fedora may be a bit different in the need for the --user flag, so try with/without.

But I've had an entire user scope crash and dump and recovered using it.

[–] [email protected] 1 points 3 weeks ago (1 children)

A small capture of the log (these errors were repeating multiple times):

Wed 2025-01-15 15:09:47 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: set_hw_params: Protocol error Wed 2025-01-15 15:09:49 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: 'front:3': capture open failed: The device or resource is busy/occupied Wed 2025-01-15 15:09:49 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: 'front:3': capture open failed: The device or resource is busy/occupied Wed 2025-01-15 15:09:49 CET fedora [email protected]/pipewire.service[2482]: spa.audioadapter: params Spa:Enum:ParamId:EnumFormat: 1:0 (follower format) The device or resource is busy/occupied Wed 2025-01-15 15:09:49 CET fedora [email protected]/pipewire.service[2482]: pw.node: (alsa_output.usb-MOTU_M2_M2MT15188F-00.HiFi__Line1__sink-55) suspended -> error ((null)) Wed 2025-01-15 15:09:49 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: 'front:3': capture open failed: The device or resource is busy/occupied Wed 2025-01-15 15:09:49 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: 'front:3': capture open failed: The device or resource is busy/occupied Wed 2025-01-15 15:09:49 CET fedora [email protected]/pipewire.service[2482]: spa.audioadapter: params Spa:Enum:ParamId:EnumFormat: 1:0 (follower format) The device or resource is busy/occupied Wed 2025-01-15 15:09:49 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: set_hw_params: Protocol error Wed 2025-01-15 15:09:50 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: set_hw_params: Protocol error Wed 2025-01-15 15:09:50 CET fedora [email protected]/pipewire.service[2482]: pw.node: (alsa_input.usb-046d_Logitech_Webcam_C925e_AE792FAF-02.analog-stereo-60) suspended -> error ((null)) Wed 2025-01-15 15:09:50 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: 'front:3': capture open failed: The device or resource is busy/occupied Wed 2025-01-15 15:09:50 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: 'front:3': capture open failed: The device or resource is busy/occupied Wed 2025-01-15 15:09:50 CET fedora [email protected]/pipewire.service[2482]: spa.audioadapter: params Spa:Enum:ParamId:EnumFormat: 1:0 (follower format) The device or resource is busy/occupied Wed 2025-01-15 15:09:50 CET fedora [email protected]/pipewire.service[2482]: spa.alsa: set_hw_params: Protocol error

I translated the error messages, because they were in German.

I think the most important line might be this one as this is the audio device I am actually using:

Wed 2025-01-15 15:09:49 CET fedora [email protected]/pipewire.service[2482]: pw.node: (alsa_output.usb-MOTU_M2_M2MT15188F-00.HiFi__Line1__sink-55) suspended -> error ((null))

[–] [email protected] 2 points 3 weeks ago (1 children)

I don't know if I can resolve this, but I've done some reading and the m2/m4 have some known issues with Linux.

Some patches and configs and instructions are here:

https://github.com/kiosion/alsa-motu-m2

Aside from that, there could be another application that is locking the card which is why you're getting the resource busy error.

As mentioned here:

https://unix.stackexchange.com/questions/753676/pipewire-pulse-no-sound-playback-open-failed-device-or-resource-busy

And some more issues/troubleshooting specifically with the m4:

https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3312

[–] [email protected] 2 points 3 weeks ago

I will look into that, thanks for your help, time and effort ❤️