LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-28-2021, 05:57 AM   #16
AndrewMartin
LQ Newbie
 
Registered: Jul 2012
Location: London, UK
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: Disabled

I just tried this:
  • Exit X.
  • Make the nvidia installer executable.
  • Disabled nouveau with a modprobe blacklist.
  • Set the multi-user as the default target (to avoid starting X automatically) (sudo systemctl set-default multi-user.target)
  • Rebooted
  • Ran the installer as root. (Installing NVIDIA driver version 460.56.)
  • Said yes to the questions...
  • -> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
  • -> Install NVIDIA's 32-bit compatibility libraries? (Answer: Yes)

At this point I encountered the error "ERROR: Unable to load the 'nvidia-drm' kernel module."

Code:
-> Driver file installation is complete.
-> Installing DKMS kernel module:
-> done.
ERROR: Unable to load the 'nvidia-drm' kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
The log (attached as nvidia-installer.log) also includes some warnings, but they sound harmless. It appears to be refusing to install libglvnd because it's already installed, there's also the line "Found non-libglvnd libraries:", but I suspect that's also harmless.

I also attach my Xorg.0.log, which shows a similar error, it fails to load DRM and then falls back to a different module "fbdevhw", and then fails to open that in framebuffer mode.

Code:
[    17.752] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    17.874] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[    17.874] (EE) open /dev/dri/card0: No such file or directory
[    17.874] (WW) Falling back to old probe method for modesetting
[    17.874] (EE) open /dev/dri/card0: No such file or directory
[    17.874] (II) Loading sub module "fbdevhw"
I'm quite keen to solve this now, as purging *nvidia* and 'unblacklisting' nouveau isn't enough to get X, xinit, or startx to work again.

Do I need to change "secure boot" or "UEFI" in my BIOS?
Attached Files
File Type: log nvidia-installer.log (3.0 KB, 5 views)
File Type: log Xorg.0.log (8.0 KB, 6 views)
 
Old 02-28-2021, 06:03 AM   #17
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
[ 0.000000] secureboot: Secure boot enabled
[ 0.000000] Kernel is locked down from EFI secure boot; see https://wiki.debian.org/SecureBoot
This is likely the problem. When secure boot is enabled, you need to sign the nvidia module. If you disable secure boot, your Debian binary nvidia-driver will work.
However, you can create your own signing key for modules and add its certificate to the trusted list using MOK.
 
1 members found this post helpful.
Old 02-28-2021, 06:11 AM   #18
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Not sure about your setup, but my Debian created two entries in the EFI boot menu, one to be used without secure boot enabled, the other with secure boot.
 
Old 02-28-2021, 06:19 AM   #19
AndrewMartin
LQ Newbie
 
Registered: Jul 2012
Location: London, UK
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by Brains View Post
This is likely the problem. When secure boot is enabled, you need to sign the nvidia module. If you disable secure boot, your Debian binary nvidia-driver will work.
However, you can create your own signing key for modules and add its certificate to the trusted list using MOK.
Yep, I'm in and I've got a glmark2 score of around 7000. Nothing much for gamers these days, but a definite step up from the 200 I was getting.

So, to confirm, I rebooted, disabled secure boot in the BIOS, logged in and re-ran the NVIDIA installer (from the nvidia website).

That completed perfectly, I rebooted and startx loaded my desktop environment correctly.

I assume it was the same thing that was stopping the Debian repo 'nvidia-drivers' from loading correctly.

Thanks for your help everyone.

If there's something I can add to help any people from the future with the same problem, then let me know and I'll do it.

Cheers,

Andrew
 
Old 02-28-2021, 02:09 PM   #20
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
One thing that has not been mentioned.
Are you using gnome?
If so, are you using wayland or xorg?

Nvidia cannot be used with wayland and the frame buffer errors seem to imply that may be the issue.

You might look at /etc/gdm/custom.conf and uncomment the line #WaylandEnable=false if that is the case.

I see you got it fixed, but this is still pertinent for many.
 
  


Reply

Tags
geforce, nouveau, nvidia drivers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Help needed installing non-free nVidia drivers (the 'Debian way') wheeliee Debian 26 07-27-2009 04:21 AM
Nvidia 9746 Drivers - startx freezes machine when using nvidia module Astro Slackware 17 01-21-2007 07:36 PM
UNinstalling proprietry mandriva nVidia drivers and installing new nVidia drivers deathman Linux - Hardware 3 11-18-2006 05:10 AM
(nvidia) First startx = blank screen, second startx = works ?!? BuckRogers01 Linux - Hardware 2 04-07-2006 05:26 PM
Blank screen after "startx" after reboot after install cg from nvidia rozky Linux - Software 2 04-04-2005 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration