; ------------------------------------------------
; Copyright (c) 2024 Lenovo Corporation
; revision 0
; This is a setupfile for T27Q-40
; ------------------------------------------------

[Version]
signature   = "$Windows NT$"
Class       = Monitor
ClassGuid   = {4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider    = %Lenovo%
CatalogFile = T27Q-40.cat
DriverVer   = 10/17/2024,1.0.0.0
PnpLockDown = 1

[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksFiles]
T27Q-40.icm=1

[DestinationDirs]
DefaultDestDir               = 12
T27Q-40_HDMI.CopyFiles      = 23
T27Q-40_DP.CopyFiles     = 23

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

[Lenovo]
%T27Q-40_HDMI%      = T27Q-40_HDMI.Install, Monitor\LEN64A6
%T27Q-40_DP%     = T27Q-40_DP.Install, Monitor\LEN64A6

[Lenovo.NTx86]
%T27Q-40_HDMI%      = T27Q-40_HDMI.Install, Monitor\LEN64A6
%T27Q-40_DP%     = T27Q-40_DP.Install, Monitor\LEN64A6

[Lenovo.NTAMD64]
%T27Q-40_HDMI%      = T27Q-40_HDMI.Install, Monitor\LEN64A6
%T27Q-40_DP%     = T27Q-40_DP.Install, Monitor\LEN64A6

[Lenovo.NTarm64]
%T27Q-40_HDMI%      = T27Q-40_HDMI.Install, Monitor\LEN64A6
%T27Q-40_DP%     = T27Q-40_DP.Install, Monitor\LEN64A6

[ControlFlags]
ExcludeFromSelect = Monitor\LEN64A6
ExcludeFromSelect = Monitor\LEN64A6

[T27Q-40_HDMI.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = T27Q-40_HDMI.AddReg, 2560, DPMS
CopyFiles = T27Q-40_HDMI.CopyFiles

[T27Q-40_DP.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = T27Q-40_DP.AddReg, 2560, DPMS
CopyFiles = T27Q-40_DP.CopyFiles

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

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

[DPMS]
HKR,,DPMS,,1

[T27Q-40_HDMI.AddReg]
HKR,"MODES\2560,1440",Mode1,,"30.0-183.0,48.0-120.0,+,-"
HKR,,ICMProfile,0,"T27Q-40.icm"

[T27Q-40_DP.AddReg]
HKR,"MODES\2560,1440",Mode1,,"183.0-183.0,48.0-120.0,+,-"
HKR,,ICMProfile,0,"T27Q-40.icm"

[T27Q-40_HDMI.CopyFiles]
T27Q-40.icm

[T27Q-40_DP.CopyFiles]
T27Q-40.icm

[T27Q-40_HDMI.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[T27Q-40_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"
T27Q-40_HDMI          = "ThinkVision T27Q-40"
T27Q-40_DP         = "ThinkVision T27Q-40"

