Enable AMD Ryzen plan by default

This commit is contained in:
Manuel Thalmann 2023-07-29 04:25:24 +02:00
parent e3e998a4a4
commit 031b07fb54

View file

@ -23,6 +23,11 @@ function Install-PortValhallaDrivers {
choco install -y geforce-game-ready-driver icue wavelink; choco install -y geforce-game-ready-driver icue wavelink;
$context.RemoveDesktopIcon("*Wave Link*"); $context.RemoveDesktopIcon("*Wave Link*");
$context.RemoveDesktopIcon("*GeForce*"); $context.RemoveDesktopIcon("*GeForce*");
Write-Information "Set AMD Ryzen power plan as default";
$ryzenPlan = [regex]::Match(((powercfg /LIST) | Where-Object { $_ -like "*(AMD Ryzen*"; }), "Power Scheme GUID: ([0-9a-f-]+) ").Groups[1];
powercfg /S $ryzenPlan;
$context.PreventSleepMode();
} }
function Install-PersonalDrivers { function Install-PersonalDrivers {