Page 2 of 3

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Fri Jul 31, 2020 12:54 pm
by roblm
You didn’t post the Xorg.0.log.old

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Fri Jul 31, 2020 1:29 pm
by MellowTigger
Hmmm. I typed by hand previously and thought I got it right. I just used copy-and-paste from your post and got this new url. Looks like the same data to me, though. WAIT, yes, new 2nd url this time.
https://termbin.com/gdu2
https://termbin.com/1wobh (the main log, not the .log.old one)

Just for grins... and this doesn't look right. Zero byte count?

Code: Select all

redact@redact:~$ ls -al /var/log/Xorg.*
-rw-r--r-- 1 root root 29010 Jul 31 11:27 /var/log/Xorg.0.log
-rw-r--r-- 1 root root     0 Jul 31 11:25 /var/log/Xorg.0.log.old

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Fri Jul 31, 2020 3:29 pm
by MellowTigger
I've been randomly launching my Steam games (native Linux, not Windows/Proton) to see what's usable. One of them gave me a specific warning message before launching: "Cannot create OpenGL context. Check that the drivers and hardware support at least OpenGL 4.3."

So for grins, I tried "glxinfo | grep "OpenGL version" " and got back "OpenGL version string: 3.1 Mesa 20.0.8". So my system has a decade-old OpenGL? I'd expect installing the recent Nvidia 440 drivers to complain if they relied upon OpenGL, but it just seems weird, so I thought I'd mention it.

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Fri Jul 31, 2020 3:36 pm
by Planlos
OK, I switch the graphics GTX 780 -> GTX 1650 and startd without anyproblems.
-> the recommanded driver is not working with the GTX 780. So the information on the Nvidia page to this driver doesn't fit.

- What was the latest driver to this card that worked?
- Does this driver work with LM 20.4/Ubuntu 20.4?

Thank you for you help.

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Fri Jul 31, 2020 4:31 pm
by MellowTigger
I think? I was already on the 440 driver when my system worked fine in LM19.3. It's been a while since I last tried the 450 driver, so I downloaded that directly from their website. It seems the same driver is used for both the 780 and the 1650 cards.
https://www.nvidia.com/Download/driverR ... 2107/en-us

It works no better. I tried the first time, answering the prompt to NOT install 32-bit compatibility. When that failed, I ran the installer again and selected to include it. When that failed, I uninstalled the 450 driver. (Hint: It requires running the install program again but with the " --uninstall" parameter.) And here I am again with Nouveau.

And just some more random information to throw out here, since I really don't have any clue what's the underlying issue.

Code: Select all

redact@redact:~$ sudo apt install libvulkan1 mesa-vulkan-drivers vulkan-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libvulkan1 is already the newest version (1.2.131.2-1).
vulkan-utils is already the newest version (1.2.131.1+dfsg1-1).
mesa-vulkan-drivers is already the newest version (20.0.8-0ubuntu1~20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

redact@redact:~$ vulkaninfo
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
/build/vulkan-tools-KEbD_A/vulkan-tools-1.2.131.1+dfsg1/vulkaninfo/vulkaninfo.h:477: failed with ERROR_INITIALIZATION_FAILED

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Fri Jul 31, 2020 4:46 pm
by Minux1
There's always going back to LM v19.3 if your Nvidia hardware worked on that version and wait until the bugs are out of v20.
I never jump right into a new version of any software fresh out of the factory as a matter of practice. :mrgreen:

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Fri Jul 31, 2020 4:47 pm
by roblm
Both of those log files were of no help. The Xorg.0.log was not the one where you got the black screen and the journalctl didn’t list nvidia in it at all. I want to try another method that should determine for good if your card can be used in Mint 20. I suggest installing the Nvidia driver while running a live session using the Mint 20 installation USB. The driver will be downloaded from Nvidia’s website, because a reboot is not needed after the driver is installed. This will eliminate other factors that could possibly contribute to the problem, such as updates, installed programs, Mint’s package manager, etc.

First download the 440.100 driver from here and copy it to a USB drive or another partition:
https://www.nvidia.com/Download/Find.aspx?lang=en-us

Start the live Mint USB and at the Welcome screen, select Start in compatibilty mode.
Copy the downloaded driver to the mint directory.

Use this command to install libc6-dev: apt install libc6-dev

Follow the instructions in this post, under the section Mint 20 Nvidia Driver Installation Update:
viewtopic.php?p=847465#p847465

Skip this step: Use this command to create a disable-nouveau.conf file.

Start with the line: Press Ctrl+Alt+F1 to enter tty1. If no login screen is seen, then press Ctrl+Alt+F2 to enter tty2. For the login, type mint. If a password is asked for, just press ENTER.

Don’t install the 32-bit libraries.

Select NO at this screen:
Would you like to register the kernel module sources with DKMS?
When you return to the desktop, use inxi -G to check.

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Sat Aug 01, 2020 11:01 am
by MellowTigger
It fails. Maybe that's good news, if somebody knows how to report to NVidia that their advertised driver does not work for my video card any more?

I first ran into the familiar problem that CTL-ALT-Fn was not working in the Compatibility Mode USB startup. I poked around online, though, and discovered that "sudo chvt 2" would get me into a useful tty where I could login as "mint". There, I could install libc6-dev and stop lightdm.

When I ran the 440 installer, it issued warnings about an "incomplete installation of libglvnd" and asked if I wanted to install the complete library and overwrite the originals. The first time, I said no. It gave a warning that it was unable to determine a path to install "libglvnd EGL vendor library config files". And to check that I had "pkg-config" and "libglvnd development libraries" installed. Unsurprisingly, my system froze at the familiar black screen (with unblinking underscore this time) when I started lightdm.

So I started again and this time selected to overwrite the library. No warnings this time. But it still went to black screen with lightdm.

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Sat Aug 01, 2020 2:39 pm
by roblm
Here is another user with the same video card reporting the same problem in the Nvidia Developer Forums for Linux Graphics:
https://forums.developer.nvidia.com/t/n ... 0-4/144939

Unfortunately, user generix, the best Nvidia problem troubleshooter on that site, has been absent for a while.

I don’t have any problem installing the 440.100, 450.57 or 390.138 drivers on my GeForce GT 730 in Mint 20. I was going to suggest trying the 450.57 driver after adding the graphics-drivers PPA but you already tried that driver downloaded from Nvidia’s website. Hopefully you did the correct installation steps. Otherwise, you could try the 390.138 driver.

There may be some incompatibility with the Video BIOS of your video card and Linux. It’s possible some kernel parameter added to the kernel command line could help. You would need to install the Nvidia driver and then try this test. The effect will only last for one session. At the GRUB boot menu select the correct line but don’t press Enter. Press the “E” key to edit. If no menu shows, then hold down the shift key while starting. Use the Down arrow key to go down to the line that starts with:
linux /boot/vmlinuz.............ro quiet splash $vt_handoff

Go to the end of the line. Add a space and then add this: noapic noacpi irqpoll

Press F10 to start your system. If that doesn’t help, then repeat the process with the parameters below, one at a time:

Code: Select all

nolapic
pci=nocrs
pci=nomsi,noaer
pcie_aspm=off
iommu=soft
Also post the output of this command: grep nvidia /lib/udev/rules.d/*

EDITED:
I don’t know if you tried installing nvidia-driver-440-server. It’s not clear what the purpose of creating that new driver series with that name is. On this web page, the info says: These releases provide both bug fixes and new features, and I’m assuming it can only be for nvidia-driver-440 ?
https://bugs.launchpad.net/ubuntu/+sour ... ug/1881137

Another step you can do is add the kernel parameter debug to the kernel command line to display info while booting.


EDITED: 8-3-20
Another step to do is open the /etc/modules file: xed admin:///etc/modules

Add this: nvidia-drm

Update the initial ramdisk: sudo update initramfs -u

If that fails, then try adding these:
nvidia
nvidia-drm
nvidia-modeset

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Sun Aug 02, 2020 4:13 pm
by Planlos
I testes more than one nvidia driver and at least both 440.
I have posted the link to this bug investigation in Nvidia forum, the thread you found and reposted here.

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Mon Aug 03, 2020 8:24 pm
by MellowTigger
I previously tried the 440-server driver when it was briefly the "recommended" version in the update manager. No difference.

I tried earlier versions of drivers 390 and 340, but they don't help either. They have the advantage of adding pretty blue dots on the screen (instead of pure black), but that's about it. I have to cold boot to restore my machine. I don't currently have any other PPAs active except for Lutris.

I installed the 440 drivers today and went through the 3 iterations of /etc/modules, but none of them helped. (Had to use vi instead of xed to edit the file in recovery mode before doing another update and reboot.) Currently I'm back to nouveau drivers and nothing but comments in the modules file.

Before I try the earlier instructions, I have a question. I don't remember ever seeing the "$vt_handoff" parameter before. Should I add it to all of my attempts or not? I briefly tried with and without it before appending the space+"noapic noacpi irqpoll", but neither variety helped. I wanted to be sure of what I should be putting on that line before continuing with all of the other combinations. And does "debug" go at the very end of the line after all other parameters?

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Tue Aug 04, 2020 7:52 am
by roblm
MellowTigger wrote: I don't remember ever seeing the "$vt_handoff" parameter before. Should I add it to all of my attempts or not?
No. It's not important. It's a Ubuntu only virtual terminal parameter and not used in Mint 20.

Try using nomodeset with the Nvidia driver. A small number of users have reported that they need to use it.

You forgot to post the output of this command: grep nvidia /lib/udev/rules.d/*

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Tue Aug 04, 2020 5:53 pm
by MellowTigger
I installed the 440 driver and rebooted. Editing for 'nomodeset' didn't help. None of the other variations worked, but 2 of them failed in interesting ways. :)

nolapic: produced a kernel panic and some hex info (screenshot 1, screenshot 2)

pci=nomsi,noaer: some 'soft reset failed' messages, the LM logo on screen (only the main monitor), then dropping to a BusyBox prompt where the keyboard doesn't respond as usual, requiring a cold boot like all of the others (screenshot)

I rebooted, ESC, recovery mode, collected your grep information (below), purged *nvidia*, and resumed to get back here.

Code: Select all

/lib/udev/rules.d/71-nvidia.rules:SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", DRIVERS=="nvidia", TAG+="seat", TAG+="master-of-seat"
/lib/udev/rules.d/71-nvidia.rules:# Start and stop nvidia-persistenced on power on and power off
/lib/udev/rules.d/71-nvidia.rules:ACTION=="add", DEVPATH=="/bus/pci/drivers/nvidia", TAG+="systemd", ENV{SYSTEMD_WANTS}="nvidia-persistenced.service"
/lib/udev/rules.d/71-nvidia.rules:# Load and unload nvidia-modeset module
/lib/udev/rules.d/71-nvidia.rules:ACTION=="add", DEVPATH=="/bus/pci/drivers/nvidia", RUN+="/sbin/modprobe nvidia-modeset"
/lib/udev/rules.d/71-nvidia.rules:ACTION=="remove", DEVPATH=="/bus/pci/drivers/nvidia", RUN+="/sbin/modprobe -r nvidia-modeset"
/lib/udev/rules.d/71-nvidia.rules:# Load and unload nvidia-drm module
/lib/udev/rules.d/71-nvidia.rules:ACTION=="add", DEVPATH=="/bus/pci/drivers/nvidia", RUN+="/sbin/modprobe nvidia-drm"
/lib/udev/rules.d/71-nvidia.rules:ACTION=="remove", DEVPATH=="/bus/pci/drivers/nvidia", RUN+="/sbin/modprobe -r nvidia-drm"
/lib/udev/rules.d/71-nvidia.rules:# Load and unload nvidia-uvm module
/lib/udev/rules.d/71-nvidia.rules:ACTION=="add", DEVPATH=="/bus/pci/drivers/nvidia", RUN+="/sbin/modprobe nvidia-uvm"
/lib/udev/rules.d/71-nvidia.rules:ACTION=="remove", DEVPATH=="/bus/pci/drivers/nvidia", RUN+="/sbin/modprobe -r nvidia-uvm"
/lib/udev/rules.d/71-nvidia.rules:# This will create the device nvidia device nodes
/lib/udev/rules.d/71-nvidia.rules:ACTION=="add", DEVPATH=="/bus/pci/drivers/nvidia", RUN+="/sbin/ub-device-create"
/lib/udev/rules.d/71-nvidia.rules:# Create the device node for the nvidia-uvm module
/lib/udev/rules.d/71-nvidia.rules:ACTION=="add", DEVPATH=="/module/nvidia_uvm", SUBSYSTEM=="module", RUN+="/sbin/ub-device-create"
/lib/udev/rules.d/71-u-d-c-gpu-detection.rules:ACTION=="add", SUBSYSTEMS=="pci", DRIVERS=="nvidia", RUN+="/bin/touch /run/u-d-c-nvidia-was-loaded"
I don't understand any part of this stuff, but it seems specific enough that hopefully it helps.

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Wed Aug 05, 2020 7:48 am
by roblm
The output from grep nvidia /lib/udev/rules.d/* looks OK.

You didn’t test the parameter debug, which will then display the boot messages until the screen freezes. Use this parameter by itself.

The only other method left is to try getting the journalctl and Xorg.0.log again. The previous attempt appeared to be the wrong time period. Use these commands:

Code: Select all

journalctl -k --since "2 hours ago" | nc termbin.com 9999
cat /var/log/Xorg.0.log.old | nc termbin.com 9999
Post the URL addresses that display in the Terminal window.

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Thu Aug 06, 2020 11:33 am
by MellowTigger
This time, there was an old log file.

Code: Select all

redact@redact:~$ journalctl -k --since "2 hours ago" | nc termbin.com 9999
https://termbin.com/0qqc
redact@redact:~$ cat /var/log/Xorg.0.log.old | nc termbin.com 9999
https://termbin.com/hum1
redact@redact:~$ ls -al /var/log/Xorg.*
-rw-r--r-- 1 root root 29207 Aug  6 10:27 /var/log/Xorg.0.log
-rw-r--r-- 1 root root  5836 Aug  6 10:26 /var/log/Xorg.0.log.old

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Thu Aug 06, 2020 1:58 pm
by roblm
After installing the Nvidia driver and adding the parameter debug to the kernel command line, you should have seen the boot messages displayed. Did you see any messages when the boot process stopped or was the screen black?

Post the contents of the existing xorg.conf file: xed /etc/X11/xorg.conf

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Thu Aug 06, 2020 3:20 pm
by MellowTigger
I saw some messages scroll by quickly. I had my cellphone out to try to capture a photo, but it went to a black screen too quickly to capture anything at all.

Code: Select all

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 450.57

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Thu Aug 06, 2020 5:13 pm
by roblm
I didn’t see any obvious problem in the two logs, although the Xorg.0.log appeared to be cut off before any important error lines at the end were listed.

The xorg.conf file is not needed but it does no harm either.

The only other thing I can suggest is to test the 4.15 kernel used in Mint 19.x, which is an LTS kernel. To do this, open Software Sources. Select Additional Repositories and click Add. Add this line and click OK:

Code: Select all

deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
Ignore this message if you see it: Failed to download repository information, which pertains to the repository cdrom.

Open the Update Manager and install the 4.15 kernel.

If I think of anything else, then I’ll send you a Private Message.

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Thu Aug 06, 2020 6:06 pm
by MellowTigger
It also failed (screenshot), but in a better way. It actually responded to CTL-ALT-DEL afterwards, so I didn't have to cold boot to get back here.

And I already checked, but it locked up in a way that prevented any Xorg log being made again (or flushed from buffer to disk, or something).

Code: Select all

redact@redact:~$ ls -al /var/log/Xorg*
-rw-r--r-- 1 root root 29202 Aug  6 16:53 /var/log/Xorg.0.log
-rw-r--r-- 1 root root     0 Aug  6 16:48 /var/log/Xorg.0.log.old
I'm nearly ready to give up on NVidia and just go buy a new AMD video card. I saw that they actually hired a new person to work on their drivers, so maybe they deserve to be rewarded for their effort.

Re: NVidia GeForce GTX 780 driver doesn't work in LM20

Posted: Thu Aug 06, 2020 6:29 pm
by SMG
You've provided a lot of info on what you've tried, so I may have missed it as I read through, but did you try the 430 driver from the PPA?

When I looked up your card on NVIDIA's site this 430 driver came up for use on Linux. I skimmed through Pjotr's webpage on installing NVIDIA drivers on LM20 using PPA (he recommends not installing from NVIDIA's site) and there is an nvidia-430 driver showing on that webpage.

I will note I do not have NVIDIA on my only LM20 laptop, but I made the recommendation to someone else on this forum who was having video issues and who did successfully install the 450 driver (which is the recommended driver for his card per NVIDIA's website) using PPA on LM20.