System boot stuck with nvidia-drm.modeset=1

Hi. My system doesn’t boot with nvidia-drm.modeset=1 kernel parameter. With nvidia-drm.modeset=0 system boot normally, but my external monitor doesn’t worked on wayland session

System:
Kernel: 6.7.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc avail: acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=1aad35f5-210c-4a9d-9e0d-add10435614d rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
nvidia-drm.modeset=0
Desktop: KDE Plasma v: 6.0.1 tk: Qt v: N/A info: frameworks v: 6.0.0
wm: kwin_x11 tools: avail: lxlock vt: 2 dm: SDDM Distro: Garuda
base: Arch Linux
Machine:
Type: Laptop System: HP product: HP Pavilion Notebook
v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
serial: <superuser required>
Mobo: HP model: 845E v: 83.62 serial: <superuser required>
part-nu: 2PQ51EA#ACB uuid: <superuser required> UEFI: Insyde v: F.61
date: 03/29/2018
Battery:
ID-1: BAT0 charge: 44.3 Wh (100.0%) condition: 44.3/44.3 Wh (100.0%)
volts: 12.3 min: 10.9 model: HP Primary type: Li-ion serial: N/A
status: full
Device-1: hidpp_battery_2 model: Logitech G305 Lightspeed Wireless Gaming
Mouse serial: <filter> charge: 100% (should be ignored) rechargeable: yes
status: discharging
CPU:
Info: model: Intel Core i5-7300HQ bits: 64 type: MCP arch: Kaby Lake
gen: core 7 level: v3 note: check built: 2018 process: Intel 14nm family: 6
model-id: 0x9E (158) stepping: 9 microcode: 0xF4
Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB
desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB
desc: 1x6 MiB
Speed (MHz): avg: 951 high: 1006 min/max: 800/3500 scaling:
driver: intel_pstate governor: powersave cores: 1: 1006 2: 1000 3: 1000
4: 800 bogomips: 19999
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel HD Graphics 630 vendor: Hewlett-Packard driver: i915
v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:591b
class-ID: 0300
Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile]
vendor: Hewlett-Packard driver: nvidia v: 550.54.14
alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current (as of
2024-02; EOL~2026-12-xx) arch: Pascal code: GP10x process: TSMC 16nm
built: 2016-2021 pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 3
speed: 8 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1c8c class-ID: 0302
Device-3: Chicony HP Wide Vision HD driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-4:3 chip-ID: 04f2:b56d
class-ID: 0e02
Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.4
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia dri: iris
gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1013x285mm (39.88x11.22")
s-diag: 1052mm (41.43")
Monitor-1: HDMI-1-0 pos: primary,left res: 1920x1080 hz: 60 dpi: 93
size: 527x293mm (20.75x11.54") diag: 603mm (23.74") modes: N/A
Monitor-2: eDP-1 pos: right res: 1920x1080 hz: 60 dpi: 128
size: 382x215mm (15.04x8.46") diag: 438mm (17.26") modes: N/A
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
drv: nvidia device: 2 drv: iris device: 3 drv: swrast gbm: drv: kms_swrast
surfaceless: drv: nvidia x11: drv: iris inactive: wayland,device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.0.2-arch1.2
glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 630 (KBL GT2)
device-ID: 8086:591b memory: 15.14 GiB unified: yes
API: Vulkan v: 1.3.279 layers: 12 device: 0 type: integrated-gpu
name: Intel HD Graphics 630 (KBL GT2) driver: mesa intel v: 24.0.2-arch1.2
device-ID: 8086:591b surfaces: xcb,xlib device: 1 type: discrete-gpu
name: NVIDIA GeForce GTX 1050 Ti driver: nvidia v: 550.54.14
device-ID: 10de:1c8c surfaces: xcb,xlib device: 2 type: cpu name: llvmpipe
(LLVM 17.0.6 256 bits) driver: mesa llvmpipe v: 24.0.2-arch1.2 (LLVM
17.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
Device-1: Intel CM238 HD Audio vendor: Hewlett-Packard driver: snd_hda_intel
v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3 chip-ID: 8086:a171
class-ID: 0403
Device-2: NVIDIA GP107GL High Definition Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
link-max: lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fb9 class-ID: 0403
API: ALSA v: k6.7.8-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:095a class-ID: 0280
IF: wlo1 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard RTL8111/8168/8411 driver: r8169 v: kernel pcie:
gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 05:00.0
chip-ID: 10ec:8168 class-ID: 0200
IF: eno1 state: down mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-7:5 chip-ID: 8087:0a2a
class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: <filter> bt-v: 4.2 lmp-v: 8
status: discoverable: no pairing: no
Drives:
Local Storage: total: 1.03 TiB used: 423.45 GiB (40.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: SD9SN8W-128G-1006
size: 119.24 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 3006 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 EVO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 3B6Q scheme: GPT
Partition:
ID-1: / raw-size: 77.63 GiB size: 77.63 GiB (100.00%)
used: 51.31 GiB (66.1%) fs: btrfs dev: /dev/sdb3 maj-min: 8:19
ID-2: /boot/efi raw-size: 501 MiB size: 500 MiB (99.80%)
used: 584 KiB (0.1%) fs: vfat dev: /dev/sdb1 maj-min: 8:17
ID-3: /home raw-size: 390.62 GiB size: 390.62 GiB (100.00%)
used: 372.14 GiB (95.3%) fs: btrfs dev: /dev/sdb5 maj-min: 8:21
ID-4: /var/log raw-size: 77.63 GiB size: 77.63 GiB (100.00%)
used: 51.31 GiB (66.1%) fs: btrfs dev: /dev/sdb3 maj-min: 8:19
ID-5: /var/tmp raw-size: 77.63 GiB size: 77.63 GiB (100.00%)
used: 51.31 GiB (66.1%) fs: btrfs dev: /dev/sdb3 maj-min: 8:19
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 15.51 GiB used: 34 MiB (0.2%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 4 dev: /dev/zram0
ID-2: swap-2 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sdb2 maj-min: 8:18
Sensors:
System Temperatures: cpu: 56.0 C pch: 53.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 16 GiB available: 15.51 GiB used: 4.65 GiB (30.0%)
Processes: 296 Power: uptime: 1h 11m states: freeze,mem,disk suspend: deep
avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
suspend, test_resume image: 6.14 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
tool: systemctl
Packages: pm: pacman pkgs: 1878 libs: 517 tools: octopi,pamac,paru
Compilers: clang: 17.0.6 gcc: 13.2.1 alt: 12 Shell: garuda-inxi
default: Bash v: 5.2.26 running-in: konsole inxi: 3.3.33
Garuda (2.6.23-1):
System install date:     2023-08-13
Last full system update: 2024-03-08 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:

Hm you have there a pending reload after a full system update. Did you try to reboot, or turn off and on your device?

Regards,
S.

Yes, i do. The problem appeared a long time ago, but I loaded with the parameter value 0. Now it has become most relevant due to the fact that the session is loaded into Wayland after the update. I can of course change it to X11, but maybe that’s not the whole problem.

use nvidia_drm.modeset dont use -

1 Like

Thanks for you advice, but it doesn’t worked. I got the same result

1 Like

https://wiki.archlinux.org/title/NVIDIA#Early_loading

For basic functionality, just adding the kernel parameter should suffice. If you want to ensure it is loaded at the earliest possible occasion, or are noticing startup issues (such as the nvidia kernel module being loaded after the display manager) you can add nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to the initramfs.

Try loading the Nvidia modules early to see if it makes any difference. https://wiki.archlinux.org/title/Dracut#Early_kernel_module_loading

Setup a dracut config:

sudo micro /etc/dracut.conf.d/early_nvidia.conf

Add the modules to the config with the “force_drivers+=” option:

force_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "

:point_up: Be sure to include those “padding” spaces between the quotes.

Save and exit the file, then regenerate the initramfs.

sudo dracut-rebuild

https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting

Additionally, with the driver version 545 and above, you can also set the experimental fbdev=1 parameter, which is required to tell the NVIDIA driver to provide its own framebuffer device instead of relying on efifb or vesafb, which do not work under simpledrm.

It looks like you could try the fbdev=1 kernel parameter as well if you want to. I’m not sure if it will help or not, but if you are stuck maybe it’s worth a shot. Just stick it right after the modeset one:

... nvidia_drm.modeset=1 nvidia_drm.fbdev=1

Then regenerate the Grub config.

sudo update-grub
3 Likes

Thank you for your reply, but it doesn’t work

Maybe this post will be helpful:

If not, try adding more specific information about what is happening so people can get a better sense of what the problem is.

1 Like

Unfortunately, it doesn’t works too.
Step for reproduse:

  1. Set nvidia_drm.modeset=1 by Garuda Boot Options Assistant (or manual edit kernel params)
  2. Try to reboot
  3. Stuck on boot. Last message that i get is “Starting Terminate Plymouth Boot Screen…”

I also tried to see kernel boot logs and saw error: kernel: [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 0

This has come up a few times, for example here: ERROR [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 0

Try the fix they recommended in that thread:

it doesn’t works too. i had following logs about nvidia:

kernel: Command line: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=1aad35f5-210c-4a9d-9e0d-add10435614d rw rootflags=subvol=@ quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 nvidia-drm.modeset=1
kernel: Kernel command line: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=1aad35f5-210c-4a9d-9e0d-add10435614d rw rootflags=subvol=@ quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 nvidia-drm.modeset=1
kernel: nvidia: loading out-of-tree module taints kernel.
kernel: nvidia: module license 'NVIDIA' taints kernel.
kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
kernel: nvidia: module license taints kernel.
kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 240
kernel: nvidia 0000:01:00.0: enabling device (0406 -> 0407)
kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  550.54.14  Thu Feb 22 01:44:30 UTC 2024
kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  550.54.14  Thu Feb 22 01:25:25 UTC 2024
kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
kernel: [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
kernel: nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
kernel: nvidia-uvm: Loaded the UVM driver, major device number 237.
kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input27
kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input28
kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input29
kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input30

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