I have a Pi 2B running Ubuntu MATE connected to a small TV by HDMI. For some reason I get no sound for practically all of the time, neither on HDMI nor the headphone jack, even after forcing the sound output to the relevant device using
Some details and background
One thing that is very interesting about this is that if I leave my Pi alone for a long time while playing audio, the audio improves slowly until is is is almost clean (it sometimes takes hours just to get intermittent snippets). Whenever I start doing things, however, like switching windows or clicking, it immediately goes back to its former state.
Another interesting thing is that the sound has deteriorated from being usable to absolutely useless. At first OMXplayer worked fine, but now nothing works.
I don't have any more clues or ideas to give. I am stumped and frustrated, and I just have to live with non-functioning audio. Anyone who can help me solve this will get a 100 rep bounty.