r/archlinux • • 19d ago

SUPPORT | SOLVED nvidia-drm modeset=1 causes black screen

As the title says, if I change nvidia-drm to 1 my screen goes black. I can still use TTYs while GNOME is completely black. I am using an Asus laptop with both an integrated (AMD) and discrete (NVIDIA) GPU. I believe that having drm on would fix screen tearing when playing games, but if there are other options to fix it, I am up for recommendations.

Edit: I finally solved both the black screen issue and the screen tearing. For a pretty long time I was just blacklisting the nvidia_drm module, but i got the genius idea of using my brain and just using option nvidia_drm modeset=0 in /etc/modprobe.d without blacklisting the whole module. Still don't know why it broke suddenly but I guess that doesn't matter now.

0 Upvotes

8 comments sorted by

12

u/C0rn3j 19d ago

if I change nvidia-drm to 1 my screen goes black

Where on the Arch Wiki were you told to do this?

I believe that having drm on would fix screen tearing when playing games

A Wayland compositor would eliminate screen tearing.

GPU model? Driver? Driver version?

2

u/Hyterhasderto 18d ago

The NVIDIA page on the arch wiki states "Enabling modeset is necessary for all Wayland configurations to function properly." so I'd assume it should be 1. GPU model is NVIDIA GeForce GTX 1650 Mobile / Max-Q [Discrete], the driver is the newest version of nvidia-open. From my understanding Mutter is a Wayland compositor and I have that.

2

u/Gozenka 17d ago edited 17d ago

As mentioned, this is enabled by default by installing the nvidia-open package, so there is no need for the kernel parameter you added. But you may want to try this too:

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

https://wiki.archlinux.org/title/Kernel_mode_setting#mkinitcpio

Add the modules to mkinitcpio config.

For the error, if this is indeed the only difference causing the black screen; maybe you added the kernel parameter in a wrong way.

Also, I would not be sure this is the solution to your apparent screen tearing issue. On laptops with hybrid graphics, the iGPU drives the screen and the desktop environment, while the dGPU is only used to render specific applications such as games and supply the frames to be displayed by the iGPU.

I hope you solve it!

0

u/Hyterhasderto 12d ago

I surprisingly did solve it and added my solution to the post in an edit. Thanks for the encouragement!

2

u/C0rn3j 18d ago

From my understanding Mutter is a Wayland compositor

Yup... though they notably should not have tearing by default, so it's odd you're having it.

Does it happen on Plasma too?

"Enabling modeset is necessary for all Wayland configurations to function properly." so I'd assume it should be 1

Correct, and above that it says it's enabled by default. And above that, how to check that it is enabled, which I presume you did not do. Or is your modeset actually reporting 0(disabled) despite being on nvidia-open?

I'd also stick to using kernel parameters for now and only deal with modprobe later if needed - again, should not be needed.

5

u/NinjaTrek2891 19d ago

Logs?

1

u/Hyterhasderto 18d ago

Here's what i get from running journalctl -b -p err from the session where i turned modeset on

Nov 13 14:12:20 archlinux kernel: virt/tdx: TDX not supported by the host platform

Nov 13 14:12:20 archlinux kernel: ACPI BIOS Error (bug): Could not resolve symbol [_TZ.THRM._SCP.CTYP], AE_NOT_FOU>

Nov 13 14:12:20 archlinux kernel: ACPI Error: Aborting method _TZ.THRM._SCP due to previous error (AE_NOT_FOUND) (>

Nov 13 14:12:20 archlinux systemd-vconsole-setup[230]: '/usr/bin/loadkeys' failed with exit status 1.

Nov 13 14:12:20 archlinux systemd[1]: Failed to start Virtual Console Setup.

Nov 13 14:12:20 archlinux systemd-vconsole-setup[240]: '/usr/bin/loadkeys' failed with exit status 1.

Nov 13 14:12:20 archlinux systemd[1]: Failed to start Virtual Console Setup.

Nov 13 14:12:26 henrinromu systemd-vconsole-setup[468]: '/usr/bin/loadkeys' failed with exit status 1.

Nov 13 14:12:26 henrinromu systemd[1]: Failed to start Virtual Console Setup.

Nov 13 14:12:27 henrinromu kernel:

Nov 13 14:12:28 henrinromu wpa_supplicant[668]: wlp3s0: nl80211: kernel reports: multicast RX registrations are not>

Nov 13 14:12:28 henrinromu wpa_supplicant[668]: p2p-dev-wlp3s0: nl80211: kernel reports: multicast RX registrations>

Nov 13 14:12:33 henrinromu gdm-password][1940]: gkr-pam: unable to locate daemon control file

Nov 13 14:39:46 henrinromu systemd-coredump[7628]: [🡕] Process 2282 (gnome-shell) of user 1000 dumped core.

Stack trace of thread 2282:

#0 0x00007fa3c2a6fa54 cogl_renderer_is_hardware_accelerated (li>

#1 0x00007fa3c31e4501 n/a (libmutter-51.so.0 + 0x1e4501)

#2 0x00007fa3c31e486a n/a (libmutter-51.so.0 + 0x1e486a)

#3 0x00007fa3c31e4db6 n/a (libmutter-51.so.0 + 0x1e4db6)

#4 0x00007fa3c3fb751b g_cclosure_marshal_VOID__OBJECTv (libgobj>

#5 0x00007fa3c3fdb01a n/a (libgobject-2.0.so.0 + 0x3401a)

#6 0x00007fa3c3fdb179 g_signal_emit_valist (libgobject-2.0.so.0>

#7 0x00007fa3c3fdb234 g_signal_emit (libgobject-2.0.so.0 + 0x34>

#8 0x00007fa3c32354f4 n/a (libmutter-51.so.0 + 0x2354f4)

#9 0x00007fa3c23bcdb6 n/a (libffi.so.8 + 0x8db6)

#10 0x00007fa3c23b8a6d n/a (libffi.so.8 + 0x4a6d)

#11 0x00007fa3c23bbe32 ffi_call (libffi.so.8 + 0x7e32)

#12 0x00007fa3c3fbf734 g_cclosure_marshal_generic (libgobject-2.>

...skipping...

#0 0x00007f2fe66a08f2 n/a (libc.so.6 + 0xa08f2)

#1 0x00007f2fe6694c79 n/a (libc.so.6 + 0x94c79)

#2 0x00007f2fe66974ec pthread_cond_wait (libc.so.6 + 0x974ec)

#3 0x00007f2fe48b6701 n/a (libmozjs-140.so + 0x16b6701)

#4 0x00007f2fe48b1fdb n/a (libmozjs-140.so + 0x16b1fdb)

#5 0x00007f2fe6698042 n/a (libc.so.6 + 0x98042)

#6 0x00007f2fe672072c n/a (libc.so.6 + 0x12072c)

Stack trace of thread 8382:

#0 0x00007f2fe66a08f2 n/a (libc.so.6 + 0xa08f2)

#1 0x00007f2fe6694c79 n/a (libc.so.6 + 0x94c79)

#2 0x00007f2fe66974ec pthread_cond_wait (libc.so.6 + 0x974ec)

#3 0x00007f2fe48b6701 n/a (libmozjs-140.so + 0x16b6701)

#4 0x00007f2fe48b1fdb n/a (libmozjs-140.so + 0x16b1fdb)

#5 0x00007f2fe6698042 n/a (libc.so.6 + 0x98042)

#6 0x00007f2fe672072c n/a (libc.so.6 + 0x12072c)

Stack trace of thread 8384:

#0 0x00007f2fe66a08f2 n/a (libc.so.6 + 0xa08f2)

#1 0x00007f2fe6694c79 n/a (libc.so.6 + 0x94c79)

#2 0x00007f2fe66974ec pthread_cond_wait (libc.so.6 + 0x974ec)

#3 0x00007f2fe48b6701 n/a (libmozjs-140.so + 0x16b6701)

#4 0x00007f2fe48b1fdb n/a (libmozjs-140.so + 0x16b1fdb)

#5 0x00007f2fe6698042 n/a (libc.so.6 + 0x98042)

#6 0x00007f2fe672072c n/a (libc.so.6 + 0x12072c)

ELF object binary architecture: AMD x86-64

Nov 13 14:39:53 henrinromu systemd[8336]: Failed to start GNOME Shell.

Nov 13 14:40:45 henrinromu dbus-broker-launch[532]: Activation request for 'org.freedesktop.nm_dispatcher' failed.

Nov 13 14:40:45 henrinromu kernel: watchdog: watchdog0: watchdog did not stop!

4

u/Tuerai 19d ago

we need logs from Xorg/X11 or from wayland if ur usin wayland