Boot hangs on loading nvidia driver when using two monitors

Seems to not actually be driver specific, I rolled back to a much older driver and it still happens so maybe its hardware failure, but I can use both monitors, if I plug in my second one… after boot, which is less than ideal. I can’t really get a log of what happens or im not sure how to, but it just sits at this:

I don’t see this on my setup - using the proprietary driver with a 3090ti and three monitors.

But your system came up in single user mode - it’s asking for the root password.

Are you able to enter it?

it never gives me a chance, i think it just shows that because i boot through recovery mode? Pressing control -D does nothing nor typing my password

I probably wouldn’t normally boot through recovery mode - but if you’re at the recovery console and it’s not accepting input, then you may need to boot from installation media (the rescue system) to see what’s going on.

What is the video card that you’re using?

I’m currently using an gtx-1060, I’m booting with recovery mode just to see if anything is happening because without it it just hangs on a black screen.

to be clear the system can boot just fine and have two monitors if I unplug my second monitor during boot and plug it back in after its booted.
Is there some way to access the boot log of previous boots? because im logged in fine right now

Ah, that makes sense. :slight_smile:

journalctl -xe should show you all boots, but you can specify -b -1 to go back and look at the previous boot. See man journalctl for details.

So upon viewing the log of a failed boot I can’t come up with anything, I exported the logs of my current successful boot: Success Boot - Pastebin.com and my failed boot: Failed Boot - Pastebin.com

To me they look pretty identical, and it seems like everything is performing just fine, however the monitors recieved 0 output for the failed boot.

@sophimoo Hi What desktop environment and Wayland or X11?

Can you show the output from;

cat /proc/cmdline
inxi -Gxxz

or

/sbin/lspci -nnk | grep -EA3 "VGA|Display|3D"

here’s the output of the first command

Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] driver: nvidia v: 550.67
    arch: Pascal pcie: speed: 8 GT/s lanes: 16 ports: active: none
    off: DP-4,HDMI-A-2 empty: DP-5,DP-6,DVI-D-1 bus-ID: 01:00.0
    chip-ID: 10de:1c02
  Device-2: AMD Raphael vendor: Gigabyte driver: amdgpu v: kernel
    arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: none empty: DP-1,
    DP-2, DP-3, HDMI-A-1, Writeback-1 bus-ID: 11:00.0 chip-ID: 1002:164e
    temp: 44.0 C
  Device-3: MacroSilicon driver: hid-generic,snd-usb-audio,usbhid,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 7-1.1:3
    chip-ID: 534d:2109
  Display: x11 server: X.Org v: 21.1.12 with: Xwayland v: 23.2.6
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4608x1152 s-dpi: 91
  Monitor-1: not-matched mapped: DP-0 pos: primary,right res: 2560x1080
    dpi: 94 diag: 749mm (29.48")
  Monitor-2: not-matched mapped: HDMI-0 pos: left res: 2048x1152 dpi: 102
    diag: 585mm (23.04")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 1 drv: radeonsi
    device: 3 drv: swrast surfaceless: drv: nvidia x11: drv: nvidia
    inactive: gbm,wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.67
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce GTX 1060
    3GB/PCIe/SSE2
  API: Vulkan v: 1.3.280 surfaces: xcb,xlib device: 0 type: discrete-gpu
    driver: N/A device-ID: 10de:1c02 device: 1 type: integrated-gpu driver: N/A
    device-ID: 1002:164e

and the second:

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
        Subsystem: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02]
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
--
11:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c7)
        Subsystem: Gigabyte Technology Co., Ltd Device [1458:d000]
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu

@sophimoo and the first command cat /proc/cmdline

So you have two GPU’s, Nvidia and AMD, so is your CPU AMD with built in graphics, are you using the AMD device?

To my tired eyes it looks like you may not have run that with root privileges :warning:

Nice! :drooling_face:

1 Like

Not that I know? I have all output cables plugged into my GPU, and any programs that need GPU acceleration run as if they’re using the nvidia card

@sophimoo you have them plugged in, but they are off?

off: DP-4,HDMI-A-2

What are you BIOS settings for internal and discrete gpu’s in the system BIOS?

Not been home for a while, that’s very odd, they are very much both turned on. I just went into my bios and disabled my integrated GPU but the same issue arises. Here’s the commands ran with sudo, now only the nvidia card is present.

sophie@localhost:~> sudo inxi -Gxxz
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] driver: nvidia v: 550.67 arch: Pascal pcie:
    speed: 8 GT/s lanes: 16 ports: active: none off: DP-1,HDMI-A-1 empty: DP-2,DP-3,DVI-D-1
    bus-ID: 01:00.0 chip-ID: 10de:1c02
  Device-2: MacroSilicon driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 7-1.1:3 chip-ID: 534d:2109
  Display: x11 server: X.org v: 1.21.1.12 with: Xwayland v: 23.2.6 compositor: kwin_x11 driver:
    X: loaded: nvidia gpu: nvidia,nvidia-nvswitch tty: 305x43
  Monitor-1: DP-1 model: MSI MAG301CR2 res: 2560x1080 dpi: 93 diag: 762mm (30")
  Monitor-2: HDMI-A-1 model: Samsung SyncMaster res: 2048x1152 dpi: 102 diag: 585mm (23")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast gbm: drv: nvidia
    surfaceless: drv: nvidia inactive: wayland,x11,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: mesa v: 24.0.3 note: console (EGL sourced)
    renderer: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2, llvmpipe (LLVM 18.1.3 256 bits)
  API: Vulkan v: 1.3.280 surfaces: N/A device: 0 type: discrete-gpu driver: N/A
    device-ID: 10de:1c02
sophie@localhost:~> sudo /sbin/lspci -nnk | grep -EA3 "VGA|Display|3D"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
        Subsystem: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02]
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

@sophimoo So you need to add nvidia_drm.modeset=1 to the kernel boot options via yast bootloader (the ncurses version) and then use nvidia-xconfig to create a xorg.conf file, then reboot and see what happens.

For some reason nvidia_drm.modeset=0 fixed this for me, thank you for the support with this issue ^-^

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.