Ubuntu – Why does audio stop playing when switching to a virtual terminal

soundvirtual-console

When switching to a virtual terminal, e.g. using Ctrl+Alt+F2, audio from the desktop environment stops, e.g. music from Grooveshark or the VLC Media Player stops. Why is this? Is there any way to prevent it?

Best Answer

Not using Ubuntu, I'm using Fedora but pretty sure the same will work on Ubuntu.

cd /dev/snd
chmod o+rw *

But try first to add the user you log in as to the group audio.

I seem to remember that there are some files or processes that change group ID when you switch virtual consoles.