; Copyright (c) Lenovo Corporation
; LCD Monitor INF/Color Profile
; Supported OS : Windows 11 64bit only

[version]
signature="$WINDOWS NT$"
Class=Monitor
ClassGuid={4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider=%Lenovo%
CatalogFile=LNBLCD.cat
DriverVer = 02/25/2022, 2.0.0.0

[DestinationDirs]
; dirid of 23 corresponds to the ICM color profile directory. 
DeafultDestDir = 11
LNBLCD.CopyFiles = 23         ; System\Color directory

[SourceDisksNames]
1=%SRCDISK%

[SourceDisksFiles]
MHC2_CSOTWQXGA_500nits.icm = 1

[Manufacturer]
%Lenovo%=Lenovo,NTamd64

[Lenovo.NTamd64]                                            ; ===== Win11 64 =================================================================
%LNBWQXGA%  = LNBLCDWQXGA_819D.Install,   Monitor\LEN819D   ; CSOT 12.35inch WQXGA LTPS         1600x2560

[LNBLCDWQXGA_819D.Install]             ; CSOT WQXGA 10:16 1600x2560 LTPS
DelReg = DEL_CURRENT_REG
AddReg = WQXGA1600, DPMS, Display_ScaleFactor, ICM_LNBLCDWQXGA_819D
CopyFiles = LNBLCD.CopyFiles

[LNBLCDWQXGA_819D.Install.HW]             ; CSOT WQXGA 10:16 1600x2560 LTPS
AddReg=MS_EDID_OVERRIDE_AddReg

[LNBLCDWQXGA_819D.Install.Services]
Include = monitor.inf
Needs = PnPMonitor.Install.Services
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install   ; install monitor class function driver

; Monitor class function driver loading parameters
[Monitor_Service.Install]
DisplayName    = %Monitor.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\monitor.sys

[DEL_CURRENT_REG]                      ; for other than 2nd LCD
HKR,MODES
HKR,,MaxResolution
HKR,,DPMS
HKR,,ICMProfile
HKR,,ICMProfileAC

[WQXGA1600]
HKR,,MaxResolution,,"1600,2560"     ; 10:16

[DPMS]
HKR,,DPMS,,1

[Display_ScaleFactor]
HKR,,PreferredScaleFactor,%REG_DWORD%, 200

[ICM_LNBLCDWQXGA_819D]
; This sample installs both profiles to the advanced color (AC) profile association list.
; The presence of at least one valid ICC profile in the AC association list
; will enable WCG for the display.
HKR,,ICMProfile,0,"MHC2_CSOTWQXGA_500nits.icm"

[LNBLCD.CopyFiles]
MHC2_CSOTWQXGA_500nits.icm

[MS_EDID_OVERRIDE_AddReg]
HKR,EDID_OVERRIDE,0,0x01,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x30,\
0xAE,0x9D,0x81,0x01,0x00,0x00,0x00,0x00,0x20,0x01,0x04,0xA0,0x1B,0x11,\
0x78,0x2F,0x0F,0x95,0xAE,0x52,0x43,0xB0,0x26,0x0F,0x50,0x54,0x00,0x00,\
0x00,0x01,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,\
0x01,0x01,0x01,0x98,0x6C,0x40,0x28,0x60,0x00,0x12,0xA0,0x76,0x14,0xC4,\
0x00,0x00,0x00,0x00,0x00,0x00,0x1A,0x00,0x00,0x00,0x10,0x00,0x00,0x00,\
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
0x00,0x00,0x00,0x00,0x00,0x00,0xDC

[Strings]
; Non-Localizable Strings
REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001

SPSVCINST_ASSOCSERVICE = 0x00000002
Monitor.SVCDESC = "Microsoft Monitor Class Function Driver Service"

SRCDISK   = "Monitor INF File"
LNBWQXGA  = "Lenovo Display 1600x2560"
Lenovo    = "Lenovo"
