Nvidia 390 driver fails on Debian 10 and Lenovo T520

Everything about X, Gnome, KDE, ... and everything running on it

Nvidia 390 driver fails on Debian 10 and Lenovo T520

Postby Pummelchen » 2019-09-26 22:31

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
Pummelchen
 
Posts: 9
Joined: 2019-07-09 11:15

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

Postby stevepusser » 2019-09-27 02:36

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11258
Joined: 2009-10-06 05:53


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable