[SOLVED] cannot set nvidia-drm.modset=1
Posted: 2021-09-22 00:46
Hello,
I want to set nvidia-drm.modset to 1. I tried below methods:
In /etc/default/grub setting:
Then run:
As a result:
So my parameter is there in the command line of the kernel. But when I run:
The result is N which means the module ignores the command line options of the kernel!
Another method was to edit /etc/modprobe.d/nvidia.conf or /etc/modprobe.d/nvidia-kernel-common.conf and add the line:
I added the line to both files just to be sure. Then I ran:
and then
then again:
Here is my debian version:
Is there anything I am missing to make this kernel module nvidia-drm load with modset equal to Y/1 ? Thanks in advance.
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/"