I've got a lab for high school students, and I'd like to disable audio altogether on the lab computers.
Any suggestions? I've been looking at alsa force-unload
, but that only kills processes that are currently using the sound card. When I reload the browser and hit YouTube, sound comes back.
Basically, I want to unload sound from the kernel ...but easier than that.
blacklist snd
in a file/etc/modprobe.d/blacklist-snd.conf
? AFAIK all the snd modules depend on it (and it depends on soundcore -- seemodinfo snd
, so perhaps that's the one to blacklist) and I think it's responsible for loading up the sound cards, so in theory without it you shouldn't have any sound possible (unless someone hassudo
onmodprobe
). {Argh, you beat me too it!}