I want to set nvidia-drm.modset to 1. I tried below methods:
In /etc/default/grub setting:
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="quiet nvidia-drm.modset=1"
Code: Select all
update-grub2
Code: Select all
cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.10.0-8-amd64 root=UUID=xxxxxxxx-xxxxx-xxxxx-xxxxx-xxxxxxxxxxxxxxx ro quiet nvidia-drm.modset=1
Code: Select all
cat /sys/module/nvidia_drm/parameters/modeset
N
Another method was to edit /etc/modprobe.d/nvidia.conf or /etc/modprobe.d/nvidia-kernel-common.conf and add the line:
Code: Select all
options nvidia-drm modset=1
Code: Select all
# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-5.10.0-8-amd64
I: The initramfs will attempt to resume from /dev/sda5
I: (UUID=xxxxxxxx-xxxxx-xxxxx-xxxxx-xxxxxxxxxxxxxxx)
I: Set the RESUME variable to override this.
Code: Select all
update-grub2
reboot
Code: Select all
cat /sys/module/nvidia_drm/parameters/modeset
N
Code: Select all
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"