Sound Not Working After Installing NVIDIA

I faced an issue today after installing the NVIDIA driver 570. The sound stopped working, and I got "Dummy Output." With every attempt, I lost hope, spending a whole day searching for a solution.

In the end, I found this code:

sudo modprobe -r snd_hda_intel
sudo modprobe snd_hda_intel

It worked and fixed the problem, but when I restarted my laptop, the issue started again.

So, I got a solution with the help of an AI chat by creating a file that runs on startup.

Here's what I did:

  • Create the script file:
sudo nano /usr/local/bin/fix-sound.sh
  • Add the following code:
#!/bin/bash
sudo modprobe -r snd_hda_intel
sudo modprobe snd_hda_intel

Save it by pressing: Ctrl + X, then Y, then Enter.

  • Give execution access to the file:
sudo chmod +x /usr/local/bin/fix-sound.sh
  • Open the system startup file:
sudo nano /etc/rc.local
  • Add the script file location to the file:
  • If the file is empty, use this code:
#!/bin/sh -e
/usr/local/bin/fix-sound.sh
exit 0
  • Or add
    /usr/local/bin/fix-sound.sh

before exit 0 if there are existing lines.

  • Save the file by pressing: Ctrl + X, then Y, then Enter.
  • Finally, reboot:
sudo reboot

It's working :bouquet:!

4 Likes