Skip to content

Instantly share code, notes, and snippets.

@nemolize
Last active August 14, 2024 04:44
Show Gist options
  • Save nemolize/f23775e43a0fd1edd87fae7b0cf70bcd to your computer and use it in GitHub Desktop.
Save nemolize/f23775e43a0fd1edd87fae7b0cf70bcd to your computer and use it in GitHub Desktop.
How to fix blackout issue with the wayland desktop session

Solution 1: set option in grub file

add nvidia-drm.modeset=1 to GRUB_CMDLINE_LINUX variable in /etc/default/grub

Example line:

GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"

then perform update-grub to apply the setting.

Solution 2: set option in nvidia.conf

there's an another way to create /etc/modprobe.d/nvidia.conf containing the following lines

options nvidia_drm modeset=1
options nvidia_drm fbdev=1

Thanks sylvainb: https://bbs.archlinux.org/viewtopic.php?pid=2156732#p2156732

See https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment