So I have a major problem with PulseAudio. When any app play sound (from a media player to a system sound, and even the volume change sound or a virtual machine through VirtualBox), it makes the app freeze for 10 seconds and play the sound.
It happens only if no sound played since a short time (if I listen to music there is no freezes for any app) and it's very annoying...
Here's what I already tried:
- Rebooting, of course, because reboot fix most problems, but not mine...
sudo apt install pulseaudio-module-jack
and insert this into/etc/pulse/default.pa
:
load-module module-jack-sink
load-module module-jack-source
- Uninstall (
sudo apt purge --auto-remove pulseaudio* alsa*
) and reinstall PulseAudio (and ALSA and everything related)- I don't have this problem if I uninstall PulseAudio
- Checking system logs (
/var/log/syslog
) → nothing related to PulseAudio or ALSA - Tried to play through
mplayer
or another command-line audio player. The problem is still there and no error message.
I finally gave up, waiting for a solution, or switching back to Windows if the problem persists (because I do a lot of audio-related things so it's major for me). Searching on Internet didn't help, it seems like nobody have the (exact) same problem... Note that the sound was perfectly working 1 week ago (and when I tested the beta of Ubuntu 20.04), and I didn't changed something sound-related.
If this may help, I installed other desktops on my system (Xfce and a not-fully uninstalled KDE) which may conflict with PulseAudio.
I hope there is a solution that don't need me to reinstall everything, it's the last thing I will do if I don't have a solution.
Regards.