Nvidia Drivers Not Loaded

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Leonardo159
Level 1
Level 1
Posts: 15
Joined: Sat Sep 07, 2019 1:34 pm

Re: Nvidia Drivers Not Loaded

Post by Leonardo159 » Sun Sep 08, 2019 5:26 pm

Done. Still the same problem...

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Drivers Not Loaded

Post by roblm » Sun Sep 08, 2019 7:08 pm

Create a file named blacklist-nvidiafb: sudo touch /lib/modprobe.d/blacklist-nvidiafb

Open the file for editing: xed admin:///lib/modprobe.d/blacklist-nvidiafb

Add this line to the opened file: blacklist nvidiafb

Reboot. If that doesn’t help, then use this command and reboot: sudo update-initramfs -u

If that doesn’t help, then post the output of these commands:
lspci -nnk | egrep -A3 -i "3D|VGA" and lsmod | grep nvidia

If there is a problem getting back to the desktop, then press Ctrl+Alt+F1 to enter virtual console tty1. Use this command to remove the created file and reboot: sudo rm /lib/modprobe.d/blacklist-nvidiafb; reboot
Last edited by roblm on Tue Sep 10, 2019 7:51 am, edited 1 time in total.

Leonardo159
Level 1
Level 1
Posts: 15
Joined: Sat Sep 07, 2019 1:34 pm

Re: Nvidia Drivers Not Loaded

Post by Leonardo159 » Sun Sep 08, 2019 9:59 pm

Create a file named blacklist-nvidiafb: sudo touch /lib/modprobe.d/nvidiafb

Open the file for editing: xed admin:///lib/modprobe.d/nvidiafb

Add this line to the opened file: blacklist nvidiafb


This procedure resulted in only solving the mouse cursor problem. Since it did not solve the driver problem, I continued:

Reboot. If that doesn’t help, then use this command and reboot: sudo update-initramfs -u

The mouse cursor problem returned after this and the problem with the driver continued.

lspci -nnk | egrep -A3 -i "3D|VGA"

00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02)
Subsystem: Lenovo HD Graphics 620 [17aa:38e2]
Kernel driver in use: i915
Kernel modules: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 940MX] [10de:134d] (rev a2)
Subsystem: Lenovo GM108M [GeForce 940MX] [17aa:38e2]
Kernel driver in use: nvidiafb
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

lsmod | grep nvidia

nvidia 19472384 1
ipmi_msghandler 53248 2 ipmi_devintf,nvidia
nvidiafb 49152 0
vgastate 24576 1 nvidiafb
fb_ddc 16384 1 nvidiafb
i2c_algo_bit 16384 2 nvidiafb,i915

Leonardo159
Level 1
Level 1
Posts: 15
Joined: Sat Sep 07, 2019 1:34 pm

Re: Nvidia Drivers Not Loaded

Post by Leonardo159 » Sun Sep 08, 2019 10:35 pm

I just noticed that the mouse cursor problem stops when I select intel card through prime-select command and reboot.

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Drivers Not Loaded

Post by roblm » Mon Sep 09, 2019 7:58 am

Reverse the previous change made: sudo rm /lib/modprobe.d/nvidiafb and sudo update initramfs -u

Switch to the Nvidia GPU and reboot.

Create a new xorg.conf file: sudo touch /etc/X11/xorg.conf

Open the file for editing: xed admin:///etc/X11/xorg.conf
Add these lines:

Code: Select all

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID  "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection
Reboot. If there is a problem getting back to the desktop, then press Ctrl+Alt+F1 to enter virtual console tty1. Use this command to remove the created file and reboot: sudo rm /etc/X11/xorg.conf; reboot

Leonardo159
Level 1
Level 1
Posts: 15
Joined: Sat Sep 07, 2019 1:34 pm

Re: Nvidia Drivers Not Loaded

Post by Leonardo159 » Mon Sep 09, 2019 4:24 pm

The procedure resulted in a black screen after rebooting.
So I removed the file xorg.conf using the last command you wrote.

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Drivers Not Loaded

Post by roblm » Mon Sep 09, 2019 4:46 pm

In a previous post, I told you to blacklist the nvidiafb kernel module but after creating the blacklist-nvidiafb file and rebooting, that module was still loading. Use this command to rename that module so it won’t load:

Code: Select all

sudo mv /lib/modules/`uname -r`/kernel/drivers/video/fbdev/nvidia/nvidiafb.ko /lib/modules/`uname -r`/kernel/drivers/video/fbdev/nvidia/nvidiafb.ko.old

Reboot. If that doesn’t help, then remove the fbdev driver: apt remove xserver-xorg-video-fbdev
To reverse: apt install xserver-xorg-video-fbdev

If there is a problem getting back to the desktop, then press Ctrl+Alt+F1 to enter virtual console tty1. Use this command to restore the nvidiafb module’s name:

Code: Select all

sudo mv /lib/modules/`uname -r`/kernel/drivers/video/fbdev/nvidia/nvidiafb.ko.old /lib/modules/`uname -r`/kernel/drivers/video/fbdev/nvidia/nvidiafb.ko
After these steps, I don’t have any more suggestions but to do a re-installation. There's probably a misconfiguration somewhere or you have a hardware incompatibility problem with Linux.

Leonardo159
Level 1
Level 1
Posts: 15
Joined: Sat Sep 07, 2019 1:34 pm

Re: Nvidia Drivers Not Loaded

Post by Leonardo159 » Mon Sep 09, 2019 5:51 pm

n a previous post, I told you to blacklist the nvidiafb kernel module but after creating the blacklist-nvidiafb file and rebooting, that module was still loading. Use this command to rename that module so it won’t load:

It worked! Thanks a lot for your help!

Output of "sudo lshw -c display":

[sudo] password for leonardo:
*-display
description: VGA compatible controller
product: HD Graphics 620
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:128 memory:92000000-92ffffff memory:a0000000-afffffff ioport:5000(size=64) memory:c0000-dffff
*-display
description: 3D controller
product: GM108M [GeForce 940MX]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=nvidia latency=0
resources: irq:132 memory:93000000-93ffffff memory:80000000-8fffffff memory:90000000-91ffffff ioport:4000(size=128)

As you can see, now the driver is set to "nvidia" and not anymore to "nvdiafb". Do you know from where this "nvidiafb" come from? Is this a driver that comes with Linux Mint?

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Drivers Not Loaded

Post by roblm » Mon Sep 09, 2019 8:11 pm

Leonardo159 wrote: Do you know from where this "nvidiafb" come from? Is this a driver that comes with Linux Mint?
I'm not sure this response is 100% accurate, but the nvidiafb module is a kernel framebuffer driver for Nvidia GPUs and not part of the Nvidia driver package. According to Wikipedia:
the framebuffer is the part of a computer's video memory containing a current video frame
These drivers are useful where there is simple graphics requirements, like during startup or in the virtual consoles (tty1 to tty6), where only text is displayed, and some graphics drivers such as Nvidia don’t support the full resolution in the console. The vesa framebuffer driver (uvesafb) should be able to replace nvidiafb in most cases.

There was obviously a misconfiguration in your system. After the X Server started, the nvidiafb module should not have been enabled for the Nvidia GPU. I didn’t take steps earlier to disable nvidiafb because this in my first experience with this kind of problem.

The subject of framebuffers and framebuffer drivers can be a little confusing to fully understand. You can read about them in articles like these:
https://en.wikipedia.org/wiki/Linux_framebuffer
http://moi.vonos.net/linux/framebuffer-drivers/

Post Reply

Return to “Graphics Cards & Monitors”