Skip to content

Commit cd19bca

Browse files
committed
Dut_setup_2.1 - Mitigated issue with InputInject causing high power consumption during YouTube.
1 parent e975caa commit cd19bca

7 files changed

Lines changed: 10 additions & 5 deletions

File tree

scenarios/windows/msa_prep.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# Setup instructions:
88
##
99

10-
import builtins
1110
import os
1211
import logging
1312
import time
@@ -118,6 +117,12 @@ def runTest(self):
118117
pass
119118
time.sleep(1)
120119

120+
# Verify account was set properly
121+
found_account = self._call(["powershell.exe", r"(get-childitem hkcu:\Software\Microsoft\IdentityCRL\UserExtendedProperties\ | select pschildname).pschildname"], expected_exit_code="")
122+
if self.msa_account.lower() != found_account.strip().lower():
123+
logging.error(f"MSA account verification failed. Expected: {self.msa_account}, Found: {found_account.strip()}")
124+
self.fail("MSA account verification failed.")
125+
121126
# Set auto login MSA Account
122127
self._call(["cmd.exe", '/C reg add "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon" /v DefaultUserName /t REG_SZ /d ' + self.msa_account + ' /f > null 2>&1'])
123128
self._call(["cmd.exe", '/C reg add "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon" /v DefaultPassword /t REG_SZ /d ' + self.dut_password + ' /f > null 2>&1'])

setup_src/src_dut_win/dut_setup.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set dut_setup_version=2.0
1+
set dut_setup_version=2.1
22

33
REM Copyright (c) Microsoft. All rights reserved.
44
REM Licensed under the MIT license. See LICENSE file in the project root for full license information.

setup_src/src_dut_win/dut_setup.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "dut_setup"
5-
#define MyAppVersion "2.0"
5+
#define MyAppVersion "2.1"
66
#define MyAppPublisher "Microsoft"
77

88
[Setup]

setup_src/src_host/python_embed_pip.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ REM Copyright (c) Microsoft. All rights reserved.
33
REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
44

55
pushd %~dp0
6-
python_embed\Scripts\pip.exe %*
6+
..\..\downloads\python_embed\Scripts\pip.exe %*

utilities/open_source/InputInject/InputInject/DesktopDuplicationCapturer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public DesktopDuplicationCapturer(uint outputIndex)
4545
using var output1 = output.QueryInterfaceOrNull<IDXGIOutput1>()
4646
?? throw new InvalidOperationException("Failed to query IDXGIOutput1.");
4747

48-
_duplication = output1.DuplicateOutput(_device);
48+
// _duplication = output1.DuplicateOutput(_device);
4949
}
5050
}
5151

-105 Bytes
Binary file not shown.
-103 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)