Skip to content

nvidiactl: Load drm modules #17

Merged
merged 1 commit into from
Dec 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions nvidiactl/nvidiactl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ nvver=$(readlink ${leglink})

rm -f /node/usr_share_mxgfx
ln -sf /usr/share/nvidia/${nvver} /node/usr_share_mxgfx

test -e /lib/modules/$kver/kernel/drivers/gpu/drm/drm.ko && modprobe drm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing the force switch --force to modprobe should also work, shouldn’t work. But it’s not important.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the man page says, "so using this option is dangerous unless you know what you are doing". So obviously this is not an option to us 🤣

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just read up to dangerous and thought that’s good. ;-)

test -e /lib/modules/$kver/kernel/drivers/gpu/drm/drm_kms_helper.ko && modprobe drm_kms_helper

insmod ${leglink}/nvidia.ko

# Count the number of NVIDIA controllers found.
Expand Down