Driver 390.25 causes system hang (freeze) on Linux kernel 4.15.* boot

Hello. I use Gentoo Linux. On my PC, I use default/linux/amd64/17.1/systemd profile and:

  • sys-devel/gcc-7.3.0
  • sys-firmware/intel-microcode-20171117-r1
  • x11-base/xorg-server-1.19.6-r1
  • x11-misc/lightdm-1.24.0-r1
  • sys-boot/plymouth-0.9.3-r1
  • sys-apps/systemd-237-r2
  • x11-wm/awesome-4.2

I always use NVIDIA GeForce GTX 960 and 2 monitors connected to this card using 2 DisplayPorts. In UEFI, I always have Intel CPU graphics disabled. So NVIDIA is my the only graphics card. In my initramfs, I have the following /etc/modprobe.d/xxx.conf:

blacklist i915
blacklist nouveau
options nvidia_drm modeset=1

In my lightdm.conf, I have:

display-setup-script=/etc/do_setup_for_lightdm.sh

In my /etc/do_setup_for_lightdm.sh executable, I have:

#!/usr/bin/env bash
xrandr --output DP-4 --off
xdotool mousemove 1280 600
numlockx

I tried x11-drivers/nvidia-drivers-390.25 with sys-kernel/gentoo-sources-4.14.22 and all worked properly (as usual).

But when I switched to sys-kernel/gentoo-sources-4.15.7-r1, I faced an issue. System started, showed the Plymouth logo, then displayed systemd agetty greeting (as usual), then tried to launch lightdm. But lightdm did not start. I faced system hang. Keyboard didn’t work. Then I connected to my PC from my notebook via ssh and obtained dmesg.txt (see attachment). I tried to run “sync && systemctl reboot” but my PC did not reboot for some reason. I had to reboot it manually using reset button. After that, I rebooted to my 4.14.22 kernel, performed fsck.ext4, fixed some errors, launched Gentoo Linux on PC and executed “journalctl -a -b -1” (see attachment).

Please help.

All the attachments can be found here: 649298 – x11-drivers/nvidia-drivers 390.25 with sys-kernel/gentoo-sources 4.15.7-r1 fails to boot (system hang)

Does it work when using HDMI instead of displayport?

Sorry, cannot test. I have no HDMI cables in my home. I have only two DisplayPort cables and connect both my monitors to NVIDIA GeForce GTX 960 using these two cables.

4.14.22 and 4.14.23 kernels work excellent with 390.25 driver.

But 4.15.7 kernel hangs/freezes on boot after executing systemd before executing xorg and lightdm.

In this systemd journald boot log, I have the following lines:

https://649298.bugs.gentoo.org/attachment.cgi?id=521802

Mar 02 00:29:18 xxxxx kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000917e:0:0
Mar 02 00:29:20 xxxxx kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000927c:0:0
Mar 02 00:29:22 xxxxx kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000917e:1:0
Mar 02 00:29:24 xxxxx kernel: nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000927c:1:0
Mar 02 00:29:24 xxxxx lightdm[2509]: xrandr: Configure crtc 1 failed

Could anyone please analyze it?

Bug is still actual. 4.15.9 kernel and 390.42 NVIDIA drivers - the same bug (hang on boot)

Bug still can be reproduced on Linux kernel 4.15.13 with latest NVIDIA drivers 390.42.

Nvidia drivers until now only fully work with kernels 4.15 using this patch:
[url]Groups · Explore · GitLab

I tried the patch from generix, but it did not work for me. I’m using kernel 4.15.13 with openSUSE Tumbleweed.

Driver 390.48 was released which should fix compatibility with kernels 4.15/4.16. Didn’t test yet, though.

I just tested it last night. It fixed the problem. I am working now. Yay! Driver 390.48 and kernel 4.15.13

I just tested it last night

I’m going to test this driver next week. Maybe kernel hang is fixed. Maybe not.

I think kernel hang was caused by this LightDM start script:

#!/usr/bin/env bash
xrandr --output DP-4 --off
xdotool mousemove 1280 600
numlockx

viktor_levin
What linux distribution are you using? does it use sddm? try putting that those lines in your .xinitrc

fl1sk, please read the top post.

I use Gentoo Linux with LightDM. Linux kernel 4.15.* hangs after running LightDM. systemd is started properly, it launches LightDM, then LightDM launches X server, then LightDM executes this script

#!/usr/bin/env bash
xrandr --output DP-4 --off
xdotool mousemove 1280 600
numlockx

and kernel hangs (freezes). All the logs (dmesg, journalctl) are located at the top post.

Bug is fixed in 390.48 NVIDIA drivers.