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 390 driver fails on Debian 10 and Lenovo T520

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
Pummelchen
Posts: 10
Joined: 2019-07-09 11:15

Nvidia 390 driver fails on Debian 10 and Lenovo T520

#1 Post by Pummelchen »

Hello,

I have installed Debian 10 with GNOME which runs fine using the Intel CPU graphics using Wayland.

However YouTube video in Chrome hangs after 10 seconds, so its time for the native Nvidia driver. The notebook runs also Windows and FreeBSD, both have native Nvidia drivers working fine, just Debian gives me sleepless nights .. :?

I cannot install the native Nvidia legacy driver. The notebook has a dedicated Nvidia NVM4200 chip which needs driver 390.116 to work.

I heard Nvidia and Wayland do not like each other (?) so I switched to GNOME with Xorg and tried my luck:

Code: Select all

root@debian:/usr/src/linux-headers-4.19.0-6-common# apt install nvidia-legacy-390xx-driver
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nvidia-legacy-390xx-driver is already the newest version (390.116-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nvidia-legacy-390xx-kernel-dkms (390.116-1) ...
Removing old nvidia-legacy-390xx-390.116 DKMS files...

------------------------------
Deleting module version: 390.116
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-legacy-390xx-390.116 DKMS files...
Building for 4.19.0-6-amd64
Building initial module for 4.19.0-6-amd64
Error! Bad return status for module build on kernel: 4.19.0-6-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-legacy-390xx/390.116/build/make.log for more information.
dpkg: error processing package nvidia-legacy-390xx-kernel-dkms (--configure):
 installed nvidia-legacy-390xx-kernel-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-legacy-390xx-driver:
 nvidia-legacy-390xx-driver depends on nvidia-legacy-390xx-kernel-dkms (= 390.116-1) | nvidia-legacy-390xx-kernel-390.116; however:
  Package nvidia-legacy-390xx-kernel-dkms is not configured yet.
  Package nvidia-legacy-390xx-kernel-390.116 is not installed.
  Package nvidia-legacy-390xx-kernel-dkms which provides nvidia-legacy-390xx-kernel-390.116 is not configured yet.

dpkg: error processing package nvidia-legacy-390xx-driver (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nvidia-legacy-390xx-kernel-dkms
 nvidia-legacy-390xx-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:/usr/src/linux-headers-4.19.0-6-common# 


When I look into /var/lib/dkms/nvidia-legacy-390xx/390.116/build/make.log:

Code: Select all

echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	
I did run make oldconfig && make prepare, but it fixed nothing. All the same ..

Kernel headers are installed:

Code: Select all

root@debian:/usr/src/linux-headers-4.19.0-6-common# apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.19.0-6-amd64 is already the newest version (4.19.67-2+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Some more infos:

Code: Select all

root@debian:/usr/src/linux-headers-4.19.0-6-common# /usr/lib/systemd/systemd-modules-load
modprobe: FATAL: Module nvidia-legacy-390xx not found in directory /lib/modules/4.19.0-6-amd64
modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia
modprobe: ERROR: could not insert 'nvidia': Operation not permitted
modprobe: FATAL: Module nvidia-legacy-390xx-modeset not found in directory /lib/modules/4.19.0-6-amd64
modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia_modeset
modprobe: ERROR: could not insert 'nvidia_modeset': Operation not permitted
modprobe: FATAL: Module nvidia-legacy-390xx-drm not found in directory /lib/modules/4.19.0-6-amd64
Error running install command for nvidia_drm
Failed to insert module 'nvidia_drm': Operation not permitted

Code: Select all

root@debian:/usr/src/linux-headers-4.19.0-6-common# find / -name libnvidia-cfg*
/var/cache/apt/archives/libnvidia-cfg1_418.74-1_amd64.deb
/usr/lib/x86_64-linux-gnu/libnvidia-cfg.so.1
/usr/lib/x86_64-linux-gnu/nvidia/libnvidia-cfg.so.1
/usr/lib/x86_64-linux-gnu/nvidia/legacy-390xx/libnvidia-cfg.so.390.116
/usr/lib/x86_64-linux-gnu/nvidia/legacy-390xx/libnvidia-cfg.so.1
find: ‘/run/user/1000/gvfs’: Permission denied

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

Re: Nvidia 390 driver fails on Debian 10 and Lenovo T520

#2 Post by stevepusser »

Isn't that an Optimus laptop? You should then try the wiki entry for Bumblebee, unless you can disable the Intel card in the BIOS and just use the Nvidia--which would eat up the battery really quick and make it run hot.

You may just need to install firmware-misc-nonfree to fix your Intel video problem, sixth-gen Intel (skylake 2016) or above hardware does require that package to work correctly. If that doesn't help, you may have to disable hardware acceleration in the Chrome settings.
MX Linux packager and developer

Post Reply