If Not True Then False

Fedora 25/24/23 nVidia Drivers Install Guide - Comment Page: 3

This is guide, howto install nVidia proprietary drivers on Fedora 25/24/23/22/21 and disable Nouveau driver. This guide works with GeForce 6/7/8/9/200/300/400/500/600/700/800/900/10 series cards. GeForce 400/500/600/700/800/900/10 series cards works with 375.xx and 378.xx nVidia drivers GeForce 8/9/200/300 series cards works with 340.xx nVidia drivers GeForce 6/7 series cards works with 304.xx...
Categories:
Tagged with:

1164 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.
help

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.

John Brines

I have followed the instructions am using the Nvidia 460.93 driver with Fedora 23 and it doesn’t fix the issue.

I am thinking it is stage where we paste the following that might not work, maybe I have done that wrong as everything else worked fine…..

URL=”http://rpms.if-not-true-then-false.com/fedora23-old-xorg/”
ARCH=$(uname -m)
PACKAGES=( \
‘xorg-x11-drv-ati-7.6.0-0.1.20150709git95f5d09.fc23’ \
‘xorg-x11-drv-evdev-2.9.2-2.fc23’ \
‘xorg-x11-drv-fbdev-0.4.3-22.fc23’ \
‘xorg-x11-drv-intel-2.99.917-15.20150729.fc23’ \
‘xorg-x11-drv-libinput-0.14.0-1.fc23’ \
‘xorg-x11-drv-openchrome-0.3.3-16.fc23’ \
‘xorg-x11-drv-nouveau-1.0.11-4.fc23’ \
‘xorg-x11-drv-qxl-0.1.4-3.fc23’ \
‘xorg-x11-drv-synaptics-1.8.2-3.fc23’ \
‘xorg-x11-drv-vesa-2.3.2-22.fc23’ \
‘xorg-x11-drv-vmmouse-13.1.0-1.fc23’ \
‘xorg-x11-drv-vmware-13.0.2-9.20150211git8f0cf7c.fc23’ \
‘xorg-x11-drv-wacom-0.30.0-2.fc23’ \
‘xorg-x11-server-Xorg-1.17.2-2.fc23’ \
‘xorg-x11-server-Xwayland-1.17.2-2.fc23’ \
‘xorg-x11-server-common-1.17.2-2.fc23’ \
)
printf “$URL%s.$ARCH.rpm ” “${PACKAGES[@]}” |xargs dnf install -y

reply Reply
JR

Hi John,

Do you get some error message when you run this command?

I tested this command and it’s working for me and some others here.

Could you also post output of following command:


uname -a
reply Reply
JR

Line by line. It’s of course possible to convert oneliner too.

So just select all rows, copy and go to terminal and paste.

reply Reply
John Brines

$ uname -a
Linux brines-acer 4.2.5-300.fc23.x86_64 #1 SMP Tue Oct 27 04:29:56 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

reply Reply
JR

Thanks John,

Could you also post output of following command:


lspci |grep -i VGA

And your /var/log/Xorg.0.log after boot or alternatively output of following command:


journalctl -b _COMM=gdm-x-session

You can use example http://pastebin.com for log files.

reply Reply
JR

Everything looks good. No errors, your card is detected and nVidia 460.93 drivers should support your card.

So you don’t see GDM (login screen) at all?

Could you also post output of following command:


lsmod |grep -e nvidia -e nouv
reply Reply
John Brines

# lsmod |grep -e nvidia -e nouv
nvidia 10559488 0
drm 335872 2 nvidia

Get to a black screen where it says started Gnome Desktop and it flashed away to a black screen and then back to the screen with text.

reply Reply
JR

This looks interesting nvidia driver is loaded ok.

Michael just posted about nomodeset argument. You could also try if it helps, do following:
1. Press ‘e’ on grub when right kernel is selected
2. Find row like:


linuxefi /vmlinuz-4.2.5-201.fc22.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet rd.driver.blacklist=nouveau

Change it to:


linuxefi /vmlinuz-4.2.5-201.fc22.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet rd.driver.blacklist=nouveau nomodeset

3. Press Ctrl + x

If this doesn’t help could you also post output of following command:


systemctl status gdm.service

And your /etc/X11/xorg.conf file content to pastebin.

John Brines

Still not working but a different screen. How do I upload pictures?

[root@brines-acer ~] # systemctl status gdm.service
● gdm.service – GNOME Display Manager
Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2015-11-08 16:08:50 GMT; 19min ago
Main PID: 1005 (gdm)
CGroup: /system.slice/gdm.service
└─1005 /usr/sbin/gdm

Nov 08 16:27:37 brines-acer gdm[1005]: Unable to kill session worker process
Nov 08 16:27:47 brines-acer gdm[1005]: Child process -6697 was already dead.
Nov 08 16:27:47 brines-acer gdm[1005]: Child process 6681 was already dead.
Nov 08 16:27:47 brines-acer gdm[1005]: Unable to kill session worker process
Nov 08 16:27:56 brines-acer gdm[1005]: Child process -6752 was already dead.
Nov 08 16:27:56 brines-acer gdm[1005]: Child process 6729 was already dead.
Nov 08 16:27:56 brines-acer gdm[1005]: Unable to kill session worker process
Nov 08 16:28:04 brines-acer gdm[1005]: Child process -6848 was already dead.
Nov 08 16:28:04 brines-acer gdm[1005]: Child process 6781 was already dead.
Nov 08 16:28:04 brines-acer gdm[1005]: Unable to kill session worker process
Nov 08 16:28:15 brines-acer gdm[1005]: Child process -6900 was already dead.
Nov 08 16:28:15 brines-acer gdm[1005]: Child process 6877 was already dead.
Nov 08 16:28:15 brines-acer gdm[1005]: Unable to kill session worker process

Pastebin – http://pastebin.com/t2xQ0pVz

JR

The next question is, do you use uefi with secure boot enabled?

Could you also post your /etc/X11/xorg.conf?

John Brines

I don’t think it is an issue with the NVidia driver I think it is a Gnome issue see below.

Nov 09 18:23:30 brines-acer audit[8555]: ANOM_ABEND auid=4294967295 uid=42 gid=42 ses=4294967295 pid=8555 comm=”gnome-shell” exe=”/usr/
Nov 09 18:23:30 brines-acer abrt-hook-ccpp[8566]: Not saving repeating crash in ‘/usr/bin/gnome-shell’
Nov 09 18:23:30 brines-acer gnome-session-binary[8546]: WARNING: Application ‘gnome-shell-wayland.desktop’ killed by signal 11
Nov 09 18:23:30 brines-acer gnome-session-binary[8546]: Unrecoverable failure in required component gnome-shell-wayland.desktop
Nov 09 18:23:30 brines-acer gnome-session[8546]: gnome-session-binary[8546]: WARNING: Application ‘gnome-shell-wayland.desktop’ killed
Nov 09 18:23:30 brines-acer /usr/libexec/gdm-wayland-session[8543]: Activating service name=’ca.desrt.dconf’
Nov 09 18:23:30 brines-acer gdm-launch-environment][8526]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Nov 09 18:23:30 brines-acer audit[8526]: USER_END pid=8526 uid=0 auid=4294967295 ses=4294967295 msg=’op=PAM:session_close grantors=pam_

JR

John,

Try following to verify if it’s just GDM problem:

1. Press ‘e’ on grub when right kernel is selected

2. Find row like:


linuxefi /vmlinuz-4.2.5-201.fc22.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet rd.driver.blacklist=nouveau

Change it to:


linuxefi /vmlinuz-4.2.5-201.fc22.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet rd.driver.blacklist=nouveau 3

Add number 3 to boot runlevel 3.

3. Press Ctrl + x

4. Run following commands:


dnf install -y lxdm

systemctl stop gdm.service
systemctl disable gdm.service
systemctl enable lxdm.service
systemctl start lxdm.service

5. If you see lxdm, then change Default to Gnome on bottom left and login.

Is it working then?

John Brines

Yes I am now working with lxdm but loaded cinnamon as that is the desktop I use.

JR

Excellent. So do you get Cinnamon working with nVidia drivers normally?

You can also try/use kdm, lightdm, ldm, wdm or xdm instead lxdm and gdm.

Leo Hermans

I had serious troubles after a clean install of Fedora 23. The system was freezing constantly and/or suffered from screen distortions (numerous black squares). I tried to reinstall a few times but with the same result. Thats why I tried to install the NVIDIA driver according to your post. It seemed to work at first but after logging in, the screen stayed blank (grey). After a number of times pressing the Enter-key (showed a list of Copy/Paste/Show Text or Hide Text) and the ESC-key the system started. So .. its not a complete success although for the time being I dont suffer from system freezings anymore …

The info you requested:
1. nvidia-installer: version 358.09 (buildmeister@swio-display-x64-rhel04-04)
2. Linux carbide 4.2.5-300.fc23.x86_64 #1 SMP Tue Oct 27 04:29:56 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
3. 01:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 660] (rev a1)

I will try the certified driver later. If it is a success I let you know.

reply Reply
Michael Sullivan

I just followed these directions with a clean F23 installation, NVIDIA drivers 352.55, and a GK104 [GeForce GTX 760] GPU.

The instructions worked as written with one important caveat—my system failed to boot following step 2.8 unless I added “nomodeset” to the list of GRUB_CMDLINE_LINUX arguments. (Without nomodeset, the machine would hang with a blinking cursor forever.)

reply Reply
mohan

Hi,
I followed the procedure and it worked like a charm, except after successful install, every screen is way out of proportion, like in a tablet, my screen resolution is 2880×1620 but the buttons, titlebar, icons etc are way too big. only the content inside the firefox browser is in proportion. Please advice.

mohan

reply Reply
JR

Hi mohan,

Could you post output of following command (as normal user):


gsettings get org.gnome.settings-daemon.plugins.xsettings overrides
reply Reply
mohan

Sorry,

I should have mentioned earlier, that i run fedora 23 KDE spin and also my research shows that this issue is due to wrong DPI value assumed by system, current DPI is 215×2145. If this can be made to 144×144 then the issue can be solved.

Below is my xorg.conf

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
DisplaySize 340 190
HorizSync 28.0 – 33.0
VertRefresh 43.0 – 72.0
Option “DPMS”
Option “UseEdidDpi” “false”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
Option “DPI” “144 x 144”
SubSection “Display”
Depth 24
EndSubSection
EndSection

reply Reply
berm

nvidia-installer: version 340.93 (buildmeister@swio-display-x86-rhel47-03)

Linux localhost.localdomain 4.2.5-300.fc23.x86_64 #1 SMP Tue Oct 27 04:29:56 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

01:00.0 VGA compatible controller: NVIDIA Corporation GT216GLM [Quadro FX 880M] (rev a2)

reply Reply
E

I just tried to follow these steps from a fresh installation and encountered the following error on step 2.6.4:

dnf –disableexcludes=all remove xorg-x11-drv-nouveau

Config error: ‘utf-8’ codec can’t decode byte 0x80 in position 90: invalid start byte

Any idea how to fix this?

reply Reply
JR

Hi E,

Some reason you got some copy paste error.

Try this again:


dnf --disableexcludes=all remove xorg-x11-drv-nouveau

If you still get same error, then type this command to command line.

reply Reply
Milan

Hi,
I have followed exactly the instructions with clean installation Fedora 23 and my Nvidia GeForce 820m. Everything was looking good, until last restart. Fedora came with “Oh no! Something has gone wrong, log out screen.
I can’t switch eather to terminal mode. Did I something wrong?

reply Reply
JR

Hi Milan,

You should be able to switch another tty using Ctrl+Alt+F2?

Could you post output of following command:


lspci |grep -i VGA
reply Reply
Milan

00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
I think it is because of that Intel GMA. I can’t switch graphics in bios.

reply Reply
Sven Croon

Hi,
First off, thx a lot for this excellent guide. It is very well constructed.
Installing Fedora23 has been a world of pain so far, but this nvidia driver installation went smoothly. Here’s the feedback you requested:
1. nvidia-installer: version 352.55 (buildmeister@swio-display-x86-rhel47-06)
2. Linux localhost.localdomain 4.2.5-300.fc23.i686 #1 SMP Tue Oct 27 05:11:49 UTC 2015 i686 i686 i386 GNU/Linux
3. 01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [Geforce GTX 970] (rev a1)

reply Reply
Fangbing Wu

I just upgraded F22 to F23 and X wouldn’t start since I have NVIDIA driver in F22.
Followed instructions here to downgrade the Xorg packages and everything is working for me. I noticed my grub file had “rdblacklist=nouveau nouveau.modeset=0”, slightly different from instructions on this page. Don’t remember where I got that.

reply Reply
JR

Hi Sidethorn,

Could you post output of command:


cat /etc/dnf/dnf.conf
reply Reply
ALEJANDRO RINCON

Last week Fedora 22 upgraded x11 to the same version of f23 and breaks the nvidia driver; the solution for me was booting in text mode; then execute :

dnf downgrade xorg-x11-server-common xorg-x11-server-Xwayland xorg-x11-server-Xorg xorg-x11-drv-libinput

and reinstall nvidia driver according the guide, blacklisting x11 from dnf to avoid future upgrades.

reply Reply
JR

Hi ALEJANDRO,

Fedora 22 still have xorg 1.17.4 on updates repo.

I just run dnf update and here is example output from my Fedora 22:


lsb_release -rc; uname -r; dnf list installed |grep -e xorg-x11-server-common -e xorg-x11-server-Xwayland -e xorg-x11-server-Xorg -e xorg-x11-drv-libinput

Release:	22
Codename:	TwentyTwo
4.2.5-201.fc22.x86_64
xorg-x11-drv-libinput.x86_64             0.14.0-1.fc22             @updates     
xorg-x11-server-Xorg.x86_64              1.17.4-1.fc22             @updates     
xorg-x11-server-Xwayland.x86_64          1.17.4-1.fc22             @updates     
xorg-x11-server-common.x86_64            1.17.4-1.fc22             @updates
reply Reply
Arsi

I did everything and all was going fine till step “2.9.6”, when, after 89% installation, a message came saying “Error: Unable to load the kernel module.”
The Nvidia library is 352.55

reply Reply
JR

Hi Arsi,

Could your post your /var/log/nvidia-installer.log example to http://pastebin.com

And output of following commands:


uname -a

rpm -qa kernel\* |sort -V
reply Reply
Arsi

Output logfile: http://pastebin.com/LqgBMahj

uname output is:

Linux localhost.localdomain 4.2.5-300″.fc23.x86_64 #1 SMP Tue Oct 27 04:29:56 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

rpm kernel output is:

kernel-4.2.3-300.fc23.x86_64
kernel-4.2.5-300.fc23.x86_64
kernel-core-4.2.3-300.fc23.x86_64
kernel-core-4.2.5-300.fc23.x86_64
kernel-devel-4.2.5-300.fc23.x86_64
kernel-headers-4.2.5-300.fc23.x86_64
kernel-modules-4.2.3-300.fc23.x86_64
kernel-modules-4.2.5-300.fc23.x86_64

reply Reply
Arsi

Okay so i have completed installation.

The issue was that my Fedora 23 booted in UEFI Secure Boot. I researched and found that sometimes this causes an issue, therefore i turned secure boot off.

New question: How do you Nvidia Resolution? My whole desktop is enlarged!

reply Reply
JR

Good to hear that you got it installed, you could check this, if you want keep secure boot enabled and install nVidia drivers.

What is your desktop normal resolution?

If you use Gnome, could you post output of following command (as normal user):


gsettings get org.gnome.settings-daemon.plugins.xsettings overrides
reply Reply
JR

This is from Kowach comment:

Manually sign the drivers and before restart import keys:


mokutil --import /usr/share/nvidia/nvidia-modsign-crt-XXXXXXXX.der

Enter the temporary password, then reboot. You bios will popup new menu, select to sign activate key, enter temporary password. And done :)

reply Reply
Arsi

1. So, this one statement will automatically sign the driver AND import the key?

2. My monitor resolution is 1024×768, but after installation, both “System Settings” and “Nvidia X server settings” only showed 640×480 as option. after research, i found out to delete “xorg.conf” file from “etc/X11” folder. After reboot detection, the screen now boots at 1024×768. However, i checked the etc/X11 folder thinking that maybe the xorg.conf file would be regenerated, however it did not, and there was no such file in X11 folder. Is this a potential future issue? Would like to resolve it now than later :P
In future, i may wish to increase resolution and use CUDA cores via programming, so i hope all this is not an issue.

reply Reply
Sidethorn

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true
exclude=xorg-x11*
sorry forgot to say that only yumex shows xorg updates but dnf doesn’t
and another issue I found is that gnome-shell takes a while to load and sometimes it restarts
anyway everything works quite well thank you

nvidia-installer: version 340.93 (buildmeister@swio-display-x86-rhel47-03) Wed Aug 19
Linux toshino 4.2.5-300.fc23.x86_64 #1 SMP Tue Oct 27 04:29:56 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
01:00.0 VGA compatible controller: NVIDIA Corporation GT216M [GeForce GT 230M] (rev a2)

reply Reply
JR

Hello Sidethorn,

I haven’t used yumex, but I think that it won’t read /etc/dnf/dnf.conf at all. If dnf works normally, then it’s yumex problem.

Do you use yumex-dnf?

reply Reply
Felix

Muy buen tutorial me sirvio. va de lujo
Muchas Gracias. un abrazo,

Good work. thanks many thanks

Sorry for my english

i need to known why when i try to open “wayland on gnome” this dont work
… back to the login

reply Reply