Jump to content
LaptopVideo2Go Forums

How to mod and sign NVIDIA drivers with TPU NVCleanstall


StefanG3D

Recommended Posts

How to use NVCleanstall 1.10.2 or later for driver modding and signing

Unpack your favourite driver with 7zip

Open NVCleanstall

  • select "use driver files from disk", navigate to the setup.exe of the unpacked driver
  • select components to install
  • select "add hardware support" under installation tweaks
  • select name, then ID (the hex number from the right)
  • select a GPU as template which is most similar to the target GPU

stefan123-20210331-192420.gif


confirm success in device manager

stefan124-20210331-192850.gif


Mobile Kepler users please review Support Plan for Kepler-series GeForce GPUs for notebooks .

"Binary compatibility within one GPU generation can be guaranteed under certain conditions because they share the basic instruction set. This is the case between two GPU versions that do not show functional differences at all (for instance when one version is a scaled down version of the other)"
Source: CUDA Compiler Driver NVCC Reference Guide

Technically this means: mobile support has been arbitrarily removed from R430+ installer files (INF), so a modded INF is mandatory to use R430+ drivers with mobile Kepler GPUs


Modded INF is also mandatory if you replaced your notebook GPU with an aftermarket model, or if you flashed the wrong system BIOS, or if after flashing the device ID magically changed from primary to secondary.
Each messes up the SUBSYS_ID

"Both PNP ID and ACPI ID consist of two parts: a Vendor ID, followed by a product identifier. Each manufacturer of these devices must be assigned an industry-unique Vendor ID... The Device Manufacturer is responsible for assigning this identifier to each individual product MODEL. Once an identifier is assigned to a product model, it must not be assigned to any other product model manufactured by the same company (that is, that uses the same Vendor ID)." 
Source: PNP ID and ACPI ID Registry


Fermi GeForce users please review Support Plan for Fermi series GeForce GPUs

Read the passage above about binary compability.
Unfortunately Fermi support (SM 2.0) has been physically removed in R396+ drivers, as documented in CUDA 9.2 release notes
No dice modding them.

However you can install 391.35 Game Ready first, then latest Fermi Quadro driver on top of it.
Do not tick "clean installation", do not use DDU or similar.
This way you should keep Game Ready features like legacy PhysX, GFE and 3D vision.

 


 

Note: NVCleanstall does not support CABinet packed Windows update drivers yet.

Workaround:

  • Create a new folder
  • unpack CAB into this folder
  • copy folders NVI2 and HDAUDIO from a recent GameReady driver into this folder
  • create a subfolder Display.Driver
  • unpack CAB into subfolder Display.Driver
  • start NVCleanstall  and do a minimal installation
  • do not select any expert tweak
Edited by StefanG3D
Workaround for WU drivers
Link to comment
Share on other sites

  • StefanG3D changed the title to How to mod and sign NVIDIA drivers with TPU NVCleanstall
  • StefanG3D pinned and locked this topic

Alternate method: NVCleanstall accepts externally modded INFs

This comes in handy if you have more than one GPU not supported by the driver

Example:

Download 461.92 Quadro

Unpack with 7zip

Open nv_dispwi.inf in your favourite editor.
Wipe the list of GPUs and inject your GPUs (in this example a GeForce and a Tesla prototype) at following locations

[NVIDIA_Devices.NTamd64.10.0...17098]
%NVIDIA_DEV.17C2% = Section036, PCI\VEN_10DE&DEV_17C2
%NVIDIA_DEV.1B39% = Section049, PCI\VEN_10DE&DEV_1B39


[Strings]
DiskID1 = "NVIDIA Windows 10 (64 bit) Driver Library Installation Disk 1"
FLG_ADDREG_KEYONLY = 0x00000010
NVIDIA = "NVIDIA"
NVIDIA_A = "NVIDIA"
NVIDIA_DEV.17C2 = "NVIDIA GeForce GTX TITAN X"
NVIDIA_DEV.1B39 = "NVIDIA Tesla P10"
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
REG_EXPAND_SZ = 0x00020000
REG_MULTI_SZ = 0x00010000
REG_SZ = 0x00000000
REG_SZ_APPEND = 0x00010008

Save nv_dispwi.inf

 



Open NVCleanstall
select "use driver files from disk"
select components to install
ignore "add hardware support"
use any expert tweak to trigger rebuilding signature

 

Link to comment
Share on other sites

  • StefanG3D unlocked this topic
  • 3 weeks later...
On 4/1/2021 at 10:20 PM, StefanG3D said:

Alternate method: NVCleanstall accepts externally modded INFs

This comes in handy if you have more than one GPU not supported by the driver

Example:

Download 461.92 Quadro

Unpack with 7zip

Open nv_dispwi.inf in your favourite editor.
Wipe the list of GPUs and inject your GPUs (in this example a GeForce and a Tesla prototype) at following locations

[NVIDIA_Devices.NTamd64.10.0...17098]
%NVIDIA_DEV.17C2% = Section036, PCI\VEN_10DE&DEV_17C2
%NVIDIA_DEV.1B39% = Section049, PCI\VEN_10DE&DEV_1B39


[Strings]
DiskID1 = "NVIDIA Windows 10 (64 bit) Driver Library Installation Disk 1"
FLG_ADDREG_KEYONLY = 0x00000010
NVIDIA = "NVIDIA"
NVIDIA_A = "NVIDIA"
NVIDIA_DEV.17C2 = "NVIDIA GeForce GTX TITAN X"
NVIDIA_DEV.1B39 = "NVIDIA Tesla P10"
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
REG_EXPAND_SZ = 0x00020000
REG_MULTI_SZ = 0x00010000
REG_SZ = 0x00000000
REG_SZ_APPEND = 0x00010008

Save nv_dispwi.inf

 



Open NVCleanstall
select "use driver files from disk"
select components to install
ignore "add hardware support" (!)

 

Hello,

 

- I downloaded and unpacked : 466.11-quadro-rtx-desktop-notebook-win10-64bit-international-dch-whql

I Wiped the list of GPUs and inject my GPU at following locations

[NVIDIA_Devices.NTamd64.10.0...17098]
%NVIDIA_DEV.11E3% = win10amobile,       PCI\VEN_10DE&DEV_11E3


[Strings]
DiskID1 = "NVIDIA Windows 10 (64 bit) Driver Library Installation Disk 1"
FLG_ADDREG_KEYONLY = 0x00000010
NVIDIA = "NVIDIA"
NVIDIA_A = "NVIDIA"
NVIDIA_DEV.11E3 = "NVIDIA GeForce GTX 760M"
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
REG_DWORD_NO_CLOBBER = 0x00010003
REG_EXPAND_SZ = 0x00020000
REG_MULTI_SZ = 0x00010000
REG_SZ = 0x00000000
REG_SZ_APPEND = 0x00010008

 

 

I did it a clean install after DDU + disable Driver Signature Enforcement.

fails at the end.

Link to comment
Share on other sites

16 hours ago, silverbullettt said:

[NVIDIA_Devices.NTamd64.10.0...17098]
%NVIDIA_DEV.11E3% = win10amobile,       PCI\VEN_10DE&DEV_11E3

You took a wrong section from another INF , correct is for nv_dispi.inf:

%NVIDIA_DEV.11E3% = Section002,       PCI\VEN_10DE&DEV_11E3

Otherwise do it like that:

stefan146-20210426-171147.gif

Link to comment
Share on other sites

It worked!

 

what I did:

- I downloaded and unpacked GTX 980M version 466.11.

-  open and edit the nv_dispi.inf by adding NVIDIA_DEV.11E3 = "NVIDIA GeForce GTX 760M" at the end of [Strings].

And adding your line %NVIDIA_DEV.11E3% = Section002,       PCI\VEN_10DE&DEV_11E3 at the end of [NVIDIA_Devices.NTamd64.10.0...17098].

- I went to safe mod and run the revo to uninstall the old version, then used DDU to clean up.

- Restart the laptop and disable Driver Signature Enforcement.

- Run the drivers setup.exe normal, and installed.

- Right click to open the control panel, and Accept and agree, and the panel opened.

 

Thanks for your help.

Now time to test some games hehe

 

 

EDIT:

** Should I install the driver throw NVCleanstall? will it be better?

Edited by silverbullettt
Link to comment
Share on other sites

22 hours ago, silverbullettt said:

** Should I install the driver throw NVCleanstall? will it be better?

The biggest advantage is the driver signature.
Judging from past posts some people have trouble to disable that.

However there are some problems with "Easy anti cheat":
https://www.techpowerup.com/forums/threads/issue-with-fortnite-and-nv-clean-install-1-9-0.280775/

 

Also you can select which features you need and unselect which not.

Link to comment
Share on other sites

What do you do if NVCleanStall doesn't have my GPU listed under "Add Hardware Support"?  I'm trying to install recent NVidia drivers for a Laptop Quadro K3000M GPU.  However, it is not in the list of templates.

 

Recommendations?

Link to comment
Share on other sites

5 minutes ago, Beanz said:

However, it is not in the list of templates.

The templates are the list of GPUs that exist in the original INF !

Assuming you selected a Quadro driver use NVIDIA_DEV.13FA = "NVIDIA Quadro M3000M" with vendor ID 103C=HP

Briefly you could say a Maxwell is an energy saving Kepler

stefan148-20210429-195902.gif

Link to comment
Share on other sites

9 minutes ago, StefanG3D said:

The templates are the list of GPUs that exist in the original INF !

Assuming you selected a Quadro driver use NVIDIA_DEV.13FA = "NVIDIA Quadro M3000M" with vendor ID 103C=HP

Briefly you could say a Maxwell is an energy saving Kepler

stefan148-20210429-195902.gif

Thank you so much!  I was able to get 466.11 installed thanks to your help!

Link to comment
Share on other sites

what im done wrong?

[NVIDIA_Devices.NTamd64.10.0...17098]
%NVIDIA_DEV.1198% = Section002,       PCI\VEN_10DE&DEV_1198

[Strings]
DiskID1 = "NVIDIA Windows 10 (64 bit) Driver Library Installation Disk 1"
FLG_ADDREG_KEYONLY = 0x00000010
NVIDIA = "NVIDIA"
NVIDIA_A = "NVIDIA"
NVIDIA_DEV.1198 = "NVIDIA Geforce GTX 880M"
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
REG_DWORD_NO_CLOBBER = 0x00010003
REG_EXPAND_SZ = 0x00020000
REG_MULTI_SZ = 0x00010000
REG_SZ = 0x00000000
REG_SZ_APPEND = 0x00010008

Edited by Rosli
Link to comment
Share on other sites

2 hours ago, Rosli said:

what im done wrong?

That would be correct for manual modding.

In NVCleanstall use 980M as template with vendor ID 1043 = ASUS

stefan149-20210502-070714.gif

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

UPDATE to my post:

 

I don't know how but the Nvidia driver version shown 382.05 and I installed 466.11

 

Is there a way to stop this?

This happened before and I reinstall the new version, but no luck.

Link to comment
Share on other sites

14 minutes ago, silverbullettt said:

I don't know how but the Nvidia driver version shown 382.05 and I installed 466.11

Where do you see that?

In an old version of GPU-Z? That would be a known and fixed issue.

Otherwise use DDU to remove leftovers.

Link to comment
Share on other sites

21 minutes ago, StefanG3D said:

Where do you see that?

In an old version of GPU-Z? That would be a known and fixed issue.

Otherwise use DDU to remove leftovers.

Saw it from revo.

And from Nvidia panel it self. 

Windows 10 install the old version over the one I had.

I disabled the Nvidia services but still.

 

EDIT:

- Is that because I use 980M GTX driver instead of Quadro driver that I see you use as an example?

- Please, provide me with a driver you recommend to use and I will apply the steps I used before.

n1.PNG

n2.PNG

Edited by silverbullettt
More info
Link to comment
Share on other sites

11 minutes ago, silverbullettt said:

Windows 10 install the old version over the one I had.

This happens to unsigned drivers after a major Windows update. Did you just receive 21H1?

Another reason to use NVCleanstall.

Link to comment
Share on other sites

1 minute ago, StefanG3D said:

This happens to unsigned drivers after a major Windows update. Did you just receive 21H1?

Another reason to use NVCleanstall.

No, I use LTSC 2019 version of windows 10.

 

Okay, I will start over with 466.47 version and use NVCleanstall.

 

I will use 466.47 version of 980M GTX with NVCleanstall v1.9.2

 

Please, what is the best setting to use for NVCleanstall in this case? Also, using 980M gtx version good?

 

Link to comment
Share on other sites

19 minutes ago, silverbullettt said:

Please, what is the best setting to use for NVCleanstall in this case? Also, using 980M gtx version good?

Yes that is OK. Select the first GPU which reads 1462 = vendor ID of MSI

stefan157-20210529-072337.gif

Link to comment
Share on other sites

1 hour ago, StefanG3D said:

Yes that is OK. Select the first GPU which reads 1462 = vendor ID of MSI

stefan157-20210529-072337.gif

 

I didn't edit the nv_dispi.inf and its installed with NVCleanstall v1.9.2 with the shown set.

I hope the settings I picked were good.

 

* I would like to add that games The games did not launch as intended. I have Resident Evil 7 only black screen at first and then exist to desktop screen.

and tested GTA V, at first it launch at small windowed mode. Start the game, and its super slow.

 

** Deleted the driver by DDU, and install the same driver after edit the nv_dispi.inf by its EXE. The games above started normal.

 

*** I went and edit the nv_dispi.inf, and got same results.

 

I really want to install the driver using NVCleanstall, but I think I will stick with installation throw EXE after edit the nv_dispi.inf and try to search for why windows like roll the version back to the default supported driver version.

 

Thank you.

1.PNG

2.PNG

Edited by silverbullettt
Add the set
Link to comment
Share on other sites

  • 2 weeks later...
Hello,
I ask you for help because I am totally lost.
If someone takes some of their time for me and my children who claim the pc I would be really grateful;)

My pc is an "Alienware M17xr4 (bios A15)" I changed the graphics card to a 970m several months ago.
I had managed to install a modified driver and everything worked.
However the pc has automatically received a windows update.
Since then, it has been impossible to use the 970m.

I have tried everything for several days. I tried to rewrite the * .inf by following all the recommendations 
with the identifiers of my graphics card and my pc (PC: 0551, vendor 1028 and CG 13D8).
I have of course deactivated the non-digitally signed drivers.
I tried on the version of windows 2004, 20H2 and 21H2, the latest drivers for this card nothing helps.
At best the driver does not install, at worst the pc freezes.
This is my last chance :( (Of course I tried with nvcleaninstall)
I remind you I have not modified the bios of the pc, as well as that of the CG.

Thanks a lot and sorry for the syntax ...

 

EDIT :

 

 

I just managed to reinstall it with a windows 20H2 and a version 451.67 .... that I modified and it almost works, 
I have a "code 43" error ... but no freeze. The control panel also does not work.
I really don't understand why it doesn't work ... have the pilots changed it that much?
Or does it come from the windows version?
Edited by LukYreM
Link to comment
Share on other sites

3 hours ago, LukYreM said:

I just managed to reinstall it with a windows 20H2 and a version 451.67 .... that I modified and it almost works, I have a "code 43" error ... but no freeze. The control panel also does not work. I really don't understand why it doesn't work ... have the pilots changed it that much? Or does it come from the windows version?

Regarding code 43: in device manager deactivate GPU, then reactivate GPU again .

Unfortunately nobody has a plausible answer why code 43 happens...

Link to comment
Share on other sites

Ok thank you very much for the quick response, I'll try that!
Any idea or suggestion to properly install this card on a newer system with newer drivers? thank you so much

EDIT :

 

Well, it doesn't work, deactivating then reactivating seems to work 
but in fact it mentions that the installation is not finished in the events.
In the end, windows update forced the installation of a update and hop BSOD :)
My God....
Finally I reinstalled the 21h2 and I deactivated the 970m card so I am waiting for someone to do a magic trick.
I'm pretty sure the windows version was the problem, as I had done it with a 1903 without difficulty.
Thx bye
Edited by LukYreM
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...