Nvidia: Difference between revisions

imported>Nadimkobeissi
Major rewrite, fixing misleading (and sometimes wrong) information, improving structure, grammar and much more
imported>Nadimkobeissi
Fix errors
Line 133: Line 133:
{{file|nvidia-offload|bash|<nowiki>
{{file|nvidia-offload|bash|<nowiki>
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=Nvidia-G0
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=Nvidia_only
export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@"
exec "$@"
</nowiki>}}
</nowiki>}}
Line 235: Line 235:


=== Booting to Text Mode ===
=== Booting to Text Mode ===
If you encounter the Problem of booting to text mode you might try adding the Nvidia kernel module manually with:
If you encounter the problem of booting to text mode you might try adding the Nvidia kernel module manually with:


<syntaxHighlight lang="nix">
<syntaxHighlight lang="nix">