Home » Questions » Computers [ Ask a new question ]

Restart Ubuntu sound processes via command line

Restart Ubuntu sound processes via command line

I tried to hibernate Ubuntu (which fails, but thats another issue) and resumed my system.

Asked by: Guest | Views: 289
Total answers/comments: 3
Guest [Entry]

"If Ubuntu is still using Alsa for its sound engine (I'm not sure as its been awhile since I've used it), you can restart by typing sudo /etc/init.d/alsa-utils restart into the terminal.

Since it doesn't seem to be working, you might need to make sure that nothing is trying to use it. (example shamelessly stolen from the Ubuntu forums)

name@comp:~$ lsof | grep pcm
sh 5079 name 70u CHR 116,6 13639 /dev/snd/pcmC0D0p

name@comp:~$ kill -9 5079"
Guest [Entry]

"PulseAudio is a user service, so run systemctl with the --user flag.

systemctl --user restart pulseaudio"
Guest [Entry]

I reverted to a previous kernel after a reboot. Sound was restored. I found out that the newer upgraded kernel did not have the extra modules installed like the older one did. lsmod listed no sound modules.