Skip to content

Commit

Permalink
fix: apply ultimate performance for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Apr 5, 2024
1 parent 74ae00c commit fb30e28
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
16 changes: 14 additions & 2 deletions src/playbook/Configuration/custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,20 @@ actions:
- !run: {exe: 'explorer.exe', runas: 'currentUser', wait: false}

# Prevent computer from going to sleep during deployment
- !run: {exe: 'powercfg.exe', args: '/setacvalueindex scheme_current sub_sleep standbyidle 0'}
- !run: {exe: 'powercfg.exe', args: '/setdcvalueindex scheme_current sub_sleep standbyidle 0'}
- !powerShell:
command: >-
$guid = New-Guid;
powercfg /duplicatescheme """e9a42b02-d5df-448d-aa00-03f14749eb61""" """$guid""";
powercfg /setactive """$guid""";
powercfg /xname """$guid""" """Atlas Installation Scheme""" """Duplicate of Ultimate Performance for installing Atlas.""";
powercfg /x monitor-timeout-ac 0;
powercfg /x monitor-timeout-dc 0;
powercfg /x disk-timeout-ac 0;
powercfg /x disk-timeout-dc 0;
powercfg /x standby-timeout-ac 0;
powercfg /x standby-timeout-dc 0;
powercfg /x hibernate-timeout-ac 0;
powercfg /x hibernate-timeout-dc 0;
- !writeStatus: {status: 'Optimizing PowerShell'}
tasks:
Expand Down
3 changes: 1 addition & 2 deletions src/playbook/Configuration/tweaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ tasks:
- tweaks\scripts\script-mitigations.yml
- tweaks\scripts\script-devices.yml
- tweaks\scripts\script-pfp.yml
- tweaks\scripts\script-power.yml
- tweaks\scripts\script-finalize.yml
- tweaks\scripts\script-backup2.yml
- tweaks\scripts\script-clientcbs.yml
Expand All @@ -350,8 +349,8 @@ tasks:
- tweaks\misc\delete-windows-specific-files.yml
- tweaks\misc\config-oem-information.yml
- tweaks\misc\rebuild-perf-counters.yml
- tweaks\misc\restore-default-sleep-timeout.yml
- tweaks\misc\create-shortcuts.yml
- tweaks\misc\add-music-videos-to-home.yml
- tweaks\misc\add-newUsers-script.yml
- tweaks\scripts\script-power.yml # Done last on purpose
- tweaks\misc\enable-notifications.yml

This file was deleted.

1 change: 1 addition & 0 deletions src/playbook/Configuration/tweaks/scripts/script-power.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Configure Power Settings
description: Executes script to configure power settings for the best performance, especially focusing on the lowest latency e.g. by reducing any potential jitter
actions:
# Disable Power Saving features
- !run: {exe: 'powercfg.exe', args: '/restoredefaultpowerschemes'}
- !cmd:
command: '"AtlasDesktop\3. General Configuration\Power\Power-saving\Disable Power-saving.cmd" -Silent'
exeDir: true
Expand Down

0 comments on commit fb30e28

Please sign in to comment.