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.";
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