Nvidia-inst adds kernel setting with typo

Hey guys, i’m new to linux, installed EOS few days ago and was trying to get wayland working on my nvidia gpu, and noticed that when you do ndivia-inst it adds nvidia-drm.modeset=1 to GRUB_CMDLINE_LINUX_DEFAULT but it should be ndivia_drm.modeset=1, with underscore instead of dash.

After fixing typo and rebuilding config file, wayland started working on my gtx 1060

1 Like

This is not required for kernel parameters.
From kernel.org/doc:

Hyphens (dashes) and underscores are equivalent in parameter names, so:

log_buf_len=1M print-fatal-signals=1

can also be entered as:

log-buf-len=1M print_fatal_signals=1

Maybe some utility that handles or checks kernel parameters has a bug.

i can see older Nvidia drivers showing:

newer have the underscore…

and on the archwiki:

Revision as of 11:21, 11 August 2022 by Huupoke12 (talk | contribs) (→‎DRM kernel mode setting: Correct module name: nvidia-drm to nvidia_drm)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

But i do not have any issue running wayland with nvidia-drm.modeset=1


I could not see any justification, explanation, or link to some source for that correction. Maybe there is, and I can’t see it because of inexperience :person_shrugging: .
Is there a way/procedure to ask the contributor?

If there is some change to my posted source, we should all learn about it :person_shrugging: .

This is something for @manuel to check? :thinking:

indeed i do not wanted to say you are wrong more the opposite… it looks like may nvidia simply changed the readme and the one changed the archwiki was following this change… the only thing i see where - is not workking is lsmod:
it gave no output when using - …

But adding kernel option into cmdline or grub cmd is working with both variations at least … on my system.

You are right, either way works

I didn’t notice that nvidia-inst says that you should rebuild grub config, that’s why it didn’t work. After changing dash to underscore i followed steps and finally ran grub-mkconfig.

Sorry for anyone’s confusion and wasting time :sweat:

1 Like

This is normal/expected. Module names are local (files/content).
Kernel cmdline params interpretation is code in the kernel.

@petsam is right, hyphen and underscore are “equal” in kernel parameters.

@ky3ow great that you found the problem! :+1:


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.