[Solved] nvidia driver installation hangs on a fresh stretch

Help with issues regarding installation of Debian

[Solved] nvidia driver installation hangs on a fresh stretch

Postby toquinho » 2019-01-09 02:26

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/NvidiaGraphicsDrivers#Debian_9_.22Stretch.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: 37
Joined: 2014-06-24 16:50

Re: nvidia driver installation hangs on a fresh stretch inst

Postby toquinho » 2019-01-09 03:18

Short update:

The problem is probably related to this one:
http://forums.debian.net/viewtopic.php?f=17&t=139043&start=15&hilit=nvidia+installation

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: 37
Joined: 2014-06-24 16:50

Re: nvidia driver installation hangs on a fresh stretch inst

Postby toquinho » 2019-01-09 04:01

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.
toquinho
 
Posts: 37
Joined: 2014-06-24 16:50

Re: nvidia driver installation hangs on a fresh stretch inst

Postby stevepusser » 2019-01-09 04:19

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Re: nvidia driver installation hangs on a fresh stretch inst

Postby toquinho » 2019-01-09 15:03

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.)
toquinho
 
Posts: 37
Joined: 2014-06-24 16:50

Re: nvidia driver installation hangs on a fresh stretch inst

Postby stevepusser » 2019-01-09 18:47

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Re: nvidia driver installation hangs on a fresh stretch inst

Postby toquinho » 2019-01-09 21:36

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?
toquinho
 
Posts: 37
Joined: 2014-06-24 16:50

Re: nvidia driver installation hangs on a fresh stretch inst

Postby stevepusser » 2019-01-10 00:17

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Re: nvidia driver installation hangs on a fresh stretch inst

Postby toquinho » 2019-01-10 01:17

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.
toquinho
 
Posts: 37
Joined: 2014-06-24 16:50

Re: nvidia driver installation hangs on a fresh stretch inst

Postby stevepusser » 2019-01-10 01:49

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Re: nvidia driver installation hangs on a fresh stretch inst

Postby stevepusser » 2019-01-10 02:14

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Re: nvidia driver installation hangs on a fresh stretch inst

Postby toquinho » 2019-01-10 02:31

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,
toquinho
 
Posts: 37
Joined: 2014-06-24 16:50

Re: nvidia driver installation hangs on a fresh stretch inst

Postby stevepusser » 2019-01-10 04:32

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Re: nvidia driver installation hangs on a fresh stretch inst

Postby toquinho » 2019-01-10 10:10

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.)
toquinho
 
Posts: 37
Joined: 2014-06-24 16:50

Re: nvidia driver installation hangs on a fresh stretch inst

Postby stevepusser » 2019-01-10 18:32

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Foliate 1.5.3, Minitube 3.1, wine-staging 4.12, Virtual Box 5.2.32 & 6.0.10, Pale Moon 28.6.1, Waterfox 56.2.12
User avatar
stevepusser
 
Posts: 11022
Joined: 2009-10-06 05:53

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 17 guests

fashionable