For a long time (about 10 years) I had been installing the NVIDIA driver ‘the hard way’ by compiling it against the kernel modules, every time a kernel update had taken place.
These were the steps:
install driver (running the script supplied by NVIDIA);
use the command mkinitrd;
reboot.
Later, I made a habit of it to use the NVIDIA repository.
But now I do it the hard way again (it was advised to do so for playing a game).
To be succesful, I have to take one step more than I did before:
after the reboot, the kernel line in the grub menu is edited by inserting ‘nouveau.modetset=0’ in it.
To make it permanent, I can use the command:
sudo grubby --update-kernel=ALL --args=“nouveau.modeset=0”
My question is why the old way to do things (rebooting after the mkinitrd command) does not work anymore.
EdVaessen:
For a long time (about 10 years) I had been installing the NVIDIA driver ‘the hard way’ by compiling it against the kernel modules, every time a kernel update had taken place.
These were the steps:
install driver (running the script supplied by NVIDIA);
use the command mkinitrd;
reboot.
Later, I made a habit of it to use the NVIDIA repository.
But now I do it the hard way again (it was advised to do so for playing a game).
To be succesful, I have to take one step more than I did before:
after the reboot, the kernel line in the grub menu is edited by inserting ‘nouveau.modetset=0’ in it.
To make it permanent, I can use the command:
sudo grubby --update-kernel=ALL --args=“nouveau.modeset=0”
My question is why the old way to do things (rebooting after the mkinitrd command) does not work anymore.
Hi
The only reason to run mkinitrd is to blacklist the noveau driver assuming there is a blacklist file present…
cat /etc/modprobe.d/50-nvidia.conf
blacklist nouveau
Is this file present?
I haven’t had to add “nouveau.modeset=0” maybe it’s something to do with grubby?
I don’t run mkinitrd when there is a kernel update, once the blacklist file is added, then on subsequent kernel updates it’s take care of.
malcolmlewis:
Is this file present?
File /etc/modprobe.d/50-nvidia.conf is not present.
Does this gives anything back:
grep -i 'blacklist nouveau' /etc/modprobe.d/*
ll /etc/modprobe.d/ gave:
total 76
drwxr-xr-x 2 root root 4096 mei 16 21:16 .
drwxr-xr-x 137 root root 12288 mei 20 12:42 …
-rw-r–r-- 1 root root 3647 dec 19 10:16 00-system.conf
-rw-r–r-- 1 root root 1184 nov 7 2018 10-unsupported-modules.conf
-rw-r–r-- 1 root root 181 okt 30 2018 50-alsa.conf
-rw-r–r-- 1 root root 5009 jun 11 2018 50-blacklist.conf
-rw-r–r-- 1 root root 128 apr 2 14:14 50-bluetooth.conf
-rw-r–r-- 1 root root 33 feb 19 2018 50-ipw2200.conf
-rw-r–r-- 1 root root 34 feb 19 2018 50-iwl3945.conf
-rw-r–r-- 1 root root 551 mei 12 2018 50-libmlx4.conf
-rw-r–r-- 1 root root 18 feb 19 2018 50-prism54.conf
-rw-r–r-- 1 root root 0 mei 4 22:37 50-yast.conf
-rw-r–r-- 1 root root 47 nov 7 2018 99-local.conf
-rw-r–r-- 1 root root 158 mrt 25 17:35 firewalld-sysctls.conf
-rw-r–r-- 1 root root 1004 mrt 13 2018 mlx4.conf
-rw-r–r-- 1 root root 88 mei 12 2018 truescale.conf
-rw-r–r-- 1 root root 673 apr 26 2017 tuned.conf
Nothing came out.
ll /etc/modprobe.d/ gave this:
total 76
drwxr-xr-x 2 root root 4096 mei 16 21:16 .
drwxr-xr-x 137 root root 12288 mei 20 12:42 …
-rw-r–r-- 1 root root 3647 dec 19 10:16 00-system.conf
-rw-r–r-- 1 root root 1184 nov 7 2018 10-unsupported-modules.conf
-rw-r–r-- 1 root root 181 okt 30 2018 50-alsa.conf
-rw-r–r-- 1 root root 5009 jun 11 2018 50-blacklist.conf
-rw-r–r-- 1 root root 128 apr 2 14:14 50-bluetooth.conf
-rw-r–r-- 1 root root 33 feb 19 2018 50-ipw2200.conf
-rw-r–r-- 1 root root 34 feb 19 2018 50-iwl3945.conf
-rw-r–r-- 1 root root 551 mei 12 2018 50-libmlx4.conf
-rw-r–r-- 1 root root 18 feb 19 2018 50-prism54.conf
-rw-r–r-- 1 root root 0 mei 4 22:37 50-yast.conf
-rw-r–r-- 1 root root 47 nov 7 2018 99-local.conf
-rw-r–r-- 1 root root 158 mrt 25 17:35 firewalld-sysctls.conf
-rw-r–r-- 1 root root 1004 mrt 13 2018 mlx4.conf
-rw-r–r-- 1 root root 88 mei 12 2018 truescale.conf
-rw-r–r-- 1 root root 673 apr 26 2017 tuned.conf
rpm -qa | grep nouveau resulted in:
xf86-video-nouveau-1.0.15-lp150.1.9.x86_64
Mesa-dri-nouveau-18.0.2-lp150.18.3.1.x86_64
libdrm_nouveau2-2.4.91-lp150.1.2.x86_64
libvdpau_nouveau-18.0.2-lp150.18.3.1.x86_64
libdrm_nouveau2-32bit-2.4.91-lp150.1.2.x86_64