Topic: Win10PXE - How get custom screen resolution - ?  (Read 5204 times)

Re: Win10PXE - How get custom screen resolution - ?
« Reply #20 on: February 04, 2019, 07:05:07 AM »

Mikmouse

  • Jr. Chef
  • **
  • Date Registered: Dec 2013
  • Posts: 11
You can try to trim down the nvidia driver by commenting the files inside the inf.

This one work with my GTX 1060 https://mega.nz/#!xuJQyIrY!SwEKyyxkl4Y88pUsK8GC-Z1Barl5wUnOWvxyjX0XfcE

But if you mod the inf file you also will need to patch drvinst.exe.
Thanks JFX, I got the two files, but I don't have any idea how to adjust "nv_dispi.inf " to be working wit a GTX 970. The *inf is large. I am no familiar with scripts on inf installs.
Can you elaborate a bit more in order to try it ?

Re: Win10PXE - How get custom screen resolution - ?
« Reply #21 on: February 04, 2019, 10:42:22 AM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
This looks rather interesting to me, and I wonder whether you might be able to address a few questions:
1) In Windows 7 there already was an trimmed down nvidia driver integrated, so I knew at least the core files necessary.
   removing 32 bit dll files from a x64 driver package should be no problem.
   Also Cuda and control panel files can be removed. The rest is a bit trail and error.

2) Not only the actual driver (*.sys) file needs a digital signature, but also an driver inf file needs a signed catalog file.
   The patch ignores the validation of the *.cat so we can edit nv_dispi.inf.

3) Winpe based on Windows 7 an older ignored the check,  it's a new feature of Windows 8 and 10.


@Mikmouse
Just look at the original inf and my one with a diff tool like windiff or winmerge.
It's really just adding a ";" before a line that mentions a file we want to get rid of.

Re: Win10PXE - How get custom screen resolution - ?
« Reply #22 on: February 04, 2019, 11:06:25 AM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Quote
Does DrvInstPatch should be operational also for RS6 ?

19h1(18323) is still same as rs5.

Before the generic patcher(:thumbsup:), there is a way to patch the file in 1 minute for normal people who don't know any program skill for every windows version.
The result of 19h1 is same as JFX's patched position(the modification is bit different).

Quote
C:\Users\Administrator\Desktop>DrvInstPatch.exe p drvinst.exe
drvinst.exe was successfully patched!
C:\Users\Administrator\Desktop>fc /b drvinst.exe drvinst_p.exe
00007C87: 8B 31
00007C88: F0 C0
00007C89: 85 89
00007C8A: C0 C6
00007C8B: 75 90
00007C8C: 09 90


Quote
D:\dev\wimbuilder2\Projects\WIN10XPE\Patch_drvinst>set PATCH_MODE=local
D:\dev\wimbuilder2\Projects\WIN10XPE\Patch_drvinst>main.bat
Reading from  .\drvinst.exe...
Writing to .\drvinst_patched.exe...
 Done: 1 matches.
00007C87: 8B 33
00007C88: F0 C0
00007C89: 85 8B
00007C8A: C0 F0
00007C8B: 75 90
00007C8C: 09 90

for now, Patch_drvinst\main.bat is in an ugly way for each version(define the found patch codes).
Code: [Select]
set VER_NAME=%WB_PE_VER%
if %VER[3]% GTR 17000 set VER_NAME=win10.rs4later
if %VER[3]% GTR 17700 set VER_NAME=win10.rs5later
call :Drvinst_%VER_NAME%_%WB_PE_ARCH%
goto :EOF

:Drvinst_10.0.15063_x64
call :PATCH 8BF0 85C0 7509 418B
goto :EOF
:Drvinst_win10.rs4later_x64
call :PATCH 8BF8 85C0 7509 418B
goto :EOF
:Drvinst_win10.rs4later_x86
call :PATCH 8BD8 85DB 750A 8B4D
goto :EOF
:Drvinst_win10.rs5later_x64
call :PATCH 8BF0 85C0 7509 418B
goto :EOF
:Drvinst_win10.rs5later_x86
call :PATCH 8BD8 85DB 750A 8B4D
goto :EOF

:PATCH
binmay.exe -v -s "%1%2%3%4" -r "33C0%19090%4" -i "%X_SYS%\drvinst.exe" -o "%PATCH_TMP%\drvinst_patched.exe"
fc /b "%X_SYS%\drvinst.exe" "%PATCH_TMP%\drvinst_patched.exe"

@JFX
Is there a DrvInstPatch.exe x64 binary release?
With DrvInstPatch.exe, the Patch_drvinst will be very simple.
Code: [Select]
rem use JFX's generic patcher
rem http://theoven.org/index.php?topic=2726.msg31375#msg31375
DrvInstPatch.exe p "%X_SYS%\drvinst.exe"
goto :EOF
« Last Edit: February 04, 2019, 02:51:35 PM by slore »

Re: Win10PXE - How get custom screen resolution - ?
« Reply #23 on: February 04, 2019, 02:33:51 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Sure, the more people try these generic patcher, the better they will become.

« Last Edit: February 04, 2019, 02:34:11 PM by JFX »

Re: Win10PXE - How get custom screen resolution - ?
« Reply #24 on: February 04, 2019, 02:53:05 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
 :great: THX

Re: Win10PXE - How get custom screen resolution - ?
« Reply #25 on: February 05, 2019, 12:05:14 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Thanks also for the UX Patcher, I suppose, generic as well  :thumbsup:

Re: Win10PXE - How get custom screen resolution - ?
« Reply #26 on: February 05, 2019, 12:22:26 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Or even in automatic, without any option, I guess it's good feature for everyone,
Ok, probably not, I'll keep Set Max resolution as an option
Tested on another monitor (default 1920*1080), with Set Max resolution and without driver, I have a display of 1280*720 rather distorted
« Last Edit: February 05, 2019, 12:44:29 PM by ChrisR, Reason: 1280, not 1208 »

Re: Win10PXE - How get custom screen resolution - ?
« Reply #27 on: February 05, 2019, 12:40:30 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
You can try to trim down the nvidia driver by commenting the files inside the inf.
This one work with my GTX 1060
I couldn't test it, my laptop doesn't use the same driver inf file from Nvidia 417.71
But by comparing your changes, you allowed me to reproduce your reduction on nvaci.inf (same files + nvpciflt.sys)  :thumbsup:

It works with my Acer GTX 950M,  nvaci.inf_417.71_amd64 .7z (24.2 Mb)
It should be possible to save time vs dism /add-driver, by importing nvaci.inf_Tmp_Drivers.reg.txt registry + 
copy nvaci.inf_amd64_1392a7b8258b048d folder in \DriverStore\FileRepository and also nvaci.inf in \Windows\INF

ila_rendered
« Last Edit: February 05, 2019, 12:55:49 PM by ChrisR »

Re: Win10PXE - How get custom screen resolution - ?
« Reply #28 on: February 05, 2019, 02:06:45 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Yes, UX Patcher should also work with future versions.

It's indeed a bit slow installing the driver. (here almost 20 seconds.)

Re: Win10PXE - How get custom screen resolution - ?
« Reply #29 on: February 05, 2019, 07:04:39 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Thanks for UX Patcher, it is implemented now in a XPEPlugin here Custom Theme

ila_rendered
« Last Edit: February 05, 2019, 09:58:28 PM by ChrisR, Reason: Plugin -> XPEPlugin »

Re: Win10PXE - How get custom screen resolution - ?
« Reply #30 on: February 05, 2019, 09:09:45 PM »

cretino

  • Chef
  • ***
  • Date Registered: Jan 2018
  • Posts: 240
hi JFX
Thanks for UX Patcher  :grin:

@ ChrisR
thanks for Custom Theme plugin  :thumbsup:
now i can try the other one )   :grin:
Code: [Select]
http://imgbox.com/ogye3n8Q

Re: Win10PXE - How get custom screen resolution - ?
« Reply #31 on: February 05, 2019, 09:22:44 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Custom Theme

v2: Add Annihilator User Account Pictures

Re: Win10PXE - How get custom screen resolution - ?
« Reply #32 on: February 07, 2019, 02:20:56 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
I made a tool: InfTrim, so you can modify your driver inf files with ease.

example: InfTrim "nv_trim.txt" "nv_dispi.inf"
« Last Edit: February 07, 2019, 02:22:14 PM by JFX »

Re: Win10PXE - How get custom screen resolution - ?
« Reply #33 on: February 07, 2019, 03:00:55 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Great :great:
I just added "HKR,,CoInstallers32" to nv_trim.txt

I had done + or - manually (Macro Excel, manual) for.
nv_dispi.inf  - 1st Checks Before Manufacturer Driver , nvaci.inf - Acer, Gateway , nvami.inf - Asus , nvdmi.inf - Dell , nvbli.inf - HP Business Market , nvhmi.inf - HP Non Business Market , nvlti.inf - Lenovo
Not in the same time  :wink: if I had known...

Here are the reg files for 418.81, the driverStore  folder name must match. My XPEPlugin writing is almost finished
* nvidia-418.81-win10-64bit_Reg.7z (6.95 kB - downloaded 44 times.)

Thanks

Re: Win10PXE - How get custom screen resolution - ?
« Reply #34 on: February 08, 2019, 12:02:53 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
I published an XPEPlugin here Nvidia GeForce Plugin
Thanks JFX for the complete set DrvInstPatch, InfTrim and for a so big reduction!  :thumbsup:

Few notes on size:
~81 Mb in Target Folder for each driver
~34 Mb in boot.wim (XPress compression) regardless drivers number (duplicate once)
~26 Mb in RAM for 1 driver and 148 Mb for 7 drivers= ~21 Mb (running in VM) !
« Last Edit: February 08, 2019, 12:04:34 PM by ChrisR »

Re: Win10PXE - How get custom screen resolution - ?
« Reply #35 on: February 10, 2019, 03:51:02 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Sure, the more people try these generic patcher, the better they will become.

Thanks JFX,

I feel this generic patcher valid from Win7 (or less ? ) to Win10
or maybe only generic patcher for Win10
?

:turtle:

Re: Win10PXE - How get custom screen resolution - ?
« Reply #36 on: February 10, 2019, 04:23:30 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
@ChrisR
Thanks for the plugin and "HKR,,CoInstallers32"  :thumbsup:
I found out the reason for my slow install, it's line "CopyINF = nvppc.inf".
After removing it install is done in 5 seconds  :smile:

@Lancelot
UXPatcher is generic patcher for all version: XP to Win10 (x86/x64/arm64).
Same for DrvInstPatch, but i have not yet tried it with Win 7 and 8 versions.
« Last Edit: February 10, 2019, 04:23:48 PM by JFX »

Re: Win10PXE - How get custom screen resolution - ?
« Reply #37 on: February 10, 2019, 04:32:53 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks for very good news.  :thumbsup:

I have some troubles related to uxpatcher or not, I will inform here if related ......

+
I have not started to study your 417.71.7z DrvInstPatch InfTrim yet, only following your posts :

I guess InfTrim.exe to be used to trim inf files at \Display.Driver\, and you just wrote
I found out the reason for my slow install, it's line "CopyINF = nvppc.inf".
After removing it install is done in 5 seconds  :smile:
Is it possible to update InfTrim.exe
 or
 InfTrim.exe do a main trim, we have a manual check later to find things like "CopyINF = nvppc.inf".
?

+
an updated 417.71.7z will be nice with your latest fix.  :wink:

:turtle:

Re: Win10PXE - How get custom screen resolution - ?
« Reply #38 on: February 10, 2019, 04:54:16 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
No need to update the tool, just add the line to the nvtrim.txt.

Re: Win10PXE - How get custom screen resolution - ?
« Reply #39 on: February 10, 2019, 05:10:24 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks :thumbsup:

I am slowly coming to that chapter... :turtle:

 

Powered by EzPortal