You are not logged in.

#1 2024-04-14 14:33:43

AndreyFrantsevich
Member
Registered: 2023-10-30
Posts: 30

Add nvidia-drm.modeset=1 into kernel.

Hey there!
I'm doing everything as manual says.

My /etc/mkinitcpio.conf

MODULES=(btrfs nvidia nvidia_modeset nvidia_uvm nvidia_drm)
BINARIES=(/usr/bin/btrfs)
FILES=()
HOOKS=(base udev autodetect kms keyboard keymap modconf block filesystems fsck)

After:

sudo mkinitcpio -P

After reboot.

BUT cat /sys/module/nvidia_drm/parameters/modeset returns N.

Help pls(

Offline

#2 2024-04-14 14:38:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: Add nvidia-drm.modeset=1 into kernel.

...and where did you add nvidia-drm.modeset=1?

Offline

#3 2024-04-14 14:57:47

AndreyFrantsevich
Member
Registered: 2023-10-30
Posts: 30

Re: Add nvidia-drm.modeset=1 into kernel.

Scimmia wrote:

...and where did you add nvidia-drm.modeset=1?

Okay, thx.
I did file

/etc/modprobe.d/nvidia.conf

with

options nvidia_drm modeset=1 fbdev=1

But it didn't help...

Last edited by AndreyFrantsevich (2024-04-14 14:58:46)

Offline

#4 2024-04-14 15:00:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: Add nvidia-drm.modeset=1 into kernel.

Set them on the kernel command line instead

Offline

#5 2024-04-14 15:21:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: Add nvidia-drm.modeset=1 into kernel.

For the modprobe.d you'll still have to rebuild the initramfs afterwards because you've moved the nvidia modules there and the modprobe config outside the initramfs would load too late the be applied.
fbdev=1 should™ also result in the simpledrm device begone, but the feature is new and leads to mixed results. Doing this on the kernel commandline allows you to mend that at the bootloader, if need be.

Offline

#6 2024-04-14 17:25:45

AndreyFrantsevich
Member
Registered: 2023-10-30
Posts: 30

Re: Add nvidia-drm.modeset=1 into kernel.

seth wrote:

For the modprobe.d you'll still have to rebuild the initramfs afterwards because you've moved the nvidia modules there and the modprobe config outside the initramfs would load too late the be applied.
fbdev=1 should™ also result in the simpledrm device begone, but the feature is new and leads to mixed results. Doing this on the kernel commandline allows you to mend that at the bootloader, if need be.

Yes, I removed fbdev=1, did sudo mkinitcpio -P.
It works.
Thanks a lot!

Offline

#7 2024-04-14 19:24:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: Add nvidia-drm.modeset=1 into kernel.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Nb. that w/o fbdev=1 and without using the nvidia_drm.modeset=1 kernel parameter *specifically* you'll still get KMS (as is mandatory for wayland) but you'll not get rid of the simpledrm device which might get in the way and have you unknowinlgy run on that rather than the GPU.
It is highly advisable to prevent that and the easiest way there is to use the nvidia_drm.modeset=1 https://wiki.archlinux.org/title/Kernel_parameters (you can do this in addition to the modprobe config, if that makes you feel better)

Offline

Board footer

Powered by FluxBB