Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Need help with peripherals or devices?
Post Reply
Message
Author
aario
Posts: 23
Joined: 2019-04-18 06:26

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

#1 Post 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.
Last edited by aario on 2021-09-22 01:14, edited 1 time in total.

aario
Posts: 23
Joined: 2019-04-18 06:26

Re: cannot set nvidia-drm.modset=1

#2 Post 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.

Post Reply