Article 6MCT4 Unable to re-add pcspkr module after using modprobe to remove it

Unable to re-add pcspkr module after using modprobe to remove it

by
echo_LOGNAME
from LinuxQuestions.org on (#6MCT4)
(I'm using Ubuntu Jammy Jellyfish with vanilla Gnome).
In an attempt to get the beep command to work, I read on a forum that I could do:

# unload pcspkr module
sudo modprobe -r pcspkr
# add snd-pcsp module
sudo modprobe snd-pcsp

However, now my computer can't produce any sound at all. I think beep works fine now, but I couldn't tell until I tried playing a YouTube video and nothing no matter what I did to the volume.
So, I tried to add it back:

sudo modprobe pcspkr

but got the error:

modprobe: ERROR: could not insert 'pcspkr': Device or resource busy

So, I tried removing snd-pcsp if it was causing the issue:

sudo modprobe -r snd-pcsp

with the resulting error:

modprobe: FATAL: Module snd_pcsp is in use.

So, I checked to see what was installed and what wasn't.

lsmod | grep pcspkr

Returned nothing and:

lsmod | grep snd-pcsp

also returned nothing.
Any advice on how to fix this would be greatly appreciated!
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments