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

 

 

 

[Solved] nvidia driver installation hangs on a fresh stretch

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

[Solved] nvidia driver installation hangs on a fresh stretch

#1 Post by toquinho »

Hello,
Some time ago, I had an issue installing the nvidia drivers on a fresh stretch install on my desktop (4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux and a 1080Ti card). The driver installation (via the module assistant) kept hanging at 91% when building the kernel source, step 2 with one CPU-core at 100% load. Somehow I was able to resolve this after a few installation attempts. But I do not remember how.

Today, I am installing stretch on a new laptop (Dell G3 with i7 processor and nvidia 1060 MaxQ) and am running into the same problem. After rebooting, I followed the instructions on https://wiki.debian.org/NvidiaGraphicsD ... Stretch.22. (I added non-free and backports to the sources.) The installation completed, but the system rebooted with the nouveau driver. Trying to build the driver modules (stretch-backports) with the module assistant hangs as described above.

I then reinstalled the system and tried to install the older version of the nvidia drivers (384.130-1, not from the backports) via the module assistant. Again without success. Before the installation, I did

Code: Select all

dpkg --add-architecture i386
. I had also done this on my desktop system where I was finally able to install the drivers (390.87-4~bpo9+1).

I finally tried (again) to install the backported drivers on the laptop via apt-get following the instructions on the debian wiki. The installation via apt-get always completes (whereas the module-assistant hangs), but after a reboot, the system comes up with the nouveau driver again. Below, you can find the output of apt-get when installing the driver from the backports.

Any help is greatly appreciated.

Toquinho

Code: Select all

...
Selecting previously unselected package libgles-nvidia2:i386.
Preparing to unpack .../106-libgles-nvidia2_390.87-4~bpo9+1_i386.deb ...
Unpacking libgles-nvidia2:i386 (390.87-4~bpo9+1) ...
Selecting previously unselected package libnvidia-cfg1:amd64.
Preparing to unpack .../107-libnvidia-cfg1_390.87-4~bpo9+1_amd64.deb ...
Unpacking libnvidia-cfg1:amd64 (390.87-4~bpo9+1) ...
Selecting previously unselected package libnvidia-cfg1:i386.
Preparing to unpack .../108-libnvidia-cfg1_390.87-4~bpo9+1_i386.deb ...
Unpacking libnvidia-cfg1:i386 (390.87-4~bpo9+1) ...
Selecting previously unselected package libopengl0:i386.
Preparing to unpack .../109-libopengl0_1.1.0-1~bpo9+1_i386.deb ...
Unpacking libopengl0:i386 (1.1.0-1~bpo9+1) ...
Selecting previously unselected package libopengl0:amd64.
Preparing to unpack .../110-libopengl0_1.1.0-1~bpo9+1_amd64.deb ...
Unpacking libopengl0:amd64 (1.1.0-1~bpo9+1) ...
Selecting previously unselected package libvulkan1:amd64.
Preparing to unpack .../111-libvulkan1_1.1.70+dfsg1-1~bpo9+1_amd64.deb ...
Unpacking libvulkan1:amd64 (1.1.70+dfsg1-1~bpo9+1) ...
Selecting previously unselected package libvulkan1:i386.
Preparing to unpack .../112-libvulkan1_1.1.70+dfsg1-1~bpo9+1_i386.deb ...
Unpacking libvulkan1:i386 (1.1.70+dfsg1-1~bpo9+1) ...
Selecting previously unselected package nvidia-egl-icd:i386.
Preparing to unpack .../113-nvidia-egl-icd_390.87-4~bpo9+1_i386.deb ...
Unpacking nvidia-egl-icd:i386 (390.87-4~bpo9+1) ...
Selecting previously unselected package nvidia-driver-libs:i386.
Preparing to unpack .../114-nvidia-driver-libs_390.87-4~bpo9+1_i386.deb ...
Unpacking nvidia-driver-libs:i386 (390.87-4~bpo9+1) ...
Selecting previously unselected package nvidia-driver-libs-i386:i386.
Preparing to unpack .../115-nvidia-driver-libs-i386_390.87-4~bpo9+1_i386.deb ...
Unpacking nvidia-driver-libs-i386:i386 (390.87-4~bpo9+1) ...
Selecting previously unselected package nvidia-persistenced.
Preparing to unpack .../116-nvidia-persistenced_384.111-1~bpo9+1_amd64.deb ...
Unpacking nvidia-persistenced (384.111-1~bpo9+1) ...
Selecting previously unselected package nvidia-vulkan-common.
Preparing to unpack .../117-nvidia-vulkan-common_390.87-4~bpo9+1_amd64.deb ...
Unpacking nvidia-vulkan-common (390.87-4~bpo9+1) ...
Selecting previously unselected package nvidia-vulkan-icd:i386.
Preparing to unpack .../118-nvidia-vulkan-icd_390.87-4~bpo9+1_i386.deb ...
Unpacking nvidia-vulkan-icd:i386 (390.87-4~bpo9+1) ...
Selecting previously unselected package nvidia-vulkan-icd:amd64.
Preparing to unpack .../119-nvidia-vulkan-icd_390.87-4~bpo9+1_amd64.deb ...
Unpacking nvidia-vulkan-icd:amd64 (390.87-4~bpo9+1) ...
Setting up libvulkan1:amd64 (1.1.70+dfsg1-1~bpo9+1) ...
Setting up libglvnd0:amd64 (1.1.0-1~bpo9+1) ...
Setting up libopengl0:amd64 (1.1.0-1~bpo9+1) ...
Setting up libgles1:amd64 (1.1.0-1~bpo9+1) ...
Processing triggers for mime-support (3.60) ...
Setting up libnvidia-eglcore:amd64 (390.87-4~bpo9+1) ...
Setting up libllvm6.0:amd64 (1:6.0-1~bpo9+1) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Setting up nvidia-support (20151021+4) ...
Setting up update-glx (0.8.8~bpo9+1) ...
Setting up libwayland-client0:amd64 (1.16.0-1~bpo9+1) ...
Setting up gcc-6-base:i386 (6.3.0-18+deb9u1) ...
Setting up libnvidia-glcore:amd64 (390.87-4~bpo9+1) ...
Setting up libglapi-mesa:amd64 (18.2.6-1~bpo9+1) ...
Setting up libdrm-common (2.4.95-1~bpo9+1) ...
Setting up dkms (2.6.1-1~bpo9+1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up nvidia-egl-common (390.87-4~bpo9+1) ...
Setting up nvidia-vulkan-common (390.87-4~bpo9+1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libgles2:amd64 (1.1.0-1~bpo9+1) ...
Setting up glx-alternative-mesa (0.8.8~bpo9+1) ...
Setting up libxnvctrl0:amd64 (390.48-2~bpo9+1) ...
Setting up libwayland-egl1:amd64 (1.16.0-1~bpo9+1) ...
Setting up libwayland-server0:amd64 (1.16.0-1~bpo9+1) ...
Setting up libdrm2:amd64 (2.4.95-1~bpo9+1) ...
Setting up libdrm-intel1:amd64 (2.4.95-1~bpo9+1) ...
Setting up glx-diversions (0.8.8~bpo9+1) ...
Setting up libdrm-radeon1:amd64 (2.4.95-1~bpo9+1) ...
Setting up libdrm-nouveau2:amd64 (2.4.95-1~bpo9+1) ...
Setting up libdrm-amdgpu1:amd64 (2.4.95-1~bpo9+1) ...
Setting up libgbm1:amd64 (18.2.6-1~bpo9+1) ...
Setting up libgl1-mesa-dri:amd64 (18.2.6-1~bpo9+1) ...
Installing new version of config file /etc/drirc ...
Setting up libegl-mesa0:amd64 (18.2.6-1~bpo9+1) ...
Setting up libglx-mesa0:amd64 (18.2.6-1~bpo9+1) ...
Setting up libegl1:amd64 (1.1.0-1~bpo9+1) ...
Setting up libwayland-egl1-mesa:amd64 (18.2.6-1~bpo9+1) ...
Setting up libglx0:amd64 (1.1.0-1~bpo9+1) ...
Setting up libegl1-mesa:amd64 (18.2.6-1~bpo9+1) ...
Setting up libgl1:amd64 (1.1.0-1~bpo9+1) ...
Setting up libgl1-mesa-glx:amd64 (18.2.6-1~bpo9+1) ...
Processing triggers for glx-alternative-mesa (0.8.8~bpo9+1) ...
update-alternatives: updating alternative /usr/lib/mesa-diverted because link group glx has changed slave links
Setting up glx-alternative-nvidia (0.8.8~bpo9+1) ...
Processing triggers for glx-alternative-nvidia (0.8.8~bpo9+1) ...
Setting up nvidia-alternative (390.87-4~bpo9+1) ...
Processing triggers for nvidia-alternative (390.87-4~bpo9+1) ...
update-alternatives: using /usr/lib/nvidia/current to provide /usr/lib/nvidia/nvidia (nvidia) in auto mode
Setting up libglx-nvidia0:amd64 (390.87-4~bpo9+1) ...
Setting up nvidia-vulkan-icd:amd64 (390.87-4~bpo9+1) ...
Setting up nvidia-kernel-support (390.87-4~bpo9+1) ...
Installing new version of config file /etc/nvidia/current/nvidia-modprobe.conf ...
Setting up nvidia-settings (390.48-2~bpo9+1) ...
Setting up nvidia-vdpau-driver:amd64 (390.87-4~bpo9+1) ...
Setting up libegl-nvidia0:amd64 (390.87-4~bpo9+1) ...
Setting up libgles-nvidia2:amd64 (390.87-4~bpo9+1) ...
Setting up libnvidia-cfg1:amd64 (390.87-4~bpo9+1) ...
Setting up libnvidia-ml1:amd64 (390.87-4~bpo9+1) ...
Setting up libgles-nvidia1:amd64 (390.87-4~bpo9+1) ...
Setting up libgl1-nvidia-glvnd-glx:amd64 (390.87-4~bpo9+1) ...
Setting up xserver-xorg-video-nvidia (390.87-4~bpo9+1) ...
Setting up nvidia-driver-bin (390.87-4~bpo9+1) ...
Setting up nvidia-persistenced (384.111-1~bpo9+1) ...
Setting up nvidia-egl-icd:amd64 (390.87-4~bpo9+1) ...
Setting up nvidia-driver-libs:amd64 (390.87-4~bpo9+1) ...
Processing triggers for nvidia-alternative (390.87-4~bpo9+1) ...
update-alternatives: updating alternative /usr/lib/nvidia/current because link group nvidia has changed slave links
Setting up nvidia-kernel-dkms (390.87-4~bpo9+1) ...
Loading new nvidia-current-390.87 DKMS files...
Building for 4.9.0-8-amd64
Building initial module for 4.9.0-8-amd64
Done.

nvidia-current.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-8-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-8-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-8-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-8-amd64/updates/dkms/

depmod...

DKMS: install completed.
Setting up nvidia-driver (390.87-4~bpo9+1) ...
Setting up libc6:i386 (2.24-11+deb9u3) ...
Setting up libglapi-mesa:i386 (18.2.6-1~bpo9+1) ...
Setting up libbsd0:i386 (0.8.3-1) ...
Setting up libdrm2:i386 (2.4.95-1~bpo9+1) ...
Setting up libx11-xcb1:i386 (2:1.6.4-3+deb9u1) ...
Setting up libnvidia-cfg1:i386 (390.87-4~bpo9+1) ...
Setting up libsensors4:i386 (1:3.4.0-4) ...
Setting up libffi6:i386 (3.2.1-6) ...
Setting up libdrm-radeon1:i386 (2.4.95-1~bpo9+1) ...
Setting up libxdmcp6:i386 (1:1.1.2-3) ...
Setting up libdrm-nouveau2:i386 (2.4.95-1~bpo9+1) ...
Setting up libxau6:i386 (1:1.0.8-1) ...
Setting up libgcc1:i386 (1:6.3.0-18+deb9u1) ...
Setting up libwayland-server0:i386 (1.16.0-1~bpo9+1) ...
Setting up libvulkan1:i386 (1.1.70+dfsg1-1~bpo9+1) ...
Setting up libglvnd0:i386 (1.1.0-1~bpo9+1) ...
Setting up libopengl0:i386 (1.1.0-1~bpo9+1) ...
Setting up libtinfo5:i386 (6.0+20161126-1+deb9u2) ...
Setting up libgles1:i386 (1.1.0-1~bpo9+1) ...
Setting up libexpat1:i386 (2.2.0-2+deb9u1) ...
Setting up libdrm-amdgpu1:i386 (2.4.95-1~bpo9+1) ...
Setting up libnvidia-eglcore:i386 (390.87-4~bpo9+1) ...
Setting up libgpm2:i386 (1.20.4-6.2+b1) ...
Setting up zlib1g:i386 (1:1.2.8.dfsg-5) ...
Setting up libelf1:i386 (0.168-1) ...
Setting up libxshmfence1:i386 (1.2-1+b2) ...
Setting up libwayland-client0:i386 (1.16.0-1~bpo9+1) ...
Setting up libgbm1:i386 (18.2.6-1~bpo9+1) ...
Setting up libnvidia-glcore:i386 (390.87-4~bpo9+1) ...
Setting up libegl-nvidia0:i386 (390.87-4~bpo9+1) ...
Setting up libpciaccess0:i386 (0.13.4-1+b2) ...
Setting up libgles2:i386 (1.1.0-1~bpo9+1) ...
Setting up libgles-nvidia1:i386 (390.87-4~bpo9+1) ...
Setting up libstdc++6:i386 (6.3.0-18+deb9u1) ...
Setting up libxcb1:i386 (1.12-1) ...
Setting up libncurses5:i386 (6.0+20161126-1+deb9u2) ...
Setting up libxcb-present0:i386 (1.12-1) ...
Setting up libxcb-dri2-0:i386 (1.12-1) ...
Setting up libxcb-dri3-0:i386 (1.12-1) ...
Setting up libxcb-glx0:i386 (1.12-1) ...
Setting up libxcb-xfixes0:i386 (1.12-1) ...
Setting up libx11-6:i386 (2:1.6.4-3+deb9u1) ...
Setting up libxcb-sync1:i386 (1.12-1) ...
Setting up libdrm-intel1:i386 (2.4.95-1~bpo9+1) ...
Setting up libgles-nvidia2:i386 (390.87-4~bpo9+1) ...
Setting up libegl-mesa0:i386 (18.2.6-1~bpo9+1) ...
Setting up libedit2:i386 (3.1-20160903-3) ...
Setting up libxext6:i386 (2:1.3.3-1+b2) ...
Setting up libxfixes3:i386 (1:5.0.3-1) ...
Setting up libllvm6.0:i386 (1:6.0-1~bpo9+1) ...
Setting up libgl1-mesa-dri:i386 (18.2.6-1~bpo9+1) ...
Setting up libegl1:i386 (1.1.0-1~bpo9+1) ...
Setting up libxxf86vm1:i386 (1:1.1.4-1+b2) ...
Setting up libxdamage1:i386 (1:1.1.4-2+b3) ...
Setting up nvidia-egl-icd:i386 (390.87-4~bpo9+1) ...
Setting up libglx-mesa0:i386 (18.2.6-1~bpo9+1) ...
Setting up libglx0:i386 (1.1.0-1~bpo9+1) ...
Setting up libglx-nvidia0:i386 (390.87-4~bpo9+1) ...
Setting up nvidia-vulkan-icd:i386 (390.87-4~bpo9+1) ...
Setting up libgl1:i386 (1.1.0-1~bpo9+1) ...
Setting up libgl1-nvidia-glvnd-glx:i386 (390.87-4~bpo9+1) ...
Setting up nvidia-driver-libs:i386 (390.87-4~bpo9+1) ...
Setting up nvidia-driver-libs-i386:i386 (390.87-4~bpo9+1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for update-glx (0.8.8~bpo9+1) ...
Processing triggers for glx-alternative-nvidia (0.8.8~bpo9+1) ...
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode
Processing triggers for glx-alternative-mesa (0.8.8~bpo9+1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.9.0-8-amd64
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-2.fw for module r8169
...
Last edited by toquinho on 2019-01-30 14:04, edited 1 time in total.

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#2 Post by toquinho »

Short update:

The problem is probably related to this one:
http://forums.debian.net/viewtopic.php? ... stallation

As suggested, I ran this:

Code: Select all

dpkg-reconfigure nvidia-kernel-dkms
It seemed to complete successfully. It even generated an xorg.conf.

Journalcatl says that the nvidia-driver is loaded. (I get messages like: "loading NVIDIA UNIX x86_64 KErnal Module 390.87" and "[nvidia drm] ... Loading driver")
However, lightdm exits with the status 1/FAILURE. This may be a new or different problem.

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#3 Post by toquinho »

Last update for tonight. I upgraded the kernel to 4.18. This also upgraded the compiler. Now, the module assistant no longer hangs, but reports an error. The compiler complains about an undeclared "DRM_CONTROL_ALLOW" in nvidia-drm-drv.c:626:23. I cannot paste the whole output here because X is not running on the machine where the error occurs.

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

Re: nvidia driver installation hangs on a fresh stretch inst

#4 Post by stevepusser »

Isn't that Dell a gaming laptop with switchable Intel and Nvidia GPUs?

Instead of making us guess, install inxi and give us the output of "inxi -Fxz", NOT AS ROOT WHICH EVERYONE DOES...sorry there, pet peeve.

You need a lot more updates than just the kernel and Nvidia driver if you have 8th gen Coffee Lake hardware--Mesa and firmware for example. You should also install Bumbleebee from backports or my OBS new-hardware-support repo, not follow the instructions for basic Nvidia install. Get rid of any xorg.conf file you have created--that will cause your boots to fail on an Optimus laptop. Recent Dells may also hang at boot after installing bumblebee-nvidia, see the Debian wiki for Bumblebee for a kernel cheat that seems to help.

I plan to add the automatic Nvidia/Bumblebee driver installer from MX Linux to my OBS repo tomorrow--that should make things very easy to install, though the kernel cheat still must be added by the user.

One cool thing with the updates on MX is that the Handbrake 1.2.0 version I backported from Buster today now supports va-api hardware-accelerated encoding with my Coffee Lake Intel GPU, probably the same as yours. Woot! I'll see if I can get that into my OBS hardware repo, too.
MX Linux packager and developer

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#5 Post by toquinho »

Thanks a lot, this is really helpful. I was not aware of the intel GPU.

When I read your post, I had already given buster a try. Anyway, installing just the nvidia driver did not help - which is expected. In summary, this is what I did after installing buster and adding contrib and non-free:

Code: Select all

   
dpkg --add-architecture i386
apt-get update
apt-get install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//')
apt-get install nvidia-driver
apt-get install inxi module-assistant
apt-get install bumblebee-nvidia primus libgl1-nvidia-glx primus-libs:i386 libgl1-nvidia-glx:i386
I need the 386 libraries because I have to run some legacy windows-applications under wine (no games, just CAD and number crunching).

The output of inxi is:

Code: Select all

toquinho@CARTMAN:~$ inxi -Fxz
System:    Host: CARTMAN Kernel: 4.19.0-1-amd64 x86_64 bits: 64 compiler: gcc v: 8.2.0 Desktop: MATE 1.20.3 
           Distro: Debian GNU/Linux buster/sid 
Machine:   Type: Laptop System: Dell product: G3 3579 v: N/A serial: <filter> 
           Mobo: Dell model: 00FK8Y v: A00 serial: <filter> UEFI: Dell v: 1.4.0 date: 09/05/2018 
Battery:   ID-1: BAT0 charge: 56.0 Wh condition: 56.0/56.0 Wh (100%) model: Samsung SDI DELL W7NKD8B status: Full 
CPU:       Topology: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 9216 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 52992 
           Speed: 801 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
           9: 800 10: 800 11: 800 12: 800 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GP106M [GeForce GTX 1060] driver: N/A bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.3 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 18.2.8 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Sound Server: ALSA v: k4.19.0-1-amd64 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: N/A port: 5000 bus ID: 00:14.3 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Dell driver: r8169 v: kernel port: 3000 
           bus ID: 3c:00.0 
           IF: enp60s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 342.81 GiB used: 4.62 GiB (1.3%) 
           ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC501 NVMe 128GB size: 119.24 GiB 
           ID-2: /dev/sda vendor: Intenso model: SATA III SSD size: 223.57 GiB 
Partition: ID-1: / size: 57.96 GiB used: 4.48 GiB (7.7%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: /boot size: 463.6 MiB used: 44.6 MiB (9.6%) fs: ext4 dev: /dev/nvme0n1p1 
           ID-3: /home size: 219.06 GiB used: 92.8 MiB (0.0%) fs: ext4 dev: /dev/sda1 
Sensors:   System Temperatures: cpu: 51.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 218 Uptime: 2m Memory: 31.28 GiB used: 460.2 MiB (1.4%) Init: systemd runlevel: 5 Compilers: gcc: 8.2.0 
           Shell: bash v: 4.4.23 inxi: 3.0.30 
If you think it is easier to continue with buster instead of stretch, please let me know. (I had some surprise issues with buster, though, which do not belong in this thread. So I would prefer to use stretch.)

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

Re: nvidia driver installation hangs on a fresh stretch inst

#6 Post by stevepusser »

You have almost the same hardware as my MSI laptop, except that I have an Nvidia 1050ti...though other models of the MSI have a 1060. Anyway, I'm well-versed now in what it takes to get it running correctly on a Stretch base, and we applied that to the Stretch-based MX 18, if you want to give that a spin. Since it ships with the nouveau drivers, you'll have to install it or have a persistent Live USB setup to use the Nvidia driver installer.

I've also ported over a lot of those MX backports you need for the new hardware to this Stretch repo:

https://build.opensuse.org/project/show ... re-support

It has 4.18, 4.19, and 4.20 backported Debian kernels, but the Nvidia driver won't build on a 4.20 kernel--it needs a newer version.

So basically, you install Stretch, set up i386 multiarch, add the backports 4.18 kernel, or install it or 4.19.0-1 from my repo after adding it as below:

As root (sudo users can become root with "sudo su"), copy and paste the whole command from the code block:

add the repo

Code: Select all

echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser:/new-hardware-support/Debian_9.0/ /' > /etc/apt/sources.list.d/home:stevenpusser:new-hardware-support.list
download and install the repo key

Code: Select all

rm -f Release.key && wget -nv https://download.opensuse.org/repositories/home:stevenpusser:new-hardware-support/Debian_9.0/Release.key -O Release.key && apt-key add - < Release.key && rm Release.key
update package database

Code: Select all

apt update
Updates from the repository are now available to your system.

You should be able to upgrade all installed packages with "apt upgrade", necessary for Mesa and the like, plus install firmware-misc-nonfree and firmware-iwlwifi to support your hardware.

Nvidia driver and Bumblebee setup: install ddm-mx from my repo and run "ddm-mx" in a terminal as root or with sudo. You'll be guided through the setup. You don't need the backports version of the Nvidia driver, it's in my repo too.

You can also add the updated i965-va-driver from my repo to support the Coffe Lake hardware. I'm going to add ffmpeg 4.1, vlc-3.0.5, and handbrake 1.2.0 to that repo so you can use the va-api hardware decoding and encoding with them.
MX Linux packager and developer

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#7 Post by toquinho »

Great, thanks a lot!

I reinstalled stretch, added your repository, got the 4.19 kernel and all the other updates. When running ddm-mx, however, I get the following error:

Code: Select all

/usr/local/bin/ddm-mx: line 52: /etc/lsb-release: No such file or directory
lsb-base and lsb-release are already installed. lsb-compat is not. Is there anything I am missing?

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

Re: nvidia driver installation hangs on a fresh stretch inst

#8 Post by stevepusser »

It looks like you may have to create it manually. The MX one reads

Code: Select all

PRETTY_NAME="MX 18 Continuum"
DISTRIB_ID=MX
DISTRIB_RELEASE=18
DISTRIB_CODENAME=Continuum
DISTRIB_DESCRIPTION="MX 18 Continuum"
You can try

Code: Select all

PRETTY_NAME="Debian 9 Stretch"
DISTRIB_ID=Debian
DISTRIB_RELEASE=9
DISTRIB_CODENAME=Stretch
DISTRIB_DESCRIPTION="Debian 9 Stretch"
Make sure each file ends with a new line.
But if ddm-mx barfs with that, use the MX one long enough for it to work. Let me look at the code to see what it's looking for.

I'm currently adding ffmpeg 4.1, VLC 3.0.5, mpv 0.29.1, and Handbrake to that repo, since they need to be built against the newer libva-dev in there for hardware acceleration to work, but their builds won't affect any of the older packages I already have in the repo.
MX Linux packager and developer

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#9 Post by toquinho »

I tried the debian-version of lsb-release. The error message disappears. I then had a look at the output of ddm-mx -h and chose the option fixbumblebee. This is what I got:

Code: Select all

root@CARTMAN:/etc# ddm-mx -i fixbumblebee
creating lock ...
===================================
Install drivers for: fixbumblebee
Start at (m/d/y): 01/09/2019 23:58:00
===================================
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nvidia-xconfig' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libllvm3.9 libtxc-dxtn-s2tc
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mv: cannot stat '/etc/X11/xorg.conf': No such file or directory


Press <Enter> to exit
I am not sure if this is the right option or if this is what is supposed to happen. I did not try any of the other options because I do not want to break anything. In any case, I really appreciate your help. I had no idea that setting up my computer would turn out to be so complicated.

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

Re: nvidia driver installation hangs on a fresh stretch inst

#10 Post by stevepusser »

That's what's supposed to happen for Bumblebee. The ddm-mx script removes any xorg.conf file if present, since the Intel GPU that always is running the display doesn't need one, and any one for Nvidia will prevent the GUI from starting--so that's just housekeeping.

What do you get now after a reboot for (remember that warning in the wiki about Dells possibly needing that kernel boot command: acpi_osi='!Windows 2015'

You should have seen a message about needing to reboot to blacklist the nouveau drivers if the Nvidia build was successful, too.

Code: Select all

inxi -G
versus

Code: Select all

optirun inxi -G
If the second one's last line shows the Nvidia card doing the rendering, try

Code: Select all

glxspheres64
vs

Code: Select all

optirun glxspheres64
for a crude benchmark.

I just updated the 4.18 kernel source in the repo to backport's current 4.18.20, so that might bring it down for a while, though the OBS seems to keep older packages available until the new ones are done, so that might not be the case. It takes the OBS quite a while to build a kernel, which you can see from the build logs for the 4.19/4.20 kernels.

I also see in the first post that you mentioned about the CPU use when building the Nvidia driver. On older machines, it does take a while and runs the machine at full speed, but the i7-8750H is pretty darn powerful, so the build's a lot quicker.

I have mine undervolted with the iuvolt script, which has a notable effect in decreasing temperatures under load, increasing the maximum CPU speed from 3.2 to 3.6 GHz when all cores are running all out, and helping battery life.
MX Linux packager and developer

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

Re: nvidia driver installation hangs on a fresh stretch inst

#11 Post by stevepusser »

Plus you can run

Code: Select all

apt install --reinstall libtxc-dxtn-s2tc
to mark it manually installed so it won't appear as autoremovable. That's a texture library that games often use--you may also want to install the i386 version of that if you're going to be doing any gaming. Deb-multimedia has a better version called libtxc-dxtn0, though.

The new Mesa is using llvm-6.0, so it's OK to remove the older llvm package.
MX Linux packager and developer

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#12 Post by toquinho »

I think I missed something. (I added the boot parameter to grub and restarted.)
When I ran ddm-mx -i fixbumblebee, I was not asked to reboot. The only output I got is what I pasted above. Inxi -G now returns:

Code: Select all

toquinho@CARTMAN:~$ inxi -G
Graphics:  Card-1: Intel Device 3e9b
           Card-2: NVIDIA GP106M [GeForce GTX 1060]
           Display Server: X.Org 1.19.2 drivers: modesetting,nouveau (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) GLX Version: 3.0 Mesa 18.2.6
And optirun is not available. Neither is glxspheres64,

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

Re: nvidia driver installation hangs on a fresh stretch inst

#13 Post by stevepusser »

The command to install the nvidia drivers is

Code: Select all

ddm-mx -i nvidia
The script automatically detects Optimus systems and then also installs Bumblebee and i386 packages. Give that one a try. Fixbumblebee just cleans up some files that may be interfering with Bumblebee.
MX Linux packager and developer

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#14 Post by toquinho »

Thanks a lot! Installing the drivers worked. After a reboot (and another fixbumblebee), the situation looks like this:

Code: Select all

toquinho@CARTMAN:~$ inxi -G
Graphics:  Card-1: Intel Device 3e9b
           Card-2: NVIDIA GP106M [GeForce GTX 1060]
           Display Server: X.Org 1.19.2 drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2)
           GLX Version: 3.0 Mesa 18.2.6

Code: Select all

toquinho@CARTMAN:~$ optirun inxi -G
[  306.478729] [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card

[  306.478753] [ERROR]Aborting because fallback start is disabled.
(I have to travel today, but I should be able to respond within <24 hours.)

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

Re: nvidia driver installation hangs on a fresh stretch inst

#15 Post by stevepusser »

Well...shoot. That means your particular machine needs some troubleshooting for Bumblebee, which means trying various fixes from the Debian wiki for Bumblebee, or the Arch wiki. They have some suggestions for that particular error.

However, Dells are quite popular with Linux users, so maybe someone on the Web already has the answer for your model, too. Maybe on Reddit or notebookcheck forums, too.

Solutions for the similar G5 and G7 models will probably work, too.

At least you can try out hardware-accelerated video playback and encoding with the players and Handbrake from my repo with the Intel GPU, though.
MX Linux packager and developer

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#16 Post by toquinho »

I had a look at the arch forums (and most of the other suggestions from google). The problems are mainly related to TLP and not being able to use optimus after switching from battery to AC. I do not have TLP installed. So I had no luck here.

However, I noticed that there are no traces of the nvidia drivers in journalctl, dmesg or /proc/modules. lspci shows both the intel and the nvidia video controllers.

I reinstalled the drivers using ddm-mx, But there is no change. This is the output:

Code: Select all

root@CARTMAN:/etc/modprobe.d# ddm-mx -i nvidia
creating lock ...
===================================
Install drivers for: nvidia
Start at (m/d/y): 01/11/2019 16:33:34
===================================
Refreshing Sources with apt-get update

Continue?
  1) yes (default)
  2) no
Press <Enter> for the default entry
Use 'q' to quit

Ign:1 http://ftp.br.debian.org/debian stretch InRelease
Get:2 http://ftp.br.debian.org/debian stretch-updates InRelease [91.0 kB]
Hit:3 http://ftp.br.debian.org/debian stretch Release
Get:4 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:6 http://security.debian.org/debian-security stretch/updates/main Sources [188 kB]
Get:7 http://security.debian.org/debian-security stretch/updates/main i386 Packages [465 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [464 kB]
Get:9 http://security.debian.org/debian-security stretch/updates/main Translation-en [203 kB]
Ign:10 http://download.opensuse.org/repositories/home:/stevenpusser:/new-hardware-support/Debian_9.0  InRelease
Get:11 http://download.opensuse.org/repositories/home:/stevenpusser:/new-hardware-support/Debian_9.0  Release [1,112 B]
Get:12 http://download.opensuse.org/repositories/home:/stevenpusser:/new-hardware-support/Debian_9.0  Release.gpg [481 B]
Get:13 http://download.opensuse.org/repositories/home:/stevenpusser:/new-hardware-support/Debian_9.0  Packages [194 kB]
Fetched 1,702 kB in 3s (535 kB/s)
Reading package lists...

nvidia-optimus detected

Candidate is:  3.2.1-17~obs1
Installed is:  3.2.1-17~obs1

Would you like to check debian-backports for a later version?

Yes or No?

1: Yes
2: No

Enter Number of selection
1
Ok...
Enabling backports repo
Running apt-get update...
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.br.debian.org/debian stretch InRelease
Hit:3 http://ftp.br.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.br.debian.org/debian stretch Release
Ign:6 http://download.opensuse.org/repositories/home:/stevenpusser:/new-hardware-support/Debian_9.0  InRelease
Get:7 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:8 http://download.opensuse.org/repositories/home:/stevenpusser:/new-hardware-support/Debian_9.0  Release
Get:10 http://ftp.debian.org/debian stretch-backports/main amd64 Packages [555 kB]
Get:11 http://ftp.debian.org/debian stretch-backports/main i386 Packages [542 kB]
Get:12 http://ftp.debian.org/debian stretch-backports/main Translation-en [430 kB]
Get:13 http://ftp.debian.org/debian stretch-backports/contrib i386 Packages [9,496 B]
Get:14 http://ftp.debian.org/debian stretch-backports/contrib amd64 Packages [9,868 B]
Get:15 http://ftp.debian.org/debian stretch-backports/contrib Translation-en [6,693 B]
Get:16 http://ftp.debian.org/debian stretch-backports/non-free amd64 Packages [33.2 kB]
Get:17 http://ftp.debian.org/debian stretch-backports/non-free i386 Packages [23.5 kB]
Get:18 http://ftp.debian.org/debian stretch-backports/non-free Translation-en [36.5 kB]
Fetched 1,738 kB in 3s (518 kB/s)
Reading package lists...

Installing latest nvidia-detect package

Reading package lists...
Building dependency tree...
Reading state information...
nvidia-detect is already the newest version (390.87-4~bpo9+1).
The following packages were automatically installed and are no longer required:
  libllvm3.9 libtxc-dxtn-s2tc
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 224 not upgraded.

Candidate is:  3.2.1-17~obs1
Debian backports candidate is:   3.2.1-17~obs1
Installed is:  3.2.1-17~obs1

nvidia driver already installed

Reinstall or quit?

1: Reinstall
2: quit

Enter Number of selection
1
reinstalling...


Need driver: bumblebee-nvidia (3.2.1-17~obs1)
 packages to install are  bumblebee-nvidia nvidia-driver nvidia-kernel-dkms primus primus-libs-ia32:i386 nvidia-settings virtualgl virtualgl-libs:i386

Continue?
  1) yes (default)
  2) no
Press <Enter> for the default entry
Use 'q' to quit
1
Frontend: 
Nvidia command  = apt-get install --reinstall -y --force-yes   bumblebee-nvidia nvidia-driver nvidia-kernel-dkms primus primus-libs-ia32:i386 nvidia-settings virtualgl virtualgl-libs:i386
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  libllvm3.9 libtxc-dxtn-s2tc
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 31 not upgraded.
                                                                              Need to get 0 B/709 kB of archives.
                                                                                                                 After this operation, 0 B of additional disk space will be used.
(Reading database ... 210263 files and directories currently installed.)                                                                                                         (Reading database ... 
Preparing to unpack .../build-essential_12.3_amd64.deb ...
Unpacking build-essential (12.3) over (12.3) ...
Preparing to unpack .../firmware-linux-nonfree_20180825.dfsg-1~obs_all.deb ...
Unpacking firmware-linux-nonfree (20180825.dfsg-1~obs) over (20180825.dfsg-1~obs) ...
Preparing to unpack .../linux-headers-4.19.0-1-amd64_4.19.13-1~obs_amd64.deb ...
Unpacking linux-headers-4.19.0-1-amd64 (4.19.13-1~obs) over (4.19.13-1~obs) ...
Setting up build-essential (12.3) ...
Setting up linux-headers-4.19.0-1-amd64 (4.19.13-1~obs) ...
Setting up firmware-linux-nonfree (20180825.dfsg-1~obs) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  libllvm3.9 libtxc-dxtn-s2tc
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 9 reinstalled, 0 to remove and 31 not upgraded.
                                                                              Need to get 0 B/11.1 MB of archives.
                                                                                                                  After this operation, 0 B of additional disk space will be used.
(Reading database ... 210263 files and directories currently installed.)                                                                                                          (Reading database ... 
Preparing to unpack .../0-nvidia-driver_390.87-4~bpo9+1_amd64.deb ...
Unpacking nvidia-driver (390.87-4~bpo9+1) over (390.87-4~bpo9+1) ...
Preparing to unpack .../1-nvidia-kernel-dkms_390.87-4~bpo9+1_amd64.deb ...

-------- Uninstall Beginning --------
Module:  nvidia-current
Version: 390.87
Kernel:  4.19.0-1-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-current.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-1-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-modeset.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-1-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-drm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-1-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-uvm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-1-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 390.87
completely from the DKMS tree.
------------------------------
Done.
Unpacking nvidia-kernel-dkms (390.87-4~bpo9+1) over (390.87-4~bpo9+1) ...
Preparing to unpack .../2-nvidia-settings_390.67-1~obs1_amd64.deb ...
Unpacking nvidia-settings (390.67-1~obs1) over (390.67-1~obs1) ...
Preparing to unpack .../3-bumblebee-nvidia_3.2.1-17~obs1_amd64.deb ...
Unpacking bumblebee-nvidia (3.2.1-17~obs1) over (3.2.1-17~obs1) ...
Preparing to unpack .../4-primus_0~20150328-4_amd64.deb ...
Unpacking primus (0~20150328-4) over (0~20150328-4) ...
Preparing to unpack .../5-primus-libs-ia32_0~20150328-4_i386.deb ...
Unpacking primus-libs-ia32:i386 (0~20150328-4) over (0~20150328-4) ...
Preparing to unpack .../6-virtualgl_2.5.2-1~obs_amd64.deb ...
Unpacking virtualgl (2.5.2-1~obs) over (2.5.2-1~obs) ...
Preparing to unpack .../7-virtualgl-libs_2.5.2-1~obs_amd64.deb ...
Unpacking virtualgl-libs:amd64 (2.5.2-1~obs) over (2.5.2-1~obs) ...
Preparing to unpack .../8-virtualgl-libs_2.5.2-1~obs_i386.deb ...
Unpacking virtualgl-libs:i386 (2.5.2-1~obs) over (2.5.2-1~obs) ...
Setting up primus-libs-ia32:i386 (0~20150328-4) ...
Processing triggers for nvidia-alternative (390.87-4~bpo9+1) ...
Setting up primus (0~20150328-4) ...
Setting up nvidia-settings (390.67-1~obs1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up nvidia-kernel-dkms (390.87-4~bpo9+1) ...
Loading new nvidia-current-390.87 DKMS files...
Building for 4.19.0-1-amd64
Building initial module for 4.19.0-1-amd64
Done.

nvidia-current:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.19.0-1-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.19.0-1-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.19.0-1-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.19.0-1-amd64/updates/dkms/

depmod...

DKMS: install completed.
Setting up virtualgl-libs:amd64 (2.5.2-1~obs) ...
Setting up virtualgl-libs:i386 (2.5.2-1~obs) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up virtualgl (2.5.2-1~obs) ...
Setting up bumblebee-nvidia (3.2.1-17~obs1) ...
Setting up nvidia-driver (390.87-4~bpo9+1) ...
Processing triggers for glx-alternative-nvidia (0.8.8~obs) ...
Processing triggers for glx-alternative-mesa (0.8.8~obs) ...
Processing triggers for update-glx (0.8.8~obs) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for glx-alternative-nvidia (0.8.8~obs) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.19.0-1-amd64
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
Processing triggers for bumblebee (3.2.1-17~obs1) ...
groupadd: group 'bumblebee' already exists
groupadd: group 'video' already exists
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nvidia-xconfig' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libllvm3.9 libtxc-dxtn-s2tc
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
mv: cannot stat '/etc/X11/xorg.conf': No such file or directory
Finished


Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.br.debian.org/debian stretch InRelease                                                        
Hit:3 http://ftp.br.debian.org/debian stretch-updates InRelease                                                
Hit:4 http://ftp.br.debian.org/debian stretch Release                                    
Ign:6 http://download.opensuse.org/repositories/home:/stevenpusser:/new-hardware-support/Debian_9.0  InRelease
Hit:7 http://download.opensuse.org/repositories/home:/stevenpusser:/new-hardware-support/Debian_9.0  Release
Reading package lists... Done

Press <Enter> to exit
root@CARTMAN:/etc/modprobe.d# 

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

Re: nvidia driver installation hangs on a fresh stretch inst

#17 Post by stevepusser »

The installer works like it's supposed to, at least, though you didn't need to enable the backports repo. But that's not causing the hangup with Bumblebee.

Dell only has info for Ubuntu and their nvidia-prime solution: https://www.dell.com/support/article/bg ... em?lang=en

I get a lot of hits when I Google those error messages--maybe the difference between Debian is systemd and you need to run

Code: Select all

systemctl disable nvidia-fallback.service
Other hits suggest editing some Bumblebee conf files. Still others say it might be a problem with the glvnd Nvidia drivers and suggest you switch to the non-glvnd ones: nvidia-driver-libs-nonglvnd. I also wonder if the same error would occur in MX Linux after running the installer, since I help develop that, and would like to find a solution for both distros with your hardware.
MX Linux packager and developer

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#18 Post by toquinho »

Thanks a lot, I really appreciate your support. I tried to follow your suggestions, but it did not help:

systemctl disable nvidia-fallback.service returned an error (No such file or directory, checked for spelling errors), disabled nouveau in grub and installed nvidia-driver-libs-nonglvnd.

What I suggest is that I install MX and report back. Currently, I am on the road and have limited internet access. So it may take a few days until I manage to install it. I will post here what I found. In any case, I have already realized that I cannot use my new machine for my work as soon as I had expected :(. So I will happily provide it for testing MX etc. if this is of use for you.

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

Re: nvidia driver installation hangs on a fresh stretch inst

#19 Post by stevepusser »

OK, though questions abut getting it working there should be on the MX Linux forum instead.

I almost got a G series Dell for compiling packages for MX, but it wasn't quite out yet, so got a similarly-specced MSI gp63 instead. It took me a while to figure out how to get Bumblebee working on it, but with MX 18, pretty much everything just works out of the box.
MX Linux packager and developer

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: nvidia driver installation hangs on a fresh stretch inst

#20 Post by toquinho »

Sorry for the delay. I am finally back and have installed MX. Unfortunately, the problems remain. Please see here:

https://forum.mxlinux.org/viewtopic.php ... 54#p480654

Post Reply