<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://leo.leung.xyz/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=39.170.43.234</id>
	<title>Leo&#039;s Notes - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://leo.leung.xyz/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=39.170.43.234"/>
	<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/Special:Contributions/39.170.43.234"/>
	<updated>2026-10-22T20:00:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=Linux_Nvidia_Driver&amp;diff=6803</id>
		<title>Linux Nvidia Driver</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Linux_Nvidia_Driver&amp;diff=6803"/>
		<updated>2022-09-01T06:12:53Z</updated>

		<summary type="html">&lt;p&gt;39.170.43.234: /* Manually Patching */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Manually Patching ==&lt;br /&gt;
&lt;br /&gt;
On new kernels, the Nvidia driver will probably need to be patched even if it is the most recent driver.&lt;br /&gt;
&lt;br /&gt;
To extract and apply a patch on the proprietary Nvidia drivers:&lt;br /&gt;
{{highlight|lang=terminal|code=&lt;br /&gt;
# ./nvidia.run -x&lt;br /&gt;
# cd NVIDIA-Linux-x86_64-375.66&lt;br /&gt;
# patch  -p1 -i ../linux-4.11.patch&lt;br /&gt;
## Run the installer like you normally would on the nvidia driver blob&lt;br /&gt;
# ./nvidia-installer&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Looking at the advanced settings in the blob, there is a {{code|--apply-patch}} parameter which takes in a patch as well, but this only creates a custom .run file rather than applying the patch and then doing the install. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To make an updated version of the self-run .run file after applying the patch manually:&lt;br /&gt;
{{highlight|lang=terminal|code=&lt;br /&gt;
## Continuing from the steps above&lt;br /&gt;
# sh NVIDIA-Linux-x86_64-375.66/makeself.sh ./NVIDIA-Linux-x86_64-375.66 NVIDIA-Linux-x86_64-375.66.run &amp;quot;Patched for 4.11.0&amp;quot; ./nvidia-installer&lt;br /&gt;
Adding files to archive named &amp;quot;NVIDIA-Linux-x86_64-375.66.run&amp;quot;...&lt;br /&gt;
...&lt;br /&gt;
CRC: 3953819085&lt;br /&gt;
MD5: bbcb938a38cb7475bbbc55ff616d33cb&lt;br /&gt;
&lt;br /&gt;
Self-extractible archive &amp;quot;NVIDIA-Linux-x86_64-375.66.run&amp;quot; successfully created.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If you get this error:&lt;br /&gt;
{{highlight|lang=text|code=&lt;br /&gt;
ERROR: this .run file is intended for the&lt;br /&gt;
Unknown-Unknown platform, but you appear to be&lt;br /&gt;
running on Linux-x86_64.  Aborting installation.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
You need to edit the makeself.sh script so that the platform and architecture is &amp;quot;Linux&amp;quot; and &amp;quot;x86_64&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Silent Install ==&lt;br /&gt;
&lt;br /&gt;
{{highlight|lang=terminal|code=&lt;br /&gt;
./nvidia.run \&lt;br /&gt;
--no-x-check \&lt;br /&gt;
--silent \&lt;br /&gt;
--no-nouveau-check \&lt;br /&gt;
--disable-nouveau \&lt;br /&gt;
--run-nvidia-xconfig \&lt;br /&gt;
--opengl-headers \&lt;br /&gt;
--install-libglvnd \&lt;br /&gt;
--dkms  -k `uname -r`&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Patches ==&lt;br /&gt;
* https://github.com/manjaro/packages-extra/tree/28f8a1bfe5645d361f4ad59672dd8e255460ec99/linux411-extramodules/nvidia&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Navbox Linux}}[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>39.170.43.234</name></author>
	</entry>
</feed>