; ------------------------------------------------
; Copyright (c) 2022 Lenovo Corporation
; revision 0
; This is a setupfile for D27q-30
; ------------------------------------------------

[Version]
signature   = "$Windows NT$"
Class       = Monitor
ClassGuid   = {4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider    = %Lenovo%
CatalogFile = D27q-30.cat
DriverVer   = 02/09/2022,1.0.0.0

[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksFiles]
D27q-30.icm=1

[DestinationDirs]
DefaultDestDir               = 12
D27q-30_HDMI.CopyFiles      = 23
D27q-30_DP.CopyFiles     = 23


[Manufacturer]
%Lenovo%=Lenovo,NTx86,NTAMD64

[Lenovo]
%D27q-30_HDMI%      = D27q-30_HDMI.Install, Monitor\LEN9984
%D27q-30_DP%     = D27q-30_DP.Install, Monitor\LEN9984


[Lenovo.NTx86]
%D27q-30_HDMI%      = D27q-30_HDMI.Install, Monitor\LEN9984
%D27q-30_DP%     = D27q-30_DP.Install, Monitor\LEN9984


[Lenovo.NTAMD64]
%D27q-30_HDMI%      = D27q-30_HDMI.Install, Monitor\LEN9984
%D27q-30_DP%     = D27q-30_DP.Install, Monitor\LEN9984

[ControlFlags]
ExcludeFromSelect = Monitor\LEN9984
ExcludeFromSelect = Monitor\LEN9984


[D27q-30_HDMI.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = D27q-30_HDMI.AddReg, 2560, DPMS
CopyFiles = D27q-30_HDMI.CopyFiles

[D27q-30_DP.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = D27q-30_DP.AddReg, 2560, DPMS
CopyFiles = D27q-30_DP.CopyFiles

[LEN_CURRENT_REG]
HKR,MODES
HKR,,MaxResolution
HKR,,DPMS
HKR,,ICMProfile

[2560]
HKR,,MaxResolution,,"2560,1440"

[DPMS]
HKR,,DPMS,,1

[D27q-30_HDMI.AddReg]
HKR,"MODES\2560,1440",Mode1,,"30.0-115.0,48.0-76.0,+,-"
HKR,,ICMProfile,0,"D27q-30.icm"

[D27q-30_DP.AddReg]
HKR,"MODES\2560,1440",Mode1,,"115.0-115.0,48.0-76.0,+,-"
HKR,,ICMProfile,0,"D27q-30.icm"


[D27q-30_HDMI.CopyFiles]
D27q-30.icm

[D27q-30_DP.CopyFiles]
D27q-30.icm


[D27q-30_HDMI.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[D27q-30_DP.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[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

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
Monitor.SVCDESC        = "Microsoft Monitor Class Function Driver Service"
Lenovo                   = "Lenovo Inc."
DiskName               = "Lenovo Monitor installation disk"
D27q-30_HDMI          = "Lenovo D27q-30"
D27q-30_DP         = "Lenovo D27q-30"

