Nvidia on Ubuntu: Difference between revisions
No edit summary |
No edit summary |
||
| Line 50: | Line 50: | ||
<tt>'''modinfo'''</tt> tells us details about the kernel module, including the dependencies. | <tt>'''modinfo'''</tt> tells us details about the kernel module, including the dependencies. | ||
<code>modinfo nouveau</code> | |||
{{Collapsible | |||
|visible_text=<code>modinfo nouveau</code> | |||
|collapsed_content= | |||
<poem style="font-family:monospace;"> | <poem style="font-family:monospace;"> | ||
filename: /lib/modules/6.8.0-62-generic/kernel/drivers/gpu/drm/nouveau/nouveau.ko.zst | filename: /lib/modules/6.8.0-62-generic/kernel/drivers/gpu/drm/nouveau/nouveau.ko.zst | ||
| Line 159: | Line 164: | ||
firmware: nvidia/ad103/gsp/gsp-535.113.01.bin | firmware: nvidia/ad103/gsp/gsp-535.113.01.bin | ||
firmware: nvidia/ad103/gsp/bootloader-535.113.01.bin | firmware: nvidia/ad103/gsp/bootloader-535.113.01.bin | ||
firmware: nvidia/ad103/gsp/booter_unload-535.113.01.bin | firmware: nvidia | ||
}} | |||
/ad103/gsp/booter_unload-535.113.01.bin | |||
firmware: nvidia/ad103/gsp/booter_load-535.113.01.bin | firmware: nvidia/ad103/gsp/booter_load-535.113.01.bin | ||
firmware: nvidia/ad102/gsp/gsp-535.113.01.bin | firmware: nvidia/ad102/gsp/gsp-535.113.01.bin | ||
| Line 544: | Line 551: | ||
parm: runpm:disable (0), force enable (1), optimus only default (-1) (int) | parm: runpm:disable (0), force enable (1), optimus only default (-1) (int) | ||
</poem> | </poem> | ||
}} | |||
| Line 575: | Line 583: | ||
I've read the whole thing. | I've read the whole thing. | ||
=== Replacing Nouveau === | |||
See [https://download.nvidia.com/XFree86/Linux-x86_64/570.153.02/README/commonproblems.html#nouveau NVIDIA driver 570.153.02 README common problems #nouveau] where it says basically | See [https://download.nvidia.com/XFree86/Linux-x86_64/570.153.02/README/commonproblems.html#nouveau NVIDIA driver 570.153.02 README common problems #nouveau] where it says basically | ||
# | # denylist it | ||
# modify your initramfs | # modify your initramfs | ||
# modify Xorg to not load nouveau | # modify Xorg to not load nouveau | ||
=== Denylist === | |||
I tried #1 and it didn't work. | I tried #1 and it didn't work. | ||
I've looked at the initramfs and don't see where it is loading nouveau. Although I do see where the temporary '''[[disable-nouveau.conf]]''' | I've looked at the initramfs and don't see where it is loading nouveau. Although I do see where the temporary '''[[disable-nouveau.conf]]''' file I created is read in. | ||
=== Modify Initial Ram Disk === | |||
The initial ram disk is a gzipped CPIO archive | |||
<pre> | <pre> | ||
file /boot/initrd.img-6.8.0-62-generic | file /boot/initrd.img-6.8.0-62-generic | ||
/boot/initrd.img-6.8.0-62-generic: ASCII cpio archive (SVR4 with no CRC) | /boot/initrd.img-6.8.0-62-generic: ASCII cpio archive (SVR4 with no CRC) | ||
</pre> | |||
There are quite a lot of files that get named in it. | |||
{{Collapsible | |||
|visible_text=<code>lsinitramfs /boot/initrd.img | less</code> | |||
|collapsed_content= | |||
<pre> | |||
. | . | ||
kernel | kernel | ||
| Line 647: | Line 666: | ||
usr/lib/firmware/cis/SW_8xx_SER.cis.zst | usr/lib/firmware/cis/SW_8xx_SER.cis.zst | ||
</pre> | </pre> | ||
additional content elided for brevity.... | |||
}} | |||
=== X.org.conf === | |||
I've looked at Xorg but I'm not sure how / if it is responsible for requiring nouveau - but I can clearly see that the package is installed. | I've looked at Xorg but I'm not sure how / if it is responsible for requiring nouveau - but I can clearly see that the package is installed. | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||