Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

NVIDIA drivers - again!

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
jlarysz
Posts: 12
Joined: 2011-07-25 12:24

NVIDIA drivers - again!

#1 Post by jlarysz »

I'm setting up a new Debian installation, and all went well until I tried to make a GUI work. The setup is:

1: A respectable Asus / Intel motherboard and CPU
2: An Nvidia 750Ti video card

The "nvidia-detect" script told me that I need the "nvidia-legacy-340xx-driver" package, so I installed that and configured the "Xorg.conf" using the "nvidia-config" script. After many reboots and trying many things, I am well and truly stuck - I need help!

When I run "startx" I get:

Module nvidia-legacy-340xx not found in directory /lib/modules/4.9.0-7-686-pae

and it is right, there is nothing with this name in that directory. NOTE - the missing module reads "nvidia-legacy-340xx", and NOT "nvidia-legacy-340xx-driver"!

So what do I do now?

1: What should be in /lib/modules?
2: Should Linux be looking elsewhere for this module? If so, where and how?
3: Can I copy files into this location, and if so, what?

I appreciate any help I can get.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: NVIDIA drivers - again!

#2 Post by dilberts_left_nut »

AdrianTM wrote:There's no hacker in my grandma...

User avatar
Ardouos
Posts: 1075
Joined: 2013-11-03 00:30
Location: Elicoor II
Has thanked: 1 time
Been thanked: 4 times

Re: NVIDIA drivers - again!

#3 Post by Ardouos »

Just throwing it out there:

I have a Nvidia Geforce GTX 750ti and the current driver on stable and it works great:

Code: Select all

$ inxi -G
Graphics:  Card: NVIDIA GM107 [GeForce GTX 750 Ti]
           Display Server: X.Org 1.19.2 driver: nvidia Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz
           GLX Renderer: GeForce GTX 750 Ti/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 384.130

Code: Select all

$ dpkg -l nvidia-driver
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                               Version                        Architecture                   Description
+++-==================================================-==============================-==============================-=========================================================================================================
ii  nvidia-driver                                      384.130-1                      amd64                          NVIDIA metapackage
There is only one Debian | Do not break Debian | Stability and Debian | Backports

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: NVIDIA drivers - again!

#4 Post by stevepusser »

Did you install the compilers and kernel headers needed to build the drivers as explained in the wiki? Did you see the message about rebooting to blacklist the nouveau driver?

A quick way to install the driver build environment is to install module-assistant and then run as root or with sudo:

Code: Select all

m-a prepare
MX Linux packager and developer

milomak
Posts: 2158
Joined: 2009-06-09 22:20
Been thanked: 1 time

Re: NVIDIA drivers - again!

#5 Post by milomak »

how did you begin to install the drivers?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

jlarysz
Posts: 12
Joined: 2011-07-25 12:24

Re: NVIDIA drivers - again!

#6 Post by jlarysz »

Here's how I installed the NVIDIA drivers:

1: I verified the GPU with "nvidia-detect", which gave the correct driver to use "nvidia-legacy-304xx-driver".

2: I installed following the instructions in https://wiki.debian.org/NvidiaGraphicsDrivers for Debian 9 "stretch" and driver version 340.102

3: I built the "Xorg.conf" file using script "nvidia-config"

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: NVIDIA drivers - again!

#7 Post by 4D696B65 »

jlarysz wrote:Here's how I installed the NVIDIA drivers:
jlarysz wrote:1: I verified the GPU with "nvidia-detect", which gave the correct driver to use "nvidia-legacy-304xx-driver".
You can use the current driver, nvidia-detect is wrong in this case
jlarysz wrote:2: I installed following the instructions in https://wiki.debian.org/NvidiaGraphicsDrivers for Debian 9 "stretch" and driver version 340.102
https://wiki.debian.org/NvidiaGraphicsD ... ckports.29
jlarysz wrote:3: I built the "Xorg.conf" file using script "nvidia-config"
Please delete the disgraceful xorg,conf that POS software created and use the manual method

jlarysz
Posts: 12
Joined: 2011-07-25 12:24

Re: NVIDIA drivers - again!

#8 Post by jlarysz »

In reply to ardouos, here's what I get:

Code: Select all

inxi -G
Graphics:  Card: NVIDIA GM107 [GeForce GTX 750 Ti]
           Display Server: X.org 1.19.2 driver: nvidia
           tty size: 100x51 Advanced Data: N/A for root out of X

Code: Select all

dpkg -l nvidia-legacy-340xx-driver
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version        Architecture   Description
+++-===================-==============-==============-===========================================
ii  nvidia-legacy-340xx 340.106-2~deb9 i386           NVIDIA metapackage (340xx legacy version)
It looks prettty similar.

jlarysz
Posts: 12
Joined: 2011-07-25 12:24

Re: NVIDIA drivers - again!

#9 Post by jlarysz »

I'm following 4D696B65 instructions now, and have questions..

1: What is a stretch-backport?

2: How do I know if I have this?

jlarysz
Posts: 12
Joined: 2011-07-25 12:24

Re: NVIDIA drivers - again!

#10 Post by jlarysz »

I'm making progress. I followed 4D696B65 instruction and things seem better. I'm trying with no xorg.config at all - is that wise? I'm getting this from xstart:

xinit: connection to X server lost

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: NVIDIA drivers - again!

#11 Post by bw123 »

resigned by AI ChatGPT

jlarysz
Posts: 12
Joined: 2011-07-25 12:24

Re: NVIDIA drivers - again!

#12 Post by jlarysz »

I'm still trying to install Nvidia drivers following the manual in https://wiki.debian.org/NvidiaGraphicsDriver with some modification suggested by people in the thread.

1: I could not install drivers at all using the standard package repository; there were many un-resolvable dependencies.

2: I cleanup up the system and went to the backports repository. Both headers and "nvidia-driver" built but the driver package generated a bunch of warnings:

Code: Select all

update-initramfs: Generating /boot/initrd.img-4.9.0-7-686-pae
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8402-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
Should I be worried?

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: NVIDIA drivers - again!

#13 Post by 4D696B65 »

Those errors are for Ethernet nic. Install the firmware, firmware-realtek
https://packages.debian.org/stretch/firmware-realtek

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: NVIDIA drivers - again!

#14 Post by stevepusser »

1: I could not install drivers at all using the standard package repository; there were many un-resolvable dependencies.
This is simply not true if you're using the standard repositories. Can you reproduce the error messages or show the output of "inxi -r"? (complete list of repositories)
MX Linux packager and developer

jlarysz
Posts: 12
Joined: 2011-07-25 12:24

Re: NVIDIA drivers - again!

#15 Post by jlarysz »

I don't have the list of unresolved libraries, and I'm reluctant to roll back the headers to non-backport just yet. Here's the list of repositories I am using:

Code: Select all

root@BlueLight:~# inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
           deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free
           deb http://security.debian.org/debian-security stretch/updates main contrib non-free
           deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free
           deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
           deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
           deb http://httpredir.debian.org/debian stretch-backports main contrib non-free

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: NVIDIA drivers - again!

#16 Post by stevepusser »

Headers to non-backport? What kernel are you using?

If you're using the 4.18 kernel from backports, then you need to install nvidia-driver from backports. The stock version in the main Deban repos will error out when you try to build it against a newer kernel.

I think that would be rather evident if you look at the end of the output of "apt-get install --reinstall nvidia-kernel-dkms" with the standard Nvidia version and the 4.18 kernel. That's why I asked if you had seen the message about blacklisting the nouveau driver you get with a successful build...never answered, either.

And to the world...please stop running inxi as root. Just stop.
MX Linux packager and developer

jlarysz
Posts: 12
Joined: 2011-07-25 12:24

Re: NVIDIA drivers - again!

#17 Post by jlarysz »

Thanks for the hint on firmware errors. I think that issue is cleared up.

jlarysz
Posts: 12
Joined: 2011-07-25 12:24

Re: NVIDIA drivers - again!

#18 Post by jlarysz »

Thanks stevepusser - I went to backport headers because that seemed to worked. I'll roll back again and see what happens with and nvidia-driver build.

And here's what happens with the standard linux headers:

Code: Select all

root@BlueLight:~# apt-get install nvidia-driver
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-driver : Depends: nvidia-driver-libs (= 384.130-1) but 390.87-2~bpo9+1 is to be installed or
                          nvidia-driver-libs-nonglvnd (= 384.130-1) but it is not going to be installed
                 Depends: nvidia-driver-bin (= 384.130-1) but 390.87-2~bpo9+1 is to be installed
                 Depends: xserver-xorg-video-nvidia (= 384.130-1) but 390.87-2~bpo9+1 is to be installed
                 Depends: nvidia-vdpau-driver (= 384.130-1) but 390.87-2~bpo9+1 is to be installed
                 Depends: nvidia-alternative (= 384.130-1) but 390.87-2~bpo9+1 is to be installed
                 Depends: nvidia-kernel-dkms (= 384.130-1) but 390.87-2~bpo9+1 is to be installed or
                          nvidia-kernel-384.130
E: Unable to correct problems, you have held broken packages.
root@BlueLight:~#

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: NVIDIA drivers - again!

#19 Post by bw123 »

jlarysz wrote:I don't have the list of unresolved libraries, and I'm reluctant to roll back the headers to non-backport just yet. Here's the list of repositories I am using:
There's no "roll back" to it, you can have more than one ver linux-headers pkg installed. You're really having trouble, but you're not answering questions, like what kernel are you using/building on? What sources.list produced that list of unresolved "libraries" or whatever?

Why didn't you show stevepusser the cmd he showed 'apt-get install --reinstall nvidia-kernel-dkms' ?

There are a boatload of threads here on the forum about nvidia proprietary. It's a difficult hardware, so maybe searching the forum a little will help you out? People solve it occasionally, so look for nvidia+[solved] maybe?
resigned by AI ChatGPT

jlarysz
Posts: 12
Joined: 2011-07-25 12:24

Re: NVIDIA drivers - again!

#20 Post by jlarysz »

I'm trying to answer questions as I figure out what the answers are.

The kernel, as given by uname -a is:

Code: Select all

Linux BlueLight 4.9.0-8-686-pae #1 SMP Debian 4.9.130-2 (2018-10-27) i686 GNU/Linux
The source list is already listed above. Here it is again:

Code: Select all

# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official i386 NETINST 20180714-11:10]/ stretch main

#deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official i386 NETINST 20180714-11:10]/ stretch main

deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free

# stretch-backports
# deb http://httpredir.debian.org/debian stretch-backports main contrib non-free

Here's the result of reinstalling kdms. Since I've flushed away the nvidia drivers so that I can rebuild them, and the rebuild isn't working using non-backport headers, I don't think that it is installed at all.

Code: Select all

root@BlueLight:~# apt-get install --reinstall nvidia-kernel-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of nvidia-kernel-dkms is not possible, it cannot be downloaded.
The following packages were automatically installed and are no longer required:
  libegl-nvidia0 libgles-nvidia2 libnvidia-cfg1 libnvidia-egl-wayland1 libnvidia-eglcore libopengl0 libvulkan1 linux-headers-4.18.0-0.bpo.1-686-pae
  linux-headers-4.18.0-0.bpo.1-common linux-kbuild-4.18 nvidia-driver-bin nvidia-driver-libs nvidia-egl-common nvidia-egl-icd nvidia-egl-wayland-common
  nvidia-egl-wayland-icd nvidia-persistenced nvidia-vulkan-common nvidia-vulkan-icd
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Post Reply