PortValhalla/profiles/DerGeret/Windows/Drivers.ps1

42 lines
1.4 KiB
PowerShell
Raw Normal View History

2023-07-15 09:35:07 +00:00
#!/bin/pwsh
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
function Install-PortValhallaDrivers {
param(
[Context] $context
)
2023-07-15 09:53:45 +00:00
$driverPath = "$PSScriptRoot/../../../scripts/Windows/Drivers";
$mbDriverPath = "$driverPath/ROG Zenith Extreme Alpha";
. "$mbDriverPath/MarvellEthernet/Install.ps1" $context;
. "$mbDriverPath/IntelWiFi/Install.ps1" $context;
. "$mbDriverPath/AMDChipsetX399/Install.ps1" $context;
2023-07-18 10:22:58 +00:00
. "$driverPath/Predator Z301C/Install.ps1" $context;
2023-07-15 09:53:45 +00:00
. "$mbDriverPath/IntelBluetooth/Install.ps1" $context;
. "$driverPath/AMDChipsetX399/Install.ps1" $context;
2023-07-15 23:35:51 +00:00
. "$driverPath/Tobii EyeX/Install.ps1" $context;
2023-07-15 19:37:52 +00:00
2023-07-20 13:48:49 +00:00
choco install -y --ignore-checksums `
amd-ryzen-master;
choco install -y geforce-game-ready-driver icue wavelink;
2023-07-16 10:46:00 +00:00
$context.RemoveDesktopIcon("*Wave Link*");
2023-07-28 09:52:47 +00:00
$context.RemoveDesktopIcon("*GeForce*");
2023-07-29 02:25:24 +00:00
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();
2023-07-15 09:35:07 +00:00
}
2023-07-17 00:55:45 +00:00
function Install-PersonalDrivers {
param(
[Context] $context
)
$softwarePath = "$PSScriptRoot/../../../scripts/Windows/Software";
. "$softwarePath/TobiiGhost/Install.ps1" $context;
. "$softwarePath/TobiiGameHub/Install.ps1" $context;
}