Skip to content

Commit

Permalink
added a few delays on wrmsr commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie committed May 20, 2021
1 parent 1f6f8eb commit c361d5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DockerForm/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private static void SetPowerProfile(PowerProfile profile)
if (CurrentProfile.Equals(profile))
return;

string command = "/Min /Nologo /Stdout /command=\"";
string command = "/Min /Nologo /Stdout /command=\"Delay 100;";

if (profile.HasLongPowerMax())
{
Expand Down Expand Up @@ -192,7 +192,8 @@ private static void SetPowerProfile(PowerProfile profile)
if (profile.HasPowerBalanceGPU())
command += "wrmsr 0x63a 0x00000000 0x000000" + profile.GetPowerBalanceGPU() + ";";

command += "rwexit\"";
// command += "w " + MCHBAR + "94 0xFF;";
command += "Delay 100;rwexit\"";

ProcessStartInfo RWInfo = new ProcessStartInfo
{
Expand Down

0 comments on commit c361d5d

Please sign in to comment.