Yeah I’ve had similar problems. I use a usb/kvm switch to switch multiple laptops and desktops on a single monitor/keyboard/mouse. There should be a conf file somewhere that lets you set what gets switched when a usb gets plugged/unplugged or when the computer sleeps. I’m on my phone at the moment so I can’t easily look it up right now.
Let me know if you figure out where that is. Hopefully I can change that on Bazzite. Maybe I should consider hopping to base Fedora to avoid the atomic distro complications
Looks like this was a long time ago. I was using pulse audio on Ubuntu. Which I guess is ancient now.
I had to edit /etc/pulse/default.pa
And edit things like load-modulemodule-switch-on-connect which dealt with USB connect event handling.
I don’t use bazzite, looks like that is a fedora based distro.
Which I guess now uses pipewire/wireplumber. (And I guess ubuntu does too now?)
I would suggest googling something like “pipewire session.suspend-timeout-seconds”
Yeah I’ve had similar problems. I use a usb/kvm switch to switch multiple laptops and desktops on a single monitor/keyboard/mouse. There should be a conf file somewhere that lets you set what gets switched when a usb gets plugged/unplugged or when the computer sleeps. I’m on my phone at the moment so I can’t easily look it up right now.
Let me know if you figure out where that is. Hopefully I can change that on Bazzite. Maybe I should consider hopping to base Fedora to avoid the atomic distro complications
Looks like this was a long time ago. I was using pulse audio on Ubuntu. Which I guess is ancient now. I had to edit /etc/pulse/default.pa And edit things like
load-module module-switch-on-connectwhich dealt with USB connect event handling.I don’t use bazzite, looks like that is a fedora based distro. Which I guess now uses pipewire/wireplumber. (And I guess ubuntu does too now?)
I would suggest googling something like “pipewire session.suspend-timeout-seconds”
You’ll find a bunch of similar issues:
https://discussion.fedoraproject.org/t/how-do-i-disable-audio-sink-suspend-on-idle-using-wireplumber-and-pipewire-on-fedora-35-so-that-my-audio-isnt-delayed-when-playback-resumes/69861
https://www.reddit.com/r/archlinux/comments/1cb1juo/i_cant_stop_pipewire_from_suspending_my_speakers/
This is for Mint, but I’m thinking this same “session.suspend-timeout-seconds” property is going to be what you are looking for.
https://www.lexo.ch/blog/2024/09/fix-audio-delays-and-missing-audio-notifications-in-ubuntu-and-linux-mint-disabling-pipewire-and-wireplumber-suspend/
It looks like setting that property to 0 might prevent suspend from stopping your audio.
If not, I think this gives you a pretty good idea of where to look for the config files:
/usr/share/wireplumberAnd from there, you can probably get a good idea of the various property names and what they do.