Page 1 of 1

[SOLVED] cannot set nvidia-drm.modset=1

Posted: 2021-09-22 00:46
by aario
Hello,
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"
Then run:

Code: Select all

update-grub2
As a result:

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
So my parameter is there in the command line of the kernel. But when I run:

Code: Select all

cat /sys/module/nvidia_drm/parameters/modeset
N
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:

Code: Select all

options nvidia-drm modset=1
I added the line to both files just to be sure. Then I ran:

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.
and then

Code: Select all

update-grub2
reboot
then again:

Code: Select all

cat /sys/module/nvidia_drm/parameters/modeset
N
Here is my debian version:

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/"
Is there anything I am missing to make this kernel module nvidia-drm load with modset equal to Y/1 ? Thanks in advance.

Re: cannot set nvidia-drm.modset=1

Posted: 2021-09-22 01:11
by aario
Found the solution. One e was missing! The correct is modeset and not modset. So only adding:

Code: Select all

options nvidia-drm modeset=1
To /etc/modprobe.d/nvidia-kernel-common.conf was enough.