No sound trough NVIDIA HDMI (SOLVED)

This is an annoying issue i’ve been facing, thankfully a guy named Fludizz on nvidia devtalk provided a clean solution in this devtalk post.

Create a new service file /etc/systemd/system/fix-hdmi-audio.service:

Description=nVidia HDMI Audio Fixer
Before=systemd-logind.service display-manager.service

Create the script the service will run /root/

setpci -s 01:00.0 0x488.l=0x2000000:0x2000000
rmmod nvidia-uvm nvidia-drm nvidia-modeset nvidia
sh -c 'echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove'
sh -c 'echo 1 > /sys/bus/pci/devices/0000:00:01.0/rescan'
modprobe nvidia nvidia-modeset nvidia-drm nvidia-uvm

make the script executable, enable the service and reboot!

chmod +x /root/
systemctl enable fix-hdmi-audio.service

Sunrise Point-H HD Audio – snd_hda_intel on 4.14 kernel

Since this version of the kernel on Fedora i has several noises coming from the external speakers on my Asus gl702vm laptop. It seems like a problem related to a sort of standby, after few seconds of silence the sound card would start doing this weird noise (like and unplugged jack).The solution i’ve found is to disable the standby on the soundcard setting at boot the parameter: snd_hda_intel.power_save=0

nano /etc/default/grub
add the parameter: snd_hda_intel.power_save=0
grub2-mkconfig -o /boot/grub2/grub.cfg​ (grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg)


Maya on Fedora 25/26


dnf install mesa-libGLw libXp gamin audiofile audiofile-devel e2fsprogs-libs libpng12 libXmu libXt libXi libXinerama libxcb tcsh  xorg-x11-fonts-ISO8859-1-100dpi xorg-x11-fonts-ISO8859-1-75dpi liberation-mono-fonts liberation-fonts-common liberation-sans-fonts liberation-serif-fonts gstreamer-plugins-base

install maya:


make some links:

ln -s /usr/lib64/ /usr/lib64/

Nvidia Optimus and Fedora 25

Hi everyone,

this is a quick howto on installing Nvidia Drivers on a Laptop with Optimus and Fedora 25. The setup is far from being perfect but at least allows me to use the Nvidia card on Fedora.
I’m using Fedora 25 MATE, i guess the setup process would be really similar for other Desktop Environments, I’d suggest you to watch the links i put as reference to get further infos.

Here are the guides i’ve been following:


The starting point is a clean install of Fedora 25. First of all let’s make sure everything is up to date.

dnf update

Reboot the computer so it will be running on the latest kernel.
We need also to download the latest binary driver for the nvidia card from: (At the moment the latest available one for my video card is 375.26)

Next step is to install all the dependencies to allow the Nvidia driver install.

dnf install kernel-devel kernel-headers gcc dkms acpid

Then we need to blacklist the nouveau driver.

echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf

Then we need to modify the file /etc/default/grub (be careful, in the first linked guide it points to a wrong file). We’re gonna change the line:



GRUB_CMDLINE_LINUX="nouveau.modeset=0 rd.driver.blacklist=nouveau rhgb quiet"

And then run:

grub2-mkconfig -o /boot/grub2/grub.cfg

Now we can reboot the machine and check that nouveau drivers have been properly blacklisted.
If you run:

lsmod | egrep "nouveau"

The output should be empty.
Now it’s time to install the nvidia drivers. I’m pretty sure there’s some better way to do that but from a terminal i turn off the x server running:

init 3

And then i move to the directory where i installed the nvidia drivers and run the nvidia install.

chmod +x

I followed all the default answers for the installer. After a reboot running:

lsmod | egrep "i915|nvidia"

we should notice the nvidia and intel modules being loaded. We’re almost done.
Now we have to create our xorg.conf file. Create the /etc/X11/xorg.conf.d/nvidia-optimus.conf file and paste in the following code.

Section "Module"
    Load        "modesetting"

Section "Device"
    Identifier  "nvidia"
    Driver    "nvidia"
    BusID    "PCI:1:0:0"
    Option    "AllowEmptyInitialConfiguration"
    Option    "ConnectToAcpid"                    "0"

Note that you should double check the PCI address for the cards even if this seems to be pretty standard. You can double check the proper PCI address running:

lspci |grep -E "VGA|3D"

# output
# 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
# 01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)

As you can see the 2nd PCI address match the address i’ve put on the xorg.conf.

The last thing we need to take care about is to tell lightdm to turn on the nvidia card using the xrandr command.
To do that we’re going to create a bash script in /etc/lightdm called, after creating the file paste in the follwoing code:

xrandr --setprovideroutputsource 'modesetting' 'NVIDIA-0'
xrandr --auto

And make it executable with:

sudo chmod +x /etc/lightdm/

then we need to create the /etc/lightdm/lightdm.conf.d/nvidia-optimus.conf and paste  the lines:


Note: previously i used the display-setup-script but i had problems when logging out and in. Using the greeter one seems to do the trick
After a reboot you should be able to use your nvidia drivers!

Enable Nvidia Optimus XUbuntu 13.10

Enabling Nvidia Optimus on XUbuntu 13.10 is really simple.

Just install this packages:

sudo apt-get install nvidia-319 nvidia-settings-319 nvidia-prime

And then edit the file /etc/lightdm/lightdm.conf, nvidia prime seems to replace the default value of the greeter-session variable with unity-greeter (default in ubuntu) instead of lightdm-gtk-greeter.

The conf file should look like this: