Kubuntu 24.10音频设置中“Add virtual device”选项不显示,无法实现多设备同时音频输出
Hi there, sorry to hear you're stuck trying to get audio to play through both your line out and headphones at the same time. Let's work through some troubleshooting steps to fix the missing "Add virtual devices" option and get your simultaneous output working:
- Install/Verify PipeWire components
Kubuntu 24.10 uses PipeWire as its default audio server, but sometimes the virtual device tools might not be fully set up. Open a terminal and run this command to ensure all necessary packages are installed:
sudo apt update && sudo apt install pipewire-audio pipewire-pulse pavucontrol
After installation, restart your system to let the changes take effect.
Double-check pavucontrol settings
You mentioned enabling "Show virtual devices" in the volume control (pavucontrol)—let's make sure you're looking in the right tabs:- Open pavucontrol and go to the Output Devices tab. If virtual devices are enabled, you should see a "Combined Output" device (or similar) listed here. Select this as your default output, and it should route audio to both your line out and headphones.
- If you don't see it, head to the Configuration tab and set your audio hardware to "Duplex" mode, then check the Output Devices tab again.
Reset PipeWire configuration
Sometimes corrupted config files can hide the virtual device option. Let's reset to the default settings:- First, back up your current config (just in case):
cp ~/.config/pipewire/pipewire.conf ~/.config/pipewire/pipewire.conf.bak - Then copy the default config file over:
sudo cp /usr/share/pipewire/pipewire.conf ~/.config/pipewire/ - Restart the PipeWire services with:
systemctl --user restart pipewire pipewire-pulse
- First, back up your current config (just in case):
Now check System Settings > Audio again—the "Add virtual devices" option should appear if the config was the issue.
- Manually route audio streams
If the combined device still doesn't show up, you can manually send audio to both devices via pavucontrol:- Go to the Playback tab. For each audio stream playing, click the dropdown menu next to it and select the output device you want to use. You can repeat this for multiple streams to send them to both line out and headphones.
Give these steps a try, and let me know if any of them get your simultaneous audio working. If you hit any snags, feel free to share more details about your audio hardware setup!
备注:内容来源于stack exchange,提问作者César Moltoni

