LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2020, 12:06 PM   #1
meatbar
LQ Newbie
 
Registered: Jul 2020
Distribution: Bionic pup, Debian 10
Posts: 5

Rep: Reputation: Disabled
No GUI after installing nvidia-drivers on Debian 10


Hello all, I have a problem with Debian 10 that has lead me to format and re-install it three times now, I'd kindly appreciate some help.

My system:
CPU: ryzen 5 2600
mother board: gigabyte aorus B450 M
GPU: Nvidia GeForce GTX 660
Storage: Kingston SSD.

So when I try to install the nvidia-drivers, after rebooting, the OS becomes CLI only, I have tried startx, and setting the display manager to be the deault and rebooting, and nothing, I've already spent some 6-8 hours tring to solve this with web searches to no avail.

The first time I installed the nvidia-drivers I was just following a website and I didn't install the headers, the second time I did install the headers and got the same result, the third time I did it through the apper package manager, and made sure to install an older driver, I went with version 390.

The error I get is something like this:

xinit: giving up
xinit: unable to connect to server: Connection refused
xinit: server error

The Debian 10 I have is from an ISO I downloaded in December, Linux 4.9.0-8-amd64 x86_64

What's weird is that in late December I had a different installation and I installed the nvidia driver with no problem at all, I have no idea what I did right then that I'm doing wrong now, as basically to do anything on linux I look it up, and follow the steps on a website.

What makes the situation worse is that any solution I find requires me to download nouveau from the internet to install it again, but my only internet access is from a mobile broadband usb dongle, and I simply don't know how to connect to it from the command line.

Last edited by meatbar; 07-10-2020 at 12:08 PM.
 
Old 07-10-2020, 03:52 PM   #2
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,571

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
I have very similar hardware, and use Nvidia drivers directly form Nvidia.

Is the Nouveau driver loaded? If yes, that is a problem. Normally that driver need to be blacklisted, and not loaded. It can not co-exist with a Nvidia driver.

Where are you getting the nvidia driver from? I am unfamiliar with Debain, there should be information from Debain on how to install drivers from their repo.

I run Slackware. On Slack I can use the drivers from Slackware, or directly from Nvidia. Nvidia's drivers come in the form of a .run file. After the download, you have to make the run file executable. To install the driver, you should stop the xserver if its running, easiest way is by switching to a run level that does not start the xserver. On Slack that is run level 3. Debain doc should tell you how to change run levels. You have to deal with systemD, Slack doesn't use it, so I can't help there.

You change to the directory where the run file is, and just ./NVIDIA-Linux-x86_64-440.82.run and press enter. ( as root user ). The run file will offer you the ability to blacklist nouveau, accept that option. The run file will build a kernel module, and install the driver. On a 64 bit system it will offer to install 32 bit comparability files; I usually say yes. It will also offer to build an Xorg file. That is generally not needed on most systems.

Once the install completes, you can log out as root, and as a regular user startx.

If you have problems, go to /var/log and look at the output in Xorg.0.log near the end, and look for errors. They are marked with EE ( double e's ).

If you install from the Debain repos, you will have to follow Debains instructions.

On my system the process takes about a minute.
 
Old 07-10-2020, 05:28 PM   #3
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,592
Blog Entries: 1

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Debian 9's kernel is 4.9. Debian 10's is 4.19. AFAICT, NVidia's tainting drivers depend on both the server version and the kernel version, and should be in sync for expected results.
 
Old 07-10-2020, 07:01 PM   #4
meatbar
LQ Newbie
 
Registered: Jul 2020
Distribution: Bionic pup, Debian 10
Posts: 5

Original Poster
Rep: Reputation: Disabled
Alright, I looked up how to blacklist nouveau, and I ran these two commands:

sudo echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf

sudo echo options nouveau modeset=0 >> /etc/modprobe.dblacklist-nvidia-nouveau.conf

Tried startx, nothing, I tried as super user, nothing, rebooted, nothing.

These are the errors in /var/log/Xorg.0.log

(EE) failed to load module "nv" (module does not exist, 0)

(EE) failed to open DRM for device PCI: 0000:06:00.0 -19

(EE) open /dev/dri/card0: no such file or directory

(EE) unable to find a valid framebuffer device

(EE) screen 0 deleted because of no matching config section

(EE) screen 0 deleted because of no matching config section

(EE) fatal server error cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices.

The driver I used was the one from debian, I ran "sudo apt-get install nvidia-driver", I followed some other website's steps, but I then checked and the steps were identical to the ones on the debian wiki.

Last edited by meatbar; 07-10-2020 at 07:18 PM.
 
Old 07-10-2020, 08:46 PM   #5
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,592
Blog Entries: 1

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Quote:
Originally Posted by meatbar View Post
(EE) failed to open DRM for device PCI: 0000:06:00.0 -19
(EE) open /dev/dri/card0: no such file or directory
(EE) unable to find a valid framebuffer device
These are common errors resulting from blacklisting a kernel video driver. Blacklisting blocks competent FOSS DDXes (modesetting, & nouveau, not the same as the nouveau kernel driver) from loading.

IMO, the right thing to do is get the system installed and working entirely using FOSS, then do a full backup. Only after a full backup attempt to install any proprietary software, so that if it fails, it's a simple matter to start over after restoring a working installation. All my GPUs, AMD, Intel and NVidia, are running on FOSS only.

All this said, for proprietary drivers to work with minimum fuss, a release kernel must be employed that matches the released X version. If you're running Debian 10, the kernel should be 4.19; if Debian 9, then it should be 4.9.
 
Old 07-11-2020, 11:42 AM   #6
meatbar
LQ Newbie
 
Registered: Jul 2020
Distribution: Bionic pup, Debian 10
Posts: 5

Original Poster
Rep: Reputation: Disabled
I appreciate your help, but how do I make sure the kernel versions match? How do I change the driver to the correct kernel version? specially with no internet access.

I do have the debian installation from December backed up with clonezilla, but I can't restore it, at the time I had no intention of having windows on my PC, but then I was forced to install it by circumstances, the installation image is about 200 GiB (on disk it's only about 5 GiB), when I try to restore it, it tells me there's not enough space, because I had to make some for windows.

As for this recent installations, they're fresh, it would consume unnecessary space on my HD to store an image of a fresh Debian installation, and restoring an image means formatting the partition in the process, so I see no benefit from backing up the installation with an image, other that it would be a bit faster.
 
Old 07-11-2020, 01:27 PM   #7
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,592
Blog Entries: 1

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Let's get the installed system to report the actual configuration:
Code:
sudo inxi -Ibxxza
This output can be redirected to a file that can be pasted here to include its important output formatting. Please wrap the paste with code tags ( # above the input window).
 
Old 07-11-2020, 06:08 PM   #8
meatbar
LQ Newbie
 
Registered: Jul 2020
Distribution: Bionic pup, Debian 10
Posts: 5

Original Poster
Rep: Reputation: Disabled
Alright, here it is.
Code:
System: Host: Mr.PC Kernel: 4.19.0-6-amd64 x86 bits: 64 compiler: gxx v: 8.3.0 Console: tty 2 dm: LightDM
Distro: Debian GNU/Linux 10 (Buster)
Machine: Type: Desktop Mobo: Gigabyte model: B450 AORUS M v: x.x UEFI American Megatrends v: F41 date: 07/22/2019

CPU: 6/Core: AMD Ryzen 5 2600 type: MT MCP arch: Zen+ speed: 1378 MHz min/max: 1550/3400 MHz

Graphics: Device-1: NVIDIA GK106 [GeForce GTX 660] vendor eVga.com. driver: N/A bus ID: 06:00.0 chip ID: 10de:11c0

Display server: X.org 1.20.4 driver: nouveau, vesa unloaded: fbdev, modesetting alternate: nv tty: 128x48
Message: Advanced graphics data unavailable in console for root.

Network: Device-1: Realtek RTL811/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169 v: kernel

Device-2: Microsoft Xbox 360 Wireless Adapter type: USB: driver: xpad bus ID: 3-4:3 chip ID: 045e:0719

Drives: Local Storage: total: 550.53 GiB used: 7.98 GiB (1.4%)

Info: Processes: 212 Uptime: N/A Memory: 31.42 GiB used 319.2 MiB (1%) Init: systemd v: 241 runlevel: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: bash v: 5.0.3 running in:tty 2 inxi: 3.0.32
And it says it's running nouveau, despite having run these two commands previously:

Code:
sudo echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf

sudo echo options nouveau modeset=0 >> /etc/modprobe.dblacklist-nvidia-nouveau.conf
 
Old 07-11-2020, 06:15 PM   #9
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,571

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Quote:
# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0
This is what is my /etc/modprobe.d/nvidia-installer-modprobe.conf. This works and prevents nouveau from loading.
 
Old 07-11-2020, 06:43 PM   #10
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,592
Blog Entries: 1

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Quote:
Originally Posted by meatbar View Post
Code:
4.19.0-6-amd64
This is a Debian 10 Buster kernel, but it is old, from last November.

Quote:
Code:
driver: N/A
This means the kernel's nouveau driver is not loaded (no doubt due to its blacklisting).

Quote:
Code:
Display server: X.org 1.20.4 driver: nouveau, vesa
This is misleading output from inxi. With the nouveau kernel driver unloaded, the nouveau X driver cannot function, so should not be listed here.

Quote:
Code:
3.0.32
This is a buggy inxi version. Current is 3.1.04.
 
Old 07-15-2020, 01:19 PM   #11
larstrier
Member
 
Registered: Dec 2019
Distribution: Debian
Posts: 46

Rep: Reputation: 18
Quote:
Originally Posted by meatbar View Post
What's weird is that in late December I had a different installation and I installed the nvidia driver with no problem at all, I have no idea what I did right then that I'm doing wrong now, as basically to do anything on linux I look it up, and follow the steps on a website.
Yes, that is weird indeed.
Was your December debian install on the same machine with the exact same specifications? You didn't add any new hardware?

What happened to your initial December debian install? Why did you delete it?
Isn't it easier to create a new partition and dual-boot with a second debian install on the same SSD?
But maybe you have limited space on your Kingston SSD?

If debian ran fine with your new Nvidia gpu on your December install - then we know there is no driver issue.

After booting your new install, on your CLI as root what is the output of:
Code:
journalctl -p 3 -xb
'Where -p 3 means priority err, -x provides extra message information, and -b means since last boot'.

Press Enter to scroll down the list.
Press q to exit the list.

The error message:
Code:
xinit: giving up
xinit: unable to connect to server: Connection refused
xinit: server error
suggests the machine cannot hook up to your monitor/display screen.
 
  


Reply


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] Laptop stalls just before loading X/GUI after installing Nvidia drivers pintooo15 Linux - Hardware 5 02-05-2017 11:09 PM
unable to get the Gui,Dell Vostro 1310,unable to get the Gui after installing RHEL 5 getasif Linux - Laptop and Netbook 1 09-06-2009 05:46 PM
After installing nvidia drivers, nvidia.ko not found robogymnast Linux - Software 7 11-08-2008 01:28 PM
UNinstalling proprietry mandriva nVidia drivers and installing new nVidia drivers deathman Linux - Hardware 3 11-18-2006 05:10 AM
Installing nvidia drivers from nvidia website on mepis 3.3 xbennyboy Linux - Hardware 4 04-23-2005 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:47 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