You are not logged in.

#1 2024-03-05 00:36:26

tropnevad
Member
Registered: 2024-02-18
Posts: 6

[solved] Unable to disable nvidia_drm, modprobe doesnt work?

I've been trying to disable nvidia_drm with the command

 # modprobe nvidia-drm modeset=1

Rebooting and running

# cat /sys/module/nvidia_drm/parameters/modeset

Returns a N instead of a Y.

I've been looking around and haven't found much.
My nvidia card is..

VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 745] (rev a2) (prog-if 00 [VGA controller])

I installed driver with the 'nvidia' package, maybe my card is not supported?
Thanks!

Last edited by tropnevad (2024-03-05 20:57:21)

Offline

#2 2024-03-05 00:39:14

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

Re: [solved] Unable to disable nvidia_drm, modprobe doesnt work?

What are you trying to do, exactly? Nothing in this post makes sense.

https://xyproblem.info/

Last edited by Scimmia (2024-03-05 00:54:49)

Online

#3 2024-03-05 00:54:53

tropnevad
Member
Registered: 2024-02-18
Posts: 6

Re: [solved] Unable to disable nvidia_drm, modprobe doesnt work?

The wiki says drm mode setting must be set for Wayland to work with nvidia cards, I’m trying to log into Wayland without it and all I’m getting is a black screen with a cursor, which apparently is common if you don’t have modesetting set. So trying to set it with the modprobe isn’t working. Does that help?

Offline

#4 2024-03-05 02:17:37

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

Re: [solved] Unable to disable nvidia_drm, modprobe doesnt work?

And as the wiki says, you need to do that by setting nvidia_drm.modeset=1 on the kernel command line.

Online

#5 2024-03-05 08:09:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [solved] Unable to disable nvidia_drm, modprobe doesnt work?

FWIW in a general sense you would be able to change that that way but you'd need to actively be able to unload the nvidia drivers  before being able to reload them with modesetting set, which generally speaking won't work trivially if your display is currently actively driven by the card. But in any case you want to set it on the cmdline to also disable the simpledrm device that would otherwise cause issues with display detection.

Offline

#6 2024-03-05 20:39:52

tropnevad
Member
Registered: 2024-02-18
Posts: 6

Re: [solved] Unable to disable nvidia_drm, modprobe doesnt work?

V1del wrote:

FWIW in a general sense you would be able to change that that way but you'd need to actively be able to unload the nvidia drivers  before being able to reload them with modesetting set, which generally speaking won't work trivially if your display is currently actively driven by the card. But in any case you want to set it on the cmdline to also disable the simpledrm device that would otherwise cause issues with display detection.

Sorry, I’m new so I have no idea how to pass arguments to the command line, I tried looking online but didn’t understand much, could you possibly help or point me in the direction to do this? Thanks!

Okay, I believe I figured it out. I added the parameters to the grub file in /etc/default/grub and saved them and I can now log into Wayland! Thank you for your help smile

EDIT: Wow I just want to say Wayland is soo responsive. I had a lot of lag with windows opening and closing in X but Wayland takes care of all that. Thanks again!

Last edited by tropnevad (2024-03-05 21:06:48)

Offline

#7 2024-03-05 23:12:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [solved] Unable to disable nvidia_drm, modprobe doesnt work?

For the future, the logical progression you'd have for figuring this out from the wiki is going to https://wiki.archlinux.org/title/NVIDIA … de_setting --> https://wiki.archlinux.org/title/Kernel_parameters --> https://wiki.archlinux.org/title/Kernel_parameters#GRUB

Offline

#8 2024-03-06 00:08:33

tropnevad
Member
Registered: 2024-02-18
Posts: 6

Re: [solved] Unable to disable nvidia_drm, modprobe doesnt work?

V1del wrote:

For the future, the logical progression you'd have for figuring this out from the wiki is going to https://wiki.archlinux.org/title/NVIDIA … de_setting --> https://wiki.archlinux.org/title/Kernel_parameters --> https://wiki.archlinux.org/title/Kernel_parameters#GRUB

The kernel parameters/GRUB is where I got it all figured out. Thank you for posting that as it may help some other people who come across this page with that problem.

Offline

Board footer

Powered by FluxBB